Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_trunk_Modelica.Electrical.Digital.Examples.WiredX.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo", uses=false) Using package Modelica with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo) Using package Complex with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo) Using package ModelicaServices with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo) Running command: "" <> buildModelFMU(Modelica.Electrical.Digital.Examples.WiredX,fileNamePrefix="Modelica_trunk_Modelica_Electrical_Digital_Examples_WiredX",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Electrical.Digital.Examples.WiredX,fileNamePrefix="Modelica_trunk_Modelica_Electrical_Digital_Examples_WiredX",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.001414/0.001414, allocations: 117.6 kB / 17.79 MB, free: 5.254 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001555/0.001555, allocations: 199.9 kB / 18.74 MB, free: 4.312 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.356/1.356, allocations: 227.4 MB / 246.9 MB, free: 10.47 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001312/0.001312, allocations: 59.89 kB / 358.2 MB, free: 13.43 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2869/0.2882, allocations: 50.55 MB / 408.8 MB, free: 1.555 MB / 318.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Digital.Examples.WiredX): time 0.003411/0.2917, allocations: 1.824 MB / 410.6 MB, free: 15.73 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.002506/0.2942, allocations: 0.9783 MB / 411.6 MB, free: 14.74 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001789/0.2944, allocations: 4 kB / 411.6 MB, free: 14.74 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0002069/0.2947, allocations: 27.72 kB / 411.6 MB, free: 14.71 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0001618/0.2949, allocations: 35.72 kB / 411.6 MB, free: 14.68 MB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0004596/0.2953, allocations: 95.75 kB / 411.7 MB, free: 14.58 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 0.0005288/0.2959, allocations: 319.4 kB / 412 MB, free: 14.27 MB / 334.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001697/0.2961, allocations: 57.59 kB / 412.1 MB, free: 14.21 MB / 334.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0007983/0.2969, allocations: 0.7369 MB / 412.8 MB, free: 13.47 MB / 334.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.000257/0.2971, allocations: 147.4 kB / 413 MB, free: 13.33 MB / 334.1 MB Notification: Performance of NFPackage.collectConstants: time 9.823e-05/0.2972, allocations: 20 kB / 413 MB, free: 13.31 MB / 334.1 MB Notification: Performance of NFFlatten.collectFunctions: time 6.944e-05/0.2973, allocations: 20 kB / 413 MB, free: 13.29 MB / 334.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0002077/0.2975, allocations: 139.4 kB / 413.1 MB, free: 13.15 MB / 334.1 MB Notification: Performance of NFVerifyModel.verify: time 0.000281/0.2978, allocations: 246.2 kB / 413.4 MB, free: 12.91 MB / 334.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0008383/0.2987, allocations: 0.7459 MB / 414.1 MB, free: 12.16 MB / 334.1 MB Notification: Performance of FrontEnd - DAE generated: time 7.123e-06/0.2987, allocations: 4 kB / 414.1 MB, free: 12.16 MB / 334.1 MB Notification: Performance of FrontEnd: time 1.944e-06/0.2987, allocations: 4 kB / 414.1 MB, free: 12.16 MB / 334.1 MB Notification: Performance of Transformations before backend: time 2.687e-05/0.2987, allocations: 0 / 414.1 MB, free: 12.16 MB / 334.1 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 33 * Number of variables: 33 Notification: Performance of Generate backend data structure: time 0.001896/0.3006, allocations: 1.196 MB / 415.3 MB, free: 10.86 MB / 334.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.738e-05/0.3007, allocations: 12.03 kB / 415.3 MB, free: 10.85 MB / 334.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 9.544e-05/0.3008, allocations: 50.73 kB / 415.4 MB, free: 10.79 MB / 334.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001679/0.301, allocations: 80.47 kB / 415.5 MB, free: 10.71 MB / 334.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0005045/0.3015, allocations: 392.9 kB / 415.9 MB, free: 10.29 MB / 334.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.165e-05/0.3015, allocations: 20.55 kB / 415.9 MB, free: 10.27 MB / 334.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 5.908e-05/0.3016, allocations: 24.12 kB / 415.9 MB, free: 10.24 MB / 334.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0005233/0.3021, allocations: 249.9 kB / 416.1 MB, free: 9.992 MB / 334.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 9.457e-06/0.3022, allocations: 3.938 kB / 416.1 MB, free: 9.988 MB / 334.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 4.634e-05/0.3022, allocations: 12 kB / 416.2 MB, free: 9.977 MB / 334.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.824e-06/0.3022, allocations: 4 kB / 416.2 MB, free: 9.973 MB / 334.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002905/0.3025, allocations: 132.2 kB / 416.3 MB, free: 9.844 MB / 334.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001221/0.3037, allocations: 0.7349 MB / 417 MB, free: 9.059 MB / 334.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.000374/0.3041, allocations: 206.1 kB / 417.2 MB, free: 8.852 MB / 334.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002848/0.3044, allocations: 176.8 kB / 417.4 MB, free: 8.676 MB / 334.1 MB Notification: Performance of preOpt evalFunc (simulation): time 1.728e-05/0.3045, allocations: 0 / 417.4 MB, free: 8.676 MB / 334.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0006114/0.3051, allocations: 377.9 kB / 417.8 MB, free: 8.27 MB / 334.1 MB Notification: Performance of pre-optimization done (n=29): time 3.647e-06/0.3051, allocations: 0 / 417.8 MB, free: 8.27 MB / 334.1 MB Notification: Performance of matching and sorting (n=29): time 0.001443/0.3065, allocations: 0.936 MB / 418.7 MB, free: 7.277 MB / 334.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.000136/0.3067, allocations: 281 kB / 419 MB, free: 6.941 MB / 334.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001247/0.3079, allocations: 0.9569 MB / 419.9 MB, free: 5.973 MB / 334.1 MB Notification: Performance of collectPreVariables (initialization): time 5.204e-05/0.308, allocations: 37.7 kB / 420 MB, free: 5.93 MB / 334.1 MB Notification: Performance of collectInitialEqns (initialization): time 9.758e-05/0.3081, allocations: 130 kB / 420.1 MB, free: 5.801 MB / 334.1 MB Notification: Performance of collectInitialBindings (initialization): time 8.332e-05/0.3082, allocations: 63.55 kB / 420.2 MB, free: 5.738 MB / 334.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002244/0.3084, allocations: 161.3 kB / 420.3 MB, free: 5.574 MB / 334.1 MB Notification: Performance of setup shared object (initialization): time 0.0001172/0.3086, allocations: 338.8 kB / 420.6 MB, free: 5.234 MB / 334.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002684/0.3088, allocations: 124.2 kB / 420.8 MB, free: 5.113 MB / 334.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.00027/0.3091, allocations: 173.3 kB / 420.9 MB, free: 4.934 MB / 334.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0006512/0.3098, allocations: 0.7029 MB / 421.6 MB, free: 4.117 MB / 334.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.585e-06/0.3098, allocations: 0 / 421.6 MB, free: 4.117 MB / 334.1 MB Notification: Performance of matching and sorting (n=34) (initialization): time 0.001007/0.3108, allocations: 0.7566 MB / 422.4 MB, free: 3.305 MB / 334.1 MB Notification: Performance of prepare postOptimizeDAE: time 0.0001409/0.311, allocations: 249.7 kB / 422.6 MB, free: 3.012 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.332e-06/0.311, allocations: 0 / 422.6 MB, free: 3.012 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.755e-05/0.311, allocations: 4 kB / 422.6 MB, free: 3.008 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 3.595e-05/0.311, allocations: 8 kB / 422.7 MB, free: 3 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 8.907e-06/0.311, allocations: 7.984 kB / 422.7 MB, free: 2.992 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002646/0.3113, allocations: 31.88 kB / 422.7 MB, free: 2.961 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001099/0.3114, allocations: 100.2 kB / 422.8 MB, free: 2.863 MB / 334.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 4 * Number of states: 0 () * Number of discrete variables: 34 ($PRE.bUF3S1.inertialDelaySensitive.y,$PRE.bUF3S2.inertialDelaySensitive.y,wiredX.auxiliary[2],wiredX.auxiliary[1],bUF3S1.inertialDelaySensitive.t_next,bUF3S1.inertialDelaySensitive.lh,bUF3S1.inertialDelaySensitive.y_old,bUF3S1.inertialDelaySensitive.y_auxiliary,bUF3S1.inertialDelaySensitive.delayTime,bUF3S1.inertialDelaySensitive.y,bUF3S1.inertialDelaySensitive.x,$PRE.bUF3S1.inertialDelaySensitive.x,bUF3S1.yy,bUF3S1.nextstate,x_table1.y,e_table1.y,bUF3S2.inertialDelaySensitive.t_next,bUF3S2.inertialDelaySensitive.lh,bUF3S2.inertialDelaySensitive.y_old,bUF3S2.inertialDelaySensitive.y_auxiliary,bUF3S2.inertialDelaySensitive.delayTime,bUF3S2.inertialDelaySensitive.y,bUF3S2.inertialDelaySensitive.x,$PRE.bUF3S2.inertialDelaySensitive.x,bUF3S2.yy,bUF3S2.nextstate,x_table2.y,e_table2.y,$whenCondition4,$whenCondition3,$whenCondition2,$whenCondition1,$PRE.wiredX.auxiliary[2],wiredX.y) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (18): * Single equations (assignments): 10 * Array equations: 0 * Algorithm blocks: 8 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.0006207/0.3121, allocations: 0.62 MB / 423.4 MB, free: 2.184 MB / 334.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.00012/0.3122, allocations: 83.52 kB / 423.5 MB, free: 2.102 MB / 334.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001977/0.3124, allocations: 130.9 kB / 423.6 MB, free: 1.965 MB / 334.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.126e-06/0.3124, allocations: 0 / 423.6 MB, free: 1.965 MB / 334.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.603e-06/0.3124, allocations: 0 / 423.6 MB, free: 1.965 MB / 334.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.276e-06/0.3124, allocations: 0 / 423.6 MB, free: 1.965 MB / 334.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.00182/0.3142, allocations: 1.429 MB / 425.1 MB, free: 440 kB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.635e-06/0.3143, allocations: 0 / 425.1 MB, free: 440 kB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 1.723e-05/0.3143, allocations: 8 kB / 425.1 MB, free: 432 kB / 334.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.795e-06/0.3143, allocations: 0 / 425.1 MB, free: 432 kB / 334.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.67e-05/0.3144, allocations: 31.98 kB / 425.1 MB, free: 400 kB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.324e-06/0.3144, allocations: 0 / 425.1 MB, free: 400 kB / 334.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.615e-06/0.3144, allocations: 7.922 kB / 425.1 MB, free: 392 kB / 334.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001192/0.3156, allocations: 0.9691 MB / 426.1 MB, free: 15.35 MB / 350.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0006193/0.3162, allocations: 416.1 kB / 426.5 MB, free: 14.92 MB / 350.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001209/0.3163, allocations: 24 kB / 426.5 MB, free: 14.9 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002433/0.3166, allocations: 19.98 kB / 426.5 MB, free: 14.88 MB / 350.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001676/0.3168, allocations: 63.88 kB / 426.6 MB, free: 14.82 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001161/0.3169, allocations: 115.8 kB / 426.7 MB, free: 14.7 MB / 350.1 MB Notification: Performance of sorting global known variables: time 0.0009346/0.3178, allocations: 0.6898 MB / 427.4 MB, free: 14.02 MB / 350.1 MB Notification: Performance of sort global known variables: time 2.2e-07/0.3178, allocations: 0 / 427.4 MB, free: 14.02 MB / 350.1 MB Notification: Performance of remove unused functions: time 0.0004208/0.3183, allocations: 92 kB / 427.5 MB, free: 13.93 MB / 350.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 1 * Number of states: 0 () * Number of discrete variables: 29 ($whenCondition1,$whenCondition2,$whenCondition3,$whenCondition4,e_table2.y,x_table2.y,bUF3S2.nextstate,bUF3S2.yy,bUF3S2.inertialDelaySensitive.x,bUF3S2.inertialDelaySensitive.y,bUF3S2.inertialDelaySensitive.delayTime,bUF3S2.inertialDelaySensitive.y_auxiliary,bUF3S2.inertialDelaySensitive.y_old,bUF3S2.inertialDelaySensitive.lh,bUF3S2.inertialDelaySensitive.t_next,e_table1.y,x_table1.y,bUF3S1.nextstate,bUF3S1.yy,bUF3S1.inertialDelaySensitive.x,bUF3S1.inertialDelaySensitive.y,bUF3S1.inertialDelaySensitive.delayTime,bUF3S1.inertialDelaySensitive.y_auxiliary,bUF3S1.inertialDelaySensitive.y_old,bUF3S1.inertialDelaySensitive.lh,bUF3S1.inertialDelaySensitive.t_next,wiredX.y,wiredX.auxiliary[1],wiredX.auxiliary[2]) * Number of discrete states: 27 (e_table2.y,x_table2.y,bUF3S2.yy,bUF3S2.nextstate,bUF3S2.inertialDelaySensitive.y,bUF3S2.inertialDelaySensitive.y_auxiliary,bUF3S2.inertialDelaySensitive.t_next,bUF3S2.inertialDelaySensitive.delayTime,bUF3S2.inertialDelaySensitive.lh,bUF3S2.inertialDelaySensitive.y_old,$whenCondition4,$whenCondition3,bUF3S2.inertialDelaySensitive.x,e_table1.y,x_table1.y,bUF3S1.yy,bUF3S1.nextstate,bUF3S1.inertialDelaySensitive.y,bUF3S1.inertialDelaySensitive.y_auxiliary,bUF3S1.inertialDelaySensitive.t_next,bUF3S1.inertialDelaySensitive.delayTime,bUF3S1.inertialDelaySensitive.lh,bUF3S1.inertialDelaySensitive.y_old,$whenCondition2,$whenCondition1,bUF3S1.inertialDelaySensitive.x,wiredX.auxiliary[2]) * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (13): * Single equations (assignments): 5 * Array equations: 0 * Algorithm blocks: 8 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.001773/0.32, allocations: 1.561 MB / 429 MB, free: 12.29 MB / 350.1 MB Notification: Performance of simCode: created initialization part: time 0.001127/0.3212, allocations: 0.8818 MB / 429.9 MB, free: 11.31 MB / 350.1 MB Notification: Performance of simCode: created event and clocks part: time 3.236e-06/0.3212, allocations: 0 / 429.9 MB, free: 11.31 MB / 350.1 MB Notification: Performance of simCode: created simulation system equations: time 0.000662/0.3219, allocations: 0.7491 MB / 430.7 MB, free: 10.46 MB / 350.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001154/0.323, allocations: 268.8 kB / 430.9 MB, free: 10.22 MB / 350.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.006589/0.3296, allocations: 4.633 MB / 435.6 MB, free: 5.438 MB / 350.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0006464/0.3303, allocations: 0.9481 MB / 436.5 MB, free: 4.461 MB / 350.1 MB Notification: Performance of simCode: alias equations: time 0.0002398/0.3306, allocations: 89.34 kB / 436.6 MB, free: 4.375 MB / 350.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001452/0.3307, allocations: 87.34 kB / 436.7 MB, free: 4.289 MB / 350.1 MB Notification: Performance of SimCode: time 7.91e-07/0.3307, allocations: 0 / 436.7 MB, free: 4.289 MB / 350.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.03267/0.3634, allocations: 11.72 MB / 448.4 MB, free: 8.652 MB / 366.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 7.729/8.093, allocations: 5.188 kB / 448.4 MB, free: 8.652 MB / 366.1 MB (rm -f Modelica_trunk_Modelica.Electrical.Digital.Examples.WiredX.pipe ; mkfifo Modelica_trunk_Modelica.Electrical.Digital.Examples.WiredX.pipe ; head -c 1048576 < Modelica_trunk_Modelica.Electrical.Digital.Examples.WiredX.pipe >> ../files/Modelica_trunk_Modelica.Electrical.Digital.Examples.WiredX.sim & python3 -m fmpy simulate --output-file Modelica_trunk_Modelica.Electrical.Digital.Examples.WiredX_res.csv --start-time 0 --stop-time 12 --timeout 50 --relative-tolerance 1e-06 --interface-type ModelExchange --solver CVode --output-interval 0.0048 Modelica_trunk_Modelica_Electrical_Digital_Examples_WiredX.fmu > Modelica_trunk_Modelica.Electrical.Digital.Examples.WiredX.pipe 2>&1) diffSimulationResults("Modelica_trunk_Modelica.Electrical.Digital.Examples.WiredX_res.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/Modelica/Electrical/Digital/Examples/WiredX/WiredX.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_trunk_Modelica.Electrical.Digital.Examples.WiredX.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches