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.001258/0.001258, allocations: 99.08 kB / 15.05 MB, free: 1.105 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.001468/0.001468, allocations: 177.3 kB / 15.95 MB, free: 216 kB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.499/1.499, allocations: 223.2 MB / 239.9 MB, free: 5.449 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/VehicleInterfaces 2.0.1-master/package.mo): time 0.231/0.231, allocations: 7.977 MB / 299 MB, free: 3.203 MB / 238.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0004345/0.0004351, allocations: 8 kB / 361.7 MB, free: 14.71 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1498/0.1502, allocations: 52.2 MB / 413.9 MB, free: 10.45 MB / 350.1 MB Notification: Performance of NFInst.instantiate(VehicleInterfaces.Examples.SeriesHybrid): time 0.3743/0.5246, allocations: 76.38 MB / 490.2 MB, free: 11.22 MB / 366.1 MB Notification: Performance of NFInst.instExpressions: time 0.05372/0.5784, allocations: 17.47 MB / 0.4958 GB, free: 15.05 MB / 382.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.02771/0.6061, allocations: 423.5 kB / 0.4962 GB, free: 14.99 MB / 382.1 MB Notification: Performance of NFTyping.typeComponents: time 0.01885/0.625, allocations: 3.864 MB / 0.5 GB, free: 13.69 MB / 382.1 MB Notification: Performance of NFTyping.typeBindings: time 0.04809/0.6731, allocations: 10.17 MB / 0.5099 GB, free: 8.645 MB / 382.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.009151/0.6823, allocations: 0.8628 MB / 0.5108 GB, free: 8.172 MB / 382.1 MB Notification: Performance of NFFlatten.flatten: time 0.009077/0.6914, allocations: 2.322 MB / 0.513 GB, free: 6.363 MB / 382.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.006217/0.6977, allocations: 3.076 MB / 0.516 GB, free: 3.707 MB / 382.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.003255/0.7009, allocations: 1.112 MB / 0.5171 GB, free: 2.719 MB / 382.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.002543/0.7035, allocations: 1.217 MB / 0.5183 GB, free: 1.59 MB / 382.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0004062/0.7039, allocations: 128 kB / 0.5184 GB, free: 1.465 MB / 382.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0006334/0.7046, allocations: 171.9 kB / 0.5186 GB, free: 1.297 MB / 382.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0005659/0.7051, allocations: 0.5525 MB / 0.5191 GB, free: 0.7422 MB / 382.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0008448/0.706, allocations: 0.5938 MB / 0.5197 GB, free: 144 kB / 382.1 MB Notification: Performance of NFConvertDAE.convert: time 0.00376/0.7098, allocations: 3.28 MB / 0.5229 GB, free: 12.85 MB / 398.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.728e-06/0.7098, allocations: 0 / 0.5229 GB, free: 12.85 MB / 398.1 MB Notification: Performance of FrontEnd: time 3.957e-06/0.7098, allocations: 0 / 0.5229 GB, free: 12.85 MB / 398.1 MB Notification: Performance of Transformations before backend: time 0.000173/0.71, allocations: 0 / 0.5229 GB, free: 12.85 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: 704 * Number of variables: 704 Notification: Performance of Generate backend data structure: time 0.006291/0.7163, allocations: 2.835 MB / 0.5257 GB, free: 9.953 MB / 398.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.647e-05/0.7163, allocations: 8.031 kB / 0.5257 GB, free: 9.945 MB / 398.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0006339/0.717, allocations: 339.8 kB / 0.526 GB, free: 9.609 MB / 398.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.002794/0.7198, allocations: 1.659 MB / 0.5277 GB, free: 7.898 MB / 398.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001477/0.7199, allocations: 201.3 kB / 0.5278 GB, free: 7.699 MB / 398.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.000402/0.7204, allocations: 271.8 kB / 0.5281 GB, free: 7.434 MB / 398.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.005052/0.7254, allocations: 2.849 MB / 0.5309 GB, free: 4.453 MB / 398.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 9.24e-05/0.7255, allocations: 27.73 kB / 0.5309 GB, free: 4.426 MB / 398.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.000226/0.7258, allocations: 112 kB / 0.531 GB, free: 4.316 MB / 398.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0001354/0.7259, allocations: 120 kB / 0.5311 GB, free: 4.199 MB / 398.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.004014/0.7299, allocations: 2.115 MB / 0.5332 GB, free: 2.07 MB / 398.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.01645/0.7464, allocations: 10.92 MB / 0.5439 GB, free: 6.777 MB / 414.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001906/0.7483, allocations: 0.9482 MB / 0.5448 GB, free: 5.816 MB / 414.1 MB Notification: Performance of preOpt evalFunc (simulation): time 7.177e-05/0.7484, allocations: 9 kB / 0.5448 GB, free: 5.809 MB / 414.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 6.048e-05/0.7485, allocations: 47.56 kB / 0.5448 GB, free: 5.754 MB / 414.1 MB Notification: Performance of pre-optimization done (n=114): time 4.328e-06/0.7485, allocations: 0 / 0.5448 GB, free: 5.754 MB / 414.1 MB Notification: Performance of matching and sorting (n=134): time 0.01284/0.7614, allocations: 6.284 MB / 0.551 GB, free: 15.31 MB / 430.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.981e-05/0.7615, allocations: 90.42 kB / 0.5511 GB, free: 15.2 MB / 430.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.002811/0.7643, allocations: 1.954 MB / 0.553 GB, free: 13.22 MB / 430.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0001519/0.7644, allocations: 69.69 kB / 0.553 GB, free: 13.14 MB / 430.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.001212/0.7657, allocations: 1.427 MB / 0.5544 GB, free: 11.7 MB / 430.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0004112/0.7661, allocations: 473.7 kB / 0.5549 GB, free: 11.23 MB / 430.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001002/0.7662, allocations: 44 kB / 0.5549 GB, free: 11.19 MB / 430.1 MB Notification: Performance of setup shared object (initialization): time 0.0001805/0.7664, allocations: 390.5 kB / 0.5553 GB, free: 10.8 MB / 430.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001268/0.7677, allocations: 0.7229 MB / 0.556 GB, free: 10.07 MB / 430.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001905/0.7696, allocations: 1.619 MB / 0.5576 GB, free: 8.031 MB / 430.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001362/0.7709, allocations: 0.8573 MB / 0.5584 GB, free: 7.172 MB / 430.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.216e-05/0.771, allocations: 8 kB / 0.5584 GB, free: 7.164 MB / 430.1 MB Notification: Performance of matching and sorting (n=290) (initialization): time 0.005041/0.776, allocations: 2.829 MB / 0.5612 GB, free: 4.32 MB / 430.1 MB Notification: Performance of prepare postOptimizeDAE: time 3.397e-05/0.7761, allocations: 16.19 kB / 0.5612 GB, free: 4.305 MB / 430.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.099e-05/0.7761, allocations: 36 kB / 0.5612 GB, free: 4.27 MB / 430.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001945/0.7781, allocations: 1.299 MB / 0.5625 GB, free: 2.965 MB / 430.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001501/0.7796, allocations: 459.2 kB / 0.563 GB, free: 2.516 MB / 430.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.003388/0.783, allocations: 2.925 MB / 0.5658 GB, free: 15.43 MB / 446.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.002316/0.7853, allocations: 259.6 kB / 0.5661 GB, free: 15.18 MB / 446.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001908/0.7855, allocations: 112 kB / 0.5662 GB, free: 15.07 MB / 446.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_1.free,$PRE.brakes.brake_1.startForward,brakes.brake_1.startForward,$PRE.brakes.brake_1.startBackward,brakes.brake_1.startBackward,brakes.brake_1.locked,$PRE.brakes.brake_1.mode,brakes.brake_1.mode,brakes.brake_2.free,$PRE.brakes.brake_2.startForward,brakes.brake_2.startForward,$PRE.brakes.brake_2.startBackward,brakes.brake_2.startBackward,brakes.brake_2.locked,$PRE.brakes.brake_2.mode,brakes.brake_2.mode,brakes.brake_3.free,$PRE.brakes.brake_3.startForward,brakes.brake_3.startForward,$PRE.brakes.brake_3.startBackward,brakes.brake_3.startBackward,brakes.brake_3.locked,$PRE.brakes.brake_3.mode,brakes.brake_3.mode,brakes.brake_4.free,$PRE.brakes.brake_4.startForward,brakes.brake_4.startForward,$PRE.brakes.brake_4.startBackward,brakes.brake_4.startBackward,brakes.brake_4.locked,$PRE.brakes.brake_4.mode,brakes.brake_4.mode,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 (linear and non-linear blocks): 0 * Torn equation systems: 2 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 1 {(1,100.0%) 2} * Non-linear torn systems: 1 {4 29} Notification: Performance of prepare postOptimizeDAE: time 0.001672/0.7872, allocations: 0.6546 MB / 0.5668 GB, free: 14.41 MB / 446.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0005505/0.7877, allocations: 225.1 kB / 0.567 GB, free: 14.18 MB / 446.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.003375/0.7911, allocations: 1.768 MB / 0.5687 GB, free: 12.4 MB / 446.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.415e-05/0.7912, allocations: 12 kB / 0.5688 GB, free: 12.39 MB / 446.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.835e-06/0.7912, allocations: 0 / 0.5688 GB, free: 12.39 MB / 446.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.174e-05/0.7912, allocations: 3.984 kB / 0.5688 GB, free: 12.38 MB / 446.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0085/0.7997, allocations: 4.594 MB / 0.5732 GB, free: 7.668 MB / 446.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 9.087e-06/0.7998, allocations: 7.938 kB / 0.5733 GB, free: 7.66 MB / 446.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0008533/0.8006, allocations: 200 kB / 0.5734 GB, free: 7.465 MB / 446.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.001777/0.8024, allocations: 1.186 MB / 0.5746 GB, free: 6.273 MB / 446.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.000113/0.8026, allocations: 43.95 kB / 0.5746 GB, free: 6.23 MB / 446.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.003072/0.8056, allocations: 2.737 MB / 0.5773 GB, free: 3.34 MB / 446.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.405e-06/0.8056, allocations: 4.031 kB / 0.5773 GB, free: 3.336 MB / 446.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.004597/0.8103, allocations: 2.781 MB / 0.58 GB, free: 464 kB / 446.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.3063/1.117, allocations: 446.1 kB / 0.5805 GB, free: 126.3 MB / 446.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.001026/1.118, allocations: 52.59 kB / 0.5805 GB, free: 126.3 MB / 446.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001255/1.119, allocations: 135.3 kB / 0.5806 GB, free: 126.3 MB / 446.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0005583/1.119, allocations: 246.4 kB / 0.5809 GB, free: 126.3 MB / 446.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001014/1.12, allocations: 54.56 kB / 0.5809 GB, free: 126.3 MB / 446.1 MB Notification: Performance of sorting global known variables: time 0.00234/1.122, allocations: 1.258 MB / 0.5822 GB, free: 126.2 MB / 446.1 MB Notification: Performance of sort global known variables: time 3.01e-07/1.122, allocations: 0 / 0.5822 GB, free: 126.2 MB / 446.1 MB Notification: Performance of remove unused functions: time 0.002325/1.124, allocations: 0.4984 MB / 0.5826 GB, free: 126.2 MB / 446.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 9 * 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 (linear and non-linear blocks): 0 * Torn equation systems: 2 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 1 {(1,100.0%) 2} * Non-linear torn systems: 1 {4 24} Notification: Performance of Backend phase and start with SimCode phase: time 0.0003664/1.125, allocations: 183.2 kB / 0.5828 GB, free: 126.1 MB / 446.1 MB Notification: Performance of simCode: created initialization part: time 0.003463/1.128, allocations: 1.956 MB / 0.5847 GB, free: 125.9 MB / 446.1 MB Notification: Performance of simCode: created event and clocks part: time 4.127e-06/1.128, allocations: 3.344 kB / 0.5847 GB, free: 125.9 MB / 446.1 MB Notification: Performance of simCode: created simulation system equations: time 0.00155/1.13, allocations: 0.9787 MB / 0.5857 GB, free: 125.8 MB / 446.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001401/1.131, allocations: 296.2 kB / 0.586 GB, free: 125.8 MB / 446.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.009248/1.14, allocations: 5.869 MB / 0.5917 GB, free: 123.1 MB / 446.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001229/1.142, allocations: 1.705 MB / 0.5934 GB, free: 122.4 MB / 446.1 MB Notification: Performance of simCode: alias equations: time 0.001105/1.143, allocations: 334.1 kB / 0.5937 GB, free: 122.3 MB / 446.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002665/1.143, allocations: 135.4 kB / 0.5938 GB, free: 122.3 MB / 446.1 MB Notification: Performance of SimCode: time 5.41e-07/1.143, allocations: 0 / 0.5938 GB, free: 122.3 MB / 446.1 MB Notification: Performance of Templates: time 0.05037/1.193, allocations: 27.1 MB / 0.6203 GB, free: 118.2 MB / 446.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)