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) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001267/0.001267, allocations: 124 kB / 17.79 MB, free: 5.266 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001359/0.001359, allocations: 190.9 kB / 20.73 MB, free: 2.328 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.449/1.449, allocations: 225.6 MB / 249.1 MB, free: 3.613 MB / 190.1 MB " [Timeout remaining time 178] 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"}) [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 0.001533/0.001533, allocations: 47.92 kB / 365.7 MB, free: 0.8359 MB / 286.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1128/0.1143, allocations: 52.14 MB / 417.8 MB, free: 12.6 MB / 350.1 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.MultiBody.Examples.Loops.Engine1b): time 0.02406/0.1383, allocations: 20.61 MB / 438.4 MB, free: 7.898 MB / 366.1 MB Notification: Performance of NFInst.instExpressions: time 0.01597/0.1543, allocations: 6.211 MB / 444.6 MB, free: 1.668 MB / 366.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.005373/0.1597, allocations: 198.9 kB / 444.8 MB, free: 1.473 MB / 366.1 MB Notification: Performance of NFTyping.typeComponents: time 0.2936/0.4533, allocations: 6.434 MB / 451.3 MB, free: 7.188 MB / 366.1 MB Notification: Performance of NFTyping.typeBindings: time 0.011/0.4643, allocations: 3.532 MB / 454.8 MB, free: 7.023 MB / 366.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.004951/0.4692, allocations: 1.66 MB / 456.5 MB, free: 6.988 MB / 366.1 MB Notification: Performance of NFFlatten.flatten: time 0.02239/0.4916, allocations: 12.66 MB / 469.1 MB, free: 6.148 MB / 366.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.01257/0.5042, allocations: 6.77 MB / 475.9 MB, free: 2.172 MB / 366.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.008227/0.5124, allocations: 3.817 MB / 479.7 MB, free: 260 kB / 366.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.00938/0.5218, allocations: 5.365 MB / 485.1 MB, free: 13.25 MB / 382.1 MB Notification: Performance of NFPackage.collectConstants: time 0.002687/0.5245, allocations: 0.7444 MB / 485.8 MB, free: 13.25 MB / 382.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.005819/0.5303, allocations: 1.765 MB / 487.6 MB, free: 11.77 MB / 382.1 MB Notification: Performance of NFScalarize.scalarize: time 0.00766/0.538, allocations: 4.557 MB / 492.1 MB, free: 7.23 MB / 382.1 MB Notification: Performance of NFVerifyModel.verify: time 0.01126/0.5492, allocations: 4.956 MB / 497.1 MB, free: 2.273 MB / 382.1 MB Notification: Performance of NFConvertDAE.convert: time 0.02438/0.5736, allocations: 14.92 MB / 0.5 GB, free: 3.66 MB / 398.1 MB Notification: Performance of FrontEnd - DAE generated: time 8.566e-06/0.5736, allocations: 0 / 0.5 GB, free: 3.66 MB / 398.1 MB Notification: Performance of FrontEnd: time 2.365e-06/0.5736, allocations: 3.938 kB / 0.5 GB, free: 3.656 MB / 398.1 MB Notification: Performance of Transformations before backend: time 0.000629/0.5742, allocations: 0 / 0.5 GB, free: 3.656 MB / 398.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.04072/0.615, allocations: 10.96 MB / 0.5107 GB, free: 8.742 MB / 414.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.94e-05/0.615, allocations: 8.031 kB / 0.5107 GB, free: 8.734 MB / 414.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.004959/0.62, allocations: 1.199 MB / 0.5119 GB, free: 7.574 MB / 414.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.2867/0.9067, allocations: 24.34 MB / 0.5357 GB, free: 15.2 MB / 446.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.02653/0.9332, allocations: 9.993 MB / 0.5454 GB, free: 5.281 MB / 446.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.000599/0.9338, allocations: 446.8 kB / 0.5459 GB, free: 4.895 MB / 446.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.003166/0.937, allocations: 0.6166 MB / 0.5465 GB, free: 4.328 MB / 446.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.04242/0.9794, allocations: 16.75 MB / 0.5628 GB, free: 2.68 MB / 462.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0006378/0.98, allocations: 99.3 kB / 0.5629 GB, free: 2.582 MB / 462.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0026/0.9826, allocations: 279.3 kB / 0.5632 GB, free: 2.359 MB / 462.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.005742/0.9884, allocations: 2.862 MB / 0.566 GB, free: 15.51 MB / 478.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.03354/1.022, allocations: 13.27 MB / 0.5789 GB, free: 2.238 MB / 478.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.6023/1.624, allocations: 68.15 MB / 0.6455 GB, free: 160.6 MB / 0.5294 GB Notification: Performance of preOpt comSubExp (simulation): time 0.02262/1.647, allocations: 7.653 MB / 0.653 GB, free: 159.9 MB / 0.5294 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.006508/1.653, allocations: 4.047 MB / 0.6569 GB, free: 159.9 MB / 0.5294 GB Notification: Performance of preOpt evalFunc (simulation): time 0.02326/1.677, allocations: 12.07 MB / 0.6687 GB, free: 155.9 MB / 0.5294 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 8.076e-05/1.677, allocations: 60.41 kB / 0.6688 GB, free: 155.9 MB / 0.5294 GB Notification: Performance of pre-optimization done (n=294): time 8.005e-06/1.677, allocations: 0 / 0.6688 GB, free: 155.9 MB / 0.5294 GB Notification: Performance of matching and sorting (n=360): time 0.1878/1.865, allocations: 50.27 MB / 0.7178 GB, free: 127.2 MB / 0.5294 GB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001209/1.865, allocations: 402.2 kB / 0.7182 GB, free: 126.8 MB / 0.5294 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.009945/1.875, allocations: 7.317 MB / 0.7254 GB, free: 119.6 MB / 0.5294 GB Notification: Performance of collectPreVariables (initialization): time 0.0007009/1.875, allocations: 81.7 kB / 0.7255 GB, free: 119.5 MB / 0.5294 GB Notification: Performance of collectInitialEqns (initialization): time 0.002875/1.878, allocations: 5.538 MB / 0.7309 GB, free: 114.6 MB / 0.5294 GB Notification: Performance of collectInitialBindings (initialization): time 0.001328/1.88, allocations: 1.375 MB / 0.7322 GB, free: 113.2 MB / 0.5294 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.002092/1.882, allocations: 1.703 MB / 0.7339 GB, free: 111.5 MB / 0.5294 GB Notification: Performance of setup shared object (initialization): time 5.322e-05/1.882, allocations: 313.1 kB / 0.7342 GB, free: 111.2 MB / 0.5294 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.004468/1.886, allocations: 4.12 MB / 0.7382 GB, free: 107.1 MB / 0.5294 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.006468/1.893, allocations: 8.867 MB / 0.7469 GB, free: 95.95 MB / 0.5294 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0128/1.905, allocations: 13.96 MB / 0.7605 GB, free: 79.86 MB / 0.5294 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.0001144/1.906, allocations: 48 kB / 0.7605 GB, free: 79.81 MB / 0.5294 GB Notification: Performance of matching and sorting (n=1107) (initialization): time 0.03298/1.938, allocations: 17.85 MB / 0.778 GB, free: 61.91 MB / 0.5294 GB Notification: Performance of prepare postOptimizeDAE: time 0.0002078/1.939, allocations: 72 kB / 0.778 GB, free: 61.84 MB / 0.5294 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0002858/1.939, allocations: 164 kB / 0.7782 GB, free: 61.68 MB / 0.5294 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.01774/1.957, allocations: 6.062 MB / 0.7841 GB, free: 55.6 MB / 0.5294 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.006015/1.963, allocations: 1.836 MB / 0.7859 GB, free: 53.76 MB / 0.5294 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.04142/2.004, allocations: 32.91 MB / 0.818 GB, free: 20.44 MB / 0.5294 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.008726/2.013, allocations: 0.5462 MB / 0.8186 GB, free: 19.89 MB / 0.5294 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.001877/2.015, allocations: 483.8 kB / 0.819 GB, free: 19.42 MB / 0.5294 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.007534/2.022, allocations: 3.587 MB / 0.8225 GB, free: 15.82 MB / 0.5294 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.002371/2.025, allocations: 0.714 MB / 0.8232 GB, free: 15.1 MB / 0.5294 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.02782/2.052, allocations: 12.02 MB / 0.835 GB, free: 3.02 MB / 0.5294 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 7.762e-05/2.053, allocations: 39.94 kB / 0.835 GB, free: 2.98 MB / 0.5294 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.418e-05/2.053, allocations: 20 kB / 0.835 GB, free: 2.961 MB / 0.5294 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 9.954e-05/2.053, allocations: 15.94 kB / 0.835 GB, free: 2.945 MB / 0.5294 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.3326/2.385, allocations: 25.8 MB / 0.8602 GB, free: 167.7 MB / 0.545 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.363e-05/2.385, allocations: 5.688 kB / 0.8602 GB, free: 167.7 MB / 0.545 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.002204/2.388, allocations: 467.5 kB / 0.8607 GB, free: 167.7 MB / 0.545 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.01758/2.405, allocations: 5.706 MB / 0.8663 GB, free: 166.6 MB / 0.545 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0005841/2.406, allocations: 63.91 kB / 0.8663 GB, free: 166.6 MB / 0.545 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.03678/2.443, allocations: 31.72 MB / 0.8973 GB, free: 152 MB / 0.545 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.941e-06/2.443, allocations: 7.844 kB / 0.8973 GB, free: 152 MB / 0.545 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.02928/2.472, allocations: 17.37 MB / 0.9143 GB, free: 138.9 MB / 0.545 GB Notification: Performance of postOpt removeConstants (simulation): time 0.004799/2.477, allocations: 1.392 MB / 0.9156 GB, free: 137.9 MB / 0.545 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.002742/2.479, allocations: 66.97 kB / 0.9157 GB, free: 137.8 MB / 0.545 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.005179/2.485, allocations: 279.5 kB / 0.916 GB, free: 137.5 MB / 0.545 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.001256/2.486, allocations: 255.5 kB / 0.9162 GB, free: 137.3 MB / 0.545 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0004509/2.486, allocations: 102.4 kB / 0.9163 GB, free: 137.2 MB / 0.545 GB Notification: Performance of sorting global known variables: time 0.009118/2.495, allocations: 4.71 MB / 0.9209 GB, free: 132.5 MB / 0.545 GB Notification: Performance of sort global known variables: time 8.1e-08/2.495, allocations: 0 / 0.9209 GB, free: 132.5 MB / 0.545 GB Notification: Performance of remove unused functions: time 0.01001/2.505, allocations: 2.057 MB / 0.9229 GB, free: 130.5 MB / 0.545 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.02834/2.534, allocations: 18.08 MB / 0.9406 GB, free: 112.6 MB / 0.545 GB Notification: Performance of simCode: created initialization part: time 0.01629/2.55, allocations: 10.52 MB / 0.9508 GB, free: 102.1 MB / 0.545 GB Notification: Performance of simCode: created event and clocks part: time 1.195e-05/2.55, allocations: 0 / 0.9508 GB, free: 102.1 MB / 0.545 GB Notification: Performance of simCode: created simulation system equations: time 0.008019/2.558, allocations: 4.632 MB / 0.9554 GB, free: 97.48 MB / 0.545 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.009298/2.567, allocations: 1.113 MB / 0.9564 GB, free: 96.43 MB / 0.545 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.4392/3.007, allocations: 95.02 MB / 1.049 GB, free: 160.6 MB / 0.545 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.01058/3.017, allocations: 5.731 MB / 1.055 GB, free: 159.7 MB / 0.545 GB Notification: Performance of simCode: alias equations: time 0.007567/3.025, allocations: 2.713 MB / 1.057 GB, free: 159.6 MB / 0.545 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.005596/3.03, allocations: 3.891 MB / 1.061 GB, free: 159.6 MB / 0.545 GB Notification: Performance of SimCode: time 1.793e-06/3.03, allocations: 1.094 kB / 1.061 GB, free: 159.6 MB / 0.545 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.2365/3.267, allocations: 165.8 MB / 1.223 GB, free: 22.91 MB / 0.545 GB Notification: Performance of buildModelFMU: Generate platform static: time 44.45/47.71, allocations: 4.828 kB / 1.223 GB, free: 22.91 MB / 0.545 GB " [Timeout remaining time 612] (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 & python3 -m fmpy simulate --output-file Modelica_4.0.0_Modelica.Mechanics.MultiBody.Examples.Loops.Engine1b_res.csv --start-time 0 --stop-time 0.5 --timeout 50 --relative-tolerance 1e-06 --interface-type ModelExchange --solver CVode --output-interval 9.94431e-05 Modelica_4_0_0_Modelica_Mechanics_MultiBody_Examples_Loops_Engine1b.fmu > Modelica_4.0.0_Modelica.Mechanics.MultiBody.Examples.Loops.Engine1b.pipe 2>&1) [Timeout 52.5] diffSimulationResults("Modelica_4.0.0_Modelica.Mechanics.MultiBody.Examples.Loops.Engine1b_res.csv","/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) [Timeout 660] "" [Timeout remaining time 660] Reference file matches [Calling sys.exit(0), Time elapsed: 50.50764687592164]