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: translateModel(Modelica.Mechanics.MultiBody.Examples.Loops.Engine1a,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|inertia.phi|inertia.w",fileNamePrefix="Modelica_4.0.0_Modelica.Mechanics.MultiBody.Examples.Loops.Engine1a") translateModel(Modelica.Mechanics.MultiBody.Examples.Loops.Engine1a,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|inertia.phi|inertia.w",fileNamePrefix="Modelica_4.0.0_Modelica.Mechanics.MultiBody.Examples.Loops.Engine1a") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.0007793/0.0007793, allocations: 88.41 kB / 17.31 MB, free: 5.59 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.0008309/0.000831, allocations: 178.8 kB / 18.21 MB, free: 5.195 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.117/1.117, allocations: 223.2 MB / 242.2 MB, free: 224 kB / 190.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0002037/0.0002037, allocations: 11.94 kB / 302.1 MB, free: 6.125 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.06899/0.06921, allocations: 50.41 MB / 352.5 MB, free: 3.703 MB / 286.1 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.MultiBody.Examples.Loops.Engine1a): time 0.2002/0.2694, allocations: 100.9 MB / 453.4 MB, free: 15.21 MB / 366.1 MB Notification: Performance of NFInst.instExpressions: time 0.03354/0.303, allocations: 19.88 MB / 473.3 MB, free: 11.27 MB / 382.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.01271/0.3157, allocations: 470.8 kB / 473.8 MB, free: 10.81 MB / 382.1 MB Notification: Performance of NFTyping.typeComponents: time 0.001621/0.3174, allocations: 0.7072 MB / 474.5 MB, free: 10.1 MB / 382.1 MB Notification: Performance of NFTyping.typeBindings: time 0.005413/0.3228, allocations: 3.17 MB / 477.7 MB, free: 6.918 MB / 382.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.002056/0.3248, allocations: 1.463 MB / 479.1 MB, free: 5.453 MB / 382.1 MB Notification: Performance of NFFlatten.flatten: time 0.01445/0.3393, allocations: 17.32 MB / 496.4 MB, free: 4.109 MB / 398.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.01047/0.3498, allocations: 10.16 MB / 0.4947 GB, free: 9.844 MB / 414.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.002977/0.3528, allocations: 2.693 MB / 0.4974 GB, free: 7.141 MB / 414.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.004208/0.357, allocations: 4.443 MB / 0.5017 GB, free: 2.684 MB / 414.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0004812/0.3575, allocations: 279.9 kB / 0.502 GB, free: 2.41 MB / 414.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.001968/0.3595, allocations: 1.307 MB / 0.5032 GB, free: 1.102 MB / 414.1 MB Notification: Performance of NFScalarize.scalarize: time 0.002593/0.3621, allocations: 3.709 MB / 0.5069 GB, free: 13.38 MB / 430.1 MB Notification: Performance of NFVerifyModel.verify: time 0.002942/0.365, allocations: 3.868 MB / 0.5106 GB, free: 9.484 MB / 430.1 MB Notification: Performance of NFConvertDAE.convert: time 0.00815/0.3732, allocations: 10.58 MB / 0.521 GB, free: 14.88 MB / 446.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.086e-06/0.3732, allocations: 0 / 0.521 GB, free: 14.88 MB / 446.1 MB Notification: Performance of FrontEnd: time 1.233e-06/0.3732, allocations: 0 / 0.521 GB, free: 14.88 MB / 446.1 MB Notification: Performance of Transformations before backend: time 0.0001138/0.3733, allocations: 4 kB / 0.521 GB, free: 14.88 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.01292/0.3862, allocations: 8.004 MB / 0.5288 GB, free: 6.789 MB / 446.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.241e-05/0.3863, allocations: 12.03 kB / 0.5288 GB, free: 6.777 MB / 446.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.04239/0.4287, allocations: 5.354 MB / 0.534 GB, free: 1.406 MB / 446.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.3182/0.7469, allocations: 7.864 MB / 0.5417 GB, free: 48.7 MB / 446.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0004051/0.7474, allocations: 427.8 kB / 0.5421 GB, free: 48.69 MB / 446.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.001721/0.7491, allocations: 0.5839 MB / 0.5427 GB, free: 48.67 MB / 446.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.02256/0.7717, allocations: 16.63 MB / 0.5589 GB, free: 45.79 MB / 446.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0001764/0.7719, allocations: 91.3 kB / 0.559 GB, free: 45.77 MB / 446.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0005339/0.7724, allocations: 272 kB / 0.5593 GB, free: 45.77 MB / 446.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.003478/0.7759, allocations: 2.764 MB / 0.562 GB, free: 45.76 MB / 446.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.019/0.7949, allocations: 13.7 MB / 0.5754 GB, free: 43.2 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.05469/0.8496, allocations: 68.1 MB / 0.6419 GB, free: 5.945 MB / 478.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.01751/0.8672, allocations: 7.94 MB / 0.6496 GB, free: 13.88 MB / 494.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.004692/0.8719, allocations: 4.519 MB / 0.654 GB, free: 9.348 MB / 494.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.01426/0.8861, allocations: 12.41 MB / 0.6661 GB, free: 12.84 MB / 0.4982 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.059e-05/0.8862, allocations: 64.56 kB / 0.6662 GB, free: 12.77 MB / 0.4982 GB Notification: Performance of pre-optimization done (n=280): time 4.469e-06/0.8862, allocations: 0 / 0.6662 GB, free: 12.77 MB / 0.4982 GB Notification: Performance of matching and sorting (n=339): time 0.1607/1.047, allocations: 51.01 MB / 0.716 GB, free: 9.996 MB / 0.545 GB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001456/1.047, allocations: 394.1 kB / 0.7164 GB, free: 9.523 MB / 0.545 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.008419/1.056, allocations: 7.122 MB / 0.7233 GB, free: 2.426 MB / 0.545 GB Notification: Performance of collectPreVariables (initialization): time 0.0002818/1.056, allocations: 77.7 kB / 0.7234 GB, free: 2.344 MB / 0.545 GB Notification: Performance of collectInitialEqns (initialization): time 0.1423/1.198, allocations: 5.015 MB / 0.7283 GB, free: 246.2 MB / 0.545 GB Notification: Performance of collectInitialBindings (initialization): time 0.0015/1.2, allocations: 1.263 MB / 0.7296 GB, free: 245.5 MB / 0.545 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.001767/1.201, allocations: 0.8057 MB / 0.7303 GB, free: 245.5 MB / 0.545 GB Notification: Performance of setup shared object (initialization): time 3.276e-05/1.201, allocations: 307.4 kB / 0.7306 GB, free: 245.2 MB / 0.545 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.006407/1.208, allocations: 4.546 MB / 0.7351 GB, free: 244.5 MB / 0.545 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.007803/1.216, allocations: 9.268 MB / 0.7441 GB, free: 236.6 MB / 0.545 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.01218/1.228, allocations: 14.53 MB / 0.7583 GB, free: 226.1 MB / 0.545 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 6.614e-05/1.228, allocations: 48.84 kB / 0.7584 GB, free: 226.1 MB / 0.545 GB Notification: Performance of matching and sorting (n=1184) (initialization): time 0.02987/1.258, allocations: 19.75 MB / 0.7776 GB, free: 218.5 MB / 0.545 GB Notification: Performance of prepare postOptimizeDAE: time 7.753e-05/1.258, allocations: 77 kB / 0.7777 GB, free: 218.4 MB / 0.545 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0001039/1.258, allocations: 160 kB / 0.7779 GB, free: 218.2 MB / 0.545 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.01711/1.275, allocations: 7.077 MB / 0.7848 GB, free: 212.1 MB / 0.545 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.004299/1.279, allocations: 1.928 MB / 0.7867 GB, free: 210.2 MB / 0.545 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.03295/1.312, allocations: 33.23 MB / 0.8191 GB, free: 176.6 MB / 0.545 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.005803/1.318, allocations: 0.594 MB / 0.8197 GB, free: 176 MB / 0.545 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0004953/1.319, allocations: 496 kB / 0.8202 GB, free: 175.5 MB / 0.545 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 733 * 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 (1048): * Single equations (assignments): 1042 * 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%), (3,5,88.9%)} * Non-linear torn systems (#iteration vars, #inner vars): 1 system {(2,4)} Notification: Performance of prepare postOptimizeDAE: time 0.003671/1.322, allocations: 3.472 MB / 0.8236 GB, free: 172 MB / 0.545 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0006555/1.323, allocations: 0.6364 MB / 0.8242 GB, free: 171.4 MB / 0.545 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.02289/1.346, allocations: 13.32 MB / 0.8372 GB, free: 158 MB / 0.545 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.319e-05/1.346, allocations: 32 kB / 0.8372 GB, free: 157.9 MB / 0.545 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.572e-05/1.346, allocations: 23.94 kB / 0.8372 GB, free: 157.9 MB / 0.545 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.131e-05/1.346, allocations: 15.94 kB / 0.8373 GB, free: 157.9 MB / 0.545 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.03464/1.381, allocations: 26.73 MB / 0.8634 GB, free: 130.7 MB / 0.545 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.089e-05/1.381, allocations: 4.75 kB / 0.8634 GB, free: 130.7 MB / 0.545 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001438/1.382, allocations: 423.2 kB / 0.8638 GB, free: 130.3 MB / 0.545 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.01673/1.399, allocations: 6.692 MB / 0.8703 GB, free: 123.6 MB / 0.545 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0002257/1.399, allocations: 60 kB / 0.8704 GB, free: 123.5 MB / 0.545 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.03184/1.431, allocations: 31.97 MB / 0.9016 GB, free: 91.15 MB / 0.545 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.169e-06/1.431, allocations: 11.94 kB / 0.9016 GB, free: 91.14 MB / 0.545 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.02704/1.458, allocations: 18.77 MB / 0.9199 GB, free: 72.16 MB / 0.545 GB Notification: Performance of postOpt removeConstants (simulation): time 0.00112/1.459, allocations: 0.6997 MB / 0.9206 GB, free: 71.43 MB / 0.545 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0006772/1.46, allocations: 64.06 kB / 0.9207 GB, free: 71.37 MB / 0.545 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.002802/1.463, allocations: 311.5 kB / 0.921 GB, free: 71.07 MB / 0.545 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0005973/1.463, allocations: 247.1 kB / 0.9212 GB, free: 70.82 MB / 0.545 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0002293/1.464, allocations: 88.62 kB / 0.9213 GB, free: 70.74 MB / 0.545 GB Notification: Performance of sorting global known variables: time 0.004521/1.468, allocations: 4.555 MB / 0.9257 GB, free: 66.21 MB / 0.545 GB Notification: Performance of sort global known variables: time 1.61e-07/1.468, allocations: 0 / 0.9257 GB, free: 66.21 MB / 0.545 GB Notification: Performance of remove unused functions: time 0.005693/1.474, allocations: 2.143 MB / 0.9278 GB, free: 64.07 MB / 0.545 GB 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.0004566/1.474, allocations: 214.7 kB / 0.928 GB, free: 63.86 MB / 0.545 GB Notification: Performance of simCode: created initialization part: time 0.01285/1.487, allocations: 11.57 MB / 0.9393 GB, free: 52.25 MB / 0.545 GB Notification: Performance of simCode: created event and clocks part: time 6.482e-06/1.487, allocations: 0 / 0.9393 GB, free: 52.25 MB / 0.545 GB Notification: Performance of simCode: created simulation system equations: time 0.006319/1.493, allocations: 4.995 MB / 0.9442 GB, free: 47.21 MB / 0.545 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.008938/1.502, allocations: 0.9324 MB / 0.9451 GB, free: 46.29 MB / 0.545 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.02501/1.527, allocations: 23.86 MB / 0.9684 GB, free: 22.3 MB / 0.545 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.1492/1.677, allocations: 5.453 MB / 0.9737 GB, free: 224.8 MB / 0.545 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001481/1.678, allocations: 443.1 kB / 0.9742 GB, free: 224.8 MB / 0.545 GB Notification: Performance of SimCode: time 6.92e-07/1.678, allocations: 0.8125 kB / 0.9742 GB, free: 224.8 MB / 0.545 GB Notification: Performance of Templates: time 0.1564/1.834, allocations: 204.9 MB / 1.174 GB, free: 51.24 MB / 0.545 GB make -j1 -f Modelica_4.0.0_Modelica.Mechanics.MultiBody.Examples.Loops.Engine1a.makefile (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 & ./Modelica_4.0.0_Modelica.Mechanics.MultiBody.Examples.Loops.Engine1a -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > 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