Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_4.0.0_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 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.Engine1b_analytic,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|inertia.phi|inertia.w",fileNamePrefix="Modelica_4.0.0_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_4.0.0_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.001109/0.001109, allocations: 104.2 kB / 17.59 MB, free: 5.543 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.001174/0.001174, allocations: 187.4 kB / 18.51 MB, free: 4.625 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.391/1.391, allocations: 222.9 MB / 242.2 MB, free: 15.23 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001124/0.001124, allocations: 48.02 kB / 301.3 MB, free: 5.797 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.08884/0.08999, allocations: 49.45 MB / 350.7 MB, free: 4.34 MB / 286.1 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.MultiBody.Examples.Loops.Engine1b_analytic): time 0.1882/0.2782, allocations: 23.38 MB / 374.1 MB, free: 9.117 MB / 302.1 MB Notification: Performance of NFInst.instExpressions: time 0.01484/0.2931, allocations: 7.069 MB / 381.2 MB, free: 8.176 MB / 302.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.005065/0.2982, allocations: 181.1 kB / 381.4 MB, free: 8.137 MB / 302.1 MB Notification: Performance of NFTyping.typeComponents: time 0.01377/0.312, allocations: 7.949 MB / 389.3 MB, free: 5.758 MB / 302.1 MB Notification: Performance of NFTyping.typeBindings: time 0.009935/0.322, allocations: 3.577 MB / 392.9 MB, free: 3.719 MB / 302.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.004977/0.327, allocations: 2.003 MB / 394.9 MB, free: 2.453 MB / 302.1 MB Notification: Performance of NFFlatten.flatten: time 0.01862/0.3457, allocations: 13.27 MB / 408.2 MB, free: 10.62 MB / 318.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.01343/0.3592, allocations: 10.48 MB / 418.6 MB, free: 240 kB / 318.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.009379/0.3686, allocations: 4.255 MB / 422.9 MB, free: 12.2 MB / 334.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.009925/0.3786, allocations: 5.694 MB / 428.6 MB, free: 6.719 MB / 334.1 MB Notification: Performance of NFPackage.collectConstants: time 0.003761/0.3824, allocations: 1.004 MB / 429.6 MB, free: 5.715 MB / 334.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.006948/0.3894, allocations: 2.158 MB / 431.7 MB, free: 3.555 MB / 334.1 MB Notification: Performance of NFScalarize.scalarize: time 0.008146/0.3976, allocations: 5.027 MB / 436.8 MB, free: 14.52 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0127/0.4103, allocations: 5.414 MB / 442.2 MB, free: 9.074 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.02323/0.4336, allocations: 16.93 MB / 459.1 MB, free: 8.098 MB / 366.1 MB Notification: Performance of FrontEnd - DAE generated: time 8.335e-06/0.4336, allocations: 4 kB / 459.1 MB, free: 8.094 MB / 366.1 MB Notification: Performance of FrontEnd: time 2.805e-06/0.4337, allocations: 4 kB / 459.1 MB, free: 8.09 MB / 366.1 MB Notification: Performance of Transformations before backend: time 0.0005909/0.4343, allocations: 0 / 459.1 MB, free: 8.09 MB / 366.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.03434/0.4686, allocations: 11.21 MB / 470.3 MB, free: 12.78 MB / 382.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.875e-05/0.4687, allocations: 15.89 kB / 470.3 MB, free: 12.77 MB / 382.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.04825/0.5169, allocations: 5.418 MB / 475.8 MB, free: 7.328 MB / 382.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.02434/0.5413, allocations: 8.84 MB / 484.6 MB, free: 14.39 MB / 398.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0005368/0.5419, allocations: 0.522 MB / 485.1 MB, free: 13.87 MB / 398.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.003335/0.5453, allocations: 0.7298 MB / 485.8 MB, free: 13.14 MB / 398.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.04595/0.5912, allocations: 19.51 MB / 0.4935 GB, free: 8.582 MB / 414.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0004666/0.5917, allocations: 91.17 kB / 0.4936 GB, free: 8.492 MB / 414.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.00293/0.5947, allocations: 323.8 kB / 0.4939 GB, free: 8.176 MB / 414.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.004925/0.5996, allocations: 2.817 MB / 0.4967 GB, free: 5.355 MB / 414.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.03911/0.6388, allocations: 16.25 MB / 0.5125 GB, free: 5.078 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.4623/1.101, allocations: 74.44 MB / 0.5852 GB, free: 91.04 MB / 446.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.02174/1.123, allocations: 8.501 MB / 0.5935 GB, free: 87.81 MB / 446.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.005657/1.129, allocations: 4.768 MB / 0.5982 GB, free: 85.21 MB / 446.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.02349/1.152, allocations: 15.41 MB / 0.6132 GB, free: 74.67 MB / 446.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 8.823e-05/1.152, allocations: 69.55 kB / 0.6133 GB, free: 74.61 MB / 446.1 MB Notification: Performance of pre-optimization done (n=321): time 9.538e-06/1.152, allocations: 0 / 0.6133 GB, free: 74.61 MB / 446.1 MB Notification: Performance of matching and sorting (n=428): time 0.1805/1.333, allocations: 54.61 MB / 0.6666 GB, free: 20.06 MB / 446.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001163/1.333, allocations: 410.8 kB / 0.667 GB, free: 19.57 MB / 446.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.01001/1.343, allocations: 7.563 MB / 0.6744 GB, free: 12.05 MB / 446.1 MB Notification: Performance of collectPreVariables (initialization): time 0.001213/1.344, allocations: 93.06 kB / 0.6745 GB, free: 11.95 MB / 446.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.003051/1.347, allocations: 5.593 MB / 0.68 GB, free: 6.355 MB / 446.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.002076/1.349, allocations: 1.559 MB / 0.6815 GB, free: 4.809 MB / 446.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.003133/1.353, allocations: 2.09 MB / 0.6835 GB, free: 2.711 MB / 446.1 MB Notification: Performance of setup shared object (initialization): time 4.843e-05/1.353, allocations: 309.1 kB / 0.6838 GB, free: 2.406 MB / 446.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.007424/1.36, allocations: 5.217 MB / 0.6889 GB, free: 13.18 MB / 462.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.01285/1.373, allocations: 10.27 MB / 0.699 GB, free: 0.4922 MB / 462.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.2289/1.602, allocations: 16.31 MB / 0.7149 GB, free: 150.1 MB / 478.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.0001815/1.602, allocations: 51.25 kB / 0.7149 GB, free: 150.1 MB / 478.1 MB Notification: Performance of matching and sorting (n=1335) (initialization): time 0.04762/1.65, allocations: 21.25 MB / 0.7357 GB, free: 144.7 MB / 478.1 MB Notification: Performance of prepare postOptimizeDAE: time 0.0001267/1.65, allocations: 77.62 kB / 0.7358 GB, free: 144.7 MB / 478.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0002529/1.65, allocations: 168.9 kB / 0.7359 GB, free: 144.7 MB / 478.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.01938/1.67, allocations: 6.68 MB / 0.7424 GB, free: 143.4 MB / 478.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.006988/1.677, allocations: 2.154 MB / 0.7445 GB, free: 143.2 MB / 478.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0441/1.721, allocations: 35.05 MB / 0.7788 GB, free: 116.9 MB / 478.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.008612/1.729, allocations: 0.6197 MB / 0.7794 GB, free: 116.3 MB / 478.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.001892/1.731, allocations: 0.5351 MB / 0.7799 GB, free: 115.7 MB / 478.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 778 * 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],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 (1178): * Single equations (assignments): 1173 * 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,129,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of prepare postOptimizeDAE: time 0.007348/1.739, allocations: 4.094 MB / 0.7839 GB, free: 111.8 MB / 478.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.001679/1.74, allocations: 0.6931 MB / 0.7846 GB, free: 111.4 MB / 478.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.02611/1.766, allocations: 14.32 MB / 0.7986 GB, free: 97.06 MB / 478.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.494e-05/1.767, allocations: 44 kB / 0.7986 GB, free: 97.02 MB / 478.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.417e-05/1.767, allocations: 24 kB / 0.7986 GB, free: 97 MB / 478.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 9.68e-05/1.767, allocations: 23.86 kB / 0.7986 GB, free: 96.97 MB / 478.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.05187/1.819, allocations: 28.26 MB / 0.8262 GB, free: 68.65 MB / 478.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.875e-05/1.819, allocations: 8 kB / 0.8263 GB, free: 68.64 MB / 478.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.002962/1.822, allocations: 0.5967 MB / 0.8268 GB, free: 68.04 MB / 478.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0182/1.84, allocations: 6.332 MB / 0.833 GB, free: 61.7 MB / 478.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.001346/1.841, allocations: 76 kB / 0.8331 GB, free: 61.63 MB / 478.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.04126/1.883, allocations: 31.92 MB / 0.8643 GB, free: 29.57 MB / 478.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.121e-05/1.883, allocations: 19.25 kB / 0.8643 GB, free: 29.55 MB / 478.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.2744/2.157, allocations: 20.93 MB / 0.8847 GB, free: 143.5 MB / 478.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.005838/2.163, allocations: 1.563 MB / 0.8862 GB, free: 143.4 MB / 478.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.002732/2.166, allocations: 84.08 kB / 0.8863 GB, free: 143.4 MB / 478.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.005781/2.172, allocations: 325.2 kB / 0.8866 GB, free: 143.4 MB / 478.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0018/2.173, allocations: 306.4 kB / 0.8869 GB, free: 143.4 MB / 478.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0005814/2.174, allocations: 115.7 kB / 0.887 GB, free: 143.4 MB / 478.1 MB Notification: Performance of sorting global known variables: time 0.01094/2.185, allocations: 4.833 MB / 0.8918 GB, free: 143.2 MB / 478.1 MB Notification: Performance of sort global known variables: time 3.4e-07/2.185, allocations: 3.828 kB / 0.8918 GB, free: 143.2 MB / 478.1 MB Notification: Performance of remove unused functions: time 0.01536/2.2, allocations: 2.429 MB / 0.8941 GB, free: 143.2 MB / 478.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 (296): * Single equations (assignments): 292 * 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,116,77.8%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of Backend phase and start with SimCode phase: time 0.001988/2.202, allocations: 287.5 kB / 0.8944 GB, free: 143.1 MB / 478.1 MB Notification: Performance of simCode: created initialization part: time 0.03252/2.235, allocations: 17.88 MB / 0.9119 GB, free: 138.8 MB / 478.1 MB Notification: Performance of simCode: created event and clocks part: time 1.693e-05/2.235, allocations: 0 / 0.9119 GB, free: 138.8 MB / 478.1 MB Notification: Performance of simCode: created simulation system equations: time 0.00924/2.244, allocations: 5.344 MB / 0.9171 GB, free: 136.5 MB / 478.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.01042/2.255, allocations: 1.085 MB / 0.9181 GB, free: 136 MB / 478.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.04493/2.3, allocations: 23.45 MB / 0.941 GB, free: 119.6 MB / 478.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.009564/2.309, allocations: 6.313 MB / 0.9472 GB, free: 114.9 MB / 478.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.002305/2.312, allocations: 495.2 kB / 0.9477 GB, free: 114.4 MB / 478.1 MB Notification: Performance of SimCode: time 7.92e-07/2.312, allocations: 0 / 0.9477 GB, free: 114.4 MB / 478.1 MB Notification: Performance of Templates: time 0.3967/2.708, allocations: 164.2 MB / 1.108 GB, free: 113.9 MB / 478.1 MB make -j1 -f Modelica_4.0.0_Modelica.Mechanics.MultiBody.Examples.Loops.Engine1b_analytic.makefile (rm -f Modelica_4.0.0_Modelica.Mechanics.MultiBody.Examples.Loops.Engine1b_analytic.pipe ; mkfifo Modelica_4.0.0_Modelica.Mechanics.MultiBody.Examples.Loops.Engine1b_analytic.pipe ; head -c 1048576 < Modelica_4.0.0_Modelica.Mechanics.MultiBody.Examples.Loops.Engine1b_analytic.pipe >> ../files/Modelica_4.0.0_Modelica.Mechanics.MultiBody.Examples.Loops.Engine1b_analytic.sim & ./Modelica_4.0.0_Modelica.Mechanics.MultiBody.Examples.Loops.Engine1b_analytic -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Modelica_4.0.0_Modelica.Mechanics.MultiBody.Examples.Loops.Engine1b_analytic.pipe 2>&1) diffSimulationResults("Modelica_4.0.0_Modelica.Mechanics.MultiBody.Examples.Loops.Engine1b_analytic_res.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/Modelica/Mechanics/MultiBody/Examples/Loops/Engine1b_analytic/Engine1b_analytic.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_4.0.0_Modelica.Mechanics.MultiBody.Examples.Loops.Engine1b_analytic.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches