Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_4.0.0_Modelica.Mechanics.MultiBody.Examples.Loops.Engine1b.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 4.0.0+maint.om/package.mo", uses=false) Using package Modelica with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+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.Engine1b,fileNamePrefix="Modelica_4_0_0_Modelica_Mechanics_MultiBody_Examples_Loops_Engine1b",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Mechanics.MultiBody.Examples.Loops.Engine1b,fileNamePrefix="Modelica_4_0_0_Modelica_Mechanics_MultiBody_Examples_Loops_Engine1b",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.001049/0.001049, allocations: 116.5 kB / 16.63 MB, free: 6.945 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.0009954/0.0009954, allocations: 197.8 kB / 17.55 MB, free: 6.043 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.35/1.35, allocations: 222.9 MB / 241.2 MB, free: 15.44 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001116/0.001116, allocations: 50.61 kB / 300.2 MB, free: 6.02 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1139/0.115, allocations: 49.44 MB / 349.7 MB, free: 4.57 MB / 286.1 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.MultiBody.Examples.Loops.Engine1b): time 0.2661/0.3811, allocations: 111.4 MB / 461.1 MB, free: 5.07 MB / 366.1 MB Notification: Performance of NFInst.instExpressions: time 0.05457/0.4358, allocations: 21.18 MB / 482.3 MB, free: 15.84 MB / 398.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.02966/0.4655, allocations: 0.5026 MB / 482.8 MB, free: 15.33 MB / 398.1 MB Notification: Performance of NFTyping.typeComponents: time 0.01315/0.4787, allocations: 6.129 MB / 488.9 MB, free: 9.188 MB / 398.1 MB Notification: Performance of NFTyping.typeBindings: time 0.009803/0.4886, allocations: 3.208 MB / 492.1 MB, free: 5.969 MB / 398.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.003743/0.4923, allocations: 1.574 MB / 493.7 MB, free: 4.395 MB / 398.1 MB Notification: Performance of NFFlatten.flatten: time 0.018/0.5104, allocations: 13.75 MB / 0.4956 GB, free: 6.617 MB / 414.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0133/0.5237, allocations: 8.477 MB / 0.5038 GB, free: 14.07 MB / 430.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.007577/0.5313, allocations: 3.879 MB / 0.5076 GB, free: 10.18 MB / 430.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.008008/0.5394, allocations: 5.52 MB / 0.513 GB, free: 4.648 MB / 430.1 MB Notification: Performance of NFPackage.collectConstants: time 0.002873/0.5423, allocations: 0.7461 MB / 0.5137 GB, free: 3.902 MB / 430.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.004864/0.5472, allocations: 1.729 MB / 0.5154 GB, free: 2.172 MB / 430.1 MB Notification: Performance of NFScalarize.scalarize: time 0.006021/0.5532, allocations: 4.399 MB / 0.5197 GB, free: 13.76 MB / 446.1 MB Notification: Performance of NFVerifyModel.verify: time 0.00841/0.5616, allocations: 4.989 MB / 0.5246 GB, free: 8.746 MB / 446.1 MB Notification: Performance of NFConvertDAE.convert: time 0.2702/0.8318, allocations: 14.6 MB / 0.5389 GB, free: 31.4 MB / 446.1 MB Notification: Performance of FrontEnd - DAE generated: time 7.865e-06/0.8319, allocations: 3.188 kB / 0.5389 GB, free: 31.4 MB / 446.1 MB Notification: Performance of FrontEnd: time 1.674e-06/0.8319, allocations: 0 / 0.5389 GB, free: 31.4 MB / 446.1 MB Notification: Performance of Transformations before backend: time 0.0005898/0.8325, allocations: 0 / 0.5389 GB, free: 31.4 MB / 446.1 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 2489 * Number of variables: 2489 Notification: Performance of Generate backend data structure: time 0.04165/0.8741, allocations: 10.68 MB / 0.5493 GB, free: 27.69 MB / 446.1 MB Notification: Performance of prepare preOptimizeDAE: time 6.14e-05/0.8742, allocations: 12.14 kB / 0.5493 GB, free: 27.69 MB / 446.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.006335/0.8806, allocations: 1.193 MB / 0.5505 GB, free: 27.59 MB / 446.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.271/1.152, allocations: 24.29 MB / 0.5742 GB, free: 22.78 MB / 446.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.02208/1.174, allocations: 9.753 MB / 0.5837 GB, free: 19.77 MB / 446.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0004003/1.174, allocations: 446.8 kB / 0.5841 GB, free: 19.76 MB / 446.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.003148/1.177, allocations: 0.6204 MB / 0.5847 GB, free: 19.73 MB / 446.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.03707/1.214, allocations: 16.75 MB / 0.6011 GB, free: 6.898 MB / 446.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0006152/1.215, allocations: 96.67 kB / 0.6012 GB, free: 6.832 MB / 446.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.003284/1.218, allocations: 280.4 kB / 0.6015 GB, free: 6.609 MB / 446.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.005054/1.223, allocations: 2.856 MB / 0.6043 GB, free: 3.789 MB / 446.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.02967/1.253, allocations: 13.27 MB / 0.6172 GB, free: 6.789 MB / 462.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.09725/1.35, allocations: 68.36 MB / 0.684 GB, free: 1.273 MB / 0.5137 GB Notification: Performance of preOpt comSubExp (simulation): time 0.02229/1.373, allocations: 7.926 MB / 0.6917 GB, free: 9.219 MB / 0.5294 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.006745/1.38, allocations: 4.317 MB / 0.6959 GB, free: 4.895 MB / 0.5294 GB Notification: Performance of preOpt evalFunc (simulation): time 0.02328/1.403, allocations: 12.05 MB / 0.7077 GB, free: 8.738 MB / 0.545 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 7.542e-05/1.403, allocations: 72.31 kB / 0.7078 GB, free: 8.664 MB / 0.545 GB Notification: Performance of pre-optimization done (n=294): time 6.593e-06/1.403, allocations: 0 / 0.7078 GB, free: 8.664 MB / 0.545 GB Notification: Performance of matching and sorting (n=360): time 0.3545/1.758, allocations: 49.89 MB / 0.7565 GB, free: 261.8 MB / 0.5606 GB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001466/1.758, allocations: 400.3 kB / 0.7569 GB, free: 261.3 MB / 0.5606 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.008488/1.766, allocations: 7.311 MB / 0.764 GB, free: 258.9 MB / 0.5606 GB Notification: Performance of collectPreVariables (initialization): time 0.0006943/1.767, allocations: 85.02 kB / 0.7641 GB, free: 258.8 MB / 0.5606 GB Notification: Performance of collectInitialEqns (initialization): time 0.003013/1.77, allocations: 5.347 MB / 0.7693 GB, free: 254.7 MB / 0.5606 GB Notification: Performance of collectInitialBindings (initialization): time 0.001394/1.771, allocations: 1.322 MB / 0.7706 GB, free: 253.7 MB / 0.5606 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.002257/1.774, allocations: 1.697 MB / 0.7722 GB, free: 252.9 MB / 0.5606 GB Notification: Performance of setup shared object (initialization): time 5.26e-05/1.774, allocations: 309.1 kB / 0.7725 GB, free: 252.6 MB / 0.5606 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.004639/1.778, allocations: 4.126 MB / 0.7766 GB, free: 249.9 MB / 0.5606 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.006331/1.785, allocations: 8.864 MB / 0.7852 GB, free: 239.3 MB / 0.5606 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.01236/1.797, allocations: 13.95 MB / 0.7988 GB, free: 223.2 MB / 0.5606 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 7.856e-05/1.797, allocations: 48 kB / 0.7989 GB, free: 223.1 MB / 0.5606 GB Notification: Performance of matching and sorting (n=1107) (initialization): time 0.03086/1.828, allocations: 17.87 MB / 0.8163 GB, free: 205.2 MB / 0.5606 GB Notification: Performance of prepare postOptimizeDAE: time 0.0001424/1.828, allocations: 82.12 kB / 0.8164 GB, free: 205.1 MB / 0.5606 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0001974/1.828, allocations: 160 kB / 0.8166 GB, free: 204.9 MB / 0.5606 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.01638/1.845, allocations: 6.084 MB / 0.8225 GB, free: 198.8 MB / 0.5606 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.005631/1.85, allocations: 1.825 MB / 0.8243 GB, free: 197 MB / 0.5606 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.03591/1.886, allocations: 32.91 MB / 0.8564 GB, free: 163.7 MB / 0.5606 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.007003/1.893, allocations: 0.5383 MB / 0.857 GB, free: 163.2 MB / 0.5606 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.001302/1.895, allocations: 488 kB / 0.8574 GB, free: 162.7 MB / 0.5606 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 743 * Number of states: 0 () * Number of discrete variables: 72 (rod3.color[3],rod3.color[2],rod3.color[1],rod1.color[3],rod1.color[2],rod1.color[1],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 (968): * Single equations (assignments): 962 * 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,96,51.6%), (3,5,88.9%)} * Non-linear torn systems (#iteration vars, #inner vars): 1 system {(2,4)} Notification: Performance of prepare postOptimizeDAE: time 0.006414/1.901, allocations: 3.585 MB / 0.8609 GB, free: 159.1 MB / 0.5606 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.001646/1.903, allocations: 0.6747 MB / 0.8616 GB, free: 158.4 MB / 0.5606 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.02316/1.926, allocations: 12.11 MB / 0.8734 GB, free: 146.2 MB / 0.5606 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.291e-05/1.926, allocations: 39.91 kB / 0.8735 GB, free: 146.2 MB / 0.5606 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.147e-05/1.926, allocations: 20 kB / 0.8735 GB, free: 146.2 MB / 0.5606 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.21e-05/1.926, allocations: 20.69 kB / 0.8735 GB, free: 146.2 MB / 0.5606 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.04152/1.968, allocations: 26.02 MB / 0.8989 GB, free: 119.7 MB / 0.5606 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.503e-05/1.968, allocations: 4 kB / 0.8989 GB, free: 119.7 MB / 0.5606 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001952/1.97, allocations: 475.2 kB / 0.8994 GB, free: 119.2 MB / 0.5606 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.01491/1.985, allocations: 5.712 MB / 0.9049 GB, free: 113.5 MB / 0.5606 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0004216/1.985, allocations: 75.48 kB / 0.905 GB, free: 113.4 MB / 0.5606 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.03379/2.019, allocations: 31.71 MB / 0.936 GB, free: 81.32 MB / 0.5606 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 7.965e-06/2.019, allocations: 8 kB / 0.936 GB, free: 81.31 MB / 0.5606 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.03035/2.049, allocations: 17.4 MB / 0.953 GB, free: 63.73 MB / 0.5606 GB Notification: Performance of postOpt removeConstants (simulation): time 0.004485/2.054, allocations: 1.355 MB / 0.9543 GB, free: 62.35 MB / 0.5606 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.002547/2.056, allocations: 64.06 kB / 0.9544 GB, free: 62.29 MB / 0.5606 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.005431/2.062, allocations: 283.6 kB / 0.9546 GB, free: 62.01 MB / 0.5606 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.001163/2.063, allocations: 261.8 kB / 0.9549 GB, free: 61.76 MB / 0.5606 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0004355/2.063, allocations: 88 kB / 0.955 GB, free: 61.67 MB / 0.5606 GB Notification: Performance of sorting global known variables: time 0.01036/2.074, allocations: 4.714 MB / 0.9596 GB, free: 57 MB / 0.5606 GB Notification: Performance of sort global known variables: time 1.9e-07/2.074, allocations: 0 / 0.9596 GB, free: 57 MB / 0.5606 GB Notification: Performance of remove unused functions: time 0.01198/2.086, allocations: 2.053 MB / 0.9616 GB, free: 54.95 MB / 0.5606 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 26 * 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 (232): * Single equations (assignments): 226 * 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,90,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.03036/2.116, allocations: 18.12 MB / 0.9793 GB, free: 36.64 MB / 0.5606 GB Notification: Performance of simCode: created initialization part: time 0.02572/2.142, allocations: 14.25 MB / 0.9932 GB, free: 22.35 MB / 0.5606 GB Notification: Performance of simCode: created event and clocks part: time 1.481e-05/2.142, allocations: 4 kB / 0.9932 GB, free: 22.34 MB / 0.5606 GB Notification: Performance of simCode: created simulation system equations: time 0.2473/2.389, allocations: 4.968 MB / 0.998 GB, free: 261.2 MB / 0.5606 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.007876/2.397, allocations: 1.109 MB / 0.9991 GB, free: 261.1 MB / 0.5606 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.218/2.615, allocations: 122.4 MB / 1.119 GB, free: 153.4 MB / 0.5606 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.01278/2.628, allocations: 5.731 MB / 1.124 GB, free: 147.6 MB / 0.5606 GB Notification: Performance of simCode: alias equations: time 0.009848/2.638, allocations: 2.717 MB / 1.127 GB, free: 144.9 MB / 0.5606 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.008336/2.646, allocations: 3.889 MB / 1.131 GB, free: 141 MB / 0.5606 GB Notification: Performance of SimCode: time 1.332e-06/2.646, allocations: 0 / 1.131 GB, free: 141 MB / 0.5606 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.7707/3.417, allocations: 169.4 MB / 1.296 GB, free: 245 MB / 0.5606 GB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0002809/3.417, allocations: 233.9 kB / 1.296 GB, free: 244.8 MB / 0.5606 GB Notification: Performance of buildModelFMU: Generate platform static: time 6.004/9.422, allocations: 0 / 1.296 GB, free: 244.8 MB / 0.5606 GB (rm -f Modelica_4.0.0_Modelica.Mechanics.MultiBody.Examples.Loops.Engine1b.pipe ; mkfifo Modelica_4.0.0_Modelica.Mechanics.MultiBody.Examples.Loops.Engine1b.pipe ; head -c 1048576 < Modelica_4.0.0_Modelica.Mechanics.MultiBody.Examples.Loops.Engine1b.pipe >> ../files/Modelica_4.0.0_Modelica.Mechanics.MultiBody.Examples.Loops.Engine1b.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=Modelica_4.0.0_Modelica.Mechanics.MultiBody.Examples.Loops.Engine1b_res.mat --tempDir=temp_Modelica_4_0_0_Modelica_Mechanics_MultiBody_Examples_Loops_Engine1b_fmu --startTime=0 --stopTime=0.5 --timeout=50 --tolerance=1e-06 Modelica_4_0_0_Modelica_Mechanics_MultiBody_Examples_Loops_Engine1b.fmu > Modelica_4.0.0_Modelica.Mechanics.MultiBody.Examples.Loops.Engine1b.pipe 2>&1) diffSimulationResults("Modelica_4.0.0_Modelica.Mechanics.MultiBody.Examples.Loops.Engine1b_res.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/Modelica/Mechanics/MultiBody/Examples/Loops/Engine1b/Engine1b.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_4.0.0_Modelica.Mechanics.MultiBody.Examples.Loops.Engine1b.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches