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.001523/0.001523, allocations: 105.5 kB / 17.06 MB, free: 6.098 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.001255/0.001255, allocations: 193.4 kB / 18 MB, free: 5.172 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.399/1.399, allocations: 222.9 MB / 241.7 MB, free: 15.13 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001466/0.001466, allocations: 43.92 kB / 350.8 MB, free: 3.703 MB / 286.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2881/0.2896, allocations: 49.44 MB / 400.3 MB, free: 8.41 MB / 318.1 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.MultiBody.Examples.Loops.Engine1b): time 0.02337/0.313, allocations: 20.52 MB / 420.8 MB, free: 4.18 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.01442/0.3275, allocations: 6.183 MB / 427 MB, free: 13.98 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.004755/0.3323, allocations: 171.4 kB / 427.2 MB, free: 13.81 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.01258/0.3449, allocations: 6.343 MB / 433.5 MB, free: 7.449 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.01048/0.3555, allocations: 3.438 MB / 436.9 MB, free: 4 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.004841/0.3604, allocations: 1.665 MB / 438.6 MB, free: 2.332 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.01949/0.3799, allocations: 12.65 MB / 451.3 MB, free: 5.652 MB / 366.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.01302/0.3929, allocations: 8.053 MB / 459.3 MB, free: 13.51 MB / 382.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.007536/0.4005, allocations: 3.755 MB / 463.1 MB, free: 9.746 MB / 382.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.008433/0.409, allocations: 4.947 MB / 468 MB, free: 4.785 MB / 382.1 MB Notification: Performance of NFPackage.collectConstants: time 0.00303/0.4121, allocations: 0.7422 MB / 468.7 MB, free: 4.043 MB / 382.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.005384/0.4175, allocations: 1.721 MB / 470.5 MB, free: 2.32 MB / 382.1 MB Notification: Performance of NFScalarize.scalarize: time 0.006903/0.4244, allocations: 4.341 MB / 474.8 MB, free: 13.97 MB / 398.1 MB Notification: Performance of NFVerifyModel.verify: time 0.01056/0.435, allocations: 4.958 MB / 479.8 MB, free: 8.984 MB / 398.1 MB Notification: Performance of NFConvertDAE.convert: time 0.02412/0.4592, allocations: 14.93 MB / 494.7 MB, free: 10 MB / 414.1 MB Notification: Performance of FrontEnd - DAE generated: time 9.418e-06/0.4592, allocations: 0 / 494.7 MB, free: 10 MB / 414.1 MB Notification: Performance of FrontEnd: time 3.086e-06/0.4592, allocations: 0 / 494.7 MB, free: 10 MB / 414.1 MB Notification: Performance of Transformations before backend: time 0.0006427/0.4599, allocations: 0 / 494.7 MB, free: 10 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: 2489 * Number of variables: 2489 Notification: Performance of Generate backend data structure: time 0.03786/0.4978, allocations: 10.96 MB / 0.4938 GB, free: 14.93 MB / 430.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.596e-05/0.4979, allocations: 8.031 kB / 0.4938 GB, free: 14.93 MB / 430.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.004223/0.5021, allocations: 1.193 MB / 0.495 GB, free: 13.72 MB / 430.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.3208/0.8229, allocations: 24.34 MB / 0.5188 GB, free: 5.344 MB / 446.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.02589/0.8489, allocations: 9.993 MB / 0.5285 GB, free: 11.26 MB / 462.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0005397/0.8495, allocations: 451.7 kB / 0.5289 GB, free: 10.82 MB / 462.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.002832/0.8523, allocations: 0.6128 MB / 0.5295 GB, free: 10.21 MB / 462.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.4859/1.338, allocations: 16.75 MB / 0.5459 GB, free: 119.3 MB / 462.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0003783/1.339, allocations: 93.23 kB / 0.546 GB, free: 119.3 MB / 462.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.001313/1.34, allocations: 276 kB / 0.5462 GB, free: 119.1 MB / 462.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.004124/1.344, allocations: 2.864 MB / 0.549 GB, free: 118.6 MB / 462.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.02656/1.371, allocations: 13.27 MB / 0.562 GB, free: 112.2 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.07938/1.45, allocations: 68.16 MB / 0.6286 GB, free: 43.11 MB / 462.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.01955/1.47, allocations: 7.907 MB / 0.6363 GB, free: 35.05 MB / 462.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.005325/1.475, allocations: 4.336 MB / 0.6405 GB, free: 30.71 MB / 462.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.01871/1.494, allocations: 12.06 MB / 0.6523 GB, free: 18.59 MB / 462.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 5.548e-05/1.494, allocations: 68.5 kB / 0.6524 GB, free: 18.52 MB / 462.1 MB Notification: Performance of pre-optimization done (n=294): time 7.864e-06/1.494, allocations: 0 / 0.6524 GB, free: 18.52 MB / 462.1 MB Notification: Performance of matching and sorting (n=360): time 0.1998/1.694, allocations: 50.35 MB / 0.7015 GB, free: 0.582 MB / 494.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0002478/1.694, allocations: 402.2 kB / 0.7019 GB, free: 104 kB / 494.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.01576/1.71, allocations: 7.322 MB / 0.7091 GB, free: 8.914 MB / 0.4982 GB Notification: Performance of collectPreVariables (initialization): time 0.001/1.711, allocations: 77.7 kB / 0.7091 GB, free: 8.832 MB / 0.4982 GB Notification: Performance of collectInitialEqns (initialization): time 0.00543/1.716, allocations: 5.535 MB / 0.7145 GB, free: 3.539 MB / 0.4982 GB Notification: Performance of collectInitialBindings (initialization): time 0.002375/1.719, allocations: 1.376 MB / 0.7159 GB, free: 2.152 MB / 0.4982 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.005611/1.724, allocations: 1.707 MB / 0.7176 GB, free: 440 kB / 0.4982 GB Notification: Performance of setup shared object (initialization): time 0.0001277/1.725, allocations: 301.1 kB / 0.7178 GB, free: 136 kB / 0.4982 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.008948/1.734, allocations: 4.124 MB / 0.7219 GB, free: 12 MB / 0.5138 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.01516/1.749, allocations: 8.866 MB / 0.7305 GB, free: 0.8008 MB / 0.5138 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.3072/2.056, allocations: 13.95 MB / 0.7442 GB, free: 156 MB / 0.5138 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.0001529/2.056, allocations: 47.16 kB / 0.7442 GB, free: 156 MB / 0.5138 GB Notification: Performance of matching and sorting (n=1107) (initialization): time 0.04072/2.097, allocations: 17.9 MB / 0.7617 GB, free: 150.2 MB / 0.5138 GB Notification: Performance of prepare postOptimizeDAE: time 0.0001363/2.097, allocations: 73.91 kB / 0.7617 GB, free: 150.2 MB / 0.5138 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0002867/2.097, allocations: 169.6 kB / 0.7619 GB, free: 150.2 MB / 0.5138 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.01911/2.117, allocations: 6.062 MB / 0.7678 GB, free: 149.1 MB / 0.5138 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.006324/2.123, allocations: 1.837 MB / 0.7696 GB, free: 147.9 MB / 0.5138 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.03956/2.163, allocations: 32.92 MB / 0.8018 GB, free: 115.1 MB / 0.5138 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.01112/2.174, allocations: 0.5347 MB / 0.8023 GB, free: 114.6 MB / 0.5138 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.002236/2.176, allocations: 480 kB / 0.8028 GB, free: 114.1 MB / 0.5138 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.009435/2.185, allocations: 3.588 MB / 0.8063 GB, free: 110.6 MB / 0.5138 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.002939/2.188, allocations: 0.7081 MB / 0.807 GB, free: 110.3 MB / 0.5138 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.03499/2.223, allocations: 12.1 MB / 0.8188 GB, free: 98.12 MB / 0.5138 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 8.64e-05/2.224, allocations: 39.52 kB / 0.8188 GB, free: 98.08 MB / 0.5138 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 8.127e-05/2.224, allocations: 20.88 kB / 0.8188 GB, free: 98.06 MB / 0.5138 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.0001052/2.224, allocations: 15.94 kB / 0.8188 GB, free: 98.05 MB / 0.5138 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.05836/2.282, allocations: 25.87 MB / 0.8441 GB, free: 71.87 MB / 0.5138 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.831e-05/2.282, allocations: 8 kB / 0.8441 GB, free: 71.86 MB / 0.5138 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.002258/2.285, allocations: 467.3 kB / 0.8446 GB, free: 71.41 MB / 0.5138 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.0175/2.302, allocations: 5.715 MB / 0.8501 GB, free: 65.68 MB / 0.5138 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0009208/2.303, allocations: 64.19 kB / 0.8502 GB, free: 65.62 MB / 0.5138 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.04028/2.343, allocations: 31.72 MB / 0.8812 GB, free: 33.7 MB / 0.5138 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 8.165e-06/2.343, allocations: 11.94 kB / 0.8812 GB, free: 33.69 MB / 0.5138 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.03356/2.377, allocations: 17.44 MB / 0.8982 GB, free: 16.12 MB / 0.5138 GB Notification: Performance of postOpt removeConstants (simulation): time 0.004523/2.382, allocations: 1.391 MB / 0.8996 GB, free: 14.71 MB / 0.5138 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.002582/2.384, allocations: 67.98 kB / 0.8996 GB, free: 14.64 MB / 0.5138 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.005281/2.39, allocations: 279.6 kB / 0.8999 GB, free: 14.37 MB / 0.5138 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.001603/2.391, allocations: 250.9 kB / 0.9002 GB, free: 14.12 MB / 0.5138 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0006702/2.392, allocations: 95.98 kB / 0.9002 GB, free: 14.03 MB / 0.5138 GB Notification: Performance of sorting global known variables: time 0.009056/2.401, allocations: 4.71 MB / 0.9048 GB, free: 9.359 MB / 0.5138 GB Notification: Performance of sort global known variables: time 5.41e-07/2.401, allocations: 0 / 0.9048 GB, free: 9.359 MB / 0.5138 GB Notification: Performance of remove unused functions: time 0.01055/2.412, allocations: 2.06 MB / 0.9069 GB, free: 7.309 MB / 0.5138 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.03891/2.45, allocations: 18.15 MB / 0.9246 GB, free: 4.973 MB / 0.5294 GB Notification: Performance of simCode: created initialization part: time 0.2496/2.7, allocations: 10.97 MB / 0.9353 GB, free: 184.4 MB / 0.5294 GB Notification: Performance of simCode: created event and clocks part: time 1.588e-05/2.7, allocations: 0 / 0.9353 GB, free: 184.4 MB / 0.5294 GB Notification: Performance of simCode: created simulation system equations: time 0.0101/2.71, allocations: 4.984 MB / 0.9402 GB, free: 182.6 MB / 0.5294 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.009181/2.72, allocations: 1.109 MB / 0.9412 GB, free: 182.1 MB / 0.5294 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.1739/2.893, allocations: 95.19 MB / 1.034 GB, free: 89.96 MB / 0.5294 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.01232/2.906, allocations: 5.728 MB / 1.04 GB, free: 84.19 MB / 0.5294 GB Notification: Performance of simCode: alias equations: time 0.008189/2.914, allocations: 2.725 MB / 1.042 GB, free: 81.46 MB / 0.5294 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.00705/2.921, allocations: 3.885 MB / 1.046 GB, free: 77.57 MB / 0.5294 GB Notification: Performance of SimCode: time 2.425e-06/2.921, allocations: 0 / 1.046 GB, free: 77.57 MB / 0.5294 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.5071/3.428, allocations: 164.7 MB / 1.207 GB, free: 108.4 MB / 0.5294 GB Notification: Performance of buildModelFMU: Generate platform static: time 43.74/47.16, allocations: 7.875 kB / 1.207 GB, free: 108.4 MB / 0.5294 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 & 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 0.0002 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.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) Reference file matches