Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_4.1.0_Modelica.Mechanics.MultiBody.Examples.Loops.Engine1b.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.001326/0.001326, allocations: 111.1 kB / 20.44 MB, free: 1.176 MB / 14.72 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.001438/0.001438, allocations: 207.7 kB / 23.73 MB, free: 4.379 MB / 14.72 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 1.447/1.447, allocations: 230.6 MB / 257.5 MB, free: 7.789 MB / 206.1 MB " [Timeout remaining time 178] 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.Engine1b,fileNamePrefix="Modelica_4_1_0_Modelica_Mechanics_MultiBody_Examples_Loops_Engine1b",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Mechanics.MultiBody.Examples.Loops.Engine1b,fileNamePrefix="Modelica_4_1_0_Modelica_Mechanics_MultiBody_Examples_Loops_Engine1b",fmuType="me",version="2.0",platforms={"static"}) [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 0.001521/0.001521, allocations: 43.92 kB / 377.8 MB, free: 2.953 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2524/0.2539, allocations: 53.36 MB / 431.1 MB, free: 6.66 MB / 334.1 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.MultiBody.Examples.Loops.Engine1b): time 0.02272/0.2766, allocations: 17.63 MB / 448.7 MB, free: 4.961 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.01501/0.2917, allocations: 6.016 MB / 454.8 MB, free: 14.93 MB / 366.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.004172/0.2958, allocations: 202.9 kB / 455 MB, free: 14.73 MB / 366.1 MB Notification: Performance of NFTyping.typeComponents: time 0.01306/0.3089, allocations: 6.157 MB / 461.1 MB, free: 8.551 MB / 366.1 MB Notification: Performance of NFTyping.typeBindings: time 0.009712/0.3186, allocations: 3.521 MB / 464.6 MB, free: 5.02 MB / 366.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.004117/0.3227, allocations: 1.658 MB / 466.3 MB, free: 3.359 MB / 366.1 MB Notification: Performance of NFFlatten.flatten: time 0.01791/0.3406, allocations: 12.99 MB / 479.3 MB, free: 6.34 MB / 382.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0116/0.3522, allocations: 6.29 MB / 485.6 MB, free: 15.96 MB / 398.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.007607/0.3598, allocations: 3.813 MB / 489.4 MB, free: 12.14 MB / 398.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.009002/0.3688, allocations: 5.352 MB / 494.7 MB, free: 6.77 MB / 398.1 MB Notification: Performance of NFPackage.collectConstants: time 0.002576/0.3714, allocations: 0.7461 MB / 495.5 MB, free: 6.023 MB / 398.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.004446/0.3759, allocations: 1.608 MB / 497.1 MB, free: 4.414 MB / 398.1 MB Notification: Performance of NFScalarize.scalarize: time 0.006861/0.3827, allocations: 4.546 MB / 0.4899 GB, free: 15.86 MB / 414.1 MB Notification: Performance of NFVerifyModel.verify: time 0.01034/0.3931, allocations: 3.832 MB / 0.4936 GB, free: 12 MB / 414.1 MB Notification: Performance of NFConvertDAE.convert: time 0.02273/0.4158, allocations: 14.95 MB / 0.5082 GB, free: 13 MB / 430.1 MB Notification: Performance of FrontEnd - DAE generated: time 7.494e-06/0.4158, allocations: 0 / 0.5082 GB, free: 13 MB / 430.1 MB Notification: Performance of FrontEnd: time 2.826e-06/0.4158, allocations: 0 / 0.5082 GB, free: 13 MB / 430.1 MB Notification: Performance of Transformations before backend: time 0.000434/0.4162, allocations: 0 / 0.5082 GB, free: 13 MB / 430.1 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 2488 * Number of variables: 2488 Notification: Performance of Generate backend data structure: time 0.032/0.4482, allocations: 10.86 MB / 0.5188 GB, free: 2.055 MB / 430.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.676e-05/0.4483, allocations: 8.031 kB / 0.5188 GB, free: 2.047 MB / 430.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.003193/0.4515, allocations: 1.201 MB / 0.52 GB, free: 0.8359 MB / 430.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.6894/1.141, allocations: 24.34 MB / 0.5438 GB, free: 95.5 MB / 446.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0285/1.169, allocations: 9.242 MB / 0.5528 GB, free: 89.1 MB / 446.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0004463/1.17, allocations: 449.3 kB / 0.5532 GB, free: 88.71 MB / 446.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.002467/1.172, allocations: 0.6145 MB / 0.5538 GB, free: 88.15 MB / 446.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.02655/1.199, allocations: 17.05 MB / 0.5705 GB, free: 70.14 MB / 446.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.000353/1.199, allocations: 99.3 kB / 0.5706 GB, free: 70.04 MB / 446.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.001224/1.2, allocations: 279.2 kB / 0.5708 GB, free: 69.82 MB / 446.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.003845/1.204, allocations: 2.858 MB / 0.5736 GB, free: 66.97 MB / 446.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.02489/1.229, allocations: 13.23 MB / 0.5865 GB, free: 53.75 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.07939/1.309, allocations: 63.16 MB / 0.6482 GB, free: 5.484 MB / 462.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.02183/1.33, allocations: 7.178 MB / 0.6552 GB, free: 14.27 MB / 478.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.006392/1.337, allocations: 4.057 MB / 0.6592 GB, free: 10.2 MB / 478.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0233/1.36, allocations: 10.47 MB / 0.6694 GB, free: 15.84 MB / 494.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 7.381e-05/1.36, allocations: 68.56 kB / 0.6695 GB, free: 15.77 MB / 494.1 MB Notification: Performance of pre-optimization done (n=293): time 6.071e-06/1.36, allocations: 0 / 0.6695 GB, free: 15.77 MB / 494.1 MB Notification: Performance of matching and sorting (n=359): time 0.1964/1.557, allocations: 50.23 MB / 0.7185 GB, free: 13.76 MB / 0.5294 GB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0003086/1.557, allocations: 402.2 kB / 0.7189 GB, free: 13.28 MB / 0.5294 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.01346/1.57, allocations: 7.591 MB / 0.7263 GB, free: 5.727 MB / 0.5294 GB Notification: Performance of collectPreVariables (initialization): time 0.000834/1.571, allocations: 79.3 kB / 0.7264 GB, free: 5.645 MB / 0.5294 GB Notification: Performance of collectInitialEqns (initialization): time 0.005507/1.577, allocations: 5.527 MB / 0.7318 GB, free: 76 kB / 0.5294 GB Notification: Performance of collectInitialBindings (initialization): time 0.002395/1.579, allocations: 1.372 MB / 0.7332 GB, free: 14.69 MB / 0.545 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.003321/1.582, allocations: 1.707 MB / 0.7348 GB, free: 12.96 MB / 0.545 GB Notification: Performance of setup shared object (initialization): time 0.0001391/1.583, allocations: 305.1 kB / 0.7351 GB, free: 12.66 MB / 0.545 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.007352/1.59, allocations: 4.128 MB / 0.7391 GB, free: 8.527 MB / 0.545 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.2391/1.829, allocations: 9.082 MB / 0.748 GB, free: 181.8 MB / 0.545 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.01545/1.844, allocations: 13.95 MB / 0.7616 GB, free: 172.8 MB / 0.545 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.0002739/1.845, allocations: 45.09 kB / 0.7617 GB, free: 172.8 MB / 0.545 GB Notification: Performance of matching and sorting (n=1106) (initialization): time 0.03431/1.879, allocations: 17.83 MB / 0.7791 GB, free: 167.2 MB / 0.545 GB Notification: Performance of prepare postOptimizeDAE: time 0.0001295/1.879, allocations: 74.12 kB / 0.7792 GB, free: 167.2 MB / 0.545 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0002034/1.879, allocations: 167.6 kB / 0.7793 GB, free: 167.2 MB / 0.545 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.01753/1.897, allocations: 6.036 MB / 0.7852 GB, free: 164.4 MB / 0.545 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.006053/1.903, allocations: 1.828 MB / 0.787 GB, free: 162.8 MB / 0.545 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.03604/1.939, allocations: 32.29 MB / 0.8185 GB, free: 130.7 MB / 0.545 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.007664/1.947, allocations: 0.5401 MB / 0.8191 GB, free: 130.2 MB / 0.545 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.00149/1.948, allocations: 488 kB / 0.8195 GB, free: 129.7 MB / 0.545 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 (967): * Single equations (assignments): 961 * 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,97,55.1%), (2,6,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 1 system {(2,4)} Notification: Performance of prepare postOptimizeDAE: time 0.005572/1.954, allocations: 3.584 MB / 0.823 GB, free: 126.3 MB / 0.545 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.001392/1.955, allocations: 0.7025 MB / 0.8237 GB, free: 125.9 MB / 0.545 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.02239/1.978, allocations: 12.01 MB / 0.8354 GB, free: 113.9 MB / 0.545 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.316e-05/1.978, allocations: 41.34 kB / 0.8355 GB, free: 113.8 MB / 0.545 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.813e-05/1.978, allocations: 20 kB / 0.8355 GB, free: 113.8 MB / 0.545 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.325e-05/1.978, allocations: 15.94 kB / 0.8355 GB, free: 113.8 MB / 0.545 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.04615/2.024, allocations: 24.76 MB / 0.8597 GB, free: 88.79 MB / 0.545 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.367e-05/2.024, allocations: 8.688 kB / 0.8597 GB, free: 88.78 MB / 0.545 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.002231/2.026, allocations: 467.8 kB / 0.8601 GB, free: 88.32 MB / 0.545 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.01634/2.042, allocations: 5.696 MB / 0.8657 GB, free: 82.61 MB / 0.545 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0007485/2.043, allocations: 69.17 kB / 0.8658 GB, free: 82.54 MB / 0.545 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.03637/2.08, allocations: 31.1 MB / 0.8961 GB, free: 51.32 MB / 0.545 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 7.254e-06/2.08, allocations: 7.938 kB / 0.8961 GB, free: 51.31 MB / 0.545 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.02865/2.108, allocations: 17.36 MB / 0.9131 GB, free: 33.88 MB / 0.545 GB Notification: Performance of postOpt removeConstants (simulation): time 0.001985/2.11, allocations: 0.6577 MB / 0.9137 GB, free: 33.22 MB / 0.545 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.001424/2.112, allocations: 64 kB / 0.9138 GB, free: 33.16 MB / 0.545 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.003702/2.115, allocations: 283.7 kB / 0.9141 GB, free: 32.88 MB / 0.545 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0009608/2.116, allocations: 262.6 kB / 0.9143 GB, free: 32.62 MB / 0.545 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0003152/2.117, allocations: 94.59 kB / 0.9144 GB, free: 32.54 MB / 0.545 GB Notification: Performance of sorting global known variables: time 0.007865/2.124, allocations: 4.71 MB / 0.919 GB, free: 27.86 MB / 0.545 GB Notification: Performance of sort global known variables: time 1.81e-07/2.124, allocations: 0 / 0.919 GB, free: 27.86 MB / 0.545 GB Notification: Performance of remove unused functions: time 0.009301/2.134, allocations: 2.033 MB / 0.921 GB, free: 25.84 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 (231): * Single equations (assignments): 225 * 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.03064/2.164, allocations: 18.07 MB / 0.9387 GB, free: 7.59 MB / 0.545 GB Notification: Performance of simCode: created initialization part: time 0.01882/2.183, allocations: 10.51 MB / 0.9489 GB, free: 13.04 MB / 0.5607 GB Notification: Performance of simCode: created event and clocks part: time 1.798e-05/2.183, allocations: 4 kB / 0.9489 GB, free: 13.04 MB / 0.5607 GB Notification: Performance of simCode: created simulation system equations: time 0.234/2.417, allocations: 4.6 MB / 0.9534 GB, free: 199.7 MB / 0.5607 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.008123/2.425, allocations: 1.109 MB / 0.9545 GB, free: 199.6 MB / 0.5607 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.1455/2.571, allocations: 95.08 MB / 1.047 GB, free: 116.2 MB / 0.5607 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.006028/2.577, allocations: 5.266 MB / 1.052 GB, free: 111 MB / 0.5607 GB Notification: Performance of simCode: alias equations: time 0.005895/2.583, allocations: 2.716 MB / 1.055 GB, free: 108.3 MB / 0.5607 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.004826/2.588, allocations: 3.881 MB / 1.059 GB, free: 104.4 MB / 0.5607 GB Notification: Performance of SimCode: time 1.443e-06/2.588, allocations: 0 / 1.059 GB, free: 104.4 MB / 0.5607 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.4742/3.062, allocations: 169.2 MB / 1.224 GB, free: 142.8 MB / 0.5607 GB Notification: Performance of buildModelFMU: Generate platform static: time 25/28.06, allocations: 3.891 kB / 1.224 GB, free: 142.8 MB / 0.5607 GB " [Timeout remaining time 632] (rm -f Modelica_4.1.0_Modelica.Mechanics.MultiBody.Examples.Loops.Engine1b.pipe ; mkfifo Modelica_4.1.0_Modelica.Mechanics.MultiBody.Examples.Loops.Engine1b.pipe ; head -c 1048576 < Modelica_4.1.0_Modelica.Mechanics.MultiBody.Examples.Loops.Engine1b.pipe >> ../files/Modelica_4.1.0_Modelica.Mechanics.MultiBody.Examples.Loops.Engine1b.sim & python3 -m fmpy simulate --output-file Modelica_4.1.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_1_0_Modelica_Mechanics_MultiBody_Examples_Loops_Engine1b.fmu > Modelica_4.1.0_Modelica.Mechanics.MultiBody.Examples.Loops.Engine1b.pipe 2>&1) [Timeout 52.5] diffSimulationResults("Modelica_4.1.0_Modelica.Mechanics.MultiBody.Examples.Loops.Engine1b_res.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.1.0/Modelica/Mechanics/MultiBody/Examples/Loops/Engine1b/Engine1b.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_4.1.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: 30.91627539601177]