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.001328/0.001328, allocations: 122.2 kB / 17.79 MB, free: 5.266 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001534/0.001534, allocations: 206 kB / 18.74 MB, free: 4.324 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.408/1.408, allocations: 227.4 MB / 247 MB, free: 10.47 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001912/0.001912, allocations: 59.89 kB / 358.3 MB, free: 13.32 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2596/0.2615, allocations: 50.55 MB / 408.9 MB, free: 1.453 MB / 318.1 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.MultiBody.Examples.Loops.Engine1b): time 0.02248/0.284, allocations: 20.44 MB / 429.3 MB, free: 12.92 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.0141/0.2982, allocations: 6.179 MB / 435.5 MB, free: 6.719 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.003615/0.3018, allocations: 163.4 kB / 435.6 MB, free: 6.559 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.01189/0.3137, allocations: 6.328 MB / 442 MB, free: 216 kB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.00899/0.3228, allocations: 3.404 MB / 445.4 MB, free: 12.8 MB / 366.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.003969/0.3268, allocations: 1.658 MB / 447 MB, free: 11.14 MB / 366.1 MB Notification: Performance of NFFlatten.flatten: time 0.01899/0.3458, allocations: 12.94 MB / 460 MB, free: 14.18 MB / 382.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.01015/0.356, allocations: 8.06 MB / 468 MB, free: 6.027 MB / 382.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.006531/0.3626, allocations: 3.739 MB / 471.8 MB, free: 2.277 MB / 382.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.007621/0.3702, allocations: 4.943 MB / 476.7 MB, free: 13.32 MB / 398.1 MB Notification: Performance of NFPackage.collectConstants: time 0.002348/0.3726, allocations: 0.7422 MB / 477.5 MB, free: 12.58 MB / 398.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.004311/0.3769, allocations: 1.69 MB / 479.2 MB, free: 10.89 MB / 398.1 MB Notification: Performance of NFScalarize.scalarize: time 0.005221/0.3822, allocations: 4.325 MB / 483.5 MB, free: 6.551 MB / 398.1 MB Notification: Performance of NFVerifyModel.verify: time 0.007778/0.39, allocations: 4.935 MB / 488.4 MB, free: 1.59 MB / 398.1 MB Notification: Performance of NFConvertDAE.convert: time 0.01886/0.4089, allocations: 14.86 MB / 0.4915 GB, free: 2.672 MB / 414.1 MB Notification: Performance of FrontEnd - DAE generated: time 1.07e-05/0.4089, allocations: 7.984 kB / 0.4915 GB, free: 2.664 MB / 414.1 MB Notification: Performance of FrontEnd: time 2.295e-06/0.409, allocations: 0 / 0.4915 GB, free: 2.664 MB / 414.1 MB Notification: Performance of Transformations before backend: time 0.0004645/0.4094, allocations: 0 / 0.4915 GB, free: 2.664 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.03137/0.4408, allocations: 10.93 MB / 0.5022 GB, free: 7.629 MB / 430.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.992e-05/0.4409, allocations: 12.03 kB / 0.5022 GB, free: 7.617 MB / 430.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.003171/0.444, allocations: 1.193 MB / 0.5033 GB, free: 6.414 MB / 430.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.2994/0.7435, allocations: 24.34 MB / 0.5271 GB, free: 14.03 MB / 462.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0219/0.7654, allocations: 9.354 MB / 0.5362 GB, free: 4.594 MB / 462.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0004269/0.7659, allocations: 459.7 kB / 0.5367 GB, free: 4.145 MB / 462.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.002074/0.768, allocations: 0.6129 MB / 0.5373 GB, free: 3.531 MB / 462.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.4136/1.182, allocations: 16.74 MB / 0.5536 GB, free: 111.2 MB / 462.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.000221/1.182, allocations: 98.03 kB / 0.5537 GB, free: 111.2 MB / 462.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0006248/1.182, allocations: 276.2 kB / 0.554 GB, free: 111 MB / 462.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.003493/1.186, allocations: 2.864 MB / 0.5568 GB, free: 110.4 MB / 462.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.02267/1.209, allocations: 13.27 MB / 0.5697 GB, free: 98.93 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.07148/1.28, allocations: 68.12 MB / 0.6363 GB, free: 29.89 MB / 462.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.01843/1.299, allocations: 7.884 MB / 0.644 GB, free: 21.85 MB / 462.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.004813/1.304, allocations: 4.326 MB / 0.6482 GB, free: 17.52 MB / 462.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.01923/1.323, allocations: 12.06 MB / 0.66 GB, free: 5.391 MB / 462.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 6.93e-05/1.323, allocations: 68.56 kB / 0.66 GB, free: 5.316 MB / 462.1 MB Notification: Performance of pre-optimization done (n=293): time 8.576e-06/1.323, allocations: 0 / 0.66 GB, free: 5.316 MB / 462.1 MB Notification: Performance of matching and sorting (n=359): time 0.1893/1.512, allocations: 50.23 MB / 0.7091 GB, free: 3.504 MB / 0.4982 GB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0002499/1.513, allocations: 410.2 kB / 0.7095 GB, free: 3.016 MB / 0.4982 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.01174/1.524, allocations: 7.314 MB / 0.7166 GB, free: 11.83 MB / 0.5138 GB Notification: Performance of collectPreVariables (initialization): time 0.000893/1.525, allocations: 77.7 kB / 0.7167 GB, free: 11.75 MB / 0.5138 GB Notification: Performance of collectInitialEqns (initialization): time 0.004766/1.53, allocations: 5.522 MB / 0.7221 GB, free: 6.449 MB / 0.5138 GB Notification: Performance of collectInitialBindings (initialization): time 0.002018/1.532, allocations: 1.372 MB / 0.7234 GB, free: 5.066 MB / 0.5138 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.002879/1.535, allocations: 1.715 MB / 0.7251 GB, free: 3.336 MB / 0.5138 GB Notification: Performance of setup shared object (initialization): time 0.0001284/1.535, allocations: 301.1 kB / 0.7254 GB, free: 3.039 MB / 0.5138 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.006317/1.541, allocations: 4.128 MB / 0.7294 GB, free: 14.9 MB / 0.5294 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.01057/1.552, allocations: 8.858 MB / 0.7381 GB, free: 3.711 MB / 0.5294 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.2487/1.801, allocations: 13.95 MB / 0.7517 GB, free: 165.2 MB / 0.5294 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.000118/1.801, allocations: 47.19 kB / 0.7517 GB, free: 165.2 MB / 0.5294 GB Notification: Performance of matching and sorting (n=1106) (initialization): time 0.035/1.836, allocations: 17.9 MB / 0.7692 GB, free: 159.4 MB / 0.5294 GB Notification: Performance of prepare postOptimizeDAE: time 8.766e-05/1.836, allocations: 74.53 kB / 0.7693 GB, free: 159.4 MB / 0.5294 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.000154/1.836, allocations: 167.7 kB / 0.7694 GB, free: 159.4 MB / 0.5294 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.01712/1.853, allocations: 6.044 MB / 0.7754 GB, free: 158.3 MB / 0.5294 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.005594/1.859, allocations: 1.823 MB / 0.7771 GB, free: 158.1 MB / 0.5294 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.03651/1.896, allocations: 32.9 MB / 0.8093 GB, free: 127.4 MB / 0.5294 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.008695/1.904, allocations: 0.5358 MB / 0.8098 GB, free: 126.9 MB / 0.5294 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.001358/1.906, allocations: 495.8 kB / 0.8103 GB, free: 126.4 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.004799/1.91, allocations: 3.581 MB / 0.8138 GB, free: 122.9 MB / 0.5294 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.001266/1.912, allocations: 0.709 MB / 0.8144 GB, free: 122.6 MB / 0.5294 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.02219/1.934, allocations: 12.08 MB / 0.8262 GB, free: 110.5 MB / 0.5294 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.668e-05/1.934, allocations: 36 kB / 0.8263 GB, free: 110.4 MB / 0.5294 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.768e-05/1.934, allocations: 20 kB / 0.8263 GB, free: 110.4 MB / 0.5294 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.551e-05/1.934, allocations: 19.94 kB / 0.8263 GB, free: 110.4 MB / 0.5294 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.03961/1.974, allocations: 25.86 MB / 0.8516 GB, free: 84.24 MB / 0.5294 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.869e-05/1.974, allocations: 4.688 kB / 0.8516 GB, free: 84.24 MB / 0.5294 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.002116/1.976, allocations: 471.3 kB / 0.852 GB, free: 83.78 MB / 0.5294 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.01625/1.992, allocations: 5.702 MB / 0.8576 GB, free: 78.07 MB / 0.5294 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0007268/1.993, allocations: 60 kB / 0.8576 GB, free: 78.01 MB / 0.5294 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.03465/2.028, allocations: 31.72 MB / 0.8886 GB, free: 46.08 MB / 0.5294 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 6.483e-06/2.028, allocations: 7.938 kB / 0.8886 GB, free: 46.07 MB / 0.5294 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.02924/2.057, allocations: 17.43 MB / 0.9057 GB, free: 28.52 MB / 0.5294 GB Notification: Performance of postOpt removeConstants (simulation): time 0.003027/2.06, allocations: 0.7332 MB / 0.9064 GB, free: 27.77 MB / 0.5294 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.002903/2.063, allocations: 67.98 kB / 0.9064 GB, free: 27.7 MB / 0.5294 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.006134/2.069, allocations: 275.8 kB / 0.9067 GB, free: 27.43 MB / 0.5294 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.001866/2.071, allocations: 254.8 kB / 0.9069 GB, free: 27.18 MB / 0.5294 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0006306/2.072, allocations: 103.7 kB / 0.907 GB, free: 27.09 MB / 0.5294 GB Notification: Performance of sorting global known variables: time 0.007682/2.079, allocations: 4.702 MB / 0.9116 GB, free: 22.42 MB / 0.5294 GB Notification: Performance of sort global known variables: time 3.61e-07/2.079, allocations: 4 kB / 0.9116 GB, free: 22.42 MB / 0.5294 GB Notification: Performance of remove unused functions: time 0.0086/2.088, allocations: 2.038 MB / 0.9136 GB, free: 20.39 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.02972/2.118, allocations: 18.14 MB / 0.9313 GB, free: 2.07 MB / 0.5294 GB Notification: Performance of simCode: created initialization part: time 0.246/2.364, allocations: 10.94 MB / 0.942 GB, free: 191.1 MB / 0.545 GB Notification: Performance of simCode: created event and clocks part: time 1.513e-05/2.364, allocations: 1.594 kB / 0.942 GB, free: 191.1 MB / 0.545 GB Notification: Performance of simCode: created simulation system equations: time 0.008831/2.373, allocations: 4.964 MB / 0.9469 GB, free: 190.6 MB / 0.545 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.006367/2.379, allocations: 1.115 MB / 0.948 GB, free: 190.5 MB / 0.545 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.143/2.522, allocations: 95.1 MB / 1.041 GB, free: 107.2 MB / 0.545 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.006212/2.528, allocations: 5.724 MB / 1.046 GB, free: 101.4 MB / 0.545 GB Notification: Performance of simCode: alias equations: time 0.005674/2.534, allocations: 2.717 MB / 1.049 GB, free: 98.71 MB / 0.545 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0042/2.538, allocations: 3.873 MB / 1.053 GB, free: 94.84 MB / 0.545 GB Notification: Performance of SimCode: time 9.12e-07/2.538, allocations: 0 / 1.053 GB, free: 94.84 MB / 0.545 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.45/2.988, allocations: 164.4 MB / 1.213 GB, free: 130.4 MB / 0.545 GB Notification: Performance of buildModelFMU: Generate platform static: time 39.1/42.08, allocations: 8.797 kB / 1.213 GB, free: 130.4 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 & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=Modelica_trunk_Modelica.Mechanics.MultiBody.Examples.Loops.Engine1b_res.mat --tempDir=temp_Modelica_trunk_Modelica_Mechanics_MultiBody_Examples_Loops_Engine1b_fmu --startTime=0 --stopTime=0.5 --timeout=50 --tolerance=1e-06 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.mat","/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