Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_3.2.3_Modelica.Mechanics.MultiBody.Examples.Loops.Engine1b_analytic.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 3.2.3+maint.om/package.mo", uses=false) Using package Modelica with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+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.Engine1b_analytic,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|Inertia.phi|Inertia.w",fileNamePrefix="Modelica_3.2.3_Modelica.Mechanics.MultiBody.Examples.Loops.Engine1b_analytic") translateModel(Modelica.Mechanics.MultiBody.Examples.Loops.Engine1b_analytic,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|Inertia.phi|Inertia.w",fileNamePrefix="Modelica_3.2.3_Modelica.Mechanics.MultiBody.Examples.Loops.Engine1b_analytic") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001538/0.001538, allocations: 104.4 kB / 18.35 MB, free: 4.645 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.001537/0.001537, allocations: 191 kB / 19.29 MB, free: 3.715 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.393/1.393, allocations: 205.1 MB / 225.2 MB, free: 12.28 MB / 190.1 MB Notification: Modelica requested package Complex of version 3.2.3. Complex 4.0.0 is used instead which states that it is fully compatible without conversion script needed. Notification: Modelica requested package ModelicaServices of version 3.2.3. ModelicaServices 4.0.0 is used instead which states that it is fully compatible without conversion script needed. Notification: Performance of FrontEnd - loaded program: time 0.001162/0.001162, allocations: 55.92 kB / 282.1 MB, free: 2.48 MB / 222.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.08268/0.08386, allocations: 46.62 MB / 328.7 MB, free: 3.785 MB / 270.1 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.MultiBody.Examples.Loops.Engine1b_analytic): time 0.02228/0.1062, allocations: 23.46 MB / 352.2 MB, free: 12.21 MB / 302.1 MB Notification: Performance of NFInst.instExpressions: time 0.01518/0.1214, allocations: 7.081 MB / 359.3 MB, free: 5.109 MB / 302.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.004049/0.1256, allocations: 183.4 kB / 359.5 MB, free: 4.93 MB / 302.1 MB Notification: Performance of NFTyping.typeComponents: time 0.01312/0.1387, allocations: 7.94 MB / 367.4 MB, free: 12.96 MB / 318.1 MB Notification: Performance of NFTyping.typeBindings: time 0.009207/0.148, allocations: 3.599 MB / 371 MB, free: 9.352 MB / 318.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.004565/0.1525, allocations: 2.009 MB / 373 MB, free: 7.34 MB / 318.1 MB Notification: Performance of NFFlatten.flatten: time 0.1983/0.3508, allocations: 12.24 MB / 385.2 MB, free: 14.37 MB / 318.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.01179/0.3627, allocations: 10.47 MB / 395.7 MB, free: 13.12 MB / 318.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.006144/0.3689, allocations: 4.29 MB / 400 MB, free: 12.87 MB / 318.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.007016/0.3759, allocations: 5.714 MB / 405.7 MB, free: 11.63 MB / 318.1 MB Notification: Performance of NFPackage.collectConstants: time 0.002881/0.3788, allocations: 1.001 MB / 406.7 MB, free: 11.63 MB / 318.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.004954/0.3838, allocations: 2.149 MB / 408.9 MB, free: 11.42 MB / 318.1 MB Notification: Performance of NFScalarize.scalarize: time 0.005935/0.3897, allocations: 5.057 MB / 413.9 MB, free: 9.465 MB / 318.1 MB Notification: Performance of NFVerifyModel.verify: time 0.01045/0.4002, allocations: 5.425 MB / 419.3 MB, free: 4.152 MB / 318.1 MB Notification: Performance of NFConvertDAE.convert: time 0.01925/0.4195, allocations: 17.27 MB / 436.6 MB, free: 3.379 MB / 334.1 MB Notification: Performance of FrontEnd - DAE generated: time 9.898e-06/0.4196, allocations: 3.938 kB / 436.6 MB, free: 3.375 MB / 334.1 MB Notification: Performance of FrontEnd: time 3.557e-06/0.4196, allocations: 4 kB / 436.6 MB, free: 3.371 MB / 334.1 MB Notification: Performance of Transformations before backend: time 0.0005407/0.4201, allocations: 0 / 436.6 MB, free: 3.371 MB / 334.1 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 2753 * Number of variables: 2753 Notification: Performance of Generate backend data structure: time 0.02574/0.4459, allocations: 11.23 MB / 447.9 MB, free: 8.195 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.893e-05/0.4459, allocations: 15.89 kB / 447.9 MB, free: 8.18 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.03968/0.4856, allocations: 5.418 MB / 453.3 MB, free: 2.746 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.02007/0.5057, allocations: 9.349 MB / 462.6 MB, free: 9.676 MB / 366.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0003763/0.5062, allocations: 0.5176 MB / 463.2 MB, free: 9.203 MB / 366.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.002015/0.5082, allocations: 0.733 MB / 463.9 MB, free: 8.52 MB / 366.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0393/0.5475, allocations: 19.51 MB / 483.4 MB, free: 4.242 MB / 382.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0003441/0.5479, allocations: 97.39 kB / 483.5 MB, free: 4.176 MB / 382.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.001354/0.5492, allocations: 323.9 kB / 483.8 MB, free: 3.906 MB / 382.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.003861/0.5531, allocations: 2.823 MB / 486.6 MB, free: 1.117 MB / 382.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.03286/0.586, allocations: 16.25 MB / 0.4911 GB, free: 1.117 MB / 398.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.4132/0.9992, allocations: 74.17 MB / 0.5635 GB, free: 110.8 MB / 446.2 MB Notification: Performance of preOpt comSubExp (simulation): time 0.02089/1.02, allocations: 8.472 MB / 0.5718 GB, free: 110.1 MB / 446.2 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.005592/1.026, allocations: 4.759 MB / 0.5764 GB, free: 108.3 MB / 446.2 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0197/1.046, allocations: 15.4 MB / 0.5915 GB, free: 100.4 MB / 446.2 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.518e-05/1.046, allocations: 66.75 kB / 0.5915 GB, free: 100.3 MB / 446.2 MB Notification: Performance of pre-optimization done (n=319): time 5.891e-06/1.046, allocations: 0 / 0.5915 GB, free: 100.3 MB / 446.2 MB Notification: Performance of matching and sorting (n=419): time 0.1546/1.2, allocations: 50.46 MB / 0.6408 GB, free: 57.55 MB / 446.2 MB Notification: Performance of inlineWhenForInitialization (initialization): time 9.813e-05/1.2, allocations: 414.3 kB / 0.6412 GB, free: 57.06 MB / 446.2 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.00905/1.209, allocations: 7.643 MB / 0.6487 GB, free: 49.45 MB / 446.2 MB Notification: Performance of collectPreVariables (initialization): time 0.000973/1.21, allocations: 89.7 kB / 0.6488 GB, free: 49.36 MB / 446.2 MB Notification: Performance of collectInitialEqns (initialization): time 0.002411/1.213, allocations: 5.615 MB / 0.6543 GB, free: 43.74 MB / 446.2 MB Notification: Performance of collectInitialBindings (initialization): time 0.001411/1.214, allocations: 1.532 MB / 0.6557 GB, free: 42.22 MB / 446.2 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.002483/1.217, allocations: 2.082 MB / 0.6578 GB, free: 40.13 MB / 446.2 MB Notification: Performance of setup shared object (initialization): time 4.427e-05/1.217, allocations: 305.1 kB / 0.6581 GB, free: 39.83 MB / 446.2 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.005803/1.223, allocations: 5.119 MB / 0.6631 GB, free: 34.71 MB / 446.2 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.007481/1.23, allocations: 10.2 MB / 0.673 GB, free: 22.15 MB / 446.2 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.01504/1.245, allocations: 16.14 MB / 0.6888 GB, free: 3.691 MB / 446.2 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.0001124/1.245, allocations: 52 kB / 0.6888 GB, free: 3.641 MB / 446.2 MB Notification: Performance of matching and sorting (n=1332) (initialization): time 0.2008/1.446, allocations: 20.86 MB / 0.7092 GB, free: 143.4 MB / 462.2 MB Notification: Performance of prepare postOptimizeDAE: time 0.0001743/1.446, allocations: 78.5 kB / 0.7093 GB, free: 143.4 MB / 462.2 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0003512/1.447, allocations: 175.9 kB / 0.7095 GB, free: 143.4 MB / 462.2 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.02054/1.467, allocations: 6.452 MB / 0.7158 GB, free: 143.3 MB / 462.2 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.00692/1.474, allocations: 2.153 MB / 0.7179 GB, free: 143.3 MB / 462.2 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.04149/1.516, allocations: 33.57 MB / 0.7506 GB, free: 130.4 MB / 462.2 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.00815/1.524, allocations: 0.618 MB / 0.7512 GB, free: 130.2 MB / 462.2 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.001571/1.526, allocations: 0.5294 MB / 0.7518 GB, free: 130.1 MB / 462.2 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 784 * Number of states: 0 () * Number of discrete variables: 73 (jointRRP.jointUSP.prismatic.positiveBranch,jointRRP.jointUSP.rod1Color[3],jointRRP.jointUSP.rod1Color[2],jointRRP.jointUSP.rod1Color[1],jointRRP.jointUSP.cylinderColor[3],jointRRP.jointUSP.cylinderColor[2],jointRRP.jointUSP.cylinderColor[1],jointRRP.jointUSP.sphereColor[3],jointRRP.jointUSP.sphereColor[2],jointRRP.jointUSP.sphereColor[1],jointRRP.rodColor[3],jointRRP.rodColor[2],jointRRP.rodColor[1],jointRRP.cylinderColor[3],jointRRP.cylinderColor[2],jointRRP.cylinderColor[1],cylPosition.color[3],cylPosition.color[2],cylPosition.color[1],Mid.color[3],Mid.color[2],Mid.color[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],Crank3.color[3],Crank3.color[2],Crank3.color[1],Crank3.body.sphereColor[3],Crank3.body.sphereColor[2],Crank3.body.sphereColor[1],Crank4.color[3],Crank4.color[2],Crank4.color[1],Crank4.body.sphereColor[3],Crank4.body.sphereColor[2],Crank4.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],Bearing.cylinderColor[3],Bearing.cylinderColor[2],Bearing.cylinderColor[1],Rod2.color[3],Rod2.color[2],Rod2.color[1],Rod2.body.sphereColor[3],Rod2.body.sphereColor[2],Rod2.body.sphereColor[1],Piston.color[3],Piston.color[2],Piston.color[1],Piston.body.sphereColor[3],Piston.body.sphereColor[2],Piston.body.sphereColor[1]) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (1180): * Single equations (assignments): 1175 * Array equations: 4 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 1 system {(3,124,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of prepare postOptimizeDAE: time 0.005628/1.531, allocations: 4.1 MB / 0.7558 GB, free: 128.6 MB / 462.2 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.001261/1.532, allocations: 0.6982 MB / 0.7565 GB, free: 128.6 MB / 462.2 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.02399/1.556, allocations: 13.85 MB / 0.77 GB, free: 117.5 MB / 462.2 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.922e-05/1.557, allocations: 47.92 kB / 0.77 GB, free: 117.4 MB / 462.2 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.665e-05/1.557, allocations: 24 kB / 0.77 GB, free: 117.4 MB / 462.2 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.187e-05/1.557, allocations: 15.94 kB / 0.7701 GB, free: 117.4 MB / 462.2 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.04518/1.602, allocations: 26.99 MB / 0.7964 GB, free: 90.62 MB / 462.2 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.822e-05/1.602, allocations: 8 kB / 0.7964 GB, free: 90.62 MB / 462.2 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.002488/1.604, allocations: 0.5499 MB / 0.797 GB, free: 90.07 MB / 462.2 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.01641/1.621, allocations: 5.957 MB / 0.8028 GB, free: 84.15 MB / 462.2 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.001148/1.622, allocations: 76 kB / 0.8028 GB, free: 84.08 MB / 462.2 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.03605/1.658, allocations: 30.28 MB / 0.8324 GB, free: 53.89 MB / 462.2 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.005e-05/1.658, allocations: 13.2 kB / 0.8324 GB, free: 53.88 MB / 462.2 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.03318/1.691, allocations: 20 MB / 0.852 GB, free: 34.05 MB / 462.2 MB Notification: Performance of postOpt removeConstants (simulation): time 0.00495/1.696, allocations: 1.538 MB / 0.8535 GB, free: 32.49 MB / 462.2 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.001961/1.698, allocations: 81.94 kB / 0.8535 GB, free: 32.41 MB / 462.2 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.004497/1.703, allocations: 315.5 kB / 0.8538 GB, free: 32.1 MB / 462.2 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.00118/1.704, allocations: 295.1 kB / 0.8541 GB, free: 31.81 MB / 462.2 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0003684/1.704, allocations: 112 kB / 0.8542 GB, free: 31.7 MB / 462.2 MB Notification: Performance of sorting global known variables: time 0.007586/1.712, allocations: 4.894 MB / 0.859 GB, free: 26.85 MB / 462.2 MB Notification: Performance of sort global known variables: time 1.041e-06/1.712, allocations: 0 / 0.859 GB, free: 26.85 MB / 462.2 MB Notification: Performance of remove unused functions: time 0.01132/1.723, allocations: 2.416 MB / 0.8614 GB, free: 24.45 MB / 462.2 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 34 * 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 (292): * Single equations (assignments): 288 * Array equations: 3 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 1 system {(3,111,77.8%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of Backend phase and start with SimCode phase: time 0.001447/1.725, allocations: 283.1 kB / 0.8616 GB, free: 24.18 MB / 462.2 MB Notification: Performance of simCode: created initialization part: time 0.1801/1.905, allocations: 12.42 MB / 0.8738 GB, free: 148.8 MB / 462.2 MB Notification: Performance of simCode: created event and clocks part: time 1.217e-05/1.905, allocations: 2.719 kB / 0.8738 GB, free: 148.8 MB / 462.2 MB Notification: Performance of simCode: created simulation system equations: time 0.00754/1.913, allocations: 5.104 MB / 0.8788 GB, free: 148.5 MB / 462.2 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.005816/1.918, allocations: 1.082 MB / 0.8798 GB, free: 148.4 MB / 462.2 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.03765/1.956, allocations: 22.44 MB / 0.9017 GB, free: 140.4 MB / 462.2 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.007115/1.963, allocations: 6.399 MB / 0.908 GB, free: 138.3 MB / 462.2 MB Notification: Performance of simCode: alias equations: time 0.006394/1.97, allocations: 2.948 MB / 0.9109 GB, free: 138.2 MB / 462.2 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001372/1.971, allocations: 439.6 kB / 0.9113 GB, free: 138.2 MB / 462.2 MB Notification: Performance of SimCode: time 1.793e-06/1.971, allocations: 0 / 0.9113 GB, free: 138.2 MB / 462.2 MB Notification: Performance of Templates: time 0.1393/2.11, allocations: 102.7 MB / 1.012 GB, free: 39.07 MB / 462.2 MB make -j1 -f Modelica_3.2.3_Modelica.Mechanics.MultiBody.Examples.Loops.Engine1b_analytic.makefile (rm -f Modelica_3.2.3_Modelica.Mechanics.MultiBody.Examples.Loops.Engine1b_analytic.pipe ; mkfifo Modelica_3.2.3_Modelica.Mechanics.MultiBody.Examples.Loops.Engine1b_analytic.pipe ; head -c 1048576 < Modelica_3.2.3_Modelica.Mechanics.MultiBody.Examples.Loops.Engine1b_analytic.pipe >> ../files/Modelica_3.2.3_Modelica.Mechanics.MultiBody.Examples.Loops.Engine1b_analytic.sim & ./Modelica_3.2.3_Modelica.Mechanics.MultiBody.Examples.Loops.Engine1b_analytic -abortSlowSimulation -alarm=480 -s cvode -emit_protected -lv LOG_STATS > Modelica_3.2.3_Modelica.Mechanics.MultiBody.Examples.Loops.Engine1b_analytic.pipe 2>&1) diffSimulationResults("Modelica_3.2.3_Modelica.Mechanics.MultiBody.Examples.Loops.Engine1b_analytic_res.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v3.2.3+build.4/Modelica/Mechanics/MultiBody/Examples/Loops/Engine1b_analytic/Engine1b_analytic.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_3.2.3_Modelica.Mechanics.MultiBody.Examples.Loops.Engine1b_analytic.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches