Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_4.0.0_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 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.Engine1a,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|inertia.phi|inertia.w",fileNamePrefix="Modelica_4.0.0_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_4.0.0_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.001055/0.001055, allocations: 108.7 kB / 17.75 MB, free: 5.223 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.001098/0.001098, allocations: 190.4 kB / 18.67 MB, free: 4.305 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.34/1.34, allocations: 222.9 MB / 242.4 MB, free: 15.18 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001026/0.001026, allocations: 47.94 kB / 352 MB, free: 3.234 MB / 286.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2125/0.2136, allocations: 49.43 MB / 401.4 MB, free: 8.77 MB / 318.1 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.MultiBody.Examples.Loops.Engine1a): time 0.01858/0.2322, allocations: 19.43 MB / 420.9 MB, free: 5.375 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.01124/0.2434, allocations: 5.971 MB / 426.8 MB, free: 15.39 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.002903/0.2464, allocations: 159.4 kB / 427 MB, free: 15.23 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.01046/0.2568, allocations: 5.849 MB / 432.8 MB, free: 9.363 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.007376/0.2643, allocations: 3.44 MB / 436.3 MB, free: 5.91 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.003101/0.2674, allocations: 1.568 MB / 437.9 MB, free: 4.34 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.01486/0.2823, allocations: 12.37 MB / 450.2 MB, free: 7.945 MB / 366.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.008883/0.2912, allocations: 7.639 MB / 457.9 MB, free: 224 kB / 366.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.005257/0.2964, allocations: 3.579 MB / 461.4 MB, free: 12.63 MB / 382.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.006379/0.3028, allocations: 4.752 MB / 466.2 MB, free: 7.863 MB / 382.1 MB Notification: Performance of NFPackage.collectConstants: time 0.001876/0.3047, allocations: 0.7148 MB / 466.9 MB, free: 7.148 MB / 382.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.003773/0.3085, allocations: 1.686 MB / 468.6 MB, free: 5.461 MB / 382.1 MB Notification: Performance of NFScalarize.scalarize: time 0.004703/0.3133, allocations: 4.279 MB / 472.9 MB, free: 1.172 MB / 382.1 MB Notification: Performance of NFVerifyModel.verify: time 0.005325/0.3186, allocations: 4.468 MB / 477.3 MB, free: 12.68 MB / 398.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0113/0.3299, allocations: 13.65 MB / 491 MB, free: 14.98 MB / 414.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.238e-06/0.3299, allocations: 0 / 491 MB, free: 14.98 MB / 414.1 MB Notification: Performance of FrontEnd: time 1.303e-06/0.3299, allocations: 0 / 491 MB, free: 14.98 MB / 414.1 MB Notification: Performance of Transformations before backend: time 0.0001715/0.3301, allocations: 0 / 491 MB, free: 14.98 MB / 414.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.3471, allocations: 9.668 MB / 0.4889 GB, free: 5.223 MB / 414.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.875e-05/0.3471, allocations: 8.031 kB / 0.4889 GB, free: 5.215 MB / 414.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.04635/0.3935, allocations: 5.232 MB / 0.494 GB, free: 15.96 MB / 430.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.01974/0.4132, allocations: 8.065 MB / 0.5019 GB, free: 7.832 MB / 430.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0003191/0.4136, allocations: 423.4 kB / 0.5023 GB, free: 7.418 MB / 430.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.001677/0.4152, allocations: 0.5814 MB / 0.5029 GB, free: 6.836 MB / 430.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.02811/0.4434, allocations: 16.56 MB / 0.5191 GB, free: 5.223 MB / 446.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.000225/0.4436, allocations: 99.16 kB / 0.5192 GB, free: 5.125 MB / 446.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.000685/0.4443, allocations: 271.7 kB / 0.5194 GB, free: 4.859 MB / 446.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.00438/0.4487, allocations: 2.756 MB / 0.5221 GB, free: 2.098 MB / 446.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.02482/0.4735, allocations: 13.62 MB / 0.5354 GB, free: 4.457 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.3893/0.8629, allocations: 67.75 MB / 0.6016 GB, free: 69.75 MB / 462.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.01824/0.8811, allocations: 7.908 MB / 0.6093 GB, free: 61.74 MB / 462.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.004113/0.8853, allocations: 4.518 MB / 0.6137 GB, free: 57.21 MB / 462.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.01579/0.9011, allocations: 12.39 MB / 0.6258 GB, free: 44.75 MB / 462.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.903e-05/0.9011, allocations: 66.5 kB / 0.6259 GB, free: 44.68 MB / 462.1 MB Notification: Performance of pre-optimization done (n=280): time 4.388e-06/0.9011, allocations: 0 / 0.6259 GB, free: 44.68 MB / 462.1 MB Notification: Performance of matching and sorting (n=339): time 0.1715/1.073, allocations: 50.14 MB / 0.6748 GB, free: 10.62 MB / 478.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001858/1.073, allocations: 394.1 kB / 0.6752 GB, free: 10.15 MB / 478.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.009471/1.082, allocations: 7.119 MB / 0.6822 GB, free: 3.051 MB / 478.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0007521/1.083, allocations: 81.69 kB / 0.6822 GB, free: 2.965 MB / 478.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.003437/1.087, allocations: 5.021 MB / 0.6871 GB, free: 13.88 MB / 494.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.001404/1.088, allocations: 1.261 MB / 0.6884 GB, free: 12.6 MB / 494.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.002576/1.091, allocations: 1.864 MB / 0.6902 GB, free: 10.72 MB / 494.1 MB Notification: Performance of setup shared object (initialization): time 9.248e-05/1.091, allocations: 301.1 kB / 0.6905 GB, free: 10.43 MB / 494.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.00641/1.097, allocations: 4.543 MB / 0.6949 GB, free: 5.875 MB / 494.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.00943/1.107, allocations: 9.267 MB / 0.704 GB, free: 10.31 MB / 0.4982 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.01656/1.123, allocations: 14.54 MB / 0.7182 GB, free: 9.5 MB / 0.5138 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 7.656e-05/1.123, allocations: 51.94 kB / 0.7182 GB, free: 9.449 MB / 0.5138 GB Notification: Performance of matching and sorting (n=1184) (initialization): time 0.03956/1.163, allocations: 19.75 MB / 0.7375 GB, free: 5.645 MB / 0.5294 GB Notification: Performance of prepare postOptimizeDAE: time 0.0001212/1.163, allocations: 79.94 kB / 0.7376 GB, free: 5.566 MB / 0.5294 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0001975/1.163, allocations: 163.9 kB / 0.7377 GB, free: 5.406 MB / 0.5294 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.2001/1.363, allocations: 7.048 MB / 0.7446 GB, free: 181.8 MB / 0.5294 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.005996/1.369, allocations: 1.928 MB / 0.7465 GB, free: 181.8 MB / 0.5294 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.04205/1.411, allocations: 35.3 MB / 0.781 GB, free: 166.4 MB / 0.5294 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.00725/1.419, allocations: 0.5883 MB / 0.7816 GB, free: 166 MB / 0.5294 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.001041/1.42, allocations: 499.7 kB / 0.782 GB, free: 165.5 MB / 0.5294 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 (cylinder.boxColor[3],cylinder.boxColor[2],cylinder.boxColor[1],b2.cylinderColor[3],b2.cylinderColor[2],b2.cylinderColor[1],b1.cylinderColor[3],b1.cylinderColor[2],b1.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 (1048): * Single equations (assignments): 1042 * 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.004473/1.424, allocations: 3.468 MB / 0.7854 GB, free: 162.6 MB / 0.5294 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.001084/1.425, allocations: 0.6308 MB / 0.786 GB, free: 162.3 MB / 0.5294 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.02566/1.451, allocations: 13.33 MB / 0.799 GB, free: 149.5 MB / 0.5294 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.792e-05/1.451, allocations: 11.95 kB / 0.7991 GB, free: 149.5 MB / 0.5294 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 7.404e-06/1.451, allocations: 256 / 0.7991 GB, free: 149.5 MB / 0.5294 GB Notification: Performance of postOpt removeConstants (simulation): time 0.001455/1.452, allocations: 0.6878 MB / 0.7997 GB, free: 149.1 MB / 0.5294 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0009433/1.453, allocations: 63.42 kB / 0.7998 GB, free: 149.1 MB / 0.5294 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.003192/1.457, allocations: 303.5 kB / 0.8001 GB, free: 148.8 MB / 0.5294 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0006858/1.457, allocations: 289.8 kB / 0.8004 GB, free: 148.5 MB / 0.5294 GB Notification: Performance of postOpt createDAEmodeBDAE (simulation): time 0.02104/1.478, allocations: 12.22 MB / 0.8123 GB, free: 136.5 MB / 0.5294 GB Notification: Performance of postOpt symbolicJacobianDAE (simulation): time 0.01258/1.491, allocations: 12.51 MB / 0.8245 GB, free: 124 MB / 0.5294 GB Notification: Performance of postOpt setEvaluationStage (simulation): time 0.003371/1.494, allocations: 3.551 MB / 0.828 GB, free: 120.4 MB / 0.5294 GB Notification: Performance of sorting global known variables: time 0.005227/1.5, allocations: 4.563 MB / 0.8324 GB, free: 115.9 MB / 0.5294 GB Notification: Performance of Backend: time 2.91e-07/1.5, allocations: 0 / 0.8324 GB, free: 115.9 MB / 0.5294 GB Notification: Performance of simCode: created initialization part: time 0.01413/1.514, allocations: 8.703 MB / 0.8409 GB, free: 107.3 MB / 0.5294 GB Notification: Performance of SimCode: time 0.02004/1.534, allocations: 17.23 MB / 0.8578 GB, free: 90.09 MB / 0.5294 GB Notification: Performance of Templates: time 0.3105/1.844, allocations: 104.3 MB / 0.9596 GB, free: 175.1 MB / 0.5294 GB make -j1 -f Modelica_4.0.0_Modelica.Mechanics.MultiBody.Examples.Loops.Engine1a.makefile (rm -f Modelica_4.0.0_Modelica.Mechanics.MultiBody.Examples.Loops.Engine1a.pipe ; mkfifo Modelica_4.0.0_Modelica.Mechanics.MultiBody.Examples.Loops.Engine1a.pipe ; head -c 1048576 < Modelica_4.0.0_Modelica.Mechanics.MultiBody.Examples.Loops.Engine1a.pipe >> ../files/Modelica_4.0.0_Modelica.Mechanics.MultiBody.Examples.Loops.Engine1a.sim & ./Modelica_4.0.0_Modelica.Mechanics.MultiBody.Examples.Loops.Engine1a -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Modelica_4.0.0_Modelica.Mechanics.MultiBody.Examples.Loops.Engine1a.pipe 2>&1)