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.00153/0.00153, allocations: 109.7 kB / 18.4 MB, free: 4.523 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.00168/0.00168, allocations: 191 kB / 19.34 MB, free: 3.598 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.258/1.258, allocations: 205.1 MB / 225.2 MB, free: 12.21 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.001178/0.001178, allocations: 51.94 kB / 329.2 MB, free: 3.281 MB / 270.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.07346/0.07465, allocations: 46.62 MB / 375.8 MB, free: 4.555 MB / 318.1 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.MultiBody.Examples.Loops.Engine1a): time 0.1646/0.2393, allocations: 19.49 MB / 395.3 MB, free: 1.438 MB / 318.1 MB Notification: Performance of NFInst.instExpressions: time 0.01134/0.2507, allocations: 5.995 MB / 401.3 MB, free: 13.41 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.001983/0.2527, allocations: 156.7 kB / 401.5 MB, free: 13.38 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 0.009934/0.2627, allocations: 5.858 MB / 407.3 MB, free: 10.64 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 0.007132/0.2698, allocations: 3.361 MB / 410.7 MB, free: 8.238 MB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.002819/0.2727, allocations: 1.573 MB / 412.3 MB, free: 7.18 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 0.01301/0.2857, allocations: 11.36 MB / 423.6 MB, free: 15.64 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.007243/0.2929, allocations: 7.667 MB / 431.3 MB, free: 7.922 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.004318/0.2973, allocations: 3.599 MB / 434.9 MB, free: 4.312 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.005139/0.3024, allocations: 4.791 MB / 439.7 MB, free: 15.51 MB / 366.1 MB Notification: Performance of NFPackage.collectConstants: time 0.001107/0.3036, allocations: 0.7148 MB / 440.4 MB, free: 14.79 MB / 366.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.00288/0.3064, allocations: 1.678 MB / 442.1 MB, free: 13.11 MB / 366.1 MB Notification: Performance of NFScalarize.scalarize: time 0.003477/0.3099, allocations: 4.298 MB / 446.4 MB, free: 8.805 MB / 366.1 MB Notification: Performance of NFVerifyModel.verify: time 0.003956/0.3139, allocations: 4.483 MB / 450.9 MB, free: 4.297 MB / 366.1 MB Notification: Performance of NFConvertDAE.convert: time 0.01178/0.3257, allocations: 13.68 MB / 464.5 MB, free: 6.574 MB / 382.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.829e-06/0.3257, allocations: 4 kB / 464.5 MB, free: 6.57 MB / 382.1 MB Notification: Performance of FrontEnd: time 4.037e-06/0.3257, allocations: 3.984 kB / 464.5 MB, free: 6.566 MB / 382.1 MB Notification: Performance of Transformations before backend: time 0.0002013/0.3259, allocations: 0 / 464.5 MB, free: 6.566 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: 2386 * Number of variables: 2386 Notification: Performance of Generate backend data structure: time 0.01693/0.3429, allocations: 9.684 MB / 474.2 MB, free: 12.79 MB / 398.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.11e-05/0.3429, allocations: 12.03 kB / 474.2 MB, free: 12.78 MB / 398.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.04411/0.387, allocations: 5.244 MB / 479.5 MB, free: 7.52 MB / 398.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.01675/0.4038, allocations: 8.374 MB / 487.9 MB, free: 15.08 MB / 414.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.000271/0.4041, allocations: 427.6 kB / 488.3 MB, free: 14.66 MB / 414.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0009936/0.4051, allocations: 0.5853 MB / 488.9 MB, free: 14.07 MB / 414.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.02427/0.4294, allocations: 16.56 MB / 0.4936 GB, free: 12.46 MB / 430.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.000198/0.4296, allocations: 95.17 kB / 0.4937 GB, free: 12.37 MB / 430.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0006295/0.4302, allocations: 263.8 kB / 0.4939 GB, free: 12.11 MB / 430.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.004117/0.4344, allocations: 2.768 MB / 0.4966 GB, free: 9.34 MB / 430.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.02336/0.4577, allocations: 13.63 MB / 0.5099 GB, free: 11.69 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.3746/0.8323, allocations: 67.64 MB / 0.576 GB, free: 105.3 MB / 478.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.01914/0.8515, allocations: 7.908 MB / 0.5837 GB, free: 104.3 MB / 478.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.004722/0.8563, allocations: 4.508 MB / 0.5881 GB, free: 102.4 MB / 478.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.01481/0.8711, allocations: 12.43 MB / 0.6002 GB, free: 96.77 MB / 478.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.633e-05/0.8711, allocations: 67.95 kB / 0.6003 GB, free: 96.71 MB / 478.1 MB Notification: Performance of pre-optimization done (n=280): time 4.929e-06/0.8712, allocations: 0 / 0.6003 GB, free: 96.71 MB / 478.1 MB Notification: Performance of matching and sorting (n=340): time 0.1572/1.028, allocations: 49.27 MB / 0.6484 GB, free: 58.48 MB / 478.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 7.169e-05/1.028, allocations: 394.1 kB / 0.6488 GB, free: 58.01 MB / 478.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.007339/1.036, allocations: 7.186 MB / 0.6558 GB, free: 50.85 MB / 478.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0004127/1.036, allocations: 77.7 kB / 0.6559 GB, free: 50.77 MB / 478.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.002019/1.038, allocations: 5.036 MB / 0.6608 GB, free: 45.73 MB / 478.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0007963/1.039, allocations: 1.263 MB / 0.662 GB, free: 44.48 MB / 478.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.002063/1.041, allocations: 1.868 MB / 0.6639 GB, free: 42.6 MB / 478.1 MB Notification: Performance of setup shared object (initialization): time 3.174e-05/1.041, allocations: 305 kB / 0.6641 GB, free: 42.3 MB / 478.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.004928/1.046, allocations: 4.547 MB / 0.6686 GB, free: 37.75 MB / 478.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.006413/1.053, allocations: 9.27 MB / 0.6776 GB, free: 26.25 MB / 478.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.01263/1.065, allocations: 14.55 MB / 0.6918 GB, free: 9.48 MB / 478.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 6.446e-05/1.065, allocations: 44 kB / 0.6919 GB, free: 9.438 MB / 478.1 MB Notification: Performance of matching and sorting (n=1185) (initialization): time 0.03529/1.101, allocations: 19.77 MB / 0.7112 GB, free: 5.617 MB / 494.1 MB Notification: Performance of prepare postOptimizeDAE: time 0.0001029/1.101, allocations: 76 kB / 0.7113 GB, free: 5.543 MB / 494.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0001686/1.101, allocations: 164 kB / 0.7114 GB, free: 5.383 MB / 494.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.02096/1.122, allocations: 7.036 MB / 0.7183 GB, free: 14.32 MB / 0.4982 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.005915/1.128, allocations: 1.93 MB / 0.7202 GB, free: 12.39 MB / 0.4982 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.2145/1.342, allocations: 35.31 MB / 0.7547 GB, free: 166.2 MB / 0.5138 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.006927/1.349, allocations: 0.5886 MB / 0.7552 GB, free: 166.2 MB / 0.5138 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0007501/1.35, allocations: 498.2 kB / 0.7557 GB, free: 166.2 MB / 0.5138 GB 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.00459/1.355, allocations: 3.484 MB / 0.7591 GB, free: 165.7 MB / 0.5138 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0009597/1.356, allocations: 0.6391 MB / 0.7597 GB, free: 165.7 MB / 0.5138 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.02651/1.382, allocations: 13.32 MB / 0.7728 GB, free: 161.6 MB / 0.5138 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.097e-05/1.382, allocations: 18.95 kB / 0.7728 GB, free: 161.6 MB / 0.5138 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 8.025e-06/1.382, allocations: 1.562 kB / 0.7728 GB, free: 161.6 MB / 0.5138 GB Notification: Performance of postOpt removeConstants (simulation): time 0.002579/1.385, allocations: 1.389 MB / 0.7741 GB, free: 161.2 MB / 0.5138 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0007727/1.386, allocations: 56.84 kB / 0.7742 GB, free: 161.1 MB / 0.5138 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.003024/1.389, allocations: 306.1 kB / 0.7745 GB, free: 161.1 MB / 0.5138 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0006907/1.389, allocations: 297.4 kB / 0.7748 GB, free: 161.1 MB / 0.5138 GB Notification: Performance of postOpt createDAEmodeBDAE (simulation): time 0.02083/1.41, allocations: 12.25 MB / 0.7867 GB, free: 157.4 MB / 0.5138 GB Notification: Performance of postOpt symbolicJacobianDAE (simulation): time 0.01282/1.423, allocations: 12.54 MB / 0.799 GB, free: 152.5 MB / 0.5138 GB Notification: Performance of postOpt setEvaluationStage (simulation): time 0.003299/1.426, allocations: 3.556 MB / 0.8024 GB, free: 151.1 MB / 0.5138 GB Notification: Performance of sorting global known variables: time 0.005428/1.432, allocations: 4.607 MB / 0.8069 GB, free: 147.2 MB / 0.5138 GB Notification: Performance of Backend: time 3.91e-07/1.432, allocations: 0 / 0.8069 GB, free: 147.2 MB / 0.5138 GB Notification: Performance of simCode: created initialization part: time 0.01386/1.446, allocations: 8.713 MB / 0.8154 GB, free: 138.7 MB / 0.5138 GB Notification: Performance of SimCode: time 0.0197/1.465, allocations: 17.37 MB / 0.8324 GB, free: 121.4 MB / 0.5138 GB Notification: Performance of Templates: time 0.2941/1.759, allocations: 106.3 MB / 0.9362 GB, free: 173.1 MB / 0.5138 GB 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)