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.0009379/0.0009376, allocations: 95.05 kB / 17.3 MB, free: 6.344 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.001216/0.001216, allocations: 184.5 kB / 18.21 MB, free: 5.527 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.539/1.539, allocations: 205.4 MB / 224.4 MB, free: 13.07 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.0007681/0.0007681, allocations: 12 kB / 281.4 MB, free: 3.418 MB / 222.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1113/0.1121, allocations: 47.59 MB / 329 MB, free: 3.758 MB / 270.1 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.MultiBody.Examples.Loops.Engine1b_analytic): time 0.2997/0.4118, allocations: 111.7 MB / 440.7 MB, free: 6.766 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.06046/0.4723, allocations: 22.31 MB / 463 MB, free: 388 kB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.03018/0.5026, allocations: 0.5027 MB / 463.5 MB, free: 15.87 MB / 366.1 MB Notification: Performance of NFTyping.typeComponents: time 0.003693/0.5063, allocations: 0.8005 MB / 464.3 MB, free: 15.07 MB / 366.1 MB Notification: Performance of NFTyping.typeBindings: time 0.01038/0.5167, allocations: 3.433 MB / 467.7 MB, free: 11.62 MB / 366.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.004797/0.5215, allocations: 1.853 MB / 469.6 MB, free: 9.77 MB / 366.1 MB Notification: Performance of NFFlatten.flatten: time 0.02259/0.5441, allocations: 17.36 MB / 486.9 MB, free: 8.379 MB / 382.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.02239/0.5666, allocations: 14.42 MB / 0.4896 GB, free: 9.836 MB / 398.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.007834/0.5745, allocations: 3.008 MB / 0.4925 GB, free: 6.816 MB / 398.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.008742/0.5832, allocations: 5.089 MB / 0.4975 GB, free: 1.711 MB / 398.1 MB Notification: Performance of NFPackage.collectConstants: time 0.002568/0.5859, allocations: 340 kB / 0.4978 GB, free: 1.379 MB / 398.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.005546/0.5914, allocations: 1.572 MB / 0.4994 GB, free: 15.8 MB / 414.1 MB Notification: Performance of NFScalarize.scalarize: time 0.006933/0.5984, allocations: 4.278 MB / 0.5035 GB, free: 11.52 MB / 414.1 MB Notification: Performance of NFVerifyModel.verify: time 0.009209/0.6076, allocations: 4.501 MB / 0.5079 GB, free: 6.98 MB / 414.1 MB Notification: Performance of NFConvertDAE.convert: time 0.02098/0.6287, allocations: 16.1 MB / 0.5237 GB, free: 6.828 MB / 430.1 MB Notification: Performance of FrontEnd - DAE generated: time 1.309e-05/0.6288, allocations: 0 / 0.5237 GB, free: 6.828 MB / 430.1 MB Notification: Performance of FrontEnd: time 5.55e-06/0.6288, allocations: 0 / 0.5237 GB, free: 6.828 MB / 430.1 MB Notification: Performance of Transformations before backend: time 0.001219/0.63, allocations: 0 / 0.5237 GB, free: 6.828 MB / 430.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.3904/1.02, allocations: 9.255 MB / 0.5327 GB, free: 149 MB / 430.1 MB Notification: Performance of prepare preOptimizeDAE: time 7.931e-05/1.021, allocations: 9.562 kB / 0.5327 GB, free: 149 MB / 430.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.05205/1.073, allocations: 5.537 MB / 0.5381 GB, free: 148.4 MB / 430.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.02301/1.096, allocations: 9.153 MB / 0.5471 GB, free: 143.1 MB / 430.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0005069/1.096, allocations: 0.5223 MB / 0.5476 GB, free: 142.9 MB / 430.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.003516/1.1, allocations: 0.7273 MB / 0.5483 GB, free: 142.7 MB / 430.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0363/1.136, allocations: 19.59 MB / 0.5674 GB, free: 123.5 MB / 430.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0002884/1.136, allocations: 99.11 kB / 0.5675 GB, free: 123.4 MB / 430.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0009242/1.137, allocations: 335.5 kB / 0.5678 GB, free: 123.1 MB / 430.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.00346/1.141, allocations: 2.818 MB / 0.5706 GB, free: 120.3 MB / 430.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.03255/1.173, allocations: 16.32 MB / 0.5865 GB, free: 104 MB / 430.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.09091/1.264, allocations: 74.64 MB / 0.6594 GB, free: 27.65 MB / 430.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.02075/1.285, allocations: 8.538 MB / 0.6677 GB, free: 18.97 MB / 430.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.005461/1.291, allocations: 4.758 MB / 0.6724 GB, free: 14.19 MB / 430.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.02183/1.312, allocations: 15.4 MB / 0.6874 GB, free: 14.34 MB / 446.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 7.067e-05/1.313, allocations: 76.58 kB / 0.6875 GB, free: 14.25 MB / 446.1 MB Notification: Performance of pre-optimization done (n=319): time 6.883e-06/1.313, allocations: 0 / 0.6875 GB, free: 14.25 MB / 446.1 MB Notification: Performance of matching and sorting (n=419): time 0.4055/1.718, allocations: 50.62 MB / 0.7369 GB, free: 140.2 MB / 446.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001563/1.718, allocations: 410.7 kB / 0.7373 GB, free: 139.7 MB / 446.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.01126/1.73, allocations: 7.652 MB / 0.7448 GB, free: 132.1 MB / 446.1 MB Notification: Performance of collectPreVariables (initialization): time 0.001435/1.731, allocations: 89.7 kB / 0.7449 GB, free: 132 MB / 446.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.003901/1.735, allocations: 5.617 MB / 0.7504 GB, free: 126.4 MB / 446.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0029/1.738, allocations: 1.532 MB / 0.7519 GB, free: 124.9 MB / 446.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.001356/1.739, allocations: 0.9153 MB / 0.7527 GB, free: 124 MB / 446.1 MB Notification: Performance of setup shared object (initialization): time 6.621e-05/1.739, allocations: 301.1 kB / 0.753 GB, free: 123.7 MB / 446.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.006271/1.746, allocations: 5.119 MB / 0.758 GB, free: 118.6 MB / 446.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.008301/1.754, allocations: 10.21 MB / 0.768 GB, free: 105.9 MB / 446.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.01681/1.771, allocations: 16.13 MB / 0.7838 GB, free: 87.38 MB / 446.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.0001704/1.771, allocations: 48 kB / 0.7838 GB, free: 87.33 MB / 446.1 MB Notification: Performance of matching and sorting (n=1332) (initialization): time 0.04185/1.813, allocations: 20.87 MB / 0.8042 GB, free: 66.43 MB / 446.1 MB Notification: Performance of prepare postOptimizeDAE: time 0.0001379/1.813, allocations: 80.98 kB / 0.8043 GB, free: 66.35 MB / 446.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0002422/1.813, allocations: 172 kB / 0.8044 GB, free: 66.18 MB / 446.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.01892/1.832, allocations: 6.463 MB / 0.8107 GB, free: 59.71 MB / 446.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.007094/1.839, allocations: 2.148 MB / 0.8128 GB, free: 57.56 MB / 446.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.03898/1.878, allocations: 31.46 MB / 0.8436 GB, free: 25.97 MB / 446.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.008954/1.887, allocations: 0.6213 MB / 0.8442 GB, free: 25.35 MB / 446.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.001573/1.889, allocations: 0.5324 MB / 0.8447 GB, free: 24.82 MB / 446.1 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.006792/1.896, allocations: 4.105 MB / 0.8487 GB, free: 20.7 MB / 446.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.001615/1.897, allocations: 0.6903 MB / 0.8494 GB, free: 20 MB / 446.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.2301/2.127, allocations: 13.84 MB / 0.8629 GB, free: 133.9 MB / 446.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.193e-05/2.128, allocations: 43.39 kB / 0.8629 GB, free: 133.9 MB / 446.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.685e-05/2.128, allocations: 27.28 kB / 0.863 GB, free: 133.9 MB / 446.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 8.634e-05/2.128, allocations: 20.2 kB / 0.863 GB, free: 133.9 MB / 446.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0515/2.179, allocations: 27.17 MB / 0.8895 GB, free: 126.4 MB / 446.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 7.698e-05/2.179, allocations: 10.88 kB / 0.8895 GB, free: 126.4 MB / 446.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.002603/2.182, allocations: 0.546 MB / 0.8901 GB, free: 126.3 MB / 446.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.01764/2.2, allocations: 5.968 MB / 0.8959 GB, free: 123.7 MB / 446.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0009908/2.201, allocations: 72.44 kB / 0.8959 GB, free: 123.6 MB / 446.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.03513/2.236, allocations: 28.23 MB / 0.9235 GB, free: 100 MB / 446.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 7.304e-06/2.236, allocations: 11.94 kB / 0.9235 GB, free: 99.99 MB / 446.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.03505/2.271, allocations: 20 MB / 0.9431 GB, free: 80.24 MB / 446.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.007054/2.278, allocations: 1.548 MB / 0.9446 GB, free: 79.05 MB / 446.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.003121/2.281, allocations: 75.98 kB / 0.9446 GB, free: 78.98 MB / 446.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.007525/2.289, allocations: 319.5 kB / 0.945 GB, free: 78.66 MB / 446.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.001853/2.291, allocations: 297.5 kB / 0.9452 GB, free: 78.38 MB / 446.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0005009/2.291, allocations: 112.9 kB / 0.9453 GB, free: 78.27 MB / 446.1 MB Notification: Performance of sorting global known variables: time 0.009572/2.301, allocations: 4.898 MB / 0.9501 GB, free: 73.41 MB / 446.1 MB Notification: Performance of sort global known variables: time 1.523e-06/2.301, allocations: 0 / 0.9501 GB, free: 73.41 MB / 446.1 MB Notification: Performance of remove unused functions: time 0.01766/2.318, allocations: 2.405 MB / 0.9525 GB, free: 71.01 MB / 446.1 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.001806/2.32, allocations: 284.1 kB / 0.9527 GB, free: 70.75 MB / 446.1 MB Notification: Performance of simCode: created initialization part: time 0.01864/2.339, allocations: 12.39 MB / 0.9649 GB, free: 58.46 MB / 446.1 MB Notification: Performance of simCode: created event and clocks part: time 1.625e-05/2.339, allocations: 0 / 0.9649 GB, free: 58.46 MB / 446.1 MB Notification: Performance of simCode: created simulation system equations: time 0.007178/2.346, allocations: 5.1 MB / 0.9698 GB, free: 53.39 MB / 446.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.01681/2.363, allocations: 1.021 MB / 0.9708 GB, free: 52.39 MB / 446.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.04477/2.408, allocations: 26.93 MB / 0.9971 GB, free: 25.41 MB / 446.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.008019/2.416, allocations: 6.393 MB / 1.003 GB, free: 18.98 MB / 446.1 MB Notification: Performance of simCode: alias equations: time 0.007565/2.424, allocations: 2.961 MB / 1.006 GB, free: 16.01 MB / 446.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001587/2.425, allocations: 435.4 kB / 1.007 GB, free: 15.59 MB / 446.1 MB Notification: Performance of SimCode: time 7.52e-07/2.425, allocations: 0 / 1.007 GB, free: 15.59 MB / 446.1 MB Notification: Performance of Templates: time 0.4442/2.869, allocations: 104.5 MB / 1.109 GB, free: 81.82 MB / 462.1 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 -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/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v3.2.3+build.4/Modelica/Mechanics/MultiBody/Examples/Loops/Engine1b_analytic/Engine1b_analytic.csv","../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