Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_4.1.0-beta.om_Modelica.Mechanics.MultiBody.Examples.Loops.Engine1b_analytic.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0-beta.om/package.mo", uses=false) Using package Modelica with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0-beta.om/package.mo) Using package Complex with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo) Using package ModelicaServices with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/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.1.0-beta.om_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.1.0-beta.om_Modelica.Mechanics.MultiBody.Examples.Loops.Engine1b_analytic") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.001409/0.001409, allocations: 109.8 kB / 18.3 MB, free: 4.84 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001469/0.001469, allocations: 207.9 kB / 19.25 MB, free: 3.898 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0-beta.om/package.mo): time 1.463/1.463, allocations: 227.7 MB / 247.7 MB, free: 10.31 MB / 206.1 MB Warning: Requested package Modelica of version trunk, but this package was already loaded with version 4.1.0. OpenModelica cannot reason about compatibility between the two packages since they are not semantic versions. Warning: Requested package Complex of version 4.1.0, but this package was already loaded with version trunk. OpenModelica cannot reason about compatibility between the two packages since they are not semantic versions. Warning: Requested package ModelicaServices of version 4.1.0, but this package was already loaded with version trunk. OpenModelica cannot reason about compatibility between the two packages since they are not semantic versions. Notification: Performance of FrontEnd - loaded program: time 0.002023/0.002023, allocations: 65.2 kB / 307.9 MB, free: 496 kB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09877/0.1008, allocations: 50.54 MB / 358.4 MB, free: 13.93 MB / 302.1 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.MultiBody.Examples.Loops.Engine1b_analytic): time 0.194/0.2949, allocations: 23.3 MB / 381.7 MB, free: 8.363 MB / 302.1 MB Notification: Performance of NFInst.instExpressions: time 0.01508/0.31, allocations: 7.083 MB / 388.8 MB, free: 4.234 MB / 302.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.005315/0.3153, allocations: 184.4 kB / 389 MB, free: 4.191 MB / 302.1 MB Notification: Performance of NFTyping.typeComponents: time 0.01334/0.3287, allocations: 7.91 MB / 396.9 MB, free: 232 kB / 302.1 MB Notification: Performance of NFTyping.typeBindings: time 0.01086/0.3396, allocations: 3.535 MB / 400.4 MB, free: 13.61 MB / 318.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.006462/0.3461, allocations: 2.009 MB / 402.4 MB, free: 12.23 MB / 318.1 MB Notification: Performance of NFFlatten.flatten: time 0.0205/0.3667, allocations: 13.56 MB / 416 MB, free: 1.68 MB / 318.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.01621/0.3829, allocations: 10.46 MB / 426.5 MB, free: 7.129 MB / 334.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.009426/0.3924, allocations: 4.238 MB / 430.7 MB, free: 2.879 MB / 334.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.01043/0.4029, allocations: 5.688 MB / 436.4 MB, free: 13.18 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 0.003528/0.4064, allocations: 1 MB / 437.4 MB, free: 12.18 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.006117/0.4126, allocations: 2.15 MB / 439.5 MB, free: 10.02 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 0.007416/0.42, allocations: 5.004 MB / 444.6 MB, free: 5.008 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 0.01059/0.4306, allocations: 5.394 MB / 449.9 MB, free: 15.58 MB / 366.1 MB Notification: Performance of NFConvertDAE.convert: time 0.02273/0.4534, allocations: 16.87 MB / 466.8 MB, free: 14.67 MB / 382.1 MB Notification: Performance of FrontEnd - DAE generated: time 7.914e-06/0.4535, allocations: 4 kB / 466.8 MB, free: 14.66 MB / 382.1 MB Notification: Performance of FrontEnd: time 2.013e-06/0.4535, allocations: 0 / 466.8 MB, free: 14.66 MB / 382.1 MB Notification: Performance of Transformations before backend: time 0.0004957/0.454, allocations: 0 / 466.8 MB, free: 14.66 MB / 382.1 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 2752 * Number of variables: 2752 Notification: Performance of Generate backend data structure: time 0.03062/0.4846, allocations: 11.18 MB / 478 MB, free: 3.383 MB / 382.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.323e-05/0.4847, allocations: 11.97 kB / 478 MB, free: 3.371 MB / 382.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.04857/0.5332, allocations: 5.422 MB / 483.4 MB, free: 13.93 MB / 398.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.02529/0.5586, allocations: 8.676 MB / 492.1 MB, free: 5.16 MB / 398.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0008744/0.5595, allocations: 0.522 MB / 492.6 MB, free: 4.637 MB / 398.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.00425/0.5638, allocations: 0.7259 MB / 493.4 MB, free: 3.91 MB / 398.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.06483/0.6286, allocations: 19.52 MB / 0.5009 GB, free: 15.34 MB / 430.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0004445/0.6291, allocations: 91.12 kB / 0.5009 GB, free: 15.26 MB / 430.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.002536/0.6317, allocations: 323.8 kB / 0.5012 GB, free: 14.94 MB / 430.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.004934/0.6366, allocations: 2.821 MB / 0.504 GB, free: 12.12 MB / 430.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.03863/0.6753, allocations: 16.25 MB / 0.5199 GB, free: 11.84 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.4651/1.14, allocations: 74.42 MB / 0.5926 GB, free: 83.57 MB / 446.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.02223/1.163, allocations: 8.481 MB / 0.6008 GB, free: 79.17 MB / 446.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.006197/1.169, allocations: 4.786 MB / 0.6055 GB, free: 76.55 MB / 446.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.02576/1.195, allocations: 15.46 MB / 0.6206 GB, free: 61.21 MB / 446.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 6.724e-05/1.195, allocations: 68.64 kB / 0.6207 GB, free: 61.13 MB / 446.1 MB Notification: Performance of pre-optimization done (n=320): time 7.104e-06/1.195, allocations: 5.031 kB / 0.6207 GB, free: 61.13 MB / 446.1 MB Notification: Performance of matching and sorting (n=426): time 0.1788/1.374, allocations: 52.3 MB / 0.6717 GB, free: 8.742 MB / 446.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001073/1.374, allocations: 406.8 kB / 0.6721 GB, free: 8.258 MB / 446.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.01252/1.386, allocations: 7.543 MB / 0.6795 GB, free: 0.75 MB / 446.1 MB Notification: Performance of collectPreVariables (initialization): time 0.001195/1.388, allocations: 97.69 kB / 0.6796 GB, free: 0.6484 MB / 446.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.005875/1.394, allocations: 5.597 MB / 0.6851 GB, free: 11.05 MB / 462.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.002918/1.396, allocations: 1.554 MB / 0.6866 GB, free: 9.488 MB / 462.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.007316/1.404, allocations: 2.086 MB / 0.6886 GB, free: 7.391 MB / 462.1 MB Notification: Performance of setup shared object (initialization): time 0.0001443/1.404, allocations: 302.8 kB / 0.6889 GB, free: 7.094 MB / 462.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.009633/1.414, allocations: 5.213 MB / 0.694 GB, free: 1.875 MB / 462.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0151/1.429, allocations: 10.26 MB / 0.704 GB, free: 5.191 MB / 478.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.2252/1.654, allocations: 16.3 MB / 0.7199 GB, free: 140.9 MB / 478.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.0001693/1.654, allocations: 52.69 kB / 0.72 GB, free: 140.9 MB / 478.1 MB Notification: Performance of matching and sorting (n=1333) (initialization): time 0.04726/1.702, allocations: 21.23 MB / 0.7407 GB, free: 133.8 MB / 478.1 MB Notification: Performance of prepare postOptimizeDAE: time 0.000151/1.702, allocations: 82.34 kB / 0.7408 GB, free: 133.8 MB / 478.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0003022/1.702, allocations: 170.7 kB / 0.741 GB, free: 133.8 MB / 478.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0197/1.722, allocations: 6.679 MB / 0.7475 GB, free: 132.4 MB / 478.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.007064/1.729, allocations: 2.157 MB / 0.7496 GB, free: 132.2 MB / 478.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.04366/1.773, allocations: 35.04 MB / 0.7838 GB, free: 100.1 MB / 478.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.009347/1.782, allocations: 0.6271 MB / 0.7844 GB, free: 99.52 MB / 478.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.00207/1.784, allocations: 0.5377 MB / 0.785 GB, free: 98.99 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 (1176): * Single equations (assignments): 1171 * 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.007417/1.791, allocations: 4.091 MB / 0.789 GB, free: 94.99 MB / 478.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.001714/1.793, allocations: 0.6861 MB / 0.7896 GB, free: 94.67 MB / 478.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.02744/1.821, allocations: 14.3 MB / 0.8036 GB, free: 80.32 MB / 478.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 7.129e-05/1.821, allocations: 44 kB / 0.8036 GB, free: 80.28 MB / 478.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.903e-05/1.821, allocations: 24 kB / 0.8036 GB, free: 80.26 MB / 478.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 9.242e-05/1.821, allocations: 23.86 kB / 0.8037 GB, free: 80.23 MB / 478.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.05301/1.874, allocations: 28.25 MB / 0.8313 GB, free: 51.91 MB / 478.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.342e-05/1.874, allocations: 4 kB / 0.8313 GB, free: 51.91 MB / 478.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.002983/1.877, allocations: 0.5928 MB / 0.8318 GB, free: 51.31 MB / 478.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.01828/1.895, allocations: 6.342 MB / 0.838 GB, free: 44.97 MB / 478.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.001204/1.897, allocations: 83.98 kB / 0.8381 GB, free: 44.89 MB / 478.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.03937/1.936, allocations: 31.91 MB / 0.8693 GB, free: 12.86 MB / 478.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 7.704e-06/1.936, allocations: 12 kB / 0.8693 GB, free: 12.85 MB / 478.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.2517/2.188, allocations: 20.93 MB / 0.8897 GB, free: 156 MB / 494.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.002421/2.19, allocations: 0.7367 MB / 0.8904 GB, free: 155.9 MB / 494.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.00225/2.192, allocations: 76.91 kB / 0.8905 GB, free: 155.9 MB / 494.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.004851/2.197, allocations: 327.8 kB / 0.8908 GB, free: 155.9 MB / 494.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.001563/2.199, allocations: 304.9 kB / 0.8911 GB, free: 155.9 MB / 494.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.000455/2.199, allocations: 111 kB / 0.8912 GB, free: 155.9 MB / 494.1 MB Notification: Performance of sorting global known variables: time 0.01027/2.21, allocations: 4.829 MB / 0.8959 GB, free: 155 MB / 494.1 MB Notification: Performance of sort global known variables: time 1.032e-06/2.21, allocations: 0.875 kB / 0.8959 GB, free: 155 MB / 494.1 MB Notification: Performance of remove unused functions: time 0.01329/2.223, allocations: 2.406 MB / 0.8983 GB, free: 154.7 MB / 494.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 (294): * Single equations (assignments): 290 * 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.001395/2.224, allocations: 282 kB / 0.8986 GB, free: 154.6 MB / 494.1 MB Notification: Performance of simCode: created initialization part: time 0.0298/2.254, allocations: 17.79 MB / 0.9159 GB, free: 149.5 MB / 494.1 MB Notification: Performance of simCode: created event and clocks part: time 1.895e-05/2.254, allocations: 6.75 kB / 0.9159 GB, free: 149.5 MB / 494.1 MB Notification: Performance of simCode: created simulation system equations: time 0.008253/2.262, allocations: 5.345 MB / 0.9212 GB, free: 147.2 MB / 494.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.007556/2.27, allocations: 1.068 MB / 0.9222 GB, free: 146.8 MB / 494.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.03947/2.31, allocations: 23.44 MB / 0.9451 GB, free: 126.6 MB / 494.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.008922/2.319, allocations: 6.304 MB / 0.9513 GB, free: 121.9 MB / 494.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.002054/2.321, allocations: 491 kB / 0.9517 GB, free: 121.4 MB / 494.1 MB Notification: Performance of SimCode: time 1.242e-06/2.321, allocations: 4 kB / 0.9517 GB, free: 121.4 MB / 494.1 MB Notification: Performance of Templates: time 0.4002/2.721, allocations: 163.8 MB / 1.112 GB, free: 123.6 MB / 494.1 MB make -j1 -f Modelica_4.1.0-beta.om_Modelica.Mechanics.MultiBody.Examples.Loops.Engine1b_analytic.makefile (rm -f Modelica_4.1.0-beta.om_Modelica.Mechanics.MultiBody.Examples.Loops.Engine1b_analytic.pipe ; mkfifo Modelica_4.1.0-beta.om_Modelica.Mechanics.MultiBody.Examples.Loops.Engine1b_analytic.pipe ; head -c 1048576 < Modelica_4.1.0-beta.om_Modelica.Mechanics.MultiBody.Examples.Loops.Engine1b_analytic.pipe >> ../files/Modelica_4.1.0-beta.om_Modelica.Mechanics.MultiBody.Examples.Loops.Engine1b_analytic.sim & ./Modelica_4.1.0-beta.om_Modelica.Mechanics.MultiBody.Examples.Loops.Engine1b_analytic -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Modelica_4.1.0-beta.om_Modelica.Mechanics.MultiBody.Examples.Loops.Engine1b_analytic.pipe 2>&1) diffSimulationResults("Modelica_4.1.0-beta.om_Modelica.Mechanics.MultiBody.Examples.Loops.Engine1b_analytic_res.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.1.0/Modelica/Mechanics/MultiBody/Examples/Loops/Engine1b_analytic/Engine1b_analytic.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_4.1.0-beta.om_Modelica.Mechanics.MultiBody.Examples.Loops.Engine1b_analytic.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches