Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr VehicleInterfaces_VehicleInterfaces.Examples.PowerSplitHybrid.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) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/VehicleInterfaces 2.0.1-master/package.mo", uses=false) Using package VehicleInterfaces with version 2.0.1 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/VehicleInterfaces 2.0.1-master/package.mo) 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(VehicleInterfaces.Examples.PowerSplitHybrid,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="VehicleInterfaces_VehicleInterfaces.Examples.PowerSplitHybrid") translateModel(VehicleInterfaces.Examples.PowerSplitHybrid,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="VehicleInterfaces_VehicleInterfaces.Examples.PowerSplitHybrid") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001317/0.001318, allocations: 108.2 kB / 15.99 MB, free: 6.352 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.001283/0.001284, allocations: 189.2 kB / 16.91 MB, free: 6.184 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.388/1.388, allocations: 222.9 MB / 240.6 MB, free: 15.43 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/VehicleInterfaces 2.0.1-master/package.mo): time 0.04742/0.04742, allocations: 7.999 MB / 298.7 MB, free: 7.367 MB / 238.1 MB Notification: Performance of FrontEnd - loaded program: time 0.002029/0.002029, allocations: 67.89 kB / 360.8 MB, free: 9.285 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.192/0.1941, allocations: 51.21 MB / 412 MB, free: 26.95 MB / 302.1 MB Notification: Performance of NFInst.instantiate(VehicleInterfaces.Examples.PowerSplitHybrid): time 0.08623/0.2803, allocations: 93.81 MB / 0.4939 GB, free: 12.79 MB / 382.1 MB Notification: Performance of NFInst.instExpressions: time 0.2361/0.5165, allocations: 18.01 MB / 0.5115 GB, free: 216 kB / 382.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.01588/0.5324, allocations: 459.5 kB / 0.512 GB, free: 216 kB / 382.1 MB Notification: Performance of NFTyping.typeComponents: time 0.003151/0.5356, allocations: 0.8176 MB / 0.5128 GB, free: 216 kB / 382.1 MB Notification: Performance of NFTyping.typeBindings: time 0.003561/0.5392, allocations: 0.6676 MB / 0.5134 GB, free: 208 kB / 382.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0075/0.5467, allocations: 4.483 MB / 0.5178 GB, free: 144 kB / 382.1 MB Notification: Performance of NFFlatten.flatten: time 0.005033/0.5518, allocations: 3.808 MB / 0.5215 GB, free: 112 kB / 382.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.007187/0.559, allocations: 4.738 MB / 0.5261 GB, free: 15.59 MB / 398.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.002511/0.5615, allocations: 1.58 MB / 0.5277 GB, free: 15.59 MB / 398.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.003196/0.5647, allocations: 1.777 MB / 0.5294 GB, free: 15.12 MB / 398.1 MB Notification: Performance of NFPackage.collectConstants: time 0.001087/0.5659, allocations: 433.7 kB / 0.5298 GB, free: 15.12 MB / 398.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.001336/0.5672, allocations: 489.5 kB / 0.5303 GB, free: 15.11 MB / 398.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0009605/0.5682, allocations: 0.9367 MB / 0.5312 GB, free: 14.5 MB / 398.1 MB Notification: Performance of NFVerifyModel.verify: time 0.003143/0.5713, allocations: 1.858 MB / 0.533 GB, free: 13.23 MB / 398.1 MB Notification: Performance of NFConvertDAE.convert: time 0.004794/0.5762, allocations: 3.767 MB / 0.5367 GB, free: 11.96 MB / 398.1 MB Notification: Performance of FrontEnd - DAE generated: time 9.448e-06/0.5762, allocations: 6.109 kB / 0.5367 GB, free: 11.96 MB / 398.1 MB Notification: Performance of FrontEnd: time 1.834e-06/0.5762, allocations: 3.75 kB / 0.5367 GB, free: 11.96 MB / 398.1 MB Notification: Performance of Transformations before backend: time 0.0001913/0.5764, allocations: 0 / 0.5367 GB, free: 11.96 MB / 398.1 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 777 * Number of variables: 777 Notification: Performance of Generate backend data structure: time 0.008423/0.5848, allocations: 3.59 MB / 0.5402 GB, free: 9.559 MB / 398.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.914e-05/0.5849, allocations: 10.72 kB / 0.5402 GB, free: 9.559 MB / 398.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0007051/0.5856, allocations: 371.2 kB / 0.5406 GB, free: 9.367 MB / 398.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.00313/0.5888, allocations: 1.845 MB / 0.5424 GB, free: 8.016 MB / 398.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001746/0.589, allocations: 225.4 kB / 0.5426 GB, free: 7.914 MB / 398.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0004821/0.5895, allocations: 306.6 kB / 0.5429 GB, free: 7.805 MB / 398.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.006052/0.5955, allocations: 3.128 MB / 0.5459 GB, free: 5.863 MB / 398.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.000122/0.5957, allocations: 27.28 kB / 0.546 GB, free: 5.852 MB / 398.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0002426/0.5959, allocations: 120 kB / 0.5461 GB, free: 5.762 MB / 398.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0001211/0.5961, allocations: 133.6 kB / 0.5462 GB, free: 5.734 MB / 398.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.004465/0.6005, allocations: 2.277 MB / 0.5484 GB, free: 4.633 MB / 398.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.01777/0.6183, allocations: 11.6 MB / 0.5598 GB, free: 11.46 MB / 414.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001811/0.6202, allocations: 1.001 MB / 0.5607 GB, free: 10.93 MB / 414.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001162/0.6213, allocations: 0.6648 MB / 0.5614 GB, free: 10.52 MB / 414.1 MB Notification: Performance of preOpt evalFunc (simulation): time 9.069e-05/0.6214, allocations: 17.11 kB / 0.5614 GB, free: 10.5 MB / 414.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.004e-05/0.6215, allocations: 51.5 kB / 0.5614 GB, free: 10.44 MB / 414.1 MB Notification: Performance of pre-optimization done (n=119): time 2.745e-06/0.6215, allocations: 0 / 0.5614 GB, free: 10.44 MB / 414.1 MB Notification: Performance of matching and sorting (n=140): time 0.01387/0.6354, allocations: 6.464 MB / 0.5678 GB, free: 3.824 MB / 414.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 7.368e-05/0.6355, allocations: 94.42 kB / 0.5679 GB, free: 3.715 MB / 414.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.003207/0.6387, allocations: 2.115 MB / 0.5699 GB, free: 1.582 MB / 414.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0003062/0.639, allocations: 73.69 kB / 0.57 GB, free: 1.504 MB / 414.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.001406/0.6404, allocations: 1.554 MB / 0.5715 GB, free: 15.94 MB / 430.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.000604/0.641, allocations: 494.9 kB / 0.572 GB, free: 15.46 MB / 430.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0007323/0.6418, allocations: 472.3 kB / 0.5724 GB, free: 15 MB / 430.1 MB Notification: Performance of setup shared object (initialization): time 0.0001261/0.6419, allocations: 303.4 kB / 0.5727 GB, free: 14.7 MB / 430.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.00148/0.6434, allocations: 0.7583 MB / 0.5735 GB, free: 13.94 MB / 430.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.002257/0.6457, allocations: 1.732 MB / 0.5751 GB, free: 11.76 MB / 430.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.003551/0.6492, allocations: 2.386 MB / 0.5775 GB, free: 9.055 MB / 430.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.97e-05/0.6493, allocations: 12 kB / 0.5775 GB, free: 9.043 MB / 430.1 MB Notification: Performance of matching and sorting (n=309) (initialization): time 0.005467/0.6548, allocations: 2.942 MB / 0.5804 GB, free: 6.281 MB / 430.1 MB Notification: Performance of prepare postOptimizeDAE: time 3.896e-05/0.6548, allocations: 20 kB / 0.5804 GB, free: 6.262 MB / 430.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.525e-05/0.6549, allocations: 32.88 kB / 0.5804 GB, free: 6.23 MB / 430.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.002128/0.657, allocations: 1.306 MB / 0.5817 GB, free: 4.922 MB / 430.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001593/0.6586, allocations: 0.489 MB / 0.5822 GB, free: 4.473 MB / 430.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.003498/0.6621, allocations: 3.014 MB / 0.5851 GB, free: 1.312 MB / 430.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.002114/0.6642, allocations: 215.5 kB / 0.5853 GB, free: 1.102 MB / 430.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0002412/0.6645, allocations: 124 kB / 0.5854 GB, free: 0.9805 MB / 430.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 148 * Number of states: 0 () * Number of discrete variables: 57 (controlBus.driverBus.ignition,brakes.brake_4.mode,$PRE.brakes.brake_4.mode,brakes.brake_4.locked,brakes.brake_4.startBackward,$PRE.brakes.brake_4.startBackward,brakes.brake_4.startForward,$PRE.brakes.brake_4.startForward,brakes.brake_4.free,brakes.brake_3.mode,$PRE.brakes.brake_3.mode,brakes.brake_3.locked,brakes.brake_3.startBackward,$PRE.brakes.brake_3.startBackward,brakes.brake_3.startForward,$PRE.brakes.brake_3.startForward,brakes.brake_3.free,brakes.brake_2.mode,$PRE.brakes.brake_2.mode,brakes.brake_2.locked,brakes.brake_2.startBackward,$PRE.brakes.brake_2.startBackward,brakes.brake_2.startForward,$PRE.brakes.brake_2.startForward,brakes.brake_2.free,brakes.brake_1.mode,$PRE.brakes.brake_1.mode,brakes.brake_1.locked,brakes.brake_1.startBackward,$PRE.brakes.brake_1.startBackward,brakes.brake_1.startForward,$PRE.brakes.brake_1.startForward,brakes.brake_1.free,accessories.inertia.cylinderColor[3],accessories.inertia.cylinderColor[2],accessories.inertia.cylinderColor[1],engine.flywheel.cylinderColor[3],engine.flywheel.cylinderColor[2],engine.flywheel.cylinderColor[1],world.groundColor[3],world.groundColor[2],world.groundColor[1],world.gravitySphereColor[3],world.gravitySphereColor[2],world.gravitySphereColor[1],world.gravityArrowColor[3],world.gravityArrowColor[2],world.gravityArrowColor[1],world.axisColor_x[3],world.axisColor_x[2],world.axisColor_x[1],driveline.leftHalfShaft.cylinderColor[3],driveline.leftHalfShaft.cylinderColor[2],driveline.leftHalfShaft.cylinderColor[1],driveline.rightHalfShaft.cylinderColor[3],driveline.rightHalfShaft.cylinderColor[2],driveline.rightHalfShaft.cylinderColor[1]) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (275): * Single equations (assignments): 273 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 2 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 1 system {(1,2,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 1 system {(4,29)} Notification: Performance of prepare postOptimizeDAE: time 0.001342/0.6658, allocations: 0.6908 MB / 0.5861 GB, free: 324 kB / 430.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0004236/0.6663, allocations: 248.8 kB / 0.5863 GB, free: 72 kB / 430.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.003606/0.6699, allocations: 1.83 MB / 0.5881 GB, free: 14.23 MB / 446.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.303e-05/0.6699, allocations: 12 kB / 0.5881 GB, free: 14.22 MB / 446.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 9.338e-06/0.6699, allocations: 7.984 kB / 0.5882 GB, free: 14.21 MB / 446.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.764e-05/0.67, allocations: 3.984 kB / 0.5882 GB, free: 14.21 MB / 446.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.00868/0.6786, allocations: 4.789 MB / 0.5928 GB, free: 9.363 MB / 446.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 6.802e-06/0.6787, allocations: 0 / 0.5928 GB, free: 9.363 MB / 446.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0009151/0.6796, allocations: 219.3 kB / 0.593 GB, free: 9.16 MB / 446.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.001897/0.6815, allocations: 1.181 MB / 0.5942 GB, free: 7.977 MB / 446.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001196/0.6816, allocations: 47.95 kB / 0.5942 GB, free: 7.93 MB / 446.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.003247/0.6849, allocations: 2.828 MB / 0.597 GB, free: 4.949 MB / 446.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 6.122e-06/0.6849, allocations: 4.031 kB / 0.597 GB, free: 4.945 MB / 446.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.004957/0.6899, allocations: 2.752 MB / 0.5997 GB, free: 2.16 MB / 446.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.001035/0.6909, allocations: 457.9 kB / 0.6001 GB, free: 1.691 MB / 446.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0003459/0.6913, allocations: 56 kB / 0.6002 GB, free: 1.637 MB / 446.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001013/0.6923, allocations: 103.9 kB / 0.6003 GB, free: 1.535 MB / 446.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0004799/0.6928, allocations: 212.2 kB / 0.6005 GB, free: 1.332 MB / 446.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001071/0.6929, allocations: 51.95 kB / 0.6005 GB, free: 1.281 MB / 446.1 MB Notification: Performance of sorting global known variables: time 0.002109/0.695, allocations: 1.37 MB / 0.6019 GB, free: 15.9 MB / 462.1 MB Notification: Performance of sort global known variables: time 1.41e-07/0.6951, allocations: 0 / 0.6019 GB, free: 15.9 MB / 462.1 MB Notification: Performance of remove unused functions: time 0.002055/0.6971, allocations: 0.5273 MB / 0.6024 GB, free: 15.38 MB / 462.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 8 * Number of states: 6 (chassis.body.s,chassis.dragForces.v_rel,engine.end_1.zeroTorque1D.phi,accessories.inertia.w,motor1.inductor.i,motor2.inductor.i) * Number of discrete variables: 21 (brakes.brake_1.free,brakes.brake_1.startForward,brakes.brake_1.startBackward,brakes.brake_1.locked,brakes.brake_1.mode,brakes.brake_2.free,brakes.brake_2.startForward,brakes.brake_2.startBackward,brakes.brake_2.locked,brakes.brake_2.mode,brakes.brake_3.free,brakes.brake_3.startForward,brakes.brake_3.startBackward,brakes.brake_3.locked,brakes.brake_3.mode,brakes.brake_4.free,brakes.brake_4.startForward,brakes.brake_4.startBackward,brakes.brake_4.locked,brakes.brake_4.mode,controlBus.driverBus.ignition) * Number of discrete states: 12 (brakes.brake_4.mode,brakes.brake_4.startForward,brakes.brake_4.startBackward,brakes.brake_1.mode,brakes.brake_1.startForward,brakes.brake_1.startBackward,brakes.brake_2.mode,brakes.brake_2.startForward,brakes.brake_2.startBackward,brakes.brake_3.mode,brakes.brake_3.startForward,brakes.brake_3.startBackward) * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (112): * Single equations (assignments): 110 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 2 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 1 system {(1,2,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 1 system {(4,24)} Notification: Performance of Backend phase and start with SimCode phase: time 0.0003873/0.6975, allocations: 196.6 kB / 0.6026 GB, free: 15.19 MB / 462.1 MB Notification: Performance of simCode: created initialization part: time 0.004822/0.7023, allocations: 2.092 MB / 0.6046 GB, free: 13.2 MB / 462.1 MB Notification: Performance of simCode: created event and clocks part: time 5.06e-06/0.7024, allocations: 0 / 0.6046 GB, free: 13.2 MB / 462.1 MB Notification: Performance of simCode: created simulation system equations: time 0.001864/0.7042, allocations: 0.9822 MB / 0.6056 GB, free: 12.23 MB / 462.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002032/0.7063, allocations: 357.1 kB / 0.6059 GB, free: 11.89 MB / 462.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01134/0.7176, allocations: 6.453 MB / 0.6122 GB, free: 5.402 MB / 462.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001562/0.7192, allocations: 1.731 MB / 0.6139 GB, free: 3.648 MB / 462.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0005491/0.7198, allocations: 163.4 kB / 0.6141 GB, free: 3.488 MB / 462.1 MB Notification: Performance of SimCode: time 1.072e-06/0.7198, allocations: 0 / 0.6141 GB, free: 3.488 MB / 462.1 MB Notification: Performance of Templates: time 0.07312/0.7929, allocations: 59.41 MB / 0.6721 GB, free: 8.098 MB / 0.5137 GB make -j1 -f VehicleInterfaces_VehicleInterfaces.Examples.PowerSplitHybrid.makefile (rm -f VehicleInterfaces_VehicleInterfaces.Examples.PowerSplitHybrid.pipe ; mkfifo VehicleInterfaces_VehicleInterfaces.Examples.PowerSplitHybrid.pipe ; head -c 1048576 < VehicleInterfaces_VehicleInterfaces.Examples.PowerSplitHybrid.pipe >> ../files/VehicleInterfaces_VehicleInterfaces.Examples.PowerSplitHybrid.sim & ./VehicleInterfaces_VehicleInterfaces.Examples.PowerSplitHybrid -abortSlowSimulation -alarm=480 -lv LOG_STATS > VehicleInterfaces_VehicleInterfaces.Examples.PowerSplitHybrid.pipe 2>&1)