Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_3.2.3_Modelica.Mechanics.MultiBody.Examples.Loops.Engine1a.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo", uses=false) Using package Modelica with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo) Using package Complex with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo) Using package ModelicaServices with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo) Running command: "" <> buildModelFMU(Modelica.Mechanics.MultiBody.Examples.Loops.Engine1a,fileNamePrefix="Modelica_3_2_3_Modelica_Mechanics_MultiBody_Examples_Loops_Engine1a",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Mechanics.MultiBody.Examples.Loops.Engine1a,fileNamePrefix="Modelica_3_2_3_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 4.0.0+maint.om/package.mo): time 0.001197/0.001197, allocations: 103.3 kB / 17.16 MB, free: 6.316 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001318/0.001318, allocations: 190 kB / 18.07 MB, free: 5.414 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.288/1.288, allocations: 205.1 MB / 223.9 MB, free: 12.48 MB / 190.1 MB Notification: Modelica requested package Complex of version 3.2.3. Complex 4.0.0 is used instead which states that it is fully compatible without conversion script needed. Notification: Modelica requested package ModelicaServices of version 3.2.3. ModelicaServices 4.0.0 is used instead which states that it is fully compatible without conversion script needed. Notification: Performance of FrontEnd - loaded program: time 0.001068/0.001068, allocations: 55.92 kB / 280.1 MB, free: 3.48 MB / 222.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.08543/0.08651, allocations: 46.62 MB / 326.7 MB, free: 4.789 MB / 270.1 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.MultiBody.Examples.Loops.Engine1a): time 0.2226/0.3092, allocations: 103.4 MB / 430.1 MB, free: 12.59 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.04801/0.3572, allocations: 19.96 MB / 450.1 MB, free: 10.65 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.02183/0.3791, allocations: 474.8 kB / 450.5 MB, free: 10.19 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.01106/0.3902, allocations: 5.858 MB / 456.4 MB, free: 4.316 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.007996/0.3983, allocations: 3.184 MB / 459.6 MB, free: 1.121 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.003238/0.4015, allocations: 1.463 MB / 461 MB, free: 15.66 MB / 366.1 MB Notification: Performance of NFFlatten.flatten: time 0.01795/0.4195, allocations: 15.9 MB / 476.9 MB, free: 15.73 MB / 382.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.01006/0.4296, allocations: 7.498 MB / 484.4 MB, free: 8.156 MB / 382.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.006041/0.4357, allocations: 3.212 MB / 487.6 MB, free: 4.934 MB / 382.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.007727/0.4435, allocations: 5.098 MB / 492.7 MB, free: 15.82 MB / 398.1 MB Notification: Performance of NFPackage.collectConstants: time 0.002216/0.4457, allocations: 484 kB / 493.2 MB, free: 15.35 MB / 398.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.004218/0.4499, allocations: 1.494 MB / 494.7 MB, free: 13.85 MB / 398.1 MB Notification: Performance of NFScalarize.scalarize: time 0.004664/0.4546, allocations: 4.021 MB / 498.7 MB, free: 9.82 MB / 398.1 MB Notification: Performance of NFVerifyModel.verify: time 0.005669/0.4603, allocations: 4.482 MB / 0.4914 GB, free: 5.312 MB / 398.1 MB Notification: Performance of NFConvertDAE.convert: time 0.01343/0.4738, allocations: 13.89 MB / 0.505 GB, free: 7.383 MB / 414.1 MB Notification: Performance of FrontEnd - DAE generated: time 6.002e-06/0.4738, allocations: 0 / 0.505 GB, free: 7.383 MB / 414.1 MB Notification: Performance of FrontEnd: time 1.473e-06/0.4738, allocations: 4 kB / 0.505 GB, free: 7.379 MB / 414.1 MB Notification: Performance of Transformations before backend: time 0.0003736/0.4742, allocations: 0 / 0.505 GB, free: 7.379 MB / 414.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.02798/0.5022, allocations: 10.4 MB / 0.5151 GB, free: 12.88 MB / 430.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.812e-05/0.5023, allocations: 12.03 kB / 0.5151 GB, free: 12.87 MB / 430.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.003018/0.5053, allocations: 1.148 MB / 0.5163 GB, free: 11.71 MB / 430.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.248/0.7533, allocations: 24.25 MB / 0.5399 GB, free: 3.422 MB / 446.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.1579/0.9112, allocations: 10.54 MB / 0.5502 GB, free: 163.3 MB / 446.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0003332/0.9116, allocations: 428.7 kB / 0.5506 GB, free: 163.2 MB / 446.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.001933/0.9136, allocations: 0.5858 MB / 0.5512 GB, free: 163 MB / 446.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.02467/0.9382, allocations: 16.17 MB / 0.567 GB, free: 155.7 MB / 446.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0003397/0.9386, allocations: 102 kB / 0.5671 GB, free: 155.6 MB / 446.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.001456/0.9401, allocations: 267.5 kB / 0.5674 GB, free: 155.5 MB / 446.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.003512/0.9436, allocations: 2.763 MB / 0.5701 GB, free: 154.7 MB / 446.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.02239/0.966, allocations: 12.86 MB / 0.5826 GB, free: 142.2 MB / 446.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.06354/1.03, allocations: 66.44 MB / 0.6475 GB, free: 74.03 MB / 446.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.01599/1.046, allocations: 7.585 MB / 0.6549 GB, free: 66.31 MB / 446.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.003967/1.05, allocations: 4.202 MB / 0.659 GB, free: 62.1 MB / 446.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.01541/1.065, allocations: 11.72 MB / 0.6705 GB, free: 50.16 MB / 446.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.692e-05/1.065, allocations: 72.5 kB / 0.6705 GB, free: 50.08 MB / 446.1 MB Notification: Performance of pre-optimization done (n=280): time 5.651e-06/1.065, allocations: 0 / 0.6705 GB, free: 50.08 MB / 446.1 MB Notification: Performance of matching and sorting (n=339): time 0.1511/1.216, allocations: 46.17 MB / 0.7156 GB, free: 3.973 MB / 446.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 9.339e-05/1.216, allocations: 394.1 kB / 0.716 GB, free: 3.5 MB / 446.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.1615/1.378, allocations: 7.249 MB / 0.7231 GB, free: 152.4 MB / 446.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0008707/1.379, allocations: 83.09 kB / 0.7232 GB, free: 152.3 MB / 446.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.004127/1.383, allocations: 5.178 MB / 0.7282 GB, free: 149.5 MB / 446.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.001924/1.385, allocations: 1.245 MB / 0.7294 GB, free: 148.6 MB / 446.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.003021/1.388, allocations: 1.648 MB / 0.731 GB, free: 147.8 MB / 446.1 MB Notification: Performance of setup shared object (initialization): time 5.267e-05/1.388, allocations: 301.8 kB / 0.7313 GB, free: 147.5 MB / 446.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.005756/1.394, allocations: 3.962 MB / 0.7352 GB, free: 146.1 MB / 446.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.006629/1.4, allocations: 8.586 MB / 0.7436 GB, free: 138.5 MB / 446.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.01237/1.413, allocations: 13.47 MB / 0.7567 GB, free: 128.6 MB / 446.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.0001249/1.413, allocations: 50.81 kB / 0.7568 GB, free: 128.6 MB / 446.1 MB Notification: Performance of matching and sorting (n=1070) (initialization): time 0.03312/1.446, allocations: 17.17 MB / 0.7736 GB, free: 120.3 MB / 446.1 MB Notification: Performance of prepare postOptimizeDAE: time 0.0002096/1.446, allocations: 72 kB / 0.7736 GB, free: 120.2 MB / 446.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0003132/1.447, allocations: 160 kB / 0.7738 GB, free: 120.1 MB / 446.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.01586/1.463, allocations: 5.761 MB / 0.7794 GB, free: 115 MB / 446.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.005272/1.468, allocations: 1.754 MB / 0.7811 GB, free: 113.3 MB / 446.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.03457/1.503, allocations: 29.67 MB / 0.8101 GB, free: 83.21 MB / 446.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.007418/1.51, allocations: 0.5227 MB / 0.8106 GB, free: 82.69 MB / 446.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0015/1.511, allocations: 472 kB / 0.811 GB, free: 82.23 MB / 446.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 (cylPosition.color[3],cylPosition.color[2],cylPosition.color[1],Cylinder.boxColor[3],Cylinder.boxColor[2],Cylinder.boxColor[1],Mid.color[3],Mid.color[2],Mid.color[1],B1.cylinderColor[3],B1.cylinderColor[2],B1.cylinderColor[1],Crank2.color[3],Crank2.color[2],Crank2.color[1],Crank2.body.sphereColor[3],Crank2.body.sphereColor[2],Crank2.body.sphereColor[1],Crank3.color[3],Crank3.color[2],Crank3.color[1],Crank3.body.sphereColor[3],Crank3.body.sphereColor[2],Crank3.body.sphereColor[1],Crank1.color[3],Crank1.color[2],Crank1.color[1],Crank1.body.sphereColor[3],Crank1.body.sphereColor[2],Crank1.body.sphereColor[1],Crank4.color[3],Crank4.color[2],Crank4.color[1],Crank4.body.sphereColor[3],Crank4.body.sphereColor[2],Crank4.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],Bearing.cylinderColor[3],Bearing.cylinderColor[2],Bearing.cylinderColor[1],B2.cylinderColor[3],B2.cylinderColor[2],B2.cylinderColor[1],Rod.color[3],Rod.color[2],Rod.color[1],Rod.body.sphereColor[3],Rod.body.sphereColor[2],Rod.body.sphereColor[1],Piston.color[3],Piston.color[2],Piston.color[1],Piston.body.sphereColor[3],Piston.body.sphereColor[2],Piston.body.sphereColor[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.006745/1.518, allocations: 3.476 MB / 0.8144 GB, free: 78.75 MB / 446.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.001911/1.52, allocations: 0.6595 MB / 0.8151 GB, free: 78.08 MB / 446.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.02212/1.542, allocations: 11.47 MB / 0.8263 GB, free: 66.54 MB / 446.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.86e-05/1.542, allocations: 36 kB / 0.8263 GB, free: 66.5 MB / 446.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.382e-05/1.542, allocations: 19.09 kB / 0.8263 GB, free: 66.48 MB / 446.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.629e-05/1.543, allocations: 19.94 kB / 0.8264 GB, free: 66.46 MB / 446.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.04368/1.586, allocations: 24.89 MB / 0.8507 GB, free: 41.1 MB / 446.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.992e-05/1.586, allocations: 4 kB / 0.8507 GB, free: 41.09 MB / 446.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001842/1.588, allocations: 427.3 kB / 0.8511 GB, free: 40.68 MB / 446.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.01489/1.603, allocations: 5.408 MB / 0.8564 GB, free: 35.26 MB / 446.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0008669/1.604, allocations: 60 kB / 0.8564 GB, free: 35.2 MB / 446.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.1917/1.796, allocations: 28.4 MB / 0.8842 GB, free: 134.6 MB / 446.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 8.486e-06/1.796, allocations: 12.28 kB / 0.8842 GB, free: 134.6 MB / 446.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.03028/1.826, allocations: 16.45 MB / 0.9002 GB, free: 129.2 MB / 446.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.003543/1.83, allocations: 1.316 MB / 0.9015 GB, free: 128.9 MB / 446.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.00206/1.832, allocations: 63.09 kB / 0.9016 GB, free: 128.8 MB / 446.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.004321/1.836, allocations: 263.7 kB / 0.9018 GB, free: 128.8 MB / 446.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.001111/1.837, allocations: 249 kB / 0.9021 GB, free: 128.7 MB / 446.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0004838/1.838, allocations: 89.42 kB / 0.9022 GB, free: 128.7 MB / 446.1 MB Notification: Performance of sorting global known variables: time 0.008145/1.846, allocations: 4.687 MB / 0.9067 GB, free: 127.2 MB / 446.1 MB Notification: Performance of sort global known variables: time 6.01e-07/1.846, allocations: 0 / 0.9067 GB, free: 127.2 MB / 446.1 MB Notification: Performance of remove unused functions: time 0.009885/1.856, allocations: 1.974 MB / 0.9087 GB, free: 127 MB / 446.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.02973/1.886, allocations: 17.17 MB / 0.9254 GB, free: 119.2 MB / 446.1 MB Notification: Performance of simCode: created initialization part: time 0.01514/1.901, allocations: 10.46 MB / 0.9356 GB, free: 109.7 MB / 446.1 MB Notification: Performance of simCode: created event and clocks part: time 1.276e-05/1.901, allocations: 4 kB / 0.9356 GB, free: 109.7 MB / 446.1 MB Notification: Performance of simCode: created simulation system equations: time 0.007262/1.908, allocations: 4.679 MB / 0.9402 GB, free: 105 MB / 446.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.009258/1.917, allocations: 1.022 MB / 0.9412 GB, free: 104 MB / 446.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.3577/2.275, allocations: 118.5 MB / 1.057 GB, free: 147.5 MB / 462.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.006787/2.282, allocations: 5.547 MB / 1.062 GB, free: 146.6 MB / 462.1 MB Notification: Performance of simCode: alias equations: time 0.006101/2.288, allocations: 2.632 MB / 1.065 GB, free: 146.5 MB / 462.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.004321/2.292, allocations: 3.722 MB / 1.069 GB, free: 146.5 MB / 462.1 MB Notification: Performance of SimCode: time 1.102e-06/2.292, allocations: 0 / 1.069 GB, free: 146.5 MB / 462.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.392/2.684, allocations: 159.3 MB / 1.224 GB, free: 136.7 MB / 462.1 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.000164/2.685, allocations: 239.7 kB / 1.224 GB, free: 136.5 MB / 462.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 5.699/8.384, allocations: 4 kB / 1.224 GB, free: 136.5 MB / 462.1 MB (rm -f Modelica_3.2.3_Modelica.Mechanics.MultiBody.Examples.Loops.Engine1a.pipe ; mkfifo Modelica_3.2.3_Modelica.Mechanics.MultiBody.Examples.Loops.Engine1a.pipe ; head -c 1048576 < Modelica_3.2.3_Modelica.Mechanics.MultiBody.Examples.Loops.Engine1a.pipe >> ../files/Modelica_3.2.3_Modelica.Mechanics.MultiBody.Examples.Loops.Engine1a.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=Modelica_3.2.3_Modelica.Mechanics.MultiBody.Examples.Loops.Engine1a_res.mat --tempDir=temp_Modelica_3_2_3_Modelica_Mechanics_MultiBody_Examples_Loops_Engine1a_fmu --startTime=0 --stopTime=5 --timeout=50 --tolerance=1e-06 Modelica_3_2_3_Modelica_Mechanics_MultiBody_Examples_Loops_Engine1a.fmu > Modelica_3.2.3_Modelica.Mechanics.MultiBody.Examples.Loops.Engine1a.pipe 2>&1) diffSimulationResults("Modelica_3.2.3_Modelica.Mechanics.MultiBody.Examples.Loops.Engine1a_res.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v3.2.3+build.4/Modelica/Mechanics/MultiBody/Examples/Loops/Engine1a/Engine1a.csv","../files/Modelica_3.2.3_Modelica.Mechanics.MultiBody.Examples.Loops.Engine1a.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches