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.001328/0.001328, allocations: 113.1 kB / 16.41 MB, free: 6.484 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.001403/0.001403, allocations: 189.5 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.329/1.329, allocations: 222.9 MB / 241 MB, free: 15.13 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/VehicleInterfaces 2.0.1-master/package.mo): time 0.04117/0.04117, allocations: 8.003 MB / 299.2 MB, free: 7.098 MB / 238.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001168/0.001168, allocations: 63.91 kB / 413.8 MB, free: 22.95 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1091/0.1102, allocations: 51.21 MB / 465 MB, free: 3.695 MB / 334.1 MB Notification: Performance of NFInst.instantiate(VehicleInterfaces.Examples.SeriesHybrid): time 0.02443/0.1347, allocations: 23.15 MB / 488.1 MB, free: 12.45 MB / 366.1 MB Notification: Performance of NFInst.instExpressions: time 0.01485/0.1496, allocations: 5.973 MB / 494.1 MB, free: 6.453 MB / 366.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.005814/0.1555, allocations: 179.4 kB / 494.3 MB, free: 6.277 MB / 366.1 MB Notification: Performance of NFTyping.typeComponents: time 0.002841/0.1584, allocations: 0.9267 MB / 495.2 MB, free: 5.344 MB / 366.1 MB Notification: Performance of NFTyping.typeBindings: time 0.003136/0.1616, allocations: 0.7748 MB / 496 MB, free: 4.562 MB / 366.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.00765/0.1692, allocations: 4.252 MB / 0.4885 GB, free: 308 kB / 366.1 MB Notification: Performance of NFFlatten.flatten: time 0.005132/0.1744, allocations: 3.609 MB / 0.492 GB, free: 12.68 MB / 382.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.005391/0.1798, allocations: 4.203 MB / 0.4961 GB, free: 8.395 MB / 382.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.002088/0.1819, allocations: 1.468 MB / 0.4976 GB, free: 6.922 MB / 382.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.001807/0.1837, allocations: 1.622 MB / 0.4991 GB, free: 5.293 MB / 382.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0004337/0.1841, allocations: 392 kB / 0.4995 GB, free: 4.91 MB / 382.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0006285/0.1848, allocations: 463.9 kB / 0.5 GB, free: 4.457 MB / 382.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0006853/0.1855, allocations: 0.8606 MB / 0.5008 GB, free: 3.594 MB / 382.1 MB Notification: Performance of NFVerifyModel.verify: time 0.00152/0.187, allocations: 1.711 MB / 0.5025 GB, free: 1.875 MB / 382.1 MB Notification: Performance of NFConvertDAE.convert: time 0.2944/0.4814, allocations: 4.358 MB / 0.5067 GB, free: 15.7 MB / 382.1 MB Notification: Performance of FrontEnd - DAE generated: time 7.514e-06/0.4815, allocations: 0 / 0.5067 GB, free: 15.7 MB / 382.1 MB Notification: Performance of FrontEnd: time 2.595e-06/0.4815, allocations: 1.156 kB / 0.5067 GB, free: 15.7 MB / 382.1 MB Notification: Performance of Transformations before backend: time 0.0001488/0.4816, allocations: 0 / 0.5067 GB, free: 15.7 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.006471/0.4881, allocations: 3.334 MB / 0.51 GB, free: 14.28 MB / 382.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.666e-05/0.4882, allocations: 12.45 kB / 0.51 GB, free: 14.28 MB / 382.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0005901/0.4888, allocations: 341.8 kB / 0.5103 GB, free: 14.11 MB / 382.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.002801/0.4916, allocations: 1.78 MB / 0.5121 GB, free: 13.59 MB / 382.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001628/0.4918, allocations: 197.4 kB / 0.5123 GB, free: 13.59 MB / 382.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0004054/0.4922, allocations: 278.5 kB / 0.5125 GB, free: 13.58 MB / 382.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.004831/0.497, allocations: 2.886 MB / 0.5153 GB, free: 13.2 MB / 382.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 9.158e-05/0.4971, allocations: 25.09 kB / 0.5154 GB, free: 13.19 MB / 382.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.000244/0.4974, allocations: 106.3 kB / 0.5155 GB, free: 13.19 MB / 382.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0001444/0.4975, allocations: 128.3 kB / 0.5156 GB, free: 13.18 MB / 382.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.004206/0.5017, allocations: 2.129 MB / 0.5177 GB, free: 13.14 MB / 382.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.01254/0.5143, allocations: 10.73 MB / 0.5281 GB, free: 7.734 MB / 382.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.00146/0.5158, allocations: 0.9443 MB / 0.5291 GB, free: 7.336 MB / 382.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001028/0.5168, allocations: 0.6588 MB / 0.5297 GB, free: 7.047 MB / 382.1 MB Notification: Performance of preOpt evalFunc (simulation): time 8.326e-05/0.5169, allocations: 14.97 kB / 0.5297 GB, free: 7.043 MB / 382.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.215e-05/0.517, allocations: 47.41 kB / 0.5298 GB, free: 6.996 MB / 382.1 MB Notification: Performance of pre-optimization done (n=114): time 3.056e-06/0.517, allocations: 1.469 kB / 0.5298 GB, free: 6.996 MB / 382.1 MB Notification: Performance of matching and sorting (n=134): time 0.0105/0.5275, allocations: 6.099 MB / 0.5357 GB, free: 3.426 MB / 382.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.689e-05/0.5275, allocations: 93.91 kB / 0.5358 GB, free: 3.328 MB / 382.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.002202/0.5297, allocations: 1.973 MB / 0.5377 GB, free: 2.25 MB / 382.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0001084/0.5299, allocations: 73.31 kB / 0.5378 GB, free: 2.188 MB / 382.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0007799/0.5307, allocations: 1.42 MB / 0.5392 GB, free: 0.9531 MB / 382.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0002635/0.5309, allocations: 477.5 kB / 0.5397 GB, free: 0.5547 MB / 382.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0005368/0.5315, allocations: 444.3 kB / 0.5401 GB, free: 296 kB / 382.1 MB Notification: Performance of setup shared object (initialization): time 6.508e-05/0.5315, allocations: 305.1 kB / 0.5404 GB, free: 15.99 MB / 398.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001163/0.5327, allocations: 0.7359 MB / 0.5411 GB, free: 15.62 MB / 398.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001807/0.5345, allocations: 1.621 MB / 0.5427 GB, free: 14.05 MB / 398.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.00272/0.5373, allocations: 2.234 MB / 0.5448 GB, free: 12.25 MB / 398.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.41e-05/0.5373, allocations: 9.875 kB / 0.5449 GB, free: 12.25 MB / 398.1 MB Notification: Performance of matching and sorting (n=290) (initialization): time 0.004525/0.5418, allocations: 2.829 MB / 0.5476 GB, free: 10.12 MB / 398.1 MB Notification: Performance of prepare postOptimizeDAE: time 3.568e-05/0.5419, allocations: 16 kB / 0.5476 GB, free: 10.11 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.157e-05/0.5419, allocations: 32 kB / 0.5477 GB, free: 10.08 MB / 398.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001875/0.5438, allocations: 1.294 MB / 0.5489 GB, free: 8.797 MB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001296/0.5451, allocations: 460.1 kB / 0.5494 GB, free: 8.383 MB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.003062/0.5482, allocations: 3.005 MB / 0.5523 GB, free: 5.23 MB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001926/0.5501, allocations: 207.5 kB / 0.5525 GB, free: 5.027 MB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001647/0.5503, allocations: 115.9 kB / 0.5526 GB, free: 4.914 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.001258/0.5515, allocations: 0.6613 MB / 0.5533 GB, free: 4.281 MB / 398.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0003205/0.5519, allocations: 222.1 kB / 0.5535 GB, free: 4.062 MB / 398.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.003017/0.5549, allocations: 1.761 MB / 0.5552 GB, free: 2.297 MB / 398.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.076e-05/0.5549, allocations: 12 kB / 0.5552 GB, free: 2.285 MB / 398.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.369e-06/0.5549, allocations: 0 / 0.5552 GB, free: 2.285 MB / 398.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.232e-05/0.5549, allocations: 7.922 kB / 0.5552 GB, free: 2.277 MB / 398.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.007186/0.5621, allocations: 4.488 MB / 0.5596 GB, free: 13.73 MB / 414.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.12e-05/0.5622, allocations: 8 kB / 0.5596 GB, free: 13.72 MB / 414.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0007628/0.5629, allocations: 201 kB / 0.5598 GB, free: 13.54 MB / 414.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.001649/0.5646, allocations: 1.19 MB / 0.561 GB, free: 12.34 MB / 414.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 9.708e-05/0.5647, allocations: 39.97 kB / 0.561 GB, free: 12.3 MB / 414.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.002836/0.5675, allocations: 2.829 MB / 0.5638 GB, free: 9.328 MB / 414.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.51e-06/0.5676, allocations: 7.984 kB / 0.5638 GB, free: 9.32 MB / 414.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.004085/0.5716, allocations: 2.638 MB / 0.5663 GB, free: 6.637 MB / 414.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0008687/0.5725, allocations: 438.1 kB / 0.5668 GB, free: 6.188 MB / 414.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.000262/0.5728, allocations: 55.92 kB / 0.5668 GB, free: 6.133 MB / 414.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0009011/0.5737, allocations: 103.9 kB / 0.5669 GB, free: 6.031 MB / 414.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0004/0.5741, allocations: 200.7 kB / 0.5671 GB, free: 5.836 MB / 414.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001053/0.5742, allocations: 57.48 kB / 0.5672 GB, free: 5.781 MB / 414.1 MB Notification: Performance of sorting global known variables: time 0.001768/0.576, allocations: 1.275 MB / 0.5684 GB, free: 4.492 MB / 414.1 MB Notification: Performance of sort global known variables: time 1.3e-07/0.576, allocations: 4 kB / 0.5684 GB, free: 4.488 MB / 414.1 MB Notification: Performance of remove unused functions: time 0.001805/0.5778, allocations: 0.4961 MB / 0.5689 GB, free: 3.992 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.0003528/0.5782, allocations: 190.5 kB / 0.5691 GB, free: 3.805 MB / 414.1 MB Notification: Performance of simCode: created initialization part: time 0.003257/0.5814, allocations: 1.966 MB / 0.571 GB, free: 1.93 MB / 414.1 MB Notification: Performance of simCode: created event and clocks part: time 3.777e-06/0.5815, allocations: 1.875 kB / 0.571 GB, free: 1.93 MB / 414.1 MB Notification: Performance of simCode: created simulation system equations: time 0.001655/0.5831, allocations: 0.9776 MB / 0.5719 GB, free: 0.9609 MB / 414.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001586/0.5847, allocations: 358.3 kB / 0.5723 GB, free: 0.625 MB / 414.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.009534/0.5943, allocations: 4.881 MB / 0.5771 GB, free: 11.71 MB / 430.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001309/0.5956, allocations: 1.652 MB / 0.5787 GB, free: 10.03 MB / 430.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0004478/0.5961, allocations: 155.4 kB / 0.5788 GB, free: 9.875 MB / 430.1 MB Notification: Performance of SimCode: time 1.593e-06/0.5961, allocations: 4 kB / 0.5788 GB, free: 9.871 MB / 430.1 MB Notification: Performance of Templates: time 0.07032/0.6664, allocations: 55.15 MB / 0.6327 GB, free: 2.766 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)