Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_4.1.0_Modelica.Mechanics.MultiBody.Examples.Loops.Engine1a.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.1.0+maint.om/package.mo): time 0.0007727/0.0007727, allocations: 83.69 kB / 20.67 MB, free: 3.887 MB / 18.57 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo): time 0.0008393/0.0008393, allocations: 170 kB / 23.95 MB, free: 0.6094 MB / 18.57 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo): time 0.8748/0.8748, allocations: 177.1 MB / 204.3 MB, free: 5.711 MB / 186.7 MB " [Timeout remaining time 179] Using package Modelica with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo) Using package Complex with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo) Using package ModelicaServices with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.1.0+maint.om/package.mo) Running command: "" <> buildModelFMU(Modelica.Mechanics.MultiBody.Examples.Loops.Engine1a,fileNamePrefix="Modelica_4_1_0_Modelica_Mechanics_MultiBody_Examples_Loops_Engine1a",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Mechanics.MultiBody.Examples.Loops.Engine1a,fileNamePrefix="Modelica_4_1_0_Modelica_Mechanics_MultiBody_Examples_Loops_Engine1a",fmuType="me",version="2.0",platforms={"static"}) [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 1.673e-06/1.673e-06, allocations: 0 / 324.6 MB, free: 15.92 MB / 298.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 2.096e-05/2.263e-05, allocations: 5.234 kB / 324.6 MB, free: 15.91 MB / 298.7 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.MultiBody.Examples.Loops.Engine1a): time 0.01204/0.01206, allocations: 16.74 MB / 341.3 MB, free: 15.09 MB / 314.7 MB Notification: Performance of NFInst.instExpressions: time 0.01037/0.02244, allocations: 5.81 MB / 347.2 MB, free: 9.262 MB / 314.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.002554/0.02499, allocations: 186.9 kB / 347.3 MB, free: 9.078 MB / 314.7 MB Notification: Performance of NFTyping.typeComponents: time 0.005872/0.03086, allocations: 5.977 MB / 353.3 MB, free: 3.082 MB / 314.7 MB Notification: Performance of NFTyping.typeBindings: time 0.006719/0.03758, allocations: 3.518 MB / 356.8 MB, free: 15.55 MB / 330.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.002664/0.04024, allocations: 1.786 MB / 358.6 MB, free: 13.76 MB / 330.7 MB Notification: Performance of NFFlatten.flatten: time 0.01148/0.05172, allocations: 14.81 MB / 373.4 MB, free: 14.93 MB / 346.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.007689/0.05941, allocations: 7.463 MB / 380.9 MB, free: 7.375 MB / 346.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.009446/0.06885, allocations: 5.543 MB / 386.4 MB, free: 1.824 MB / 346.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.006535/0.07539, allocations: 5.624 MB / 392.1 MB, free: 12.19 MB / 362.7 MB Notification: Performance of NFPackage.collectConstants: time 0.001792/0.07718, allocations: 0.7461 MB / 392.8 MB, free: 11.44 MB / 362.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.002848/0.08003, allocations: 1.658 MB / 394.5 MB, free: 9.781 MB / 362.7 MB Notification: Performance of NFScalarize.scalarize: time 0.004043/0.08407, allocations: 4.602 MB / 399.1 MB, free: 5.168 MB / 362.7 MB Notification: Performance of NFVerifyModel.verify: time 0.004483/0.08855, allocations: 3.058 MB / 402.1 MB, free: 2.102 MB / 362.7 MB Notification: Performance of NFConvertDAE.convert: time 0.01193/0.1005, allocations: 14.69 MB / 416.8 MB, free: 3.363 MB / 378.7 MB Notification: Performance of FrontEnd - DAE generated: time 7.304e-06/0.1005, allocations: 0 / 416.8 MB, free: 3.363 MB / 378.7 MB Notification: Performance of FrontEnd: time 1.864e-06/0.1005, allocations: 0 / 416.8 MB, free: 3.363 MB / 378.7 MB Notification: Performance of Transformations before backend: time 0.000447/0.1009, allocations: 0 / 416.8 MB, free: 3.363 MB / 378.7 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.01935/0.1203, allocations: 10.82 MB / 427.6 MB, free: 8.457 MB / 394.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.519e-05/0.1203, allocations: 8.031 kB / 427.6 MB, free: 8.449 MB / 394.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.001917/0.1223, allocations: 1.148 MB / 428.8 MB, free: 7.289 MB / 394.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.3848/0.5071, allocations: 25.5 MB / 454.3 MB, free: 108.6 MB / 410.8 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.01132/0.5184, allocations: 8.052 MB / 462.3 MB, free: 106.3 MB / 410.8 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001791/0.5186, allocations: 432.4 kB / 462.8 MB, free: 106.1 MB / 410.8 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.001326/0.5199, allocations: 0.5854 MB / 463.3 MB, free: 105.8 MB / 410.8 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.01668/0.5366, allocations: 16.44 MB / 479.8 MB, free: 89.15 MB / 410.8 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0002202/0.5368, allocations: 107.3 kB / 479.9 MB, free: 89.04 MB / 410.8 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0004722/0.5373, allocations: 265.5 kB / 480.1 MB, free: 88.83 MB / 410.8 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.002143/0.5394, allocations: 2.762 MB / 482.9 MB, free: 86.08 MB / 410.8 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0173/0.5567, allocations: 12.84 MB / 495.8 MB, free: 73.24 MB / 410.8 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.05012/0.6068, allocations: 62.86 MB / 0.5455 GB, free: 9.492 MB / 410.8 MB Notification: Performance of preOpt comSubExp (simulation): time 0.01007/0.6169, allocations: 7.16 MB / 0.5525 GB, free: 2.332 MB / 410.8 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.003355/0.6203, allocations: 3.949 MB / 0.5564 GB, free: 14.38 MB / 426.8 MB Notification: Performance of preOpt evalFunc (simulation): time 0.01321/0.6335, allocations: 10.63 MB / 0.5667 GB, free: 3.859 MB / 426.8 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.455e-05/0.6335, allocations: 64.56 kB / 0.5668 GB, free: 3.789 MB / 426.8 MB Notification: Performance of pre-optimization done (n=280): time 5.941e-06/0.6335, allocations: 0 / 0.5668 GB, free: 3.789 MB / 426.8 MB Notification: Performance of matching and sorting (n=339): time 0.09651/0.73, allocations: 49.79 MB / 0.6154 GB, free: 2.395 MB / 474.8 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.000138/0.7302, allocations: 402.1 kB / 0.6158 GB, free: 1.914 MB / 474.8 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.1629/0.893, allocations: 8.496 MB / 0.6241 GB, free: 158.6 MB / 474.8 MB Notification: Performance of collectPreVariables (initialization): time 0.0008488/0.8939, allocations: 77.2 kB / 0.6242 GB, free: 158.5 MB / 474.8 MB Notification: Performance of collectInitialEqns (initialization): time 0.002634/0.8965, allocations: 5.307 MB / 0.6294 GB, free: 156 MB / 474.8 MB Notification: Performance of collectInitialBindings (initialization): time 0.001352/0.8979, allocations: 1.288 MB / 0.6306 GB, free: 155.1 MB / 474.8 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.001624/0.8995, allocations: 1.63 MB / 0.6322 GB, free: 154.3 MB / 474.8 MB Notification: Performance of setup shared object (initialization): time 3.612e-05/0.8995, allocations: 303.8 kB / 0.6325 GB, free: 154 MB / 474.8 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.003654/0.9032, allocations: 3.967 MB / 0.6364 GB, free: 152.6 MB / 474.8 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.004756/0.9079, allocations: 8.811 MB / 0.645 GB, free: 144.7 MB / 474.8 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.009259/0.9172, allocations: 13.49 MB / 0.6582 GB, free: 131.4 MB / 474.8 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 9.445e-05/0.9173, allocations: 50.02 kB / 0.6582 GB, free: 131.4 MB / 474.8 MB Notification: Performance of matching and sorting (n=1070) (initialization): time 0.02156/0.9389, allocations: 17.13 MB / 0.6749 GB, free: 116.2 MB / 474.8 MB Notification: Performance of prepare postOptimizeDAE: time 8.415e-05/0.9389, allocations: 76 kB / 0.675 GB, free: 116.1 MB / 474.8 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0001288/0.9391, allocations: 160 kB / 0.6752 GB, free: 115.9 MB / 474.8 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.009083/0.9481, allocations: 5.76 MB / 0.6808 GB, free: 110.2 MB / 474.8 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.003473/0.9516, allocations: 1.751 MB / 0.6825 GB, free: 108.4 MB / 474.8 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.02378/0.9754, allocations: 31.1 MB / 0.7129 GB, free: 76.98 MB / 474.8 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.006116/0.9815, allocations: 0.6397 MB / 0.7135 GB, free: 76.34 MB / 474.8 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.001152/0.9827, allocations: 472 kB / 0.7139 GB, free: 75.88 MB / 474.8 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.004844/0.9875, allocations: 3.462 MB / 0.7173 GB, free: 72.41 MB / 474.8 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.001529/0.989, allocations: 0.6946 MB / 0.718 GB, free: 71.71 MB / 474.8 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.01253/1.002, allocations: 11.4 MB / 0.7291 GB, free: 60.23 MB / 474.8 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.973e-05/1.002, allocations: 32 kB / 0.7292 GB, free: 60.2 MB / 474.8 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.159e-05/1.002, allocations: 20 kB / 0.7292 GB, free: 60.18 MB / 474.8 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.191e-05/1.002, allocations: 15.95 kB / 0.7292 GB, free: 60.17 MB / 474.8 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0282/1.03, allocations: 23.85 MB / 0.7525 GB, free: 35.89 MB / 474.8 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.798e-05/1.03, allocations: 4 kB / 0.7525 GB, free: 35.88 MB / 474.8 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001133/1.031, allocations: 419.3 kB / 0.7529 GB, free: 35.47 MB / 474.8 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.008141/1.039, allocations: 5.368 MB / 0.7581 GB, free: 30.09 MB / 474.8 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0004548/1.04, allocations: 71.98 kB / 0.7582 GB, free: 30.02 MB / 474.8 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.02203/1.062, allocations: 29.81 MB / 0.7873 GB, free: 15.89 MB / 490.8 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 6.782e-06/1.062, allocations: 7.938 kB / 0.7873 GB, free: 15.88 MB / 490.8 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.1781/1.24, allocations: 16.43 MB / 0.8034 GB, free: 156.6 MB / 490.8 MB Notification: Performance of postOpt removeConstants (simulation): time 0.002268/1.242, allocations: 0.7758 MB / 0.8041 GB, free: 156.5 MB / 490.8 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.001284/1.243, allocations: 60.25 kB / 0.8042 GB, free: 156.5 MB / 490.8 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.002277/1.246, allocations: 371.3 kB / 0.8045 GB, free: 156.5 MB / 490.8 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0006127/1.246, allocations: 257 kB / 0.8048 GB, free: 156.4 MB / 490.8 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001706/1.246, allocations: 93.41 kB / 0.8049 GB, free: 156.4 MB / 490.8 MB Notification: Performance of sorting global known variables: time 0.00685/1.253, allocations: 5.454 MB / 0.8102 GB, free: 154.6 MB / 490.8 MB Notification: Performance of sort global known variables: time 2e-07/1.253, allocations: 0 / 0.8102 GB, free: 154.6 MB / 490.8 MB Notification: Performance of remove unused functions: time 0.007129/1.26, allocations: 2.264 MB / 0.8124 GB, free: 154.4 MB / 490.8 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.01706/1.277, allocations: 17.15 MB / 0.8292 GB, free: 143.2 MB / 490.8 MB Notification: Performance of simCode: created initialization part: time 0.01018/1.288, allocations: 10.09 MB / 0.839 GB, free: 134.3 MB / 490.8 MB Notification: Performance of simCode: created event and clocks part: time 9.037e-06/1.288, allocations: 0 / 0.839 GB, free: 134.3 MB / 490.8 MB Notification: Performance of simCode: created simulation system equations: time 0.004365/1.292, allocations: 4.361 MB / 0.8433 GB, free: 129.9 MB / 490.8 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.004998/1.297, allocations: 1.088 MB / 0.8443 GB, free: 128.9 MB / 490.8 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.1125/1.409, allocations: 95.32 MB / 0.9374 GB, free: 26.45 MB / 490.8 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.005161/1.415, allocations: 5.067 MB / 0.9424 GB, free: 21.34 MB / 490.8 MB Notification: Performance of simCode: alias equations: time 0.004207/1.419, allocations: 2.657 MB / 0.945 GB, free: 18.68 MB / 490.8 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.003343/1.422, allocations: 3.777 MB / 0.9487 GB, free: 14.9 MB / 490.8 MB Notification: Performance of SimCode: time 1.724e-06/1.422, allocations: 0 / 0.9487 GB, free: 14.9 MB / 490.8 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.3054/1.728, allocations: 167 MB / 1.112 GB, free: 43.98 MB / 0.4949 GB Notification: Performance of buildModelFMU: Generate platform static: time 13.81/15.54, allocations: 0 / 1.112 GB, free: 43.98 MB / 0.4949 GB " [Timeout remaining time 644] (rm -f Modelica_4.1.0_Modelica.Mechanics.MultiBody.Examples.Loops.Engine1a.pipe ; mkfifo Modelica_4.1.0_Modelica.Mechanics.MultiBody.Examples.Loops.Engine1a.pipe ; head -c 1048576 < Modelica_4.1.0_Modelica.Mechanics.MultiBody.Examples.Loops.Engine1a.pipe >> ../files/Modelica_4.1.0_Modelica.Mechanics.MultiBody.Examples.Loops.Engine1a.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=Modelica_4.1.0_Modelica.Mechanics.MultiBody.Examples.Loops.Engine1a_res.mat --tempDir=temp_Modelica_4_1_0_Modelica_Mechanics_MultiBody_Examples_Loops_Engine1a_fmu --startTime=0 --stopTime=5 --stepSize=0.0009996 --timeout=50 --tolerance=1e-06 Modelica_4_1_0_Modelica_Mechanics_MultiBody_Examples_Loops_Engine1a.fmu > Modelica_4.1.0_Modelica.Mechanics.MultiBody.Examples.Loops.Engine1a.pipe 2>&1) [Timeout 52.5] diffSimulationResults("Modelica_4.1.0_Modelica.Mechanics.MultiBody.Examples.Loops.Engine1a_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.1.0/Modelica/Mechanics/MultiBody/Examples/Loops/Engine1a/Engine1a.csv","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_4.1.0_Modelica.Mechanics.MultiBody.Examples.Loops.Engine1a.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) [Timeout 660] "" [Timeout remaining time 659] Reference file matches [Calling sys.exit(0), Time elapsed: 18.269394806586206]