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.001484/0.001484, allocations: 110.7 kB / 17.28 MB, free: 6.199 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.001963/0.001963, allocations: 185.3 kB / 18.2 MB, free: 5.281 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.426/1.426, allocations: 205.1 MB / 224.1 MB, free: 12.43 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.001265/0.001265, allocations: 48.34 kB / 280.1 MB, free: 3.496 MB / 222.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1021/0.1034, allocations: 46.64 MB / 326.8 MB, free: 4.785 MB / 270.1 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.MultiBody.Examples.Loops.Engine1b_analytic): time 0.2909/0.3944, allocations: 114.3 MB / 441.1 MB, free: 3.84 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.06178/0.4562, allocations: 22.28 MB / 463.4 MB, free: 13.5 MB / 366.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.02673/0.4831, allocations: 0.5026 MB / 463.9 MB, free: 12.99 MB / 366.1 MB Notification: Performance of NFTyping.typeComponents: time 0.01338/0.4965, allocations: 7.702 MB / 471.6 MB, free: 5.273 MB / 366.1 MB Notification: Performance of NFTyping.typeBindings: time 0.009976/0.5065, allocations: 3.359 MB / 474.9 MB, free: 1.902 MB / 366.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.004949/0.5115, allocations: 1.911 MB / 476.9 MB, free: 15.99 MB / 382.1 MB Notification: Performance of NFFlatten.flatten: time 0.01913/0.5306, allocations: 12.86 MB / 489.7 MB, free: 3.105 MB / 382.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.01703/0.5478, allocations: 11.02 MB / 0.489 GB, free: 8.004 MB / 398.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.009389/0.5572, allocations: 4.405 MB / 0.4933 GB, free: 3.586 MB / 398.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.009335/0.5666, allocations: 6.319 MB / 0.4995 GB, free: 13.25 MB / 414.1 MB Notification: Performance of NFPackage.collectConstants: time 0.002917/0.5695, allocations: 1.004 MB / 0.5005 GB, free: 12.25 MB / 414.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.005675/0.5752, allocations: 2.178 MB / 0.5026 GB, free: 10.07 MB / 414.1 MB Notification: Performance of NFScalarize.scalarize: time 0.006747/0.582, allocations: 5.113 MB / 0.5076 GB, free: 4.941 MB / 414.1 MB Notification: Performance of NFVerifyModel.verify: time 0.009818/0.5919, allocations: 5.464 MB / 0.5129 GB, free: 15.45 MB / 430.1 MB Notification: Performance of NFConvertDAE.convert: time 0.02177/0.6137, allocations: 17.02 MB / 0.5295 GB, free: 14.38 MB / 446.1 MB Notification: Performance of FrontEnd - DAE generated: time 9.939e-06/0.6137, allocations: 7.938 kB / 0.5295 GB, free: 14.38 MB / 446.1 MB Notification: Performance of FrontEnd: time 2.405e-06/0.6138, allocations: 0 / 0.5295 GB, free: 14.38 MB / 446.1 MB Notification: Performance of Transformations before backend: time 0.0006381/0.6144, allocations: 0 / 0.5295 GB, free: 14.38 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: 2753 * Number of variables: 2753 Notification: Performance of Generate backend data structure: time 0.02947/0.6439, allocations: 11.23 MB / 0.5405 GB, free: 3.047 MB / 446.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.002e-05/0.644, allocations: 15.89 kB / 0.5405 GB, free: 3.031 MB / 446.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.3896/1.034, allocations: 5.412 MB / 0.5458 GB, free: 164.4 MB / 446.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0224/1.056, allocations: 9.162 MB / 0.5547 GB, free: 161 MB / 446.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0004876/1.057, allocations: 0.5179 MB / 0.5553 GB, free: 160.8 MB / 446.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.002921/1.059, allocations: 0.7203 MB / 0.556 GB, free: 160.6 MB / 446.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.03576/1.095, allocations: 19.52 MB / 0.575 GB, free: 146.3 MB / 446.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0003605/1.096, allocations: 103 kB / 0.5751 GB, free: 146.2 MB / 446.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.001489/1.097, allocations: 323.9 kB / 0.5754 GB, free: 146 MB / 446.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.003322/1.1, allocations: 2.816 MB / 0.5782 GB, free: 143.2 MB / 446.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.03131/1.132, allocations: 16.25 MB / 0.594 GB, free: 126.9 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.09361/1.225, allocations: 74.57 MB / 0.6669 GB, free: 50.33 MB / 446.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.02019/1.246, allocations: 8.47 MB / 0.6751 GB, free: 41.71 MB / 446.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.005371/1.251, allocations: 4.758 MB / 0.6798 GB, free: 36.94 MB / 446.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.02469/1.276, allocations: 15.42 MB / 0.6948 GB, free: 20.99 MB / 446.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 5.197e-05/1.276, allocations: 72.59 kB / 0.6949 GB, free: 20.91 MB / 446.1 MB Notification: Performance of pre-optimization done (n=319): time 5.55e-06/1.276, allocations: 0 / 0.6949 GB, free: 20.91 MB / 446.1 MB Notification: Performance of matching and sorting (n=419): time 0.3977/1.674, allocations: 50.43 MB / 0.7442 GB, free: 141.6 MB / 446.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001416/1.674, allocations: 412.7 kB / 0.7446 GB, free: 141.2 MB / 446.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.01507/1.689, allocations: 7.648 MB / 0.752 GB, free: 138.3 MB / 446.1 MB Notification: Performance of collectPreVariables (initialization): time 0.001288/1.69, allocations: 92.61 kB / 0.7521 GB, free: 138.2 MB / 446.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.003551/1.694, allocations: 5.619 MB / 0.7576 GB, free: 133.3 MB / 446.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.002122/1.696, allocations: 1.532 MB / 0.7591 GB, free: 132 MB / 446.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.005618/1.702, allocations: 2.079 MB / 0.7611 GB, free: 130.1 MB / 446.1 MB Notification: Performance of setup shared object (initialization): time 4.706e-05/1.702, allocations: 305.1 kB / 0.7614 GB, free: 129.8 MB / 446.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.006891/1.709, allocations: 5.119 MB / 0.7664 GB, free: 124.7 MB / 446.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.009285/1.718, allocations: 10.2 MB / 0.7764 GB, free: 112.2 MB / 446.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.01619/1.734, allocations: 16.13 MB / 0.7921 GB, free: 93.68 MB / 446.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.0001679/1.734, allocations: 51.94 kB / 0.7922 GB, free: 93.63 MB / 446.1 MB Notification: Performance of matching and sorting (n=1332) (initialization): time 0.04286/1.777, allocations: 20.87 MB / 0.8126 GB, free: 72.73 MB / 446.1 MB Notification: Performance of prepare postOptimizeDAE: time 0.0001062/1.777, allocations: 84 kB / 0.8126 GB, free: 72.65 MB / 446.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0001792/1.778, allocations: 172 kB / 0.8128 GB, free: 72.48 MB / 446.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.01774/1.795, allocations: 6.473 MB / 0.8191 GB, free: 66 MB / 446.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.006531/1.802, allocations: 2.16 MB / 0.8212 GB, free: 63.84 MB / 446.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.03869/1.841, allocations: 33.58 MB / 0.854 GB, free: 30.12 MB / 446.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.009165/1.85, allocations: 0.6123 MB / 0.8546 GB, free: 29.51 MB / 446.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.001813/1.852, allocations: 0.5351 MB / 0.8552 GB, free: 28.97 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.007209/1.859, allocations: 4.099 MB / 0.8592 GB, free: 24.86 MB / 446.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.001726/1.861, allocations: 0.6942 MB / 0.8598 GB, free: 24.16 MB / 446.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.02687/1.887, allocations: 13.85 MB / 0.8734 GB, free: 10.26 MB / 446.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.208e-05/1.888, allocations: 40 kB / 0.8734 GB, free: 10.22 MB / 446.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.912e-05/1.888, allocations: 27.94 kB / 0.8734 GB, free: 10.19 MB / 446.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 8.92e-05/1.888, allocations: 15.94 kB / 0.8734 GB, free: 10.18 MB / 446.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.2705/2.158, allocations: 27.18 MB / 0.9 GB, free: 127.9 MB / 446.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 0.0001147/2.158, allocations: 7.812 kB / 0.9 GB, free: 127.9 MB / 446.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.003552/2.162, allocations: 0.5549 MB / 0.9005 GB, free: 127.8 MB / 446.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.018/2.18, allocations: 5.971 MB / 0.9064 GB, free: 126.6 MB / 446.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.00134/2.181, allocations: 75.31 kB / 0.9064 GB, free: 126.6 MB / 446.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.03899/2.22, allocations: 30.28 MB / 0.936 GB, free: 102.7 MB / 446.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 8.126e-06/2.22, allocations: 21.88 kB / 0.936 GB, free: 102.7 MB / 446.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.03441/2.255, allocations: 20 MB / 0.9556 GB, free: 82.92 MB / 446.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.005025/2.26, allocations: 1.541 MB / 0.9571 GB, free: 81.74 MB / 446.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.002582/2.262, allocations: 76 kB / 0.9571 GB, free: 81.66 MB / 446.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.005619/2.268, allocations: 318.5 kB / 0.9574 GB, free: 81.36 MB / 446.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.001679/2.27, allocations: 298.8 kB / 0.9577 GB, free: 81.07 MB / 446.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0008935/2.271, allocations: 112 kB / 0.9578 GB, free: 80.96 MB / 446.1 MB Notification: Performance of sorting global known variables: time 0.009301/2.28, allocations: 4.894 MB / 0.9626 GB, free: 76.11 MB / 446.1 MB Notification: Performance of sort global known variables: time 1.022e-06/2.28, allocations: 0 / 0.9626 GB, free: 76.11 MB / 446.1 MB Notification: Performance of remove unused functions: time 0.01259/2.293, allocations: 2.404 MB / 0.965 GB, free: 73.71 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.001675/2.294, allocations: 289.1 kB / 0.9652 GB, free: 73.45 MB / 446.1 MB Notification: Performance of simCode: created initialization part: time 0.02902/2.323, allocations: 17.33 MB / 0.9822 GB, free: 56.25 MB / 446.1 MB Notification: Performance of simCode: created event and clocks part: time 1.496e-05/2.323, allocations: 4 kB / 0.9822 GB, free: 56.25 MB / 446.1 MB Notification: Performance of simCode: created simulation system equations: time 0.007829/2.331, allocations: 5.096 MB / 0.9871 GB, free: 51.17 MB / 446.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.01064/2.342, allocations: 1.081 MB / 0.9882 GB, free: 50.11 MB / 446.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.05253/2.395, allocations: 26.86 MB / 1.014 GB, free: 23.2 MB / 446.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.01449/2.409, allocations: 6.393 MB / 1.021 GB, free: 16.77 MB / 446.1 MB Notification: Performance of simCode: alias equations: time 0.009365/2.418, allocations: 2.954 MB / 1.024 GB, free: 13.8 MB / 446.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.002537/2.421, allocations: 435.4 kB / 1.024 GB, free: 13.38 MB / 446.1 MB Notification: Performance of SimCode: time 9.82e-07/2.421, allocations: 0 / 1.024 GB, free: 13.38 MB / 446.1 MB Notification: Performance of Templates: time 0.3943/2.815, allocations: 111 MB / 1.132 GB, free: 57.68 MB / 446.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