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.001302/0.001302, allocations: 122.2 kB / 17.79 MB, free: 5.273 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001329/0.001329, allocations: 201.2 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.444/1.444, allocations: 227.4 MB / 246.9 MB, free: 10.46 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001756/0.001756, allocations: 59.91 kB / 358.3 MB, free: 13.39 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2801/0.2819, allocations: 50.54 MB / 408.8 MB, free: 1.559 MB / 318.1 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.MultiBody.Examples.Loops.Engine1b): time 0.02438/0.3064, allocations: 20.43 MB / 429.2 MB, free: 13.04 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.01539/0.3218, allocations: 6.195 MB / 435.4 MB, free: 6.824 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.005041/0.3269, allocations: 163.4 kB / 435.6 MB, free: 6.664 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.01251/0.3395, allocations: 6.331 MB / 441.9 MB, free: 320 kB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.01013/0.3497, allocations: 3.388 MB / 445.3 MB, free: 12.91 MB / 366.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.004571/0.3543, allocations: 1.662 MB / 447 MB, free: 11.25 MB / 366.1 MB Notification: Performance of NFFlatten.flatten: time 0.02027/0.3746, allocations: 12.95 MB / 459.9 MB, free: 14.28 MB / 382.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.01248/0.3871, allocations: 8.045 MB / 468 MB, free: 6.145 MB / 382.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.008147/0.3953, allocations: 3.751 MB / 471.7 MB, free: 2.383 MB / 382.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.008577/0.404, allocations: 4.935 MB / 476.7 MB, free: 13.43 MB / 398.1 MB Notification: Performance of NFPackage.collectConstants: time 0.002909/0.4069, allocations: 0.7461 MB / 477.4 MB, free: 12.69 MB / 398.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.00517/0.4121, allocations: 1.698 MB / 479.1 MB, free: 10.99 MB / 398.1 MB Notification: Performance of NFScalarize.scalarize: time 0.006291/0.4185, allocations: 4.321 MB / 483.4 MB, free: 6.656 MB / 398.1 MB Notification: Performance of NFVerifyModel.verify: time 0.01033/0.4288, allocations: 4.935 MB / 488.4 MB, free: 1.695 MB / 398.1 MB Notification: Performance of NFConvertDAE.convert: time 0.02231/0.4512, allocations: 14.86 MB / 0.4914 GB, free: 2.781 MB / 414.1 MB Notification: Performance of FrontEnd - DAE generated: time 8.336e-06/0.4512, allocations: 0 / 0.4914 GB, free: 2.781 MB / 414.1 MB Notification: Performance of FrontEnd: time 2.154e-06/0.4512, allocations: 0 / 0.4914 GB, free: 2.781 MB / 414.1 MB Notification: Performance of Transformations before backend: time 0.0007309/0.4519, allocations: 0 / 0.4914 GB, free: 2.781 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.03437/0.4863, allocations: 10.94 MB / 0.5021 GB, free: 7.738 MB / 430.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.956e-05/0.4864, allocations: 8.031 kB / 0.5021 GB, free: 7.73 MB / 430.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.004111/0.4905, allocations: 1.193 MB / 0.5033 GB, free: 6.527 MB / 430.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.2631/0.7536, allocations: 24.34 MB / 0.527 GB, free: 14.15 MB / 462.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.02635/0.78, allocations: 9.365 MB / 0.5362 GB, free: 4.699 MB / 462.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0005496/0.7806, allocations: 455.7 kB / 0.5366 GB, free: 4.254 MB / 462.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.003299/0.784, allocations: 0.6051 MB / 0.5372 GB, free: 3.648 MB / 462.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.491/1.275, allocations: 16.74 MB / 0.5536 GB, free: 112 MB / 462.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0004647/1.275, allocations: 94.91 kB / 0.5536 GB, free: 112 MB / 462.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.00203/1.278, allocations: 287.5 kB / 0.5539 GB, free: 111.8 MB / 462.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.004399/1.282, allocations: 2.858 MB / 0.5567 GB, free: 110.8 MB / 462.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.02708/1.309, allocations: 13.27 MB / 0.5697 GB, free: 99.35 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.08788/1.397, allocations: 68.12 MB / 0.6362 GB, free: 30.3 MB / 462.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.01871/1.416, allocations: 7.887 MB / 0.6439 GB, free: 22.27 MB / 462.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.005407/1.421, allocations: 4.322 MB / 0.6481 GB, free: 17.94 MB / 462.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.02009/1.441, allocations: 12.06 MB / 0.6599 GB, free: 5.805 MB / 462.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 5.676e-05/1.442, allocations: 64.56 kB / 0.66 GB, free: 5.734 MB / 462.1 MB Notification: Performance of pre-optimization done (n=293): time 7.625e-06/1.442, allocations: 0 / 0.66 GB, free: 5.734 MB / 462.1 MB Notification: Performance of matching and sorting (n=359): time 0.1943/1.636, allocations: 50.24 MB / 0.709 GB, free: 3.922 MB / 0.4982 GB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0002735/1.636, allocations: 402.2 kB / 0.7094 GB, free: 3.441 MB / 0.4982 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.01692/1.653, allocations: 7.312 MB / 0.7165 GB, free: 12.26 MB / 0.5138 GB Notification: Performance of collectPreVariables (initialization): time 0.001007/1.654, allocations: 85.7 kB / 0.7166 GB, free: 12.17 MB / 0.5138 GB Notification: Performance of collectInitialEqns (initialization): time 0.006189/1.66, allocations: 5.524 MB / 0.722 GB, free: 6.867 MB / 0.5138 GB Notification: Performance of collectInitialBindings (initialization): time 0.002574/1.663, allocations: 1.372 MB / 0.7234 GB, free: 5.484 MB / 0.5138 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.004116/1.667, allocations: 1.711 MB / 0.725 GB, free: 3.758 MB / 0.5138 GB Notification: Performance of setup shared object (initialization): time 0.0001381/1.667, allocations: 301.1 kB / 0.7253 GB, free: 3.461 MB / 0.5138 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.007466/1.675, allocations: 4.124 MB / 0.7293 GB, free: 15.33 MB / 0.5294 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.01318/1.688, allocations: 8.858 MB / 0.738 GB, free: 4.141 MB / 0.5294 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.2679/1.956, allocations: 13.95 MB / 0.7516 GB, free: 165.6 MB / 0.5294 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.0001308/1.956, allocations: 47.12 kB / 0.7517 GB, free: 165.6 MB / 0.5294 GB Notification: Performance of matching and sorting (n=1106) (initialization): time 0.03516/1.991, allocations: 17.9 MB / 0.7691 GB, free: 159.8 MB / 0.5294 GB Notification: Performance of prepare postOptimizeDAE: time 0.0001152/1.991, allocations: 74.72 kB / 0.7692 GB, free: 159.8 MB / 0.5294 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0001983/1.992, allocations: 174.7 kB / 0.7694 GB, free: 159.8 MB / 0.5294 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.01705/2.009, allocations: 6.038 MB / 0.7753 GB, free: 158.7 MB / 0.5294 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.006164/2.015, allocations: 1.834 MB / 0.7771 GB, free: 158.4 MB / 0.5294 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.04008/2.055, allocations: 32.89 MB / 0.8092 GB, free: 127.9 MB / 0.5294 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.007786/2.063, allocations: 0.5417 MB / 0.8097 GB, free: 127.4 MB / 0.5294 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.001899/2.065, allocations: 488 kB / 0.8102 GB, free: 126.9 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.007325/2.072, allocations: 3.582 MB / 0.8137 GB, free: 123.5 MB / 0.5294 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.002041/2.074, allocations: 0.7112 MB / 0.8144 GB, free: 123.1 MB / 0.5294 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.02622/2.1, allocations: 12.09 MB / 0.8262 GB, free: 111 MB / 0.5294 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 7.882e-05/2.101, allocations: 43.22 kB / 0.8262 GB, free: 110.9 MB / 0.5294 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.969e-05/2.101, allocations: 20 kB / 0.8262 GB, free: 110.9 MB / 0.5294 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.499e-05/2.101, allocations: 15.94 kB / 0.8263 GB, free: 110.9 MB / 0.5294 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.04701/2.148, allocations: 25.86 MB / 0.8515 GB, free: 84.75 MB / 0.5294 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.13e-05/2.148, allocations: 4 kB / 0.8515 GB, free: 84.75 MB / 0.5294 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.002261/2.15, allocations: 467.3 kB / 0.852 GB, free: 84.29 MB / 0.5294 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.01599/2.166, allocations: 5.705 MB / 0.8575 GB, free: 78.57 MB / 0.5294 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0008913/2.167, allocations: 60 kB / 0.8576 GB, free: 78.52 MB / 0.5294 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.03853/2.206, allocations: 31.71 MB / 0.8886 GB, free: 46.6 MB / 0.5294 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.046e-05/2.206, allocations: 11.94 kB / 0.8886 GB, free: 46.59 MB / 0.5294 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.03047/2.236, allocations: 17.43 MB / 0.9056 GB, free: 29.04 MB / 0.5294 GB Notification: Performance of postOpt removeConstants (simulation): time 0.001758/2.238, allocations: 0.7339 MB / 0.9063 GB, free: 28.29 MB / 0.5294 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.002538/2.241, allocations: 67.98 kB / 0.9064 GB, free: 28.22 MB / 0.5294 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.004592/2.245, allocations: 275.6 kB / 0.9066 GB, free: 27.95 MB / 0.5294 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.001551/2.247, allocations: 258.7 kB / 0.9069 GB, free: 27.7 MB / 0.5294 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0005397/2.247, allocations: 95.81 kB / 0.907 GB, free: 27.61 MB / 0.5294 GB Notification: Performance of sorting global known variables: time 0.00915/2.256, allocations: 4.702 MB / 0.9116 GB, free: 22.94 MB / 0.5294 GB Notification: Performance of sort global known variables: time 1.072e-06/2.257, allocations: 0 / 0.9116 GB, free: 22.94 MB / 0.5294 GB Notification: Performance of remove unused functions: time 0.01111/2.268, allocations: 2.042 MB / 0.9136 GB, free: 20.91 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.03311/2.301, allocations: 18.14 MB / 0.9313 GB, free: 2.594 MB / 0.5294 GB Notification: Performance of simCode: created initialization part: time 0.293/2.594, allocations: 10.95 MB / 0.942 GB, free: 191 MB / 0.5451 GB Notification: Performance of simCode: created event and clocks part: time 1.642e-05/2.594, allocations: 6.5 kB / 0.942 GB, free: 191 MB / 0.5451 GB Notification: Performance of simCode: created simulation system equations: time 0.01132/2.605, allocations: 4.963 MB / 0.9468 GB, free: 190.6 MB / 0.5451 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.01092/2.616, allocations: 1.109 MB / 0.9479 GB, free: 190.5 MB / 0.5451 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.18/2.796, allocations: 95.1 MB / 1.041 GB, free: 107.5 MB / 0.5451 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.01087/2.807, allocations: 5.732 MB / 1.046 GB, free: 101.7 MB / 0.5451 GB Notification: Performance of simCode: alias equations: time 0.007401/2.815, allocations: 2.709 MB / 1.049 GB, free: 98.98 MB / 0.5451 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.006397/2.821, allocations: 3.881 MB / 1.053 GB, free: 95.1 MB / 0.5451 GB Notification: Performance of SimCode: time 1.092e-06/2.821, allocations: 3.938 kB / 1.053 GB, free: 95.1 MB / 0.5451 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.4956/3.317, allocations: 164.4 MB / 1.213 GB, free: 130.7 MB / 0.5451 GB Notification: Performance of buildModelFMU: Generate platform static: time 41.91/45.23, allocations: 12.7 kB / 1.213 GB, free: 130.7 MB / 0.5451 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.1.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