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/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/ModelicaServices 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/VehicleInterfaces 2.0.1/package.mo", uses=false) Using package VehicleInterfaces with version 2.0.1 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/VehicleInterfaces 2.0.1/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) 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) 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/Complex 4.0.0+maint.om/package.mo): time 0.001092/0.001092, allocations: 182 kB / 15.98 MB, free: 5.77 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.244/1.244, allocations: 222.9 MB / 239.7 MB, free: 11.01 MB / 202.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.0009816/0.0009815, allocations: 108.8 kB / 289.9 MB, free: 10.93 MB / 234.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/VehicleInterfaces 2.0.1/package.mo): time 0.03891/0.03891, allocations: 7.975 MB / 348 MB, free: 1.105 MB / 282.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0009246/0.0009247, allocations: 59.58 kB / 410 MB, free: 58.4 MB / 298.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.07537/0.0763, allocations: 51.21 MB / 461.2 MB, free: 7.227 MB / 298.7 MB Notification: Performance of NFInst.instantiate(VehicleInterfaces.Examples.SeriesHybrid): time 0.2465/0.3228, allocations: 89.41 MB / 0.5377 GB, free: 0.9961 MB / 346.7 MB Notification: Performance of NFInst.instExpressions: time 0.03857/0.3614, allocations: 17.21 MB / 0.5545 GB, free: 15.74 MB / 378.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.01839/0.3798, allocations: 426.9 kB / 0.5549 GB, free: 15.32 MB / 378.7 MB Notification: Performance of NFTyping.typeComponents: time 0.003342/0.3832, allocations: 0.765 MB / 0.5556 GB, free: 14.55 MB / 378.7 MB Notification: Performance of NFTyping.typeBindings: time 0.003381/0.3866, allocations: 0.6476 MB / 0.5563 GB, free: 13.9 MB / 378.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.00809/0.3948, allocations: 4.209 MB / 0.5604 GB, free: 9.688 MB / 378.7 MB Notification: Performance of NFFlatten.flatten: time 0.005289/0.4001, allocations: 3.487 MB / 0.5638 GB, free: 6.203 MB / 378.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.005093/0.4052, allocations: 3.156 MB / 0.5669 GB, free: 2.977 MB / 378.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.00166/0.4068, allocations: 1.272 MB / 0.5681 GB, free: 1.699 MB / 378.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.002219/0.4091, allocations: 1.54 MB / 0.5696 GB, free: 156 kB / 378.7 MB Notification: Performance of NFPackage.collectConstants: time 0.0006514/0.4097, allocations: 228 kB / 0.5698 GB, free: 15.93 MB / 394.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0007178/0.4105, allocations: 287.8 kB / 0.5701 GB, free: 15.65 MB / 394.7 MB Notification: Performance of NFScalarize.scalarize: time 0.0005666/0.411, allocations: 0.7044 MB / 0.5708 GB, free: 14.94 MB / 394.7 MB Notification: Performance of NFVerifyModel.verify: time 0.001323/0.4124, allocations: 1.554 MB / 0.5723 GB, free: 13.38 MB / 394.7 MB Notification: Performance of NFConvertDAE.convert: time 0.003052/0.4154, allocations: 4.151 MB / 0.5764 GB, free: 9.215 MB / 394.7 MB Notification: Performance of FrontEnd - DAE generated: time 3.837e-06/0.4155, allocations: 0 / 0.5764 GB, free: 9.215 MB / 394.7 MB Notification: Performance of FrontEnd: time 7.41e-07/0.4155, allocations: 0 / 0.5764 GB, free: 9.215 MB / 394.7 MB Notification: Performance of Transformations before backend: time 3.696e-05/0.4155, allocations: 0 / 0.5764 GB, free: 9.215 MB / 394.7 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.005167/0.4207, allocations: 3.337 MB / 0.5796 GB, free: 5.812 MB / 394.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.546e-05/0.4207, allocations: 8.031 kB / 0.5796 GB, free: 5.805 MB / 394.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0004341/0.4212, allocations: 339.8 kB / 0.5799 GB, free: 5.469 MB / 394.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.002143/0.4233, allocations: 1.718 MB / 0.5816 GB, free: 3.695 MB / 394.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001262/0.4235, allocations: 205.3 kB / 0.5818 GB, free: 3.492 MB / 394.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0003297/0.4238, allocations: 279.7 kB / 0.5821 GB, free: 3.219 MB / 394.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.003985/0.4278, allocations: 2.89 MB / 0.5849 GB, free: 200 kB / 394.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 7.707e-05/0.4279, allocations: 23.72 kB / 0.5849 GB, free: 176 kB / 394.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001853/0.4281, allocations: 107.9 kB / 0.585 GB, free: 68 kB / 394.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0001181/0.4282, allocations: 127.9 kB / 0.5852 GB, free: 15.94 MB / 410.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.003384/0.4316, allocations: 2.127 MB / 0.5872 GB, free: 13.8 MB / 410.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.01162/0.4432, allocations: 10.82 MB / 0.5978 GB, free: 2.598 MB / 410.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001463/0.4447, allocations: 0.948 MB / 0.5987 GB, free: 1.629 MB / 410.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001083/0.4458, allocations: 0.6417 MB / 0.5994 GB, free: 0.9844 MB / 410.7 MB Notification: Performance of preOpt evalFunc (simulation): time 8.43e-05/0.4459, allocations: 13 kB / 0.5994 GB, free: 0.9727 MB / 410.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.507e-05/0.4459, allocations: 51.5 kB / 0.5994 GB, free: 0.9141 MB / 410.7 MB Notification: Performance of pre-optimization done (n=114): time 3.676e-06/0.4459, allocations: 4 kB / 0.5994 GB, free: 0.9102 MB / 410.7 MB Notification: Performance of matching and sorting (n=134): time 0.01082/0.4568, allocations: 6.098 MB / 0.6054 GB, free: 10.65 MB / 426.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.007e-05/0.4568, allocations: 98.39 kB / 0.6055 GB, free: 10.54 MB / 426.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.002193/0.459, allocations: 1.977 MB / 0.6074 GB, free: 8.531 MB / 426.7 MB Notification: Performance of collectPreVariables (initialization): time 9.468e-05/0.4591, allocations: 69.69 kB / 0.6075 GB, free: 8.457 MB / 426.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.000909/0.4601, allocations: 1.424 MB / 0.6089 GB, free: 7.016 MB / 426.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0003193/0.4604, allocations: 473.6 kB / 0.6093 GB, free: 6.547 MB / 426.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0005418/0.4609, allocations: 435.9 kB / 0.6097 GB, free: 6.113 MB / 426.7 MB Notification: Performance of setup shared object (initialization): time 7.853e-05/0.461, allocations: 305.1 kB / 0.61 GB, free: 5.812 MB / 426.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001193/0.4622, allocations: 0.7346 MB / 0.6107 GB, free: 5.074 MB / 426.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001709/0.4639, allocations: 1.623 MB / 0.6123 GB, free: 3.027 MB / 426.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.002555/0.4665, allocations: 2.226 MB / 0.6145 GB, free: 388 kB / 426.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.075e-05/0.4665, allocations: 8 kB / 0.6145 GB, free: 380 kB / 426.7 MB Notification: Performance of matching and sorting (n=290) (initialization): time 0.004353/0.4709, allocations: 2.836 MB / 0.6173 GB, free: 13.52 MB / 442.7 MB Notification: Performance of prepare postOptimizeDAE: time 4.604e-05/0.4709, allocations: 23.94 kB / 0.6173 GB, free: 13.5 MB / 442.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.023e-05/0.471, allocations: 28 kB / 0.6173 GB, free: 13.47 MB / 442.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001815/0.4728, allocations: 1.299 MB / 0.6186 GB, free: 12.16 MB / 442.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001269/0.4741, allocations: 459.2 kB / 0.619 GB, free: 11.71 MB / 442.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002699/0.4768, allocations: 2.91 MB / 0.6219 GB, free: 8.641 MB / 442.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001567/0.4784, allocations: 207.6 kB / 0.6221 GB, free: 8.438 MB / 442.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001417/0.4785, allocations: 108 kB / 0.6222 GB, free: 8.332 MB / 442.7 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.0009465/0.4795, allocations: 0.6501 MB / 0.6228 GB, free: 7.672 MB / 442.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002656/0.4797, allocations: 229.1 kB / 0.623 GB, free: 7.445 MB / 442.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.002854/0.4826, allocations: 1.76 MB / 0.6247 GB, free: 5.668 MB / 442.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.174e-05/0.4826, allocations: 15.94 kB / 0.6248 GB, free: 5.652 MB / 442.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.649e-06/0.4826, allocations: 4 kB / 0.6248 GB, free: 5.648 MB / 442.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.085e-05/0.4827, allocations: 7.969 kB / 0.6248 GB, free: 5.641 MB / 442.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.006517/0.4892, allocations: 4.524 MB / 0.6292 GB, free: 1.004 MB / 442.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 6.823e-06/0.4892, allocations: 4 kB / 0.6292 GB, free: 1 MB / 442.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0007719/0.49, allocations: 199.7 kB / 0.6294 GB, free: 0.8047 MB / 442.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.001592/0.4916, allocations: 1.184 MB / 0.6305 GB, free: 15.62 MB / 458.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 9.522e-05/0.4917, allocations: 43.95 kB / 0.6306 GB, free: 15.57 MB / 458.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.002578/0.4943, allocations: 2.731 MB / 0.6332 GB, free: 12.68 MB / 458.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.598e-06/0.4943, allocations: 7.938 kB / 0.6332 GB, free: 12.67 MB / 458.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.1972/0.6915, allocations: 20.25 MB / 0.653 GB, free: 156.2 MB / 458.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0006032/0.6921, allocations: 441.4 kB / 0.6534 GB, free: 156 MB / 458.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0002233/0.6923, allocations: 51.75 kB / 0.6535 GB, free: 156 MB / 458.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.000888/0.6932, allocations: 105.7 kB / 0.6536 GB, free: 155.9 MB / 458.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0004387/0.6937, allocations: 211.3 kB / 0.6538 GB, free: 155.9 MB / 458.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001048/0.6938, allocations: 50.86 kB / 0.6538 GB, free: 155.9 MB / 458.7 MB Notification: Performance of sorting global known variables: time 0.00175/0.6955, allocations: 1.275 MB / 0.6551 GB, free: 155.4 MB / 458.7 MB Notification: Performance of sort global known variables: time 2.51e-07/0.6956, allocations: 1.375 kB / 0.6551 GB, free: 155.4 MB / 458.7 MB Notification: Performance of remove unused functions: time 0.002106/0.6977, allocations: 0.712 MB / 0.6558 GB, free: 155.4 MB / 458.7 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.0003914/0.6981, allocations: 225.7 kB / 0.656 GB, free: 155.2 MB / 458.7 MB Notification: Performance of simCode: created initialization part: time 0.003116/0.7012, allocations: 1.947 MB / 0.6579 GB, free: 154.5 MB / 458.7 MB Notification: Performance of simCode: created event and clocks part: time 4.027e-06/0.7012, allocations: 2.594 kB / 0.6579 GB, free: 154.5 MB / 458.7 MB Notification: Performance of simCode: created simulation system equations: time 0.001669/0.7029, allocations: 0.9842 MB / 0.6589 GB, free: 154 MB / 458.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001524/0.7044, allocations: 336 kB / 0.6592 GB, free: 153.9 MB / 458.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01092/0.7153, allocations: 7.043 MB / 0.6661 GB, free: 149.8 MB / 458.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001395/0.7168, allocations: 1.708 MB / 0.6677 GB, free: 149 MB / 458.7 MB Notification: Performance of simCode: alias equations: time 0.001325/0.7181, allocations: 340.1 kB / 0.6681 GB, free: 148.9 MB / 458.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.000431/0.7186, allocations: 150 kB / 0.6682 GB, free: 148.9 MB / 458.7 MB Notification: Performance of SimCode: time 9.62e-07/0.7186, allocations: 0 / 0.6682 GB, free: 148.9 MB / 458.7 MB Notification: Performance of Templates: time 0.04134/0.7599, allocations: 34.82 MB / 0.7022 GB, free: 120.2 MB / 458.7 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)