Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_trunk_Modelica.Mechanics.MultiBody.Examples.Loops.Engine1b.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo", uses=false) Using package Modelica with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo) Using package Complex with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo) Using package ModelicaServices with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo) Running command: "" <> buildModelFMU(Modelica.Mechanics.MultiBody.Examples.Loops.Engine1b,fileNamePrefix="Modelica_trunk_Modelica_Mechanics_MultiBody_Examples_Loops_Engine1b",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Mechanics.MultiBody.Examples.Loops.Engine1b,fileNamePrefix="Modelica_trunk_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 trunk/package.mo): time 0.00119/0.001191, allocations: 118.2 kB / 17.79 MB, free: 5.277 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001249/0.001249, allocations: 202 kB / 18.74 MB, free: 4.332 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.295/1.295, allocations: 227.4 MB / 246.9 MB, free: 10.46 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.00112/0.00112, allocations: 55.91 kB / 358.3 MB, free: 13.39 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2511/0.2522, allocations: 50.55 MB / 408.8 MB, free: 1.531 MB / 318.1 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.MultiBody.Examples.Loops.Engine1b): time 0.01965/0.2719, allocations: 20.43 MB / 429.2 MB, free: 13.01 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.01246/0.2844, allocations: 6.187 MB / 435.4 MB, free: 6.805 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.003585/0.288, allocations: 171.4 kB / 435.6 MB, free: 6.637 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.01063/0.2987, allocations: 6.328 MB / 441.9 MB, free: 296 kB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.007992/0.3067, allocations: 3.498 MB / 445.4 MB, free: 12.78 MB / 366.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.003631/0.3104, allocations: 1.658 MB / 447.1 MB, free: 11.12 MB / 366.1 MB Notification: Performance of NFFlatten.flatten: time 0.01623/0.3266, allocations: 12.95 MB / 460 MB, free: 14.14 MB / 382.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.01031/0.337, allocations: 8.045 MB / 468.1 MB, free: 6.012 MB / 382.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.006183/0.3432, allocations: 3.755 MB / 471.8 MB, free: 2.246 MB / 382.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.007244/0.3505, allocations: 4.951 MB / 476.8 MB, free: 13.28 MB / 398.1 MB Notification: Performance of NFPackage.collectConstants: time 0.002958/0.3535, allocations: 0.7461 MB / 477.5 MB, free: 12.54 MB / 398.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.004675/0.3582, allocations: 1.709 MB / 479.2 MB, free: 10.82 MB / 398.1 MB Notification: Performance of NFScalarize.scalarize: time 0.006121/0.3643, allocations: 4.419 MB / 483.6 MB, free: 6.395 MB / 398.1 MB Notification: Performance of NFVerifyModel.verify: time 0.009681/0.374, allocations: 4.927 MB / 488.6 MB, free: 1.441 MB / 398.1 MB Notification: Performance of NFConvertDAE.convert: time 0.02527/0.3994, allocations: 14.86 MB / 0.4916 GB, free: 2.523 MB / 414.1 MB Notification: Performance of FrontEnd - DAE generated: time 8.937e-06/0.3994, allocations: 4 kB / 0.4916 GB, free: 2.52 MB / 414.1 MB Notification: Performance of FrontEnd: time 1.372e-06/0.3994, allocations: 0 / 0.4916 GB, free: 2.52 MB / 414.1 MB Notification: Performance of Transformations before backend: time 0.000495/0.3999, allocations: 4 kB / 0.4916 GB, free: 2.516 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: 2488 * Number of variables: 2488 Notification: Performance of Generate backend data structure: time 0.04114/0.4411, allocations: 10.93 MB / 0.5023 GB, free: 7.477 MB / 430.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.177e-05/0.4412, allocations: 12.03 kB / 0.5023 GB, free: 7.465 MB / 430.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.003431/0.4446, allocations: 1.193 MB / 0.5035 GB, free: 6.262 MB / 430.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.3024/0.7471, allocations: 24.34 MB / 0.5273 GB, free: 13.88 MB / 462.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.02357/0.7707, allocations: 9.358 MB / 0.5364 GB, free: 4.438 MB / 462.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0004645/0.7712, allocations: 455.7 kB / 0.5368 GB, free: 3.992 MB / 462.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.00245/0.7737, allocations: 0.6129 MB / 0.5374 GB, free: 3.379 MB / 462.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.3999/1.174, allocations: 16.73 MB / 0.5538 GB, free: 111.8 MB / 462.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0002882/1.174, allocations: 101.3 kB / 0.5539 GB, free: 111.8 MB / 462.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.001011/1.175, allocations: 281.5 kB / 0.5541 GB, free: 111.6 MB / 462.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.003777/1.179, allocations: 2.858 MB / 0.5569 GB, free: 110.6 MB / 462.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.02449/1.203, allocations: 13.27 MB / 0.5699 GB, free: 99.07 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.07255/1.276, allocations: 68.13 MB / 0.6364 GB, free: 30.04 MB / 462.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.01843/1.294, allocations: 7.886 MB / 0.6441 GB, free: 22.01 MB / 462.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.004309/1.299, allocations: 4.318 MB / 0.6483 GB, free: 17.68 MB / 462.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.01643/1.315, allocations: 12.06 MB / 0.6601 GB, free: 5.547 MB / 462.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.762e-05/1.315, allocations: 64.5 kB / 0.6602 GB, free: 5.477 MB / 462.1 MB Notification: Performance of pre-optimization done (n=293): time 5.881e-06/1.315, allocations: 11.58 kB / 0.6602 GB, free: 5.469 MB / 462.1 MB Notification: Performance of matching and sorting (n=359): time 0.1905/1.506, allocations: 50.24 MB / 0.7093 GB, free: 3.656 MB / 0.4982 GB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0002144/1.506, allocations: 402.2 kB / 0.7096 GB, free: 3.176 MB / 0.4982 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0119/1.518, allocations: 7.312 MB / 0.7168 GB, free: 11.99 MB / 0.5138 GB Notification: Performance of collectPreVariables (initialization): time 0.0009593/1.519, allocations: 81.7 kB / 0.7169 GB, free: 11.91 MB / 0.5138 GB Notification: Performance of collectInitialEqns (initialization): time 0.004309/1.523, allocations: 5.533 MB / 0.7223 GB, free: 6.59 MB / 0.5138 GB Notification: Performance of collectInitialBindings (initialization): time 0.001918/1.525, allocations: 1.368 MB / 0.7236 GB, free: 5.211 MB / 0.5138 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.002609/1.528, allocations: 1.715 MB / 0.7253 GB, free: 3.48 MB / 0.5138 GB Notification: Performance of setup shared object (initialization): time 0.0001076/1.528, allocations: 301.1 kB / 0.7256 GB, free: 3.184 MB / 0.5138 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.005917/1.534, allocations: 4.124 MB / 0.7296 GB, free: 15.05 MB / 0.5294 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.009875/1.544, allocations: 8.858 MB / 0.7382 GB, free: 3.859 MB / 0.5294 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.2248/1.769, allocations: 13.95 MB / 0.7519 GB, free: 165.4 MB / 0.5294 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.0001011/1.769, allocations: 47.86 kB / 0.7519 GB, free: 165.4 MB / 0.5294 GB Notification: Performance of matching and sorting (n=1106) (initialization): time 0.03321/1.802, allocations: 17.9 MB / 0.7694 GB, free: 159.6 MB / 0.5294 GB Notification: Performance of prepare postOptimizeDAE: time 9.676e-05/1.802, allocations: 77.31 kB / 0.7695 GB, free: 159.6 MB / 0.5294 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0001798/1.802, allocations: 169.7 kB / 0.7696 GB, free: 159.6 MB / 0.5294 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.0174/1.82, allocations: 6.037 MB / 0.7755 GB, free: 158.4 MB / 0.5294 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.005764/1.826, allocations: 1.831 MB / 0.7773 GB, free: 158.2 MB / 0.5294 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.03602/1.862, allocations: 32.9 MB / 0.8094 GB, free: 127.6 MB / 0.5294 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.00737/1.869, allocations: 0.5387 MB / 0.81 GB, free: 127.1 MB / 0.5294 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.001295/1.87, allocations: 483.8 kB / 0.8104 GB, free: 126.6 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 (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.005229/1.876, allocations: 3.596 MB / 0.8139 GB, free: 123.1 MB / 0.5294 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.001444/1.877, allocations: 0.7042 MB / 0.8146 GB, free: 122.8 MB / 0.5294 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.02282/1.9, allocations: 12.08 MB / 0.8264 GB, free: 110.7 MB / 0.5294 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.654e-05/1.9, allocations: 36 kB / 0.8265 GB, free: 110.6 MB / 0.5294 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.212e-05/1.9, allocations: 20 kB / 0.8265 GB, free: 110.6 MB / 0.5294 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.947e-05/1.9, allocations: 19.92 kB / 0.8265 GB, free: 110.6 MB / 0.5294 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.04396/1.944, allocations: 25.85 MB / 0.8517 GB, free: 84.46 MB / 0.5294 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.621e-05/1.944, allocations: 8 kB / 0.8517 GB, free: 84.45 MB / 0.5294 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.002157/1.946, allocations: 467.3 kB / 0.8522 GB, free: 83.99 MB / 0.5294 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.01626/1.963, allocations: 5.697 MB / 0.8578 GB, free: 78.28 MB / 0.5294 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0007095/1.963, allocations: 67.98 kB / 0.8578 GB, free: 78.21 MB / 0.5294 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.03472/1.998, allocations: 31.71 MB / 0.8888 GB, free: 46.3 MB / 0.5294 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 7.234e-06/1.998, allocations: 15.94 kB / 0.8888 GB, free: 46.29 MB / 0.5294 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.02886/2.027, allocations: 17.43 MB / 0.9058 GB, free: 28.73 MB / 0.5294 GB Notification: Performance of postOpt removeConstants (simulation): time 0.002143/2.029, allocations: 0.7414 MB / 0.9065 GB, free: 27.97 MB / 0.5294 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.001652/2.031, allocations: 63.83 kB / 0.9066 GB, free: 27.91 MB / 0.5294 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.003774/2.035, allocations: 277.4 kB / 0.9069 GB, free: 27.64 MB / 0.5294 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0008988/2.035, allocations: 254.8 kB / 0.9071 GB, free: 27.39 MB / 0.5294 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0003458/2.036, allocations: 92 kB / 0.9072 GB, free: 27.3 MB / 0.5294 GB Notification: Performance of sorting global known variables: time 0.006791/2.043, allocations: 4.707 MB / 0.9118 GB, free: 22.64 MB / 0.5294 GB Notification: Performance of sort global known variables: time 5.01e-07/2.043, allocations: 0 / 0.9118 GB, free: 22.64 MB / 0.5294 GB Notification: Performance of remove unused functions: time 0.008742/2.051, allocations: 2.037 MB / 0.9138 GB, free: 20.61 MB / 0.5294 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.02862/2.08, allocations: 18.15 MB / 0.9315 GB, free: 2.289 MB / 0.5294 GB Notification: Performance of simCode: created initialization part: time 0.2269/2.307, allocations: 10.94 MB / 0.9422 GB, free: 191.3 MB / 0.545 GB Notification: Performance of simCode: created event and clocks part: time 1.323e-05/2.307, allocations: 7.875 kB / 0.9422 GB, free: 191.3 MB / 0.545 GB Notification: Performance of simCode: created simulation system equations: time 0.008717/2.316, allocations: 4.964 MB / 0.9471 GB, free: 190.9 MB / 0.545 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.006323/2.322, allocations: 1.113 MB / 0.9481 GB, free: 190.8 MB / 0.545 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.1386/2.461, allocations: 95.09 MB / 1.041 GB, free: 107.4 MB / 0.545 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.007423/2.468, allocations: 5.735 MB / 1.047 GB, free: 101.6 MB / 0.545 GB Notification: Performance of simCode: alias equations: time 0.005844/2.474, allocations: 2.709 MB / 1.049 GB, free: 98.91 MB / 0.545 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.005209/2.479, allocations: 3.877 MB / 1.053 GB, free: 95.03 MB / 0.545 GB Notification: Performance of SimCode: time 1.312e-06/2.479, allocations: 4 kB / 1.053 GB, free: 95.03 MB / 0.545 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.4256/2.905, allocations: 164.4 MB / 1.214 GB, free: 130.6 MB / 0.545 GB Notification: Performance of buildModelFMU: Generate platform static: time 42.35/45.26, allocations: 12.08 kB / 1.214 GB, free: 130.6 MB / 0.545 GB (rm -f Modelica_trunk_Modelica.Mechanics.MultiBody.Examples.Loops.Engine1b.pipe ; mkfifo Modelica_trunk_Modelica.Mechanics.MultiBody.Examples.Loops.Engine1b.pipe ; head -c 1048576 < Modelica_trunk_Modelica.Mechanics.MultiBody.Examples.Loops.Engine1b.pipe >> ../files/Modelica_trunk_Modelica.Mechanics.MultiBody.Examples.Loops.Engine1b.sim & python3 -m fmpy simulate --output-file Modelica_trunk_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_trunk_Modelica_Mechanics_MultiBody_Examples_Loops_Engine1b.fmu > Modelica_trunk_Modelica.Mechanics.MultiBody.Examples.Loops.Engine1b.pipe 2>&1) diffSimulationResults("Modelica_trunk_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_trunk_Modelica.Mechanics.MultiBody.Examples.Loops.Engine1b.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches