Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_3.2.3_Modelica.Mechanics.MultiBody.Examples.Loops.Engine1a.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.Engine1a,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|Inertia.phi|Inertia.w",fileNamePrefix="Modelica_3.2.3_Modelica.Mechanics.MultiBody.Examples.Loops.Engine1a") translateModel(Modelica.Mechanics.MultiBody.Examples.Loops.Engine1a,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|Inertia.phi|Inertia.w",fileNamePrefix="Modelica_3.2.3_Modelica.Mechanics.MultiBody.Examples.Loops.Engine1a") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.000849/0.0008492, allocations: 93.25 kB / 17.3 MB, free: 6.391 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.0007666/0.0007666, allocations: 172.9 kB / 18.2 MB, free: 5.551 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.435/1.435, 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.0005706/0.0005708, allocations: 23.98 kB / 281.4 MB, free: 3.398 MB / 222.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09621/0.09679, allocations: 47.58 MB / 329 MB, free: 3.75 MB / 270.1 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.MultiBody.Examples.Loops.Engine1a): time 0.2974/0.3942, allocations: 101 MB / 430 MB, free: 14.67 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.05098/0.4452, allocations: 19.9 MB / 449.9 MB, free: 13.48 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.02604/0.4713, allocations: 466.8 kB / 450.3 MB, free: 13.03 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.003086/0.4745, allocations: 0.7073 MB / 451.1 MB, free: 12.32 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.009893/0.4844, allocations: 3.199 MB / 454.2 MB, free: 9.109 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.004097/0.4885, allocations: 1.459 MB / 455.7 MB, free: 7.648 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.02289/0.5114, allocations: 15.88 MB / 471.6 MB, free: 7.73 MB / 366.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0179/0.5294, allocations: 10.32 MB / 481.9 MB, free: 13.31 MB / 382.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.005977/0.5354, allocations: 2.72 MB / 484.6 MB, free: 10.58 MB / 382.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.007156/0.5426, allocations: 4.458 MB / 489.1 MB, free: 6.109 MB / 382.1 MB Notification: Performance of NFPackage.collectConstants: time 0.001831/0.5445, allocations: 287.9 kB / 489.4 MB, free: 5.828 MB / 382.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.003989/0.5485, allocations: 1.299 MB / 490.7 MB, free: 4.527 MB / 382.1 MB Notification: Performance of NFScalarize.scalarize: time 0.005653/0.5541, allocations: 3.724 MB / 494.4 MB, free: 0.793 MB / 382.1 MB Notification: Performance of NFVerifyModel.verify: time 0.007582/0.5618, allocations: 3.888 MB / 498.3 MB, free: 12.87 MB / 398.1 MB Notification: Performance of NFConvertDAE.convert: time 0.01774/0.5795, allocations: 12.74 MB / 0.499 GB, free: 92 kB / 398.1 MB Notification: Performance of FrontEnd - DAE generated: time 7.033e-06/0.5796, allocations: 0 / 0.499 GB, free: 92 kB / 398.1 MB Notification: Performance of FrontEnd: time 3.286e-06/0.5796, allocations: 0 / 0.499 GB, free: 92 kB / 398.1 MB Notification: Performance of Transformations before backend: time 0.0006025/0.5802, allocations: 0 / 0.499 GB, free: 92 kB / 398.1 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 2386 * Number of variables: 2386 Notification: Performance of Generate backend data structure: time 0.02231/0.6025, allocations: 8.024 MB / 0.5069 GB, free: 7.98 MB / 414.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.488e-05/0.6026, allocations: 12.03 kB / 0.5069 GB, free: 7.969 MB / 414.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.04966/0.6523, allocations: 5.365 MB / 0.5121 GB, free: 2.586 MB / 414.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.02243/0.6748, allocations: 8.187 MB / 0.5201 GB, free: 10.33 MB / 430.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0005449/0.6754, allocations: 431.4 kB / 0.5205 GB, free: 9.91 MB / 430.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.002976/0.6784, allocations: 0.5853 MB / 0.5211 GB, free: 9.324 MB / 430.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.2552/0.9335, allocations: 16.63 MB / 0.5373 GB, free: 143.5 MB / 430.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0006045/0.9342, allocations: 90.3 kB / 0.5374 GB, free: 143.5 MB / 430.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.002389/0.9366, allocations: 266.8 kB / 0.5377 GB, free: 143.4 MB / 430.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.005455/0.9421, allocations: 2.767 MB / 0.5404 GB, free: 142.9 MB / 430.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.02888/0.9709, allocations: 13.69 MB / 0.5538 GB, free: 137.6 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.08368/1.055, allocations: 68.04 MB / 0.6202 GB, free: 70.53 MB / 430.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.01914/1.074, allocations: 7.937 MB / 0.628 GB, free: 62.46 MB / 430.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.005865/1.08, allocations: 4.505 MB / 0.6324 GB, free: 57.95 MB / 430.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.02053/1.1, allocations: 12.43 MB / 0.6445 GB, free: 45.39 MB / 430.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 6.35e-05/1.1, allocations: 64.56 kB / 0.6446 GB, free: 45.32 MB / 430.1 MB Notification: Performance of pre-optimization done (n=280): time 7.554e-06/1.1, allocations: 0 / 0.6446 GB, free: 45.32 MB / 430.1 MB Notification: Performance of matching and sorting (n=340): time 0.5328/1.633, allocations: 50.09 MB / 0.6935 GB, free: 134.2 MB / 430.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.000195/1.634, allocations: 405.2 kB / 0.6939 GB, free: 133.7 MB / 430.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.01518/1.649, allocations: 7.183 MB / 0.7009 GB, free: 132.3 MB / 430.1 MB Notification: Performance of collectPreVariables (initialization): time 0.001088/1.65, allocations: 77.86 kB / 0.7009 GB, free: 132.2 MB / 430.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.003961/1.654, allocations: 5.038 MB / 0.7059 GB, free: 129.4 MB / 430.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.002473/1.656, allocations: 1.258 MB / 0.7071 GB, free: 128.5 MB / 430.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.002882/1.659, allocations: 0.8076 MB / 0.7079 GB, free: 128.2 MB / 430.1 MB Notification: Performance of setup shared object (initialization): time 7.58e-05/1.659, allocations: 305.1 kB / 0.7082 GB, free: 127.9 MB / 430.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.006673/1.666, allocations: 4.546 MB / 0.7126 GB, free: 126.2 MB / 430.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.008939/1.675, allocations: 9.271 MB / 0.7217 GB, free: 118.3 MB / 430.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.01644/1.691, allocations: 14.54 MB / 0.7359 GB, free: 107.7 MB / 430.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.0001688/1.692, allocations: 49.12 kB / 0.7359 GB, free: 107.7 MB / 430.1 MB Notification: Performance of matching and sorting (n=1185) (initialization): time 0.04151/1.733, allocations: 19.78 MB / 0.7552 GB, free: 90.88 MB / 430.1 MB Notification: Performance of prepare postOptimizeDAE: time 9.71e-05/1.733, allocations: 76 kB / 0.7553 GB, free: 90.81 MB / 430.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0001807/1.734, allocations: 160 kB / 0.7555 GB, free: 90.65 MB / 430.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.02021/1.754, allocations: 7.05 MB / 0.7623 GB, free: 83.59 MB / 430.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.006225/1.76, allocations: 1.932 MB / 0.7642 GB, free: 81.66 MB / 430.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.03883/1.799, allocations: 33.22 MB / 0.7967 GB, free: 48.04 MB / 430.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.009063/1.808, allocations: 0.5968 MB / 0.7973 GB, free: 47.44 MB / 430.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.001903/1.81, allocations: 496.7 kB / 0.7977 GB, free: 46.95 MB / 430.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 733 * Number of states: 0 () * Number of discrete variables: 66 (cylPosition.color[3],cylPosition.color[2],cylPosition.color[1],Cylinder.boxColor[3],Cylinder.boxColor[2],Cylinder.boxColor[1],Mid.color[3],Mid.color[2],Mid.color[1],B1.cylinderColor[3],B1.cylinderColor[2],B1.cylinderColor[1],Crank2.color[3],Crank2.color[2],Crank2.color[1],Crank2.body.sphereColor[3],Crank2.body.sphereColor[2],Crank2.body.sphereColor[1],Crank3.color[3],Crank3.color[2],Crank3.color[1],Crank3.body.sphereColor[3],Crank3.body.sphereColor[2],Crank3.body.sphereColor[1],Crank1.color[3],Crank1.color[2],Crank1.color[1],Crank1.body.sphereColor[3],Crank1.body.sphereColor[2],Crank1.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],B2.cylinderColor[3],B2.cylinderColor[2],B2.cylinderColor[1],Rod.color[3],Rod.color[2],Rod.color[1],Rod.body.sphereColor[3],Rod.body.sphereColor[2],Rod.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 (1049): * Single equations (assignments): 1043 * Array equations: 3 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 3 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 2 systems {(8,93,51.6%), (3,5,88.9%)} * Non-linear torn systems (#iteration vars, #inner vars): 1 system {(2,4)} Notification: Performance of prepare postOptimizeDAE: time 0.007879/1.818, allocations: 3.474 MB / 0.8011 GB, free: 43.47 MB / 430.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.001969/1.82, allocations: 0.638 MB / 0.8017 GB, free: 42.82 MB / 430.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.02683/1.847, allocations: 13.33 MB / 0.8148 GB, free: 29.42 MB / 430.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 8.259e-05/1.847, allocations: 36 kB / 0.8148 GB, free: 29.39 MB / 430.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.845e-05/1.847, allocations: 20 kB / 0.8148 GB, free: 29.37 MB / 430.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.0001013/1.847, allocations: 15.94 kB / 0.8148 GB, free: 29.35 MB / 430.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.04864/1.896, allocations: 26.76 MB / 0.841 GB, free: 2.102 MB / 430.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.901e-05/1.896, allocations: 4 kB / 0.841 GB, free: 2.098 MB / 430.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.002002/1.898, allocations: 423.4 kB / 0.8414 GB, free: 1.684 MB / 430.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.2512/2.149, allocations: 6.684 MB / 0.8479 GB, free: 135.5 MB / 446.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.001094/2.15, allocations: 62.31 kB / 0.848 GB, free: 135.5 MB / 446.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.04396/2.194, allocations: 31.98 MB / 0.8792 GB, free: 123.9 MB / 446.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 7.144e-06/2.194, allocations: 11.03 kB / 0.8792 GB, free: 123.9 MB / 446.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.03353/2.228, allocations: 18.77 MB / 0.8975 GB, free: 115.7 MB / 446.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.004383/2.232, allocations: 1.394 MB / 0.8989 GB, free: 114.6 MB / 446.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.002879/2.235, allocations: 63.94 kB / 0.8989 GB, free: 114.6 MB / 446.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.005386/2.24, allocations: 312.5 kB / 0.8992 GB, free: 114.3 MB / 446.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.001248/2.242, allocations: 242.3 kB / 0.8995 GB, free: 114 MB / 446.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0002975/2.242, allocations: 92.69 kB / 0.8996 GB, free: 113.9 MB / 446.1 MB Notification: Performance of sorting global known variables: time 0.009061/2.251, allocations: 4.607 MB / 0.9041 GB, free: 109.4 MB / 446.1 MB Notification: Performance of sort global known variables: time 3.7e-07/2.251, allocations: 0 / 0.9041 GB, free: 109.4 MB / 446.1 MB Notification: Performance of remove unused functions: time 0.01084/2.262, allocations: 2.154 MB / 0.9062 GB, free: 107.2 MB / 446.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 28 * 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 (215): * Single equations (assignments): 209 * Array equations: 3 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 3 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 2 systems {(7,87,55.1%), (2,4,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 1 system {(2,6)} Notification: Performance of Backend phase and start with SimCode phase: time 0.000964/2.263, allocations: 206.4 kB / 0.9064 GB, free: 107 MB / 446.1 MB Notification: Performance of simCode: created initialization part: time 0.01874/2.282, allocations: 11.57 MB / 0.9177 GB, free: 95.5 MB / 446.1 MB Notification: Performance of simCode: created event and clocks part: time 1.646e-05/2.282, allocations: 3.938 kB / 0.9177 GB, free: 95.5 MB / 446.1 MB Notification: Performance of simCode: created simulation system equations: time 0.008772/2.29, allocations: 5.001 MB / 0.9226 GB, free: 90.49 MB / 446.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.01413/2.305, allocations: 0.9379 MB / 0.9235 GB, free: 89.58 MB / 446.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0381/2.343, allocations: 23.47 MB / 0.9464 GB, free: 66.21 MB / 446.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.007218/2.35, allocations: 5.563 MB / 0.9518 GB, free: 60.61 MB / 446.1 MB Notification: Performance of simCode: alias equations: time 0.006648/2.357, allocations: 2.605 MB / 0.9544 GB, free: 57.99 MB / 446.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001366/2.358, allocations: 399.4 kB / 0.9547 GB, free: 57.6 MB / 446.1 MB Notification: Performance of SimCode: time 1.203e-06/2.358, allocations: 0 / 0.9547 GB, free: 57.6 MB / 446.1 MB Notification: Performance of Templates: time 0.3748/2.733, allocations: 93.4 MB / 1.046 GB, free: 110.3 MB / 446.1 MB make -j1 -f Modelica_3.2.3_Modelica.Mechanics.MultiBody.Examples.Loops.Engine1a.makefile (rm -f Modelica_3.2.3_Modelica.Mechanics.MultiBody.Examples.Loops.Engine1a.pipe ; mkfifo Modelica_3.2.3_Modelica.Mechanics.MultiBody.Examples.Loops.Engine1a.pipe ; head -c 1048576 < Modelica_3.2.3_Modelica.Mechanics.MultiBody.Examples.Loops.Engine1a.pipe >> ../files/Modelica_3.2.3_Modelica.Mechanics.MultiBody.Examples.Loops.Engine1a.sim & ./Modelica_3.2.3_Modelica.Mechanics.MultiBody.Examples.Loops.Engine1a -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Modelica_3.2.3_Modelica.Mechanics.MultiBody.Examples.Loops.Engine1a.pipe 2>&1) diffSimulationResults("Modelica_3.2.3_Modelica.Mechanics.MultiBody.Examples.Loops.Engine1a_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v3.2.3+build.4/Modelica/Mechanics/MultiBody/Examples/Loops/Engine1a/Engine1a.csv","../files/Modelica_3.2.3_Modelica.Mechanics.MultiBody.Examples.Loops.Engine1a.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches