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.001424/0.001424, allocations: 113.2 kB / 16.41 MB, free: 6.492 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.00154/0.00154, allocations: 183 kB / 17.34 MB, free: 5.762 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.331/1.331, allocations: 222.9 MB / 241 MB, free: 15.15 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/VehicleInterfaces 2.0.1-master/package.mo): time 0.04299/0.04299, allocations: 7.988 MB / 299.2 MB, free: 7.129 MB / 238.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001195/0.001195, allocations: 67.91 kB / 413.8 MB, free: 22.85 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09157/0.09277, allocations: 51.21 MB / 465 MB, free: 3.59 MB / 334.1 MB Notification: Performance of NFInst.instantiate(VehicleInterfaces.Examples.SeriesHybrid): time 0.02427/0.1171, allocations: 23.14 MB / 488.1 MB, free: 12.36 MB / 366.1 MB Notification: Performance of NFInst.instExpressions: time 0.01367/0.1308, allocations: 5.976 MB / 494.1 MB, free: 6.355 MB / 366.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.004948/0.1358, allocations: 179.5 kB / 494.3 MB, free: 6.18 MB / 366.1 MB Notification: Performance of NFTyping.typeComponents: time 0.003189/0.139, allocations: 0.915 MB / 495.2 MB, free: 5.258 MB / 366.1 MB Notification: Performance of NFTyping.typeBindings: time 0.003461/0.1425, allocations: 0.7591 MB / 495.9 MB, free: 4.492 MB / 366.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.008179/0.1507, allocations: 4.244 MB / 0.4885 GB, free: 244 kB / 366.1 MB Notification: Performance of NFFlatten.flatten: time 0.00544/0.1562, allocations: 3.609 MB / 0.492 GB, free: 12.61 MB / 382.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.007338/0.1635, allocations: 4.211 MB / 0.4961 GB, free: 8.324 MB / 382.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.002367/0.1659, allocations: 1.468 MB / 0.4975 GB, free: 6.852 MB / 382.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.002701/0.1687, allocations: 1.614 MB / 0.4991 GB, free: 5.23 MB / 382.1 MB Notification: Performance of NFPackage.collectConstants: time 0.001082/0.1698, allocations: 395.9 kB / 0.4995 GB, free: 4.844 MB / 382.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.00141/0.1712, allocations: 455.9 kB / 0.4999 GB, free: 4.398 MB / 382.1 MB Notification: Performance of NFScalarize.scalarize: time 0.001094/0.1723, allocations: 0.8723 MB / 0.5008 GB, free: 3.523 MB / 382.1 MB Notification: Performance of NFVerifyModel.verify: time 0.002576/0.1749, allocations: 1.711 MB / 0.5024 GB, free: 1.805 MB / 382.1 MB Notification: Performance of NFConvertDAE.convert: time 0.2466/0.4215, allocations: 4.361 MB / 0.5067 GB, free: 15.78 MB / 382.1 MB Notification: Performance of FrontEnd - DAE generated: time 6.572e-06/0.4215, allocations: 0 / 0.5067 GB, free: 15.78 MB / 382.1 MB Notification: Performance of FrontEnd: time 1.402e-06/0.4215, allocations: 0 / 0.5067 GB, free: 15.78 MB / 382.1 MB Notification: Performance of Transformations before backend: time 0.0001846/0.4217, allocations: 0.5625 kB / 0.5067 GB, free: 15.78 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.007928/0.4297, allocations: 3.334 MB / 0.51 GB, free: 14.36 MB / 382.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.086e-05/0.4297, allocations: 9.828 kB / 0.51 GB, free: 14.36 MB / 382.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.000704/0.4304, allocations: 340.1 kB / 0.5103 GB, free: 14.18 MB / 382.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.003049/0.4335, allocations: 1.781 MB / 0.512 GB, free: 13.68 MB / 382.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001459/0.4337, allocations: 198.2 kB / 0.5122 GB, free: 13.66 MB / 382.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0004895/0.4341, allocations: 279.6 kB / 0.5125 GB, free: 13.66 MB / 382.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.005526/0.4397, allocations: 2.885 MB / 0.5153 GB, free: 13.27 MB / 382.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0001285/0.4398, allocations: 21.81 kB / 0.5153 GB, free: 13.27 MB / 382.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0002411/0.4401, allocations: 109.4 kB / 0.5154 GB, free: 13.27 MB / 382.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0001319/0.4402, allocations: 126.1 kB / 0.5156 GB, free: 13.26 MB / 382.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.004674/0.4449, allocations: 2.128 MB / 0.5176 GB, free: 13.22 MB / 382.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.01418/0.4591, allocations: 10.72 MB / 0.5281 GB, free: 7.816 MB / 382.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001506/0.4606, allocations: 0.951 MB / 0.529 GB, free: 7.418 MB / 382.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001013/0.4617, allocations: 0.6538 MB / 0.5297 GB, free: 7.129 MB / 382.1 MB Notification: Performance of preOpt evalFunc (simulation): time 7.902e-05/0.4618, allocations: 13.34 kB / 0.5297 GB, free: 7.125 MB / 382.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.302e-05/0.4618, allocations: 48.34 kB / 0.5297 GB, free: 7.078 MB / 382.1 MB Notification: Performance of pre-optimization done (n=114): time 2.995e-06/0.4618, allocations: 4.938 kB / 0.5297 GB, free: 7.074 MB / 382.1 MB Notification: Performance of matching and sorting (n=134): time 0.01099/0.4728, allocations: 6.095 MB / 0.5357 GB, free: 3.516 MB / 382.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.154e-05/0.4728, allocations: 94.92 kB / 0.5358 GB, free: 3.418 MB / 382.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.002153/0.475, allocations: 1.977 MB / 0.5377 GB, free: 2.336 MB / 382.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0001472/0.4752, allocations: 71.75 kB / 0.5378 GB, free: 2.273 MB / 382.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0007673/0.4759, allocations: 1.417 MB / 0.5392 GB, free: 1.039 MB / 382.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0002856/0.4762, allocations: 476.4 kB / 0.5396 GB, free: 0.6406 MB / 382.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0005284/0.4768, allocations: 445.7 kB / 0.54 GB, free: 384 kB / 382.1 MB Notification: Performance of setup shared object (initialization): time 3.61e-05/0.4768, allocations: 301.1 kB / 0.5403 GB, free: 80 kB / 382.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001222/0.478, allocations: 0.7375 MB / 0.541 GB, free: 15.72 MB / 398.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001806/0.4799, allocations: 1.622 MB / 0.5426 GB, free: 14.14 MB / 398.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.002738/0.4826, allocations: 2.234 MB / 0.5448 GB, free: 12.35 MB / 398.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.7e-05/0.4826, allocations: 11.78 kB / 0.5448 GB, free: 12.34 MB / 398.1 MB Notification: Performance of matching and sorting (n=290) (initialization): time 0.004758/0.4874, allocations: 2.823 MB / 0.5476 GB, free: 10.14 MB / 398.1 MB Notification: Performance of prepare postOptimizeDAE: time 3.252e-05/0.4874, allocations: 24 kB / 0.5476 GB, free: 10.12 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.042e-05/0.4875, allocations: 28 kB / 0.5476 GB, free: 10.09 MB / 398.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.00193/0.4894, allocations: 1.301 MB / 0.5489 GB, free: 8.809 MB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.00142/0.4909, allocations: 461.1 kB / 0.5493 GB, free: 8.395 MB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.003169/0.494, allocations: 3.005 MB / 0.5523 GB, free: 5.246 MB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.002481/0.4965, allocations: 211.5 kB / 0.5525 GB, free: 5.039 MB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0002103/0.4968, allocations: 115.9 kB / 0.5526 GB, free: 4.926 MB / 398.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.001676/0.4984, allocations: 0.6508 MB / 0.5532 GB, free: 4.301 MB / 398.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0004925/0.4989, allocations: 227 kB / 0.5534 GB, free: 4.078 MB / 398.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.00322/0.5022, allocations: 1.759 MB / 0.5552 GB, free: 2.312 MB / 398.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.183e-05/0.5022, allocations: 12 kB / 0.5552 GB, free: 2.301 MB / 398.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.929e-06/0.5022, allocations: 4 kB / 0.5552 GB, free: 2.297 MB / 398.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.391e-05/0.5022, allocations: 11.92 kB / 0.5552 GB, free: 2.285 MB / 398.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.007509/0.5097, allocations: 4.488 MB / 0.5596 GB, free: 13.74 MB / 414.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 7.264e-06/0.5098, allocations: 1.641 kB / 0.5596 GB, free: 13.74 MB / 414.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0007945/0.5106, allocations: 197.9 kB / 0.5598 GB, free: 13.55 MB / 414.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.001721/0.5123, allocations: 1.182 MB / 0.5609 GB, free: 12.37 MB / 414.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001109/0.5124, allocations: 43.95 kB / 0.561 GB, free: 12.32 MB / 414.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.002877/0.5153, allocations: 2.838 MB / 0.5637 GB, free: 9.336 MB / 414.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.085e-06/0.5153, allocations: 0 / 0.5637 GB, free: 9.336 MB / 414.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.004337/0.5197, allocations: 2.634 MB / 0.5663 GB, free: 6.656 MB / 414.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.001226/0.5209, allocations: 446.1 kB / 0.5667 GB, free: 6.199 MB / 414.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0005716/0.5215, allocations: 55.94 kB / 0.5668 GB, free: 6.145 MB / 414.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.00131/0.5228, allocations: 95.89 kB / 0.5669 GB, free: 6.051 MB / 414.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0004544/0.5233, allocations: 212.7 kB / 0.5671 GB, free: 5.844 MB / 414.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001053/0.5234, allocations: 47.97 kB / 0.5671 GB, free: 5.797 MB / 414.1 MB Notification: Performance of sorting global known variables: time 0.001948/0.5254, allocations: 1.277 MB / 0.5684 GB, free: 4.508 MB / 414.1 MB Notification: Performance of sort global known variables: time 2.31e-07/0.5254, allocations: 5.062 kB / 0.5684 GB, free: 4.508 MB / 414.1 MB Notification: Performance of remove unused functions: time 0.002295/0.5277, allocations: 0.5 MB / 0.5689 GB, free: 4.008 MB / 414.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.0004228/0.5281, allocations: 186.4 kB / 0.569 GB, free: 3.824 MB / 414.1 MB Notification: Performance of simCode: created initialization part: time 0.003722/0.5319, allocations: 1.967 MB / 0.571 GB, free: 1.945 MB / 414.1 MB Notification: Performance of simCode: created event and clocks part: time 4.859e-06/0.5319, allocations: 0 / 0.571 GB, free: 1.945 MB / 414.1 MB Notification: Performance of simCode: created simulation system equations: time 0.001813/0.5337, allocations: 0.9754 MB / 0.5719 GB, free: 0.9766 MB / 414.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002474/0.5362, allocations: 364.8 kB / 0.5723 GB, free: 0.6367 MB / 414.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01065/0.5468, allocations: 4.889 MB / 0.577 GB, free: 11.72 MB / 430.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.00202/0.5489, allocations: 1.652 MB / 0.5786 GB, free: 10.04 MB / 430.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0005736/0.5495, allocations: 155.4 kB / 0.5788 GB, free: 9.887 MB / 430.1 MB Notification: Performance of SimCode: time 7.11e-07/0.5495, allocations: 0 / 0.5788 GB, free: 9.887 MB / 430.1 MB Notification: Performance of Templates: time 0.07045/0.62, allocations: 55.14 MB / 0.6326 GB, free: 2.781 MB / 478.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)