Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_4.0.0_Modelica.Mechanics.MultiBody.Examples.Loops.Engine1b.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,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|inertia.phi|inertia.w",fileNamePrefix="Modelica_4.0.0_Modelica.Mechanics.MultiBody.Examples.Loops.Engine1b") translateModel(Modelica.Mechanics.MultiBody.Examples.Loops.Engine1b,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|inertia.phi|inertia.w",fileNamePrefix="Modelica_4.0.0_Modelica.Mechanics.MultiBody.Examples.Loops.Engine1b") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.00144/0.00144, allocations: 114.3 kB / 17.75 MB, free: 5.309 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.001614/0.001614, allocations: 185.3 kB / 18.67 MB, free: 4.395 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.406/1.406, allocations: 222.9 MB / 242.4 MB, free: 15.08 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001077/0.001077, allocations: 43.94 kB / 352 MB, free: 3.203 MB / 286.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2162/0.2173, allocations: 49.44 MB / 401.5 MB, free: 8.738 MB / 318.1 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.MultiBody.Examples.Loops.Engine1b): time 0.01979/0.2371, allocations: 20.52 MB / 422 MB, free: 4.223 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.01124/0.2484, allocations: 6.187 MB / 428.2 MB, free: 14.02 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.002708/0.2511, allocations: 167.4 kB / 428.3 MB, free: 13.86 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.01066/0.2618, allocations: 6.351 MB / 434.7 MB, free: 7.484 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.006901/0.2687, allocations: 3.532 MB / 438.2 MB, free: 3.941 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.003039/0.2718, allocations: 1.665 MB / 439.9 MB, free: 2.273 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.01452/0.2863, allocations: 12.65 MB / 452.5 MB, free: 5.594 MB / 366.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.00922/0.2955, allocations: 8.062 MB / 460.6 MB, free: 13.45 MB / 382.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.005269/0.3008, allocations: 3.751 MB / 464.3 MB, free: 9.684 MB / 382.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.00691/0.3078, allocations: 4.978 MB / 469.3 MB, free: 4.691 MB / 382.1 MB Notification: Performance of NFPackage.collectConstants: time 0.002121/0.3099, allocations: 0.7461 MB / 470.1 MB, free: 3.945 MB / 382.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.004133/0.314, allocations: 1.717 MB / 471.8 MB, free: 2.227 MB / 382.1 MB Notification: Performance of NFScalarize.scalarize: time 0.005264/0.3193, allocations: 4.458 MB / 476.2 MB, free: 13.76 MB / 398.1 MB Notification: Performance of NFVerifyModel.verify: time 0.005888/0.3252, allocations: 4.662 MB / 480.9 MB, free: 9.07 MB / 398.1 MB Notification: Performance of NFConvertDAE.convert: time 0.013/0.3382, allocations: 14.18 MB / 495.1 MB, free: 10.85 MB / 414.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.599e-06/0.3383, allocations: 0 / 495.1 MB, free: 10.85 MB / 414.1 MB Notification: Performance of FrontEnd: time 1.603e-06/0.3383, allocations: 0 / 495.1 MB, free: 10.85 MB / 414.1 MB Notification: Performance of Transformations before backend: time 0.0001965/0.3385, allocations: 0 / 495.1 MB, free: 10.85 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: 2489 * Number of variables: 2489 Notification: Performance of Generate backend data structure: time 0.01849/0.357, allocations: 10.03 MB / 0.4933 GB, free: 0.7266 MB / 414.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.835e-05/0.357, allocations: 8.031 kB / 0.4933 GB, free: 0.7188 MB / 414.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.04527/0.4023, allocations: 5.275 MB / 0.4984 GB, free: 11.43 MB / 430.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.01839/0.4207, allocations: 8.251 MB / 0.5065 GB, free: 3.109 MB / 430.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0002973/0.421, allocations: 448 kB / 0.5069 GB, free: 2.672 MB / 430.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.00111/0.4221, allocations: 0.6087 MB / 0.5075 GB, free: 2.062 MB / 430.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.02624/0.4484, allocations: 17.14 MB / 0.5243 GB, free: 15.87 MB / 462.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0002/0.4486, allocations: 95.11 kB / 0.5243 GB, free: 15.77 MB / 462.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0006931/0.4493, allocations: 283.8 kB / 0.5246 GB, free: 15.5 MB / 462.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.004351/0.4537, allocations: 2.854 MB / 0.5274 GB, free: 12.64 MB / 462.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.3291/0.7827, allocations: 14.03 MB / 0.5411 GB, free: 118.4 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.06417/0.8469, allocations: 69.69 MB / 0.6092 GB, free: 61.49 MB / 462.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.01815/0.8651, allocations: 8.226 MB / 0.6172 GB, free: 53.16 MB / 462.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.004103/0.8692, allocations: 4.638 MB / 0.6217 GB, free: 48.52 MB / 462.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0157/0.8849, allocations: 12.77 MB / 0.6342 GB, free: 35.62 MB / 462.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.798e-05/0.885, allocations: 64.55 kB / 0.6343 GB, free: 35.55 MB / 462.1 MB Notification: Performance of pre-optimization done (n=294): time 5.17e-06/0.885, allocations: 4 kB / 0.6343 GB, free: 35.55 MB / 462.1 MB Notification: Performance of matching and sorting (n=360): time 0.1814/1.066, allocations: 52.52 MB / 0.6855 GB, free: 15.1 MB / 494.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001724/1.067, allocations: 402.2 kB / 0.6859 GB, free: 14.62 MB / 494.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.009332/1.076, allocations: 7.268 MB / 0.693 GB, free: 7.375 MB / 494.1 MB Notification: Performance of collectPreVariables (initialization): time 0.000608/1.077, allocations: 81.7 kB / 0.6931 GB, free: 7.289 MB / 494.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.003319/1.08, allocations: 5.204 MB / 0.6982 GB, free: 2.023 MB / 494.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.001327/1.081, allocations: 1.326 MB / 0.6995 GB, free: 0.6797 MB / 494.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0026/1.084, allocations: 1.919 MB / 0.7014 GB, free: 14.75 MB / 0.4982 GB Notification: Performance of setup shared object (initialization): time 8.903e-05/1.084, allocations: 301.1 kB / 0.7016 GB, free: 14.45 MB / 0.4982 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.006459/1.09, allocations: 4.711 MB / 0.7062 GB, free: 9.73 MB / 0.4982 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.009489/1.1, allocations: 9.542 MB / 0.7156 GB, free: 13.85 MB / 0.5138 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.01759/1.118, allocations: 15.01 MB / 0.7302 GB, free: 12.51 MB / 0.5294 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 8.955e-05/1.118, allocations: 44 kB / 0.7303 GB, free: 12.46 MB / 0.5294 GB Notification: Performance of matching and sorting (n=1221) (initialization): time 0.2239/1.342, allocations: 20.46 MB / 0.7502 GB, free: 177.6 MB / 0.5294 GB Notification: Performance of prepare postOptimizeDAE: time 8.585e-05/1.342, allocations: 74.53 kB / 0.7503 GB, free: 177.6 MB / 0.5294 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0001231/1.342, allocations: 165.2 kB / 0.7505 GB, free: 177.6 MB / 0.5294 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.02038/1.362, allocations: 7.317 MB / 0.7576 GB, free: 177.4 MB / 0.5294 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.005711/1.368, allocations: 1.996 MB / 0.7596 GB, free: 177.4 MB / 0.5294 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.04169/1.41, allocations: 36.55 MB / 0.7953 GB, free: 150.9 MB / 0.5294 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.007317/1.417, allocations: 0.6068 MB / 0.7958 GB, free: 150.3 MB / 0.5294 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0006859/1.418, allocations: 0.4996 MB / 0.7963 GB, free: 149.9 MB / 0.5294 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 749 * Number of states: 0 () * Number of discrete variables: 72 (rod3.color[3],rod3.color[2],rod3.color[1],rod1.color[3],rod1.color[2],rod1.color[1],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 (1082): * Single equations (assignments): 1076 * 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,97,55.1%), (2,6,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 1 system {(2,4)} Notification: Performance of prepare postOptimizeDAE: time 0.004272/1.422, allocations: 3.596 MB / 0.7998 GB, free: 146.4 MB / 0.5294 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0009101/1.423, allocations: 0.6537 MB / 0.8005 GB, free: 146.1 MB / 0.5294 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.02718/1.45, allocations: 13.94 MB / 0.8141 GB, free: 132.1 MB / 0.5294 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.682e-05/1.45, allocations: 19.94 kB / 0.8141 GB, free: 132.1 MB / 0.5294 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 8.766e-06/1.45, allocations: 0.75 kB / 0.8141 GB, free: 132.1 MB / 0.5294 GB Notification: Performance of postOpt removeConstants (simulation): time 0.002376/1.453, allocations: 1.429 MB / 0.8155 GB, free: 131 MB / 0.5294 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0009259/1.453, allocations: 60 kB / 0.8156 GB, free: 131 MB / 0.5294 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.00337/1.457, allocations: 319.5 kB / 0.8159 GB, free: 130.6 MB / 0.5294 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0007505/1.458, allocations: 320.9 kB / 0.8162 GB, free: 130.3 MB / 0.5294 GB Notification: Performance of postOpt createDAEmodeBDAE (simulation): time 0.02287/1.48, allocations: 12.75 MB / 0.8286 GB, free: 117.7 MB / 0.5294 GB Notification: Performance of postOpt symbolicJacobianDAE (simulation): time 0.01379/1.494, allocations: 13.04 MB / 0.8414 GB, free: 104.9 MB / 0.5294 GB Notification: Performance of postOpt setEvaluationStage (simulation): time 0.003653/1.498, allocations: 3.719 MB / 0.845 GB, free: 101.2 MB / 0.5294 GB Notification: Performance of sorting global known variables: time 0.005163/1.503, allocations: 4.653 MB / 0.8495 GB, free: 96.55 MB / 0.5294 GB Notification: Performance of Backend: time 7.02e-07/1.503, allocations: 4 kB / 0.8496 GB, free: 96.55 MB / 0.5294 GB Notification: Performance of simCode: created initialization part: time 0.01445/1.518, allocations: 8.957 MB / 0.8583 GB, free: 87.61 MB / 0.5294 GB Notification: Performance of SimCode: time 0.01958/1.537, allocations: 17.87 MB / 0.8757 GB, free: 69.73 MB / 0.5294 GB Notification: Performance of Templates: time 0.3166/1.854, allocations: 108.6 MB / 0.9818 GB, free: 155.9 MB / 0.5294 GB make -j1 -f Modelica_4.0.0_Modelica.Mechanics.MultiBody.Examples.Loops.Engine1b.makefile (rm -f Modelica_4.0.0_Modelica.Mechanics.MultiBody.Examples.Loops.Engine1b.pipe ; mkfifo Modelica_4.0.0_Modelica.Mechanics.MultiBody.Examples.Loops.Engine1b.pipe ; head -c 1048576 < Modelica_4.0.0_Modelica.Mechanics.MultiBody.Examples.Loops.Engine1b.pipe >> ../files/Modelica_4.0.0_Modelica.Mechanics.MultiBody.Examples.Loops.Engine1b.sim & ./Modelica_4.0.0_Modelica.Mechanics.MultiBody.Examples.Loops.Engine1b -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Modelica_4.0.0_Modelica.Mechanics.MultiBody.Examples.Loops.Engine1b.pipe 2>&1)