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.00165/0.00165, allocations: 107.9 kB / 16.51 MB, free: 6.707 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.001848/0.001849, allocations: 190.5 kB / 17.43 MB, free: 6.066 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.318/1.318, allocations: 222.9 MB / 241.1 MB, free: 15.44 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001037/0.001037, allocations: 47.88 kB / 299.9 MB, free: 6.297 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.08734/0.0884, allocations: 49.45 MB / 349.4 MB, free: 4.844 MB / 286.1 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.MultiBody.Examples.Loops.Engine1b_analytic): time 0.2522/0.3406, allocations: 114.2 MB / 463.6 MB, free: 2.434 MB / 366.1 MB Notification: Performance of NFInst.instExpressions: time 0.05242/0.3931, allocations: 22.39 MB / 486 MB, free: 11.98 MB / 398.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.02053/0.4137, allocations: 0.5065 MB / 486.5 MB, free: 11.47 MB / 398.1 MB Notification: Performance of NFTyping.typeComponents: time 0.01351/0.4272, allocations: 7.988 MB / 494.5 MB, free: 3.465 MB / 398.1 MB Notification: Performance of NFTyping.typeBindings: time 0.00943/0.4367, allocations: 3.403 MB / 497.9 MB, free: 52 kB / 398.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.004774/0.4415, allocations: 1.845 MB / 499.8 MB, free: 14.2 MB / 414.1 MB Notification: Performance of NFFlatten.flatten: time 0.02153/0.4631, allocations: 18.82 MB / 0.5064 GB, free: 11.36 MB / 430.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.01496/0.4781, allocations: 10.14 MB / 0.5163 GB, free: 1.145 MB / 430.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.007021/0.4851, allocations: 3.738 MB / 0.52 GB, free: 13.39 MB / 446.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.008632/0.4938, allocations: 5.991 MB / 0.5258 GB, free: 7.383 MB / 446.1 MB Notification: Performance of NFPackage.collectConstants: time 0.002781/0.4966, allocations: 0.6289 MB / 0.5265 GB, free: 6.754 MB / 446.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.005393/0.502, allocations: 1.888 MB / 0.5283 GB, free: 4.867 MB / 446.1 MB Notification: Performance of NFScalarize.scalarize: time 0.007156/0.5092, allocations: 4.707 MB / 0.5329 GB, free: 152 kB / 446.1 MB Notification: Performance of NFVerifyModel.verify: time 0.2547/0.764, allocations: 5.029 MB / 0.5378 GB, free: 23.48 MB / 446.1 MB Notification: Performance of NFConvertDAE.convert: time 0.02085/0.7849, allocations: 16.62 MB / 0.554 GB, free: 21.52 MB / 446.1 MB Notification: Performance of FrontEnd - DAE generated: time 6.903e-06/0.7849, allocations: 0 / 0.554 GB, free: 21.52 MB / 446.1 MB Notification: Performance of FrontEnd: time 1.714e-06/0.785, allocations: 2.312 kB / 0.554 GB, free: 21.52 MB / 446.1 MB Notification: Performance of Transformations before backend: time 0.0006089/0.7856, allocations: 0 / 0.554 GB, free: 21.52 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.03842/0.824, allocations: 11.21 MB / 0.565 GB, free: 17.55 MB / 446.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.566e-05/0.8241, allocations: 10.06 kB / 0.565 GB, free: 17.55 MB / 446.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.04416/0.8682, allocations: 5.422 MB / 0.5703 GB, free: 16.95 MB / 446.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.02303/0.8913, allocations: 8.844 MB / 0.5789 GB, free: 15.14 MB / 446.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0006026/0.8919, allocations: 0.5188 MB / 0.5794 GB, free: 15.12 MB / 446.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.004559/0.8965, allocations: 0.7294 MB / 0.5802 GB, free: 15.1 MB / 446.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.04191/0.9384, allocations: 19.51 MB / 0.5992 GB, free: 7.285 MB / 446.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0004231/0.9389, allocations: 90.27 kB / 0.5993 GB, free: 7.262 MB / 446.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.002122/0.941, allocations: 325.5 kB / 0.5996 GB, free: 7.078 MB / 446.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.003721/0.9448, allocations: 2.821 MB / 0.6024 GB, free: 6.023 MB / 446.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.03416/0.9789, allocations: 16.24 MB / 0.6182 GB, free: 7.129 MB / 462.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.1184/1.097, allocations: 74.46 MB / 0.6909 GB, free: 11.52 MB / 0.5294 GB Notification: Performance of preOpt comSubExp (simulation): time 0.02364/1.121, allocations: 8.49 MB / 0.6992 GB, free: 2.895 MB / 0.5294 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.006927/1.128, allocations: 4.772 MB / 0.7039 GB, free: 14.11 MB / 0.545 GB Notification: Performance of preOpt evalFunc (simulation): time 0.02733/1.155, allocations: 15.4 MB / 0.7189 GB, free: 14.24 MB / 0.5606 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 6.183e-05/1.156, allocations: 68.66 kB / 0.719 GB, free: 14.16 MB / 0.5606 GB Notification: Performance of pre-optimization done (n=321): time 6.062e-06/1.156, allocations: 0 / 0.719 GB, free: 14.16 MB / 0.5606 GB Notification: Performance of matching and sorting (n=428): time 0.4034/1.559, allocations: 54.61 MB / 0.7723 GB, free: 249.9 MB / 0.5606 GB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001187/1.559, allocations: 410.5 kB / 0.7727 GB, free: 249.4 MB / 0.5606 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.01094/1.57, allocations: 7.557 MB / 0.7801 GB, free: 243.1 MB / 0.5606 GB Notification: Performance of collectPreVariables (initialization): time 0.001325/1.571, allocations: 97.7 kB / 0.7802 GB, free: 243 MB / 0.5606 GB Notification: Performance of collectInitialEqns (initialization): time 0.003303/1.575, allocations: 5.591 MB / 0.7857 GB, free: 238 MB / 0.5606 GB Notification: Performance of collectInitialBindings (initialization): time 0.002617/1.577, allocations: 1.559 MB / 0.7872 GB, free: 236.6 MB / 0.5606 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.003743/1.581, allocations: 2.091 MB / 0.7892 GB, free: 234.7 MB / 0.5606 GB Notification: Performance of setup shared object (initialization): time 4.459e-05/1.581, allocations: 301.1 kB / 0.7895 GB, free: 234.4 MB / 0.5606 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.00663/1.588, allocations: 5.22 MB / 0.7946 GB, free: 229.9 MB / 0.5606 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.009398/1.597, allocations: 10.27 MB / 0.8046 GB, free: 217.3 MB / 0.5606 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.01778/1.615, allocations: 16.31 MB / 0.8206 GB, free: 198.6 MB / 0.5606 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.0001543/1.615, allocations: 50.44 kB / 0.8206 GB, free: 198.5 MB / 0.5606 GB Notification: Performance of matching and sorting (n=1335) (initialization): time 0.0507/1.666, allocations: 21.25 MB / 0.8414 GB, free: 177.2 MB / 0.5606 GB Notification: Performance of prepare postOptimizeDAE: time 0.0002279/1.666, allocations: 80.19 kB / 0.8414 GB, free: 177.2 MB / 0.5606 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0003127/1.667, allocations: 172 kB / 0.8416 GB, free: 177 MB / 0.5606 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.01978/1.686, allocations: 6.661 MB / 0.8481 GB, free: 170.3 MB / 0.5606 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.007171/1.694, allocations: 2.148 MB / 0.8502 GB, free: 168.2 MB / 0.5606 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.04814/1.742, allocations: 32.79 MB / 0.8822 GB, free: 135.2 MB / 0.5606 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.009827/1.752, allocations: 0.6221 MB / 0.8828 GB, free: 134.6 MB / 0.5606 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.002384/1.754, allocations: 0.5312 MB / 0.8834 GB, free: 134.1 MB / 0.5606 GB 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.01065/1.765, allocations: 4.1 MB / 0.8874 GB, free: 130 MB / 0.5606 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.002551/1.767, allocations: 0.6942 MB / 0.888 GB, free: 129.3 MB / 0.5606 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.03148/1.799, allocations: 14.31 MB / 0.902 GB, free: 114.9 MB / 0.5606 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.55e-05/1.799, allocations: 47.94 kB / 0.9021 GB, free: 114.9 MB / 0.5606 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.719e-05/1.799, allocations: 27.94 kB / 0.9021 GB, free: 114.8 MB / 0.5606 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 9.551e-05/1.799, allocations: 22.5 kB / 0.9021 GB, free: 114.8 MB / 0.5606 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.06652/1.866, allocations: 28.25 MB / 0.9297 GB, free: 86.37 MB / 0.5606 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.666e-05/1.866, allocations: 20.12 kB / 0.9297 GB, free: 86.35 MB / 0.5606 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.003012/1.869, allocations: 0.5929 MB / 0.9303 GB, free: 85.75 MB / 0.5606 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.01901/1.888, allocations: 6.311 MB / 0.9365 GB, free: 79.43 MB / 0.5606 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.001637/1.889, allocations: 79.98 kB / 0.9365 GB, free: 79.35 MB / 0.5606 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0409/1.93, allocations: 29.74 MB / 0.9656 GB, free: 49.46 MB / 0.5606 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 8.777e-06/1.93, allocations: 15.94 kB / 0.9656 GB, free: 49.45 MB / 0.5606 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.03791/1.968, allocations: 20.93 MB / 0.986 GB, free: 28.34 MB / 0.5606 GB Notification: Performance of postOpt removeConstants (simulation): time 0.2179/2.186, allocations: 1.559 MB / 0.9876 GB, free: 237 MB / 0.5606 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.003091/2.189, allocations: 81.7 kB / 0.9876 GB, free: 237 MB / 0.5606 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.00654/2.196, allocations: 327.3 kB / 0.988 GB, free: 237 MB / 0.5606 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.002115/2.198, allocations: 298 kB / 0.9882 GB, free: 237 MB / 0.5606 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0007213/2.199, allocations: 124 kB / 0.9884 GB, free: 237 MB / 0.5606 GB Notification: Performance of sorting global known variables: time 0.01193/2.211, allocations: 4.83 MB / 0.9931 GB, free: 236.8 MB / 0.5606 GB Notification: Performance of sort global known variables: time 5.31e-07/2.211, allocations: 0 / 0.9931 GB, free: 236.8 MB / 0.5606 GB Notification: Performance of remove unused functions: time 0.01451/2.225, allocations: 2.434 MB / 0.9955 GB, free: 236.8 MB / 0.5606 GB 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.001796/2.227, allocations: 283.3 kB / 0.9957 GB, free: 236.7 MB / 0.5606 GB Notification: Performance of simCode: created initialization part: time 0.02304/2.25, allocations: 12.71 MB / 1.008 GB, free: 234.5 MB / 0.5606 GB Notification: Performance of simCode: created event and clocks part: time 1.355e-05/2.25, allocations: 1.25 kB / 1.008 GB, free: 234.5 MB / 0.5606 GB Notification: Performance of simCode: created simulation system equations: time 0.008896/2.259, allocations: 5.346 MB / 1.013 GB, free: 232.2 MB / 0.5606 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.01075/2.27, allocations: 1.015 MB / 1.014 GB, free: 231.8 MB / 0.5606 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.05057/2.32, allocations: 26.86 MB / 1.041 GB, free: 217.3 MB / 0.5606 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.01066/2.331, allocations: 6.383 MB / 1.047 GB, free: 212.5 MB / 0.5606 GB Notification: Performance of simCode: alias equations: time 0.009118/2.34, allocations: 2.961 MB / 1.05 GB, free: 210.7 MB / 0.5606 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001993/2.342, allocations: 435.5 kB / 1.05 GB, free: 210.2 MB / 0.5606 GB Notification: Performance of SimCode: time 9.31e-07/2.342, allocations: 0 / 1.05 GB, free: 210.2 MB / 0.5606 GB Notification: Performance of Templates: time 0.1628/2.505, allocations: 108.4 MB / 1.156 GB, free: 107.9 MB / 0.5606 GB 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/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/Modelica/Mechanics/MultiBody/Examples/Loops/Engine1b_analytic/Engine1b_analytic.csv","/var/lib/jenkins/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