Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_4.0.0_Modelica.Mechanics.MultiBody.Examples.Loops.Engine1a.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.Engine1a,fileNamePrefix="Modelica_4_0_0_Modelica_Mechanics_MultiBody_Examples_Loops_Engine1a",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Mechanics.MultiBody.Examples.Loops.Engine1a,fileNamePrefix="Modelica_4_0_0_Modelica_Mechanics_MultiBody_Examples_Loops_Engine1a",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.001269/0.001269, allocations: 112.6 kB / 16.51 MB, free: 6.707 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.001244/0.001244, allocations: 190.5 kB / 17.43 MB, free: 6.066 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.238/1.238, allocations: 222.9 MB / 241.1 MB, free: 13.78 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.00101/0.00101, allocations: 47.92 kB / 300.1 MB, free: 6 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09162/0.09265, allocations: 49.44 MB / 349.5 MB, free: 4.539 MB / 286.1 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.MultiBody.Examples.Loops.Engine1a): time 0.2638/0.3565, allocations: 103.3 MB / 452.8 MB, free: 13.3 MB / 366.1 MB Notification: Performance of NFInst.instExpressions: time 0.04717/0.4037, allocations: 19.94 MB / 472.8 MB, free: 9.305 MB / 382.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.02196/0.4257, allocations: 474.8 kB / 473.2 MB, free: 8.84 MB / 382.1 MB Notification: Performance of NFTyping.typeComponents: time 0.01049/0.4363, allocations: 5.864 MB / 479.1 MB, free: 2.961 MB / 382.1 MB Notification: Performance of NFTyping.typeBindings: time 0.007519/0.4438, allocations: 3.166 MB / 482.3 MB, free: 15.79 MB / 398.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.002675/0.4465, allocations: 1.455 MB / 483.7 MB, free: 14.33 MB / 398.1 MB Notification: Performance of NFFlatten.flatten: time 0.01941/0.4659, allocations: 17.31 MB / 0.4893 GB, free: 12.99 MB / 414.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.007965/0.4739, allocations: 7.489 MB / 0.4966 GB, free: 5.426 MB / 414.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.005807/0.4798, allocations: 3.192 MB / 0.4997 GB, free: 2.223 MB / 414.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.006559/0.4863, allocations: 5.063 MB / 0.5047 GB, free: 13.14 MB / 430.1 MB Notification: Performance of NFPackage.collectConstants: time 0.001215/0.4876, allocations: 484 kB / 0.5051 GB, free: 12.67 MB / 430.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.003124/0.4907, allocations: 1.506 MB / 0.5066 GB, free: 11.16 MB / 430.1 MB Notification: Performance of NFScalarize.scalarize: time 0.003554/0.4943, allocations: 3.997 MB / 0.5105 GB, free: 7.156 MB / 430.1 MB Notification: Performance of NFVerifyModel.verify: time 0.004966/0.4992, allocations: 4.447 MB / 0.5148 GB, free: 2.684 MB / 430.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0131/0.5124, allocations: 13.82 MB / 0.5283 GB, free: 4.824 MB / 446.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.749e-06/0.5124, allocations: 4 kB / 0.5283 GB, free: 4.82 MB / 446.1 MB Notification: Performance of FrontEnd: time 2.735e-06/0.5124, allocations: 4 kB / 0.5283 GB, free: 4.816 MB / 446.1 MB Notification: Performance of Transformations before backend: time 0.0004078/0.5128, allocations: 3.938 kB / 0.5283 GB, free: 4.812 MB / 446.1 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 2386 * Number of variables: 2386 Notification: Performance of Generate backend data structure: time 0.3542/0.867, allocations: 10.31 MB / 0.5384 GB, free: 153.1 MB / 446.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.834e-05/0.8671, allocations: 10.66 kB / 0.5384 GB, free: 153.1 MB / 446.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.003448/0.8705, allocations: 1.145 MB / 0.5395 GB, free: 152.6 MB / 446.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.2532/1.124, allocations: 24.25 MB / 0.5632 GB, free: 137.8 MB / 446.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.01859/1.142, allocations: 9.578 MB / 0.5726 GB, free: 128.3 MB / 446.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0003077/1.143, allocations: 427.5 kB / 0.573 GB, free: 128 MB / 446.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.001654/1.144, allocations: 0.5825 MB / 0.5736 GB, free: 127.4 MB / 446.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.02414/1.168, allocations: 16.18 MB / 0.5894 GB, free: 110.2 MB / 446.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0002604/1.169, allocations: 107 kB / 0.5895 GB, free: 110.1 MB / 446.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0007049/1.169, allocations: 263.8 kB / 0.5897 GB, free: 109.8 MB / 446.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.003287/1.173, allocations: 2.764 MB / 0.5924 GB, free: 107 MB / 446.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.02187/1.195, allocations: 12.85 MB / 0.605 GB, free: 94.17 MB / 446.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.06852/1.263, allocations: 66.43 MB / 0.6698 GB, free: 25.7 MB / 446.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.017/1.28, allocations: 7.606 MB / 0.6773 GB, free: 17.94 MB / 446.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.004055/1.284, allocations: 4.209 MB / 0.6814 GB, free: 13.72 MB / 446.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.01448/1.299, allocations: 11.69 MB / 0.6928 GB, free: 1.836 MB / 446.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.28e-05/1.299, allocations: 60.56 kB / 0.6928 GB, free: 1.77 MB / 446.1 MB Notification: Performance of pre-optimization done (n=280): time 4.629e-06/1.299, allocations: 0 / 0.6928 GB, free: 1.77 MB / 446.1 MB Notification: Performance of matching and sorting (n=339): time 0.3543/1.653, allocations: 47.37 MB / 0.7391 GB, free: 149.4 MB / 462.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001274/1.653, allocations: 397.2 kB / 0.7395 GB, free: 148.9 MB / 462.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.008785/1.662, allocations: 7.156 MB / 0.7465 GB, free: 145.3 MB / 462.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0005642/1.663, allocations: 81.64 kB / 0.7465 GB, free: 145.2 MB / 462.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.002061/1.665, allocations: 5.177 MB / 0.7516 GB, free: 140.1 MB / 462.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0008968/1.666, allocations: 1.242 MB / 0.7528 GB, free: 138.8 MB / 462.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.001769/1.668, allocations: 1.639 MB / 0.7544 GB, free: 137.2 MB / 462.1 MB Notification: Performance of setup shared object (initialization): time 3.765e-05/1.668, allocations: 304.9 kB / 0.7547 GB, free: 136.9 MB / 462.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.004214/1.672, allocations: 3.963 MB / 0.7586 GB, free: 132.9 MB / 462.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.005612/1.677, allocations: 8.585 MB / 0.767 GB, free: 122.2 MB / 462.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.01106/1.688, allocations: 13.48 MB / 0.7801 GB, free: 106.4 MB / 462.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 6.38e-05/1.689, allocations: 48 kB / 0.7802 GB, free: 106.4 MB / 462.1 MB Notification: Performance of matching and sorting (n=1070) (initialization): time 0.02787/1.716, allocations: 17.18 MB / 0.7969 GB, free: 89.13 MB / 462.1 MB Notification: Performance of prepare postOptimizeDAE: time 7.841e-05/1.717, allocations: 72 kB / 0.797 GB, free: 89.06 MB / 462.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0001185/1.717, allocations: 162.9 kB / 0.7972 GB, free: 88.91 MB / 462.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.01512/1.732, allocations: 5.777 MB / 0.8028 GB, free: 83.12 MB / 462.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.00507/1.737, allocations: 1.755 MB / 0.8045 GB, free: 81.36 MB / 462.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.03294/1.77, allocations: 29.66 MB / 0.8335 GB, free: 51.31 MB / 462.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.007198/1.777, allocations: 0.5247 MB / 0.834 GB, free: 50.79 MB / 462.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.001067/1.778, allocations: 471.9 kB / 0.8345 GB, free: 50.33 MB / 462.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 727 * Number of states: 0 () * Number of discrete variables: 66 (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 (934): * Single equations (assignments): 928 * 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,93,51.6%), (2,6,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 1 system {(2,4)} Notification: Performance of prepare postOptimizeDAE: time 0.004626/1.783, allocations: 3.462 MB / 0.8378 GB, free: 46.86 MB / 462.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.001152/1.784, allocations: 0.6557 MB / 0.8385 GB, free: 46.19 MB / 462.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.02063/1.805, allocations: 11.48 MB / 0.8497 GB, free: 34.65 MB / 462.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 7.445e-05/1.805, allocations: 39.94 kB / 0.8497 GB, free: 34.61 MB / 462.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.479e-05/1.805, allocations: 20 kB / 0.8497 GB, free: 34.59 MB / 462.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.311e-05/1.805, allocations: 15.94 kB / 0.8498 GB, free: 34.57 MB / 462.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.2168/2.022, allocations: 24.86 MB / 0.874 GB, free: 137.7 MB / 462.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.584e-05/2.022, allocations: 6.375 kB / 0.874 GB, free: 137.7 MB / 462.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.002242/2.024, allocations: 418.4 kB / 0.8744 GB, free: 137.7 MB / 462.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.01706/2.041, allocations: 5.401 MB / 0.8797 GB, free: 137.7 MB / 462.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0006138/2.042, allocations: 60.45 kB / 0.8798 GB, free: 137.7 MB / 462.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.03461/2.076, allocations: 28.41 MB / 0.9075 GB, free: 126.2 MB / 462.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 8.666e-06/2.076, allocations: 14.95 kB / 0.9075 GB, free: 126.2 MB / 462.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.02555/2.102, allocations: 16.48 MB / 0.9236 GB, free: 119.2 MB / 462.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.00158/2.104, allocations: 0.6799 MB / 0.9243 GB, free: 119 MB / 462.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.000877/2.104, allocations: 67.17 kB / 0.9244 GB, free: 118.9 MB / 462.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.002671/2.107, allocations: 257.4 kB / 0.9246 GB, free: 118.7 MB / 462.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0007687/2.108, allocations: 246.3 kB / 0.9248 GB, free: 118.4 MB / 462.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0002423/2.108, allocations: 89.52 kB / 0.9249 GB, free: 118.3 MB / 462.1 MB Notification: Performance of sorting global known variables: time 0.005062/2.113, allocations: 4.62 MB / 0.9294 GB, free: 113.8 MB / 462.1 MB Notification: Performance of sort global known variables: time 1.11e-07/2.113, allocations: 0 / 0.9294 GB, free: 113.8 MB / 462.1 MB Notification: Performance of remove unused functions: time 0.007627/2.121, allocations: 1.968 MB / 0.9314 GB, free: 111.8 MB / 462.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 28 * 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 (214): * Single equations (assignments): 208 * 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,87,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.02474/2.146, allocations: 17.19 MB / 0.9481 GB, free: 94.83 MB / 462.1 MB Notification: Performance of simCode: created initialization part: time 0.01312/2.159, allocations: 10.48 MB / 0.9584 GB, free: 84.41 MB / 462.1 MB Notification: Performance of simCode: created event and clocks part: time 1.046e-05/2.159, allocations: 4 kB / 0.9584 GB, free: 84.4 MB / 462.1 MB Notification: Performance of simCode: created simulation system equations: time 0.006084/2.165, allocations: 4.688 MB / 0.963 GB, free: 79.71 MB / 462.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.006125/2.171, allocations: 1.012 MB / 0.9639 GB, free: 78.72 MB / 462.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.3796/2.551, allocations: 117.3 MB / 1.079 GB, free: 129.9 MB / 478.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.005988/2.557, allocations: 5.519 MB / 1.084 GB, free: 128.2 MB / 478.1 MB Notification: Performance of simCode: alias equations: time 0.006233/2.563, allocations: 2.622 MB / 1.086 GB, free: 128.1 MB / 478.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.00412/2.567, allocations: 3.743 MB / 1.09 GB, free: 124.9 MB / 478.1 MB Notification: Performance of SimCode: time 7.91e-07/2.567, allocations: 0 / 1.09 GB, free: 124.9 MB / 478.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.5213/3.088, allocations: 158.5 MB / 1.245 GB, free: 136.5 MB / 478.1 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001511/3.089, allocations: 243.2 kB / 1.245 GB, free: 136.2 MB / 478.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 5.71/8.799, allocations: 4 kB / 1.245 GB, free: 136.2 MB / 478.1 MB (rm -f Modelica_4.0.0_Modelica.Mechanics.MultiBody.Examples.Loops.Engine1a.pipe ; mkfifo Modelica_4.0.0_Modelica.Mechanics.MultiBody.Examples.Loops.Engine1a.pipe ; head -c 1048576 < Modelica_4.0.0_Modelica.Mechanics.MultiBody.Examples.Loops.Engine1a.pipe >> ../files/Modelica_4.0.0_Modelica.Mechanics.MultiBody.Examples.Loops.Engine1a.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=Modelica_4.0.0_Modelica.Mechanics.MultiBody.Examples.Loops.Engine1a_res.mat --tempDir=temp_Modelica_4_0_0_Modelica_Mechanics_MultiBody_Examples_Loops_Engine1a_fmu --startTime=0 --stopTime=5 --timeout=50 --tolerance=1e-06 Modelica_4_0_0_Modelica_Mechanics_MultiBody_Examples_Loops_Engine1a.fmu > Modelica_4.0.0_Modelica.Mechanics.MultiBody.Examples.Loops.Engine1a.pipe 2>&1) diffSimulationResults("Modelica_4.0.0_Modelica.Mechanics.MultiBody.Examples.Loops.Engine1a_res.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/Modelica/Mechanics/MultiBody/Examples/Loops/Engine1a/Engine1a.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_4.0.0_Modelica.Mechanics.MultiBody.Examples.Loops.Engine1a.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches