Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_trunk_Modelica.Mechanics.MultiBody.Examples.Loops.Engine1a.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.Mechanics.MultiBody.Examples.Loops.Engine1a,fileNamePrefix="Modelica_trunk_Modelica_Mechanics_MultiBody_Examples_Loops_Engine1a",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Mechanics.MultiBody.Examples.Loops.Engine1a,fileNamePrefix="Modelica_trunk_Modelica_Mechanics_MultiBody_Examples_Loops_Engine1a",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.001169/0.001169, allocations: 103.9 kB / 17.63 MB, free: 5.523 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001325/0.001326, allocations: 206.4 kB / 18.58 MB, free: 4.582 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.355/1.355, allocations: 227.4 MB / 246.8 MB, free: 10.63 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001338/0.001339, allocations: 56.78 kB / 307.1 MB, free: 0.5469 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1029/0.1043, allocations: 50.52 MB / 357.6 MB, free: 14.03 MB / 302.1 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.MultiBody.Examples.Loops.Engine1a): time 0.2005/0.3049, allocations: 19.37 MB / 377 MB, free: 9.082 MB / 302.1 MB Notification: Performance of NFInst.instExpressions: time 0.01376/0.3187, allocations: 5.979 MB / 382.9 MB, free: 7.645 MB / 302.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.003925/0.3226, allocations: 156.8 kB / 383.1 MB, free: 7.609 MB / 302.1 MB Notification: Performance of NFTyping.typeComponents: time 0.01178/0.3345, allocations: 5.827 MB / 388.9 MB, free: 5.242 MB / 302.1 MB Notification: Performance of NFTyping.typeBindings: time 0.009359/0.3439, allocations: 3.305 MB / 392.2 MB, free: 3.34 MB / 302.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.003669/0.3475, allocations: 1.569 MB / 393.8 MB, free: 2.285 MB / 302.1 MB Notification: Performance of NFFlatten.flatten: time 0.01763/0.3652, allocations: 12.68 MB / 406.5 MB, free: 10.57 MB / 318.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.01158/0.3768, allocations: 7.658 MB / 414.1 MB, free: 2.844 MB / 318.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.006983/0.3838, allocations: 3.541 MB / 417.7 MB, free: 15.29 MB / 334.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.007449/0.3913, allocations: 4.732 MB / 422.4 MB, free: 10.54 MB / 334.1 MB Notification: Performance of NFPackage.collectConstants: time 0.002594/0.3939, allocations: 0.7109 MB / 423.1 MB, free: 9.832 MB / 334.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.005651/0.3996, allocations: 1.662 MB / 424.8 MB, free: 8.168 MB / 334.1 MB Notification: Performance of NFScalarize.scalarize: time 0.00584/0.4055, allocations: 4.154 MB / 428.9 MB, free: 4.004 MB / 334.1 MB Notification: Performance of NFVerifyModel.verify: time 0.009814/0.4153, allocations: 4.741 MB / 433.7 MB, free: 15.23 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0162/0.4315, allocations: 13.97 MB / 447.6 MB, free: 1.223 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 7.344e-06/0.4316, allocations: 0 / 447.6 MB, free: 1.223 MB / 350.1 MB Notification: Performance of FrontEnd: time 1.593e-06/0.4316, allocations: 4 kB / 447.6 MB, free: 1.219 MB / 350.1 MB Notification: Performance of Transformations before backend: time 0.0004315/0.432, allocations: 0 / 447.6 MB, free: 1.219 MB / 350.1 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 2386 * Number of variables: 2386 Notification: Performance of Generate backend data structure: time 0.03059/0.4626, allocations: 10.3 MB / 457.9 MB, free: 6.824 MB / 366.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.09e-05/0.4627, allocations: 15.97 kB / 458 MB, free: 6.809 MB / 366.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.003381/0.4661, allocations: 1.148 MB / 459.1 MB, free: 5.648 MB / 366.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.3821/0.8482, allocations: 24.24 MB / 483.3 MB, free: 13.37 MB / 398.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.02256/0.8708, allocations: 8.942 MB / 492.3 MB, free: 4.332 MB / 398.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0004226/0.8713, allocations: 427.4 kB / 492.7 MB, free: 3.914 MB / 398.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.002215/0.8735, allocations: 0.5853 MB / 493.3 MB, free: 3.328 MB / 398.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.03251/0.906, allocations: 16.17 MB / 0.4975 GB, free: 2.102 MB / 414.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.00033/0.9064, allocations: 99.11 kB / 0.4976 GB, free: 2.004 MB / 414.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.001156/0.9076, allocations: 263.8 kB / 0.4979 GB, free: 1.746 MB / 414.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.004185/0.9118, allocations: 2.764 MB / 0.5006 GB, free: 14.98 MB / 430.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.02859/0.9404, allocations: 12.85 MB / 0.5131 GB, free: 2.102 MB / 430.1 MB Warning: The model contains alias variables with redundant start and/or conflicting nominal values. It is recommended to resolve the conflicts, because otherwise the system could be hard to solve. To print the conflicting alias sets and the chosen candidates please use -d=aliasConflicts. Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.4037/1.344, allocations: 66.44 MB / 0.578 GB, free: 91.82 MB / 446.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.01752/1.362, allocations: 7.601 MB / 0.5854 GB, free: 89.36 MB / 446.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.005148/1.367, allocations: 4.204 MB / 0.5895 GB, free: 87.57 MB / 446.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0193/1.386, allocations: 11.69 MB / 0.6009 GB, free: 80.46 MB / 446.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.905e-05/1.386, allocations: 64.84 kB / 0.601 GB, free: 80.4 MB / 446.1 MB Notification: Performance of pre-optimization done (n=280): time 5.48e-06/1.386, allocations: 2 kB / 0.601 GB, free: 80.4 MB / 446.1 MB Notification: Performance of matching and sorting (n=339): time 0.1652/1.551, allocations: 47.37 MB / 0.6473 GB, free: 36.41 MB / 446.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 9.594e-05/1.552, allocations: 398.1 kB / 0.6476 GB, free: 35.94 MB / 446.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.008526/1.56, allocations: 7.157 MB / 0.6546 GB, free: 28.81 MB / 446.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0008473/1.561, allocations: 77.7 kB / 0.6547 GB, free: 28.73 MB / 446.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.002506/1.564, allocations: 5.17 MB / 0.6598 GB, free: 23.55 MB / 446.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.001604/1.565, allocations: 1.251 MB / 0.661 GB, free: 22.31 MB / 446.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.002305/1.567, allocations: 1.639 MB / 0.6626 GB, free: 20.66 MB / 446.1 MB Notification: Performance of setup shared object (initialization): time 6.971e-05/1.568, allocations: 309.1 kB / 0.6629 GB, free: 20.36 MB / 446.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.004647/1.572, allocations: 3.959 MB / 0.6667 GB, free: 16.39 MB / 446.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.00719/1.579, allocations: 8.583 MB / 0.6751 GB, free: 5.52 MB / 446.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.01625/1.596, allocations: 13.49 MB / 0.6883 GB, free: 5.758 MB / 462.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.0001341/1.596, allocations: 48 kB / 0.6883 GB, free: 5.711 MB / 462.1 MB Notification: Performance of matching and sorting (n=1070) (initialization): time 0.03801/1.634, allocations: 17.17 MB / 0.7051 GB, free: 4.48 MB / 478.1 MB Notification: Performance of prepare postOptimizeDAE: time 0.0002034/1.634, allocations: 76 kB / 0.7052 GB, free: 4.406 MB / 478.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0002263/1.634, allocations: 160 kB / 0.7053 GB, free: 4.25 MB / 478.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.2244/1.859, allocations: 5.776 MB / 0.711 GB, free: 152.2 MB / 478.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.006904/1.866, allocations: 1.749 MB / 0.7127 GB, free: 152.2 MB / 478.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.04085/1.907, allocations: 31.67 MB / 0.7436 GB, free: 139.1 MB / 478.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.008263/1.915, allocations: 0.5241 MB / 0.7441 GB, free: 139 MB / 478.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.001694/1.917, allocations: 472 kB / 0.7446 GB, free: 138.9 MB / 478.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 727 * Number of states: 0 () * Number of discrete variables: 66 (cylinder.boxColor[3],cylinder.boxColor[2],cylinder.boxColor[1],b2.cylinderColor[3],b2.cylinderColor[2],b2.cylinderColor[1],b1.cylinderColor[3],b1.cylinderColor[2],b1.cylinderColor[1],cylPosition.color[3],cylPosition.color[2],cylPosition.color[1],mid.color[3],mid.color[2],mid.color[1],crank4.color[3],crank4.color[2],crank4.color[1],crank4.body.sphereColor[3],crank4.body.sphereColor[2],crank4.body.sphereColor[1],crank3.color[3],crank3.color[2],crank3.color[1],crank3.body.sphereColor[3],crank3.body.sphereColor[2],crank3.body.sphereColor[1],crank2.color[3],crank2.color[2],crank2.color[1],crank2.body.sphereColor[3],crank2.body.sphereColor[2],crank2.body.sphereColor[1],crank1.color[3],crank1.color[2],crank1.color[1],crank1.body.sphereColor[3],crank1.body.sphereColor[2],crank1.body.sphereColor[1],bearing.cylinderColor[3],bearing.cylinderColor[2],bearing.cylinderColor[1],connectingRod.color[3],connectingRod.color[2],connectingRod.color[1],connectingRod.body.sphereColor[3],connectingRod.body.sphereColor[2],connectingRod.body.sphereColor[1],piston.color[3],piston.color[2],piston.color[1],piston.body.sphereColor[3],piston.body.sphereColor[2],piston.body.sphereColor[1],world.gravityArrowColor[3],world.gravityArrowColor[2],world.gravityArrowColor[1],world.axisColor_x[3],world.axisColor_x[2],world.axisColor_x[1],world.groundColor[3],world.groundColor[2],world.groundColor[1],world.gravitySphereColor[3],world.gravitySphereColor[2],world.gravitySphereColor[1]) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (934): * Single equations (assignments): 928 * Array equations: 3 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 3 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 2 systems {(8,93,51.6%), (2,6,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 1 system {(2,4)} Notification: Performance of prepare postOptimizeDAE: time 0.006447/1.923, allocations: 3.464 MB / 0.7479 GB, free: 137.5 MB / 478.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.001381/1.925, allocations: 0.6506 MB / 0.7486 GB, free: 137.5 MB / 478.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.02215/1.947, allocations: 11.47 MB / 0.7598 GB, free: 131.5 MB / 478.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.599e-05/1.947, allocations: 39.98 kB / 0.7598 GB, free: 131.4 MB / 478.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.34e-05/1.947, allocations: 21.5 kB / 0.7598 GB, free: 131.4 MB / 478.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.555e-05/1.947, allocations: 15.95 kB / 0.7599 GB, free: 131.4 MB / 478.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.03936/1.986, allocations: 24.86 MB / 0.7841 GB, free: 106.3 MB / 478.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.85e-05/1.986, allocations: 7.375 kB / 0.7841 GB, free: 106.3 MB / 478.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001886/1.988, allocations: 423.3 kB / 0.7845 GB, free: 105.8 MB / 478.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.01556/2.004, allocations: 5.38 MB / 0.7898 GB, free: 100.5 MB / 478.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0005935/2.004, allocations: 67.92 kB / 0.7899 GB, free: 100.5 MB / 478.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.03318/2.038, allocations: 30.35 MB / 0.8195 GB, free: 69.96 MB / 478.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 6.523e-06/2.038, allocations: 8 kB / 0.8195 GB, free: 69.96 MB / 478.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.02758/2.065, allocations: 16.48 MB / 0.8356 GB, free: 53.5 MB / 478.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.002141/2.068, allocations: 0.6791 MB / 0.8363 GB, free: 52.8 MB / 478.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.001615/2.069, allocations: 68.05 kB / 0.8363 GB, free: 52.73 MB / 478.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.004023/2.073, allocations: 255.6 kB / 0.8366 GB, free: 52.48 MB / 478.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.001179/2.074, allocations: 242.6 kB / 0.8368 GB, free: 52.25 MB / 478.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0003055/2.075, allocations: 92 kB / 0.8369 GB, free: 52.16 MB / 478.1 MB Notification: Performance of sorting global known variables: time 0.00879/2.083, allocations: 4.616 MB / 0.8414 GB, free: 47.57 MB / 478.1 MB Notification: Performance of sort global known variables: time 6.11e-07/2.084, allocations: 0 / 0.8414 GB, free: 47.57 MB / 478.1 MB Notification: Performance of remove unused functions: time 0.01026/2.094, allocations: 1.958 MB / 0.8433 GB, free: 45.62 MB / 478.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 28 * Number of states: 2 (inertia.phi,inertia.w) * Number of discrete variables: 0 () * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (214): * Single equations (assignments): 208 * Array equations: 3 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 3 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 2 systems {(7,87,55.1%), (2,4,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 1 system {(2,6)} Notification: Performance of Backend phase and start with SimCode phase: time 0.02912/2.123, allocations: 17.18 MB / 0.8601 GB, free: 28.25 MB / 478.1 MB Notification: Performance of simCode: created initialization part: time 0.02029/2.143, allocations: 13.3 MB / 0.8731 GB, free: 14.94 MB / 478.1 MB Notification: Performance of simCode: created event and clocks part: time 1.038e-05/2.143, allocations: 6.297 kB / 0.8731 GB, free: 14.93 MB / 478.1 MB Notification: Performance of simCode: created simulation system equations: time 0.007342/2.151, allocations: 4.697 MB / 0.8777 GB, free: 10.18 MB / 478.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.006916/2.158, allocations: 1.079 MB / 0.8787 GB, free: 9.117 MB / 478.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.3169/2.475, allocations: 114 MB / 0.9901 GB, free: 59.23 MB / 478.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.007488/2.482, allocations: 5.524 MB / 0.9955 GB, free: 53.69 MB / 478.1 MB Notification: Performance of simCode: alias equations: time 0.006394/2.488, allocations: 2.624 MB / 0.998 GB, free: 51.06 MB / 478.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.004444/2.493, allocations: 3.733 MB / 1.002 GB, free: 47.33 MB / 478.1 MB Notification: Performance of SimCode: time 9.02e-07/2.493, allocations: 0 / 1.002 GB, free: 47.33 MB / 478.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.4004/2.893, allocations: 162.2 MB / 1.16 GB, free: 87.78 MB / 494.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 16.39/19.29, allocations: 8.688 kB / 1.16 GB, free: 87.77 MB / 494.1 MB (rm -f Modelica_trunk_Modelica.Mechanics.MultiBody.Examples.Loops.Engine1a.pipe ; mkfifo Modelica_trunk_Modelica.Mechanics.MultiBody.Examples.Loops.Engine1a.pipe ; head -c 1048576 < Modelica_trunk_Modelica.Mechanics.MultiBody.Examples.Loops.Engine1a.pipe >> ../files/Modelica_trunk_Modelica.Mechanics.MultiBody.Examples.Loops.Engine1a.sim & python3 -m fmpy simulate --output-file Modelica_trunk_Modelica.Mechanics.MultiBody.Examples.Loops.Engine1a_res.csv --start-time 0 --stop-time 5 --timeout 50 --relative-tolerance 1e-06 --interface-type ModelExchange --solver CVode --output-interval 0.002 Modelica_trunk_Modelica_Mechanics_MultiBody_Examples_Loops_Engine1a.fmu > Modelica_trunk_Modelica.Mechanics.MultiBody.Examples.Loops.Engine1a.pipe 2>&1) diffSimulationResults("Modelica_trunk_Modelica.Mechanics.MultiBody.Examples.Loops.Engine1a_res.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/Modelica/Mechanics/MultiBody/Examples/Loops/Engine1a/Engine1a.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_trunk_Modelica.Mechanics.MultiBody.Examples.Loops.Engine1a.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches