Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr VehicleInterfaces_VehicleInterfaces.Examples.SeriesHybrid.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.SeriesHybrid,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="VehicleInterfaces_VehicleInterfaces.Examples.SeriesHybrid") translateModel(VehicleInterfaces.Examples.SeriesHybrid,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="VehicleInterfaces_VehicleInterfaces.Examples.SeriesHybrid") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.008276/0.008276, allocations: 99.56 kB / 15.73 MB, free: 6.059 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.001981/0.001982, allocations: 193.7 kB / 16.67 MB, free: 5.969 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.443/1.443, allocations: 222.9 MB / 240.4 MB, free: 4.145 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/VehicleInterfaces 2.0.1-master/package.mo): time 0.1573/0.1573, allocations: 7.976 MB / 298.5 MB, free: 2.242 MB / 238.1 MB Notification: Performance of FrontEnd - loaded program: time 0.00117/0.00117, allocations: 63.91 kB / 413.1 MB, free: 10.13 MB / 350.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2793/0.2805, allocations: 51.2 MB / 464.3 MB, free: 18.46 MB / 350.1 MB Notification: Performance of NFInst.instantiate(VehicleInterfaces.Examples.SeriesHybrid): time 0.02271/0.3032, allocations: 23.15 MB / 487.4 MB, free: 2.09 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.01668/0.32, allocations: 5.988 MB / 493.4 MB, free: 13.27 MB / 366.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.008118/0.3281, allocations: 175.8 kB / 493.6 MB, free: 13.24 MB / 366.1 MB Notification: Performance of NFTyping.typeComponents: time 0.003803/0.332, allocations: 0.9147 MB / 494.5 MB, free: 12.5 MB / 366.1 MB Notification: Performance of NFTyping.typeBindings: time 0.00555/0.3376, allocations: 0.7515 MB / 495.3 MB, free: 11.84 MB / 366.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.00968/0.3473, allocations: 4.254 MB / 499.5 MB, free: 8.84 MB / 366.1 MB Notification: Performance of NFFlatten.flatten: time 0.006261/0.3536, allocations: 3.61 MB / 0.4913 GB, free: 6.59 MB / 366.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.008033/0.3616, allocations: 4.206 MB / 0.4954 GB, free: 2.82 MB / 366.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.002603/0.3643, allocations: 1.452 MB / 0.4969 GB, free: 1.363 MB / 366.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.00323/0.3675, allocations: 1.614 MB / 0.4984 GB, free: 15.74 MB / 382.1 MB Notification: Performance of NFPackage.collectConstants: time 0.001292/0.3689, allocations: 395.9 kB / 0.4988 GB, free: 15.36 MB / 382.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.001592/0.3705, allocations: 459.9 kB / 0.4992 GB, free: 14.91 MB / 382.1 MB Notification: Performance of NFScalarize.scalarize: time 0.001414/0.3719, allocations: 0.8646 MB / 0.5001 GB, free: 14.04 MB / 382.1 MB Notification: Performance of NFVerifyModel.verify: time 0.003012/0.3749, allocations: 1.703 MB / 0.5018 GB, free: 12.33 MB / 382.1 MB Notification: Performance of NFConvertDAE.convert: time 0.005519/0.3805, allocations: 4.386 MB / 0.506 GB, free: 7.926 MB / 382.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.781e-06/0.3805, allocations: 0 / 0.506 GB, free: 7.926 MB / 382.1 MB Notification: Performance of FrontEnd: time 1.683e-06/0.3805, allocations: 0 / 0.506 GB, free: 7.926 MB / 382.1 MB Notification: Performance of Transformations before backend: time 0.0001447/0.3807, allocations: 0 / 0.506 GB, free: 7.926 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: 704 * Number of variables: 704 Notification: Performance of Generate backend data structure: time 0.006311/0.387, allocations: 3.435 MB / 0.5094 GB, free: 4.418 MB / 382.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.41e-05/0.3871, allocations: 8.031 kB / 0.5094 GB, free: 4.41 MB / 382.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0005638/0.3876, allocations: 357.7 kB / 0.5097 GB, free: 4.059 MB / 382.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.002884/0.3905, allocations: 1.794 MB / 0.5115 GB, free: 2.211 MB / 382.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001606/0.3907, allocations: 205.2 kB / 0.5117 GB, free: 2.008 MB / 382.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0004033/0.3911, allocations: 275.9 kB / 0.5119 GB, free: 1.738 MB / 382.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.004903/0.396, allocations: 2.882 MB / 0.5148 GB, free: 14.72 MB / 398.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0001063/0.3961, allocations: 31.81 kB / 0.5148 GB, free: 14.69 MB / 398.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0002178/0.3964, allocations: 112 kB / 0.5149 GB, free: 14.58 MB / 398.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0001367/0.3965, allocations: 120 kB / 0.515 GB, free: 14.46 MB / 398.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.003976/0.4005, allocations: 2.123 MB / 0.5171 GB, free: 12.33 MB / 398.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.01574/0.4163, allocations: 10.77 MB / 0.5276 GB, free: 1.18 MB / 398.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001658/0.418, allocations: 0.952 MB / 0.5285 GB, free: 220 kB / 398.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001174/0.4191, allocations: 0.6464 MB / 0.5292 GB, free: 15.56 MB / 414.1 MB Notification: Performance of preOpt evalFunc (simulation): time 8.3e-05/0.4192, allocations: 13 kB / 0.5292 GB, free: 15.55 MB / 414.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.669e-05/0.4193, allocations: 47.56 kB / 0.5292 GB, free: 15.49 MB / 414.1 MB Notification: Performance of pre-optimization done (n=114): time 3.156e-06/0.4193, allocations: 0 / 0.5292 GB, free: 15.49 MB / 414.1 MB Notification: Performance of matching and sorting (n=134): time 0.01243/0.4317, allocations: 6.185 MB / 0.5353 GB, free: 9.164 MB / 414.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.679e-05/0.4318, allocations: 94.45 kB / 0.5354 GB, free: 9.051 MB / 414.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.002735/0.4346, allocations: 1.973 MB / 0.5373 GB, free: 7.051 MB / 414.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0001342/0.4347, allocations: 73.69 kB / 0.5374 GB, free: 6.973 MB / 414.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.001118/0.4359, allocations: 1.467 MB / 0.5388 GB, free: 5.492 MB / 414.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0003984/0.4363, allocations: 484.1 kB / 0.5392 GB, free: 5.016 MB / 414.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0006212/0.4369, allocations: 448.1 kB / 0.5397 GB, free: 4.57 MB / 414.1 MB Notification: Performance of setup shared object (initialization): time 0.0001338/0.437, allocations: 305.1 kB / 0.54 GB, free: 4.27 MB / 414.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001359/0.4384, allocations: 0.7346 MB / 0.5407 GB, free: 3.531 MB / 414.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001934/0.4403, allocations: 1.623 MB / 0.5423 GB, free: 1.484 MB / 414.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.00284/0.4432, allocations: 2.234 MB / 0.5444 GB, free: 14.83 MB / 430.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.408e-05/0.4432, allocations: 12 kB / 0.5445 GB, free: 14.82 MB / 430.1 MB Notification: Performance of matching and sorting (n=290) (initialization): time 0.004791/0.448, allocations: 2.834 MB / 0.5472 GB, free: 11.97 MB / 430.1 MB Notification: Performance of prepare postOptimizeDAE: time 3.657e-05/0.4481, allocations: 24.25 kB / 0.5473 GB, free: 11.95 MB / 430.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.576e-05/0.4481, allocations: 28 kB / 0.5473 GB, free: 11.92 MB / 430.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001997/0.4501, allocations: 1.298 MB / 0.5485 GB, free: 10.62 MB / 430.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001377/0.4515, allocations: 463.2 kB / 0.549 GB, free: 10.16 MB / 430.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.003374/0.4549, allocations: 3.001 MB / 0.5519 GB, free: 6.992 MB / 430.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.002055/0.457, allocations: 211.9 kB / 0.5521 GB, free: 6.785 MB / 430.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0002189/0.4572, allocations: 112 kB / 0.5522 GB, free: 6.676 MB / 430.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 136 * 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 (256): * Single equations (assignments): 254 * 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.001315/0.4585, allocations: 0.6609 MB / 0.5529 GB, free: 6.004 MB / 430.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0005185/0.4591, allocations: 250.3 kB / 0.5531 GB, free: 5.758 MB / 430.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.003513/0.4626, allocations: 1.745 MB / 0.5548 GB, free: 3.992 MB / 430.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.39e-05/0.4626, allocations: 15.98 kB / 0.5548 GB, free: 3.977 MB / 430.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 9.979e-06/0.4626, allocations: 4 kB / 0.5548 GB, free: 3.973 MB / 430.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.246e-05/0.4627, allocations: 7.984 kB / 0.5548 GB, free: 3.965 MB / 430.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.008783/0.4714, allocations: 4.495 MB / 0.5592 GB, free: 15.35 MB / 446.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.005e-05/0.4715, allocations: 0 / 0.5592 GB, free: 15.35 MB / 446.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0008192/0.4723, allocations: 191.8 kB / 0.5594 GB, free: 15.16 MB / 446.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.001787/0.4741, allocations: 1.186 MB / 0.5606 GB, free: 13.97 MB / 446.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001253/0.4743, allocations: 47.95 kB / 0.5606 GB, free: 13.92 MB / 446.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.003027/0.4773, allocations: 2.835 MB / 0.5634 GB, free: 10.92 MB / 446.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.129e-06/0.4773, allocations: 4.031 kB / 0.5634 GB, free: 10.92 MB / 446.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0044/0.4817, allocations: 2.654 MB / 0.566 GB, free: 8.211 MB / 446.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0009237/0.4827, allocations: 455.3 kB / 0.5664 GB, free: 7.746 MB / 446.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0004586/0.4832, allocations: 59.98 kB / 0.5665 GB, free: 7.688 MB / 446.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001131/0.4843, allocations: 99.89 kB / 0.5666 GB, free: 7.59 MB / 446.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0004526/0.4848, allocations: 208.6 kB / 0.5668 GB, free: 7.387 MB / 446.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001167/0.4849, allocations: 51.95 kB / 0.5668 GB, free: 7.336 MB / 446.1 MB Notification: Performance of sorting global known variables: time 0.002417/0.4873, allocations: 1.279 MB / 0.5681 GB, free: 6.043 MB / 446.1 MB Notification: Performance of sort global known variables: time 1.01e-07/0.4873, allocations: 0 / 0.5681 GB, free: 6.043 MB / 446.1 MB Notification: Performance of remove unused functions: time 0.002/0.4893, allocations: 500 kB / 0.5685 GB, free: 5.555 MB / 446.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 10 * Number of states: 6 (chassis.body.s,chassis.dragForces.v_rel,engine.end_1.zeroTorque1D.phi,accessories.inertia.w,generator.inductor.i,driveMotor.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_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,brakes.brake_4.mode,brakes.brake_4.startForward,brakes.brake_4.startBackward) * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (106): * Single equations (assignments): 104 * 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.0004148/0.4897, allocations: 203.2 kB / 0.5687 GB, free: 5.348 MB / 446.1 MB Notification: Performance of simCode: created initialization part: time 0.003841/0.4936, allocations: 1.956 MB / 0.5706 GB, free: 3.387 MB / 446.1 MB Notification: Performance of simCode: created event and clocks part: time 5.541e-06/0.4936, allocations: 4.125 kB / 0.5707 GB, free: 3.383 MB / 446.1 MB Notification: Performance of simCode: created simulation system equations: time 0.002009/0.4956, allocations: 0.9875 MB / 0.5716 GB, free: 2.383 MB / 446.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002287/0.4979, allocations: 351.1 kB / 0.572 GB, free: 2.043 MB / 446.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0101/0.5081, allocations: 4.876 MB / 0.5767 GB, free: 13.11 MB / 462.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001721/0.5098, allocations: 1.652 MB / 0.5783 GB, free: 11.43 MB / 462.1 MB Notification: Performance of simCode: alias equations: time 0.00119/0.511, allocations: 329 kB / 0.5786 GB, free: 11.11 MB / 462.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0004049/0.5114, allocations: 143.4 kB / 0.5788 GB, free: 10.96 MB / 462.1 MB Notification: Performance of SimCode: time 1.192e-06/0.5115, allocations: 4 kB / 0.5788 GB, free: 10.96 MB / 462.1 MB Notification: Performance of Templates: time 0.2823/0.7938, allocations: 30.03 MB / 0.6081 GB, free: 108.4 MB / 462.1 MB make -j1 -f VehicleInterfaces_VehicleInterfaces.Examples.SeriesHybrid.makefile (rm -f VehicleInterfaces_VehicleInterfaces.Examples.SeriesHybrid.pipe ; mkfifo VehicleInterfaces_VehicleInterfaces.Examples.SeriesHybrid.pipe ; head -c 1048576 < VehicleInterfaces_VehicleInterfaces.Examples.SeriesHybrid.pipe >> ../files/VehicleInterfaces_VehicleInterfaces.Examples.SeriesHybrid.sim & ./VehicleInterfaces_VehicleInterfaces.Examples.SeriesHybrid -abortSlowSimulation -alarm=480 -lv LOG_STATS > VehicleInterfaces_VehicleInterfaces.Examples.SeriesHybrid.pipe 2>&1)