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.001728/0.001728, allocations: 114.2 kB / 17.06 MB, free: 6.016 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.002027/0.002027, allocations: 189.4 kB / 18 MB, free: 5.098 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.383/1.383, allocations: 222.9 MB / 241.7 MB, free: 15.2 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001448/0.001448, allocations: 47.92 kB / 350.8 MB, free: 3.719 MB / 286.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2632/0.2647, allocations: 49.44 MB / 400.3 MB, free: 8.418 MB / 318.1 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.MultiBody.Examples.Loops.Engine1b): time 0.02227/0.287, allocations: 20.52 MB / 420.8 MB, free: 4.191 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.01408/0.3011, allocations: 6.183 MB / 427 MB, free: 13.99 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.004296/0.3055, allocations: 175.4 kB / 427.2 MB, free: 13.82 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.01227/0.3177, allocations: 6.343 MB / 433.5 MB, free: 7.457 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.009176/0.327, allocations: 3.438 MB / 436.9 MB, free: 4.008 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.004195/0.3313, allocations: 1.662 MB / 438.6 MB, free: 2.344 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.0179/0.3492, allocations: 12.66 MB / 451.3 MB, free: 5.66 MB / 366.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0104/0.3596, allocations: 8.053 MB / 459.3 MB, free: 13.52 MB / 382.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.007064/0.3667, allocations: 3.747 MB / 463.1 MB, free: 9.762 MB / 382.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.009012/0.3758, allocations: 4.955 MB / 468 MB, free: 4.793 MB / 382.1 MB Notification: Performance of NFPackage.collectConstants: time 0.002681/0.3785, allocations: 0.7461 MB / 468.8 MB, free: 4.047 MB / 382.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.005002/0.3835, allocations: 1.717 MB / 470.5 MB, free: 2.328 MB / 382.1 MB Notification: Performance of NFScalarize.scalarize: time 0.006317/0.3899, allocations: 4.345 MB / 474.8 MB, free: 13.97 MB / 398.1 MB Notification: Performance of NFVerifyModel.verify: time 0.00903/0.3989, allocations: 4.958 MB / 479.8 MB, free: 8.988 MB / 398.1 MB Notification: Performance of NFConvertDAE.convert: time 0.02311/0.4221, allocations: 14.92 MB / 494.7 MB, free: 10.01 MB / 414.1 MB Notification: Performance of FrontEnd - DAE generated: time 9.608e-06/0.4222, allocations: 4 kB / 494.7 MB, free: 10.01 MB / 414.1 MB Notification: Performance of FrontEnd: time 2.655e-06/0.4222, allocations: 0 / 494.7 MB, free: 10.01 MB / 414.1 MB Notification: Performance of Transformations before backend: time 0.0006043/0.4228, allocations: 0 / 494.7 MB, free: 10.01 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.0335/0.4563, allocations: 10.96 MB / 0.4938 GB, free: 14.94 MB / 430.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.977e-05/0.4564, allocations: 15.89 kB / 0.4938 GB, free: 14.93 MB / 430.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.003512/0.4599, allocations: 1.19 MB / 0.495 GB, free: 13.73 MB / 430.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.3077/0.7676, allocations: 24.34 MB / 0.5188 GB, free: 5.352 MB / 446.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.02297/0.7906, allocations: 9.997 MB / 0.5285 GB, free: 11.27 MB / 462.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0004364/0.7911, allocations: 447.8 kB / 0.5289 GB, free: 10.83 MB / 462.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.002121/0.7932, allocations: 0.6206 MB / 0.5295 GB, free: 10.21 MB / 462.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.415/1.208, allocations: 16.74 MB / 0.5459 GB, free: 119.3 MB / 462.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0003692/1.209, allocations: 101.8 kB / 0.546 GB, free: 119.3 MB / 462.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.00131/1.21, allocations: 279 kB / 0.5463 GB, free: 119.1 MB / 462.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.004072/1.214, allocations: 2.859 MB / 0.549 GB, free: 118.6 MB / 462.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.02525/1.239, 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.07034/1.31, allocations: 68.15 MB / 0.6286 GB, free: 43.13 MB / 462.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.01771/1.327, allocations: 7.91 MB / 0.6363 GB, free: 35.07 MB / 462.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.004387/1.332, allocations: 4.334 MB / 0.6405 GB, free: 30.73 MB / 462.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0152/1.347, allocations: 12.06 MB / 0.6523 GB, free: 18.61 MB / 462.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.16e-05/1.347, allocations: 68.5 kB / 0.6524 GB, free: 18.53 MB / 462.1 MB Notification: Performance of pre-optimization done (n=294): time 5.911e-06/1.347, allocations: 0 / 0.6524 GB, free: 18.53 MB / 462.1 MB Notification: Performance of matching and sorting (n=360): time 0.1887/1.536, allocations: 50.34 MB / 0.7015 GB, free: 0.6094 MB / 494.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0002569/1.536, allocations: 402.2 kB / 0.7019 GB, free: 132 kB / 494.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.01296/1.549, allocations: 7.316 MB / 0.7091 GB, free: 8.945 MB / 0.4982 GB Notification: Performance of collectPreVariables (initialization): time 0.001028/1.55, allocations: 85.7 kB / 0.7091 GB, free: 8.855 MB / 0.4982 GB Notification: Performance of collectInitialEqns (initialization): time 0.005178/1.555, allocations: 5.528 MB / 0.7145 GB, free: 3.566 MB / 0.4982 GB Notification: Performance of collectInitialBindings (initialization): time 0.002181/1.558, allocations: 1.38 MB / 0.7159 GB, free: 2.176 MB / 0.4982 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0029/1.561, allocations: 1.707 MB / 0.7175 GB, free: 464 kB / 0.4982 GB Notification: Performance of setup shared object (initialization): time 0.00014/1.561, allocations: 305.1 kB / 0.7178 GB, free: 156 kB / 0.4982 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.006827/1.568, allocations: 4.124 MB / 0.7219 GB, free: 12.02 MB / 0.5138 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.01227/1.58, allocations: 8.862 MB / 0.7305 GB, free: 0.8281 MB / 0.5138 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.2443/1.824, allocations: 13.96 MB / 0.7441 GB, free: 156.1 MB / 0.5138 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.0001224/1.824, allocations: 49.59 kB / 0.7442 GB, free: 156.1 MB / 0.5138 GB Notification: Performance of matching and sorting (n=1107) (initialization): time 0.03377/1.858, allocations: 17.9 MB / 0.7617 GB, free: 150.3 MB / 0.5138 GB Notification: Performance of prepare postOptimizeDAE: time 9.54e-05/1.858, allocations: 77.59 kB / 0.7618 GB, free: 150.3 MB / 0.5138 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.000166/1.858, allocations: 166.5 kB / 0.7619 GB, free: 150.3 MB / 0.5138 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.01743/1.876, allocations: 6.065 MB / 0.7678 GB, free: 149.1 MB / 0.5138 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.005432/1.881, allocations: 1.827 MB / 0.7696 GB, free: 148 MB / 0.5138 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.03888/1.92, allocations: 32.92 MB / 0.8018 GB, free: 115.1 MB / 0.5138 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.007767/1.928, allocations: 0.5459 MB / 0.8023 GB, free: 114.6 MB / 0.5138 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.001604/1.93, allocations: 484 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.006514/1.936, allocations: 3.577 MB / 0.8063 GB, free: 110.6 MB / 0.5138 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.001675/1.938, allocations: 0.7153 MB / 0.807 GB, free: 110.3 MB / 0.5138 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0251/1.963, allocations: 12.09 MB / 0.8188 GB, free: 98.15 MB / 0.5138 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.312e-05/1.963, allocations: 40 kB / 0.8188 GB, free: 98.11 MB / 0.5138 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.931e-05/1.963, allocations: 20 kB / 0.8188 GB, free: 98.09 MB / 0.5138 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.76e-05/1.963, allocations: 19.94 kB / 0.8188 GB, free: 98.07 MB / 0.5138 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.04818/2.011, allocations: 25.88 MB / 0.8441 GB, free: 71.9 MB / 0.5138 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.925e-05/2.012, allocations: 8.094 kB / 0.8441 GB, free: 71.89 MB / 0.5138 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.002263/2.014, allocations: 475.2 kB / 0.8446 GB, free: 71.43 MB / 0.5138 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.01695/2.031, allocations: 5.699 MB / 0.8501 GB, free: 65.71 MB / 0.5138 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0008668/2.032, allocations: 64 kB / 0.8502 GB, free: 65.65 MB / 0.5138 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.03853/2.07, allocations: 31.72 MB / 0.8812 GB, free: 33.73 MB / 0.5138 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 9.117e-06/2.07, allocations: 11.94 kB / 0.8812 GB, free: 33.72 MB / 0.5138 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.03028/2.101, allocations: 17.45 MB / 0.8982 GB, free: 16.15 MB / 0.5138 GB Notification: Performance of postOpt removeConstants (simulation): time 0.003399/2.104, allocations: 1.391 MB / 0.8996 GB, free: 14.74 MB / 0.5138 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.001867/2.106, allocations: 64 kB / 0.8996 GB, free: 14.68 MB / 0.5138 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.004717/2.111, allocations: 283.7 kB / 0.8999 GB, free: 14.4 MB / 0.5138 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.001332/2.112, allocations: 246.8 kB / 0.9001 GB, free: 14.16 MB / 0.5138 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0005576/2.113, allocations: 99.98 kB / 0.9002 GB, free: 14.06 MB / 0.5138 GB Notification: Performance of sorting global known variables: time 0.008305/2.121, allocations: 4.71 MB / 0.9048 GB, free: 9.391 MB / 0.5138 GB Notification: Performance of sort global known variables: time 7.81e-07/2.121, allocations: 0 / 0.9048 GB, free: 9.391 MB / 0.5138 GB Notification: Performance of remove unused functions: time 0.009465/2.13, allocations: 2.053 MB / 0.9068 GB, free: 7.344 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.03745/2.168, allocations: 18.16 MB / 0.9246 GB, free: 5 MB / 0.5294 GB Notification: Performance of simCode: created initialization part: time 0.2205/2.388, allocations: 10.97 MB / 0.9353 GB, free: 184.9 MB / 0.5294 GB Notification: Performance of simCode: created event and clocks part: time 1.399e-05/2.388, allocations: 4.75 kB / 0.9353 GB, free: 184.9 MB / 0.5294 GB Notification: Performance of simCode: created simulation system equations: time 0.00851/2.397, allocations: 4.979 MB / 0.9402 GB, free: 183 MB / 0.5294 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.01002/2.407, allocations: 1.101 MB / 0.9412 GB, free: 182.6 MB / 0.5294 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.1467/2.554, allocations: 95.19 MB / 1.034 GB, free: 90.31 MB / 0.5294 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.008165/2.562, allocations: 5.732 MB / 1.04 GB, free: 84.54 MB / 0.5294 GB Notification: Performance of simCode: alias equations: time 0.006306/2.568, allocations: 2.713 MB / 1.042 GB, free: 81.82 MB / 0.5294 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.005007/2.573, allocations: 3.897 MB / 1.046 GB, free: 77.92 MB / 0.5294 GB Notification: Performance of SimCode: time 1.052e-06/2.573, allocations: 0 / 1.046 GB, free: 77.92 MB / 0.5294 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.435/3.008, allocations: 164.7 MB / 1.207 GB, free: 108.5 MB / 0.5294 GB Notification: Performance of buildModelFMU: Generate platform static: time 40.77/43.78, allocations: 1.625 kB / 1.207 GB, free: 108.5 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 & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=Modelica_4.0.0_Modelica.Mechanics.MultiBody.Examples.Loops.Engine1b_res.mat --tempDir=temp_Modelica_4_0_0_Modelica_Mechanics_MultiBody_Examples_Loops_Engine1b_fmu --startTime=0 --stopTime=0.5 --timeout=50 --tolerance=1e-06 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.mat","/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