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.00117/0.00117, allocations: 115.3 kB / 15.34 MB, free: 0.5156 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.001136/0.001136, allocations: 190.7 kB / 16.25 MB, free: 6.629 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.391/1.391, allocations: 222.9 MB / 239.9 MB, free: 4.422 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/VehicleInterfaces 2.0.1-master/package.mo): time 0.1686/0.1686, allocations: 7.983 MB / 298.1 MB, free: 2.34 MB / 238.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001245/0.001246, allocations: 59.91 kB / 360.1 MB, free: 15.05 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1102/0.1115, allocations: 51.21 MB / 411.3 MB, free: 11.79 MB / 350.1 MB Notification: Performance of NFInst.instantiate(VehicleInterfaces.Examples.SeriesHybrid): time 0.2925/0.404, allocations: 89.42 MB / 0.489 GB, free: 2.273 MB / 366.1 MB Notification: Performance of NFInst.instExpressions: time 0.0432/0.4473, allocations: 17.16 MB / 0.5057 GB, free: 6.52 MB / 382.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.02403/0.4714, allocations: 426.4 kB / 0.5061 GB, free: 6.453 MB / 382.1 MB Notification: Performance of NFTyping.typeComponents: time 0.004282/0.4757, allocations: 0.766 MB / 0.5069 GB, free: 6.035 MB / 382.1 MB Notification: Performance of NFTyping.typeBindings: time 0.004821/0.4806, allocations: 0.6434 MB / 0.5075 GB, free: 5.594 MB / 382.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.009441/0.4901, allocations: 4.082 MB / 0.5115 GB, free: 3.492 MB / 382.1 MB Notification: Performance of NFFlatten.flatten: time 0.008119/0.4982, allocations: 3.584 MB / 0.515 GB, free: 1.609 MB / 382.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.008912/0.5072, allocations: 4.229 MB / 0.5191 GB, free: 13.68 MB / 398.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.003363/0.5106, allocations: 1.46 MB / 0.5206 GB, free: 12.36 MB / 398.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.004187/0.5148, allocations: 1.655 MB / 0.5222 GB, free: 11.02 MB / 398.1 MB Notification: Performance of NFPackage.collectConstants: time 0.001847/0.5167, allocations: 392 kB / 0.5226 GB, free: 10.64 MB / 398.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.002326/0.519, allocations: 449.8 kB / 0.523 GB, free: 10.21 MB / 398.1 MB Notification: Performance of NFScalarize.scalarize: time 0.002491/0.5215, allocations: 0.8691 MB / 0.5238 GB, free: 9.484 MB / 398.1 MB Notification: Performance of NFVerifyModel.verify: time 0.006464/0.528, allocations: 1.711 MB / 0.5255 GB, free: 7.875 MB / 398.1 MB Notification: Performance of NFConvertDAE.convert: time 0.007573/0.5357, allocations: 4.324 MB / 0.5297 GB, free: 4.191 MB / 398.1 MB Notification: Performance of FrontEnd - DAE generated: time 8.266e-06/0.5357, allocations: 0 / 0.5297 GB, free: 4.191 MB / 398.1 MB Notification: Performance of FrontEnd: time 3.065e-06/0.5357, allocations: 0 / 0.5297 GB, free: 4.191 MB / 398.1 MB Notification: Performance of Transformations before backend: time 0.0001765/0.5359, allocations: 0 / 0.5297 GB, free: 4.191 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.007461/0.5434, allocations: 3.341 MB / 0.533 GB, free: 0.7852 MB / 398.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.586e-05/0.5434, allocations: 8.031 kB / 0.533 GB, free: 0.7773 MB / 398.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0005031/0.544, allocations: 343.7 kB / 0.5333 GB, free: 448 kB / 398.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.002378/0.5463, allocations: 1.718 MB / 0.535 GB, free: 14.66 MB / 414.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001309/0.5465, allocations: 197.3 kB / 0.5352 GB, free: 14.47 MB / 414.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0003786/0.5469, allocations: 287.6 kB / 0.5355 GB, free: 14.19 MB / 414.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.005034/0.5519, allocations: 2.882 MB / 0.5383 GB, free: 11.17 MB / 414.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 9.591e-05/0.552, allocations: 27.8 kB / 0.5383 GB, free: 11.14 MB / 414.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0002155/0.5522, allocations: 108 kB / 0.5384 GB, free: 11.04 MB / 414.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0001172/0.5524, allocations: 127.9 kB / 0.5385 GB, free: 10.91 MB / 414.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.003736/0.5561, allocations: 2.119 MB / 0.5406 GB, free: 8.781 MB / 414.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.01417/0.5703, allocations: 10.83 MB / 0.5512 GB, free: 13.58 MB / 430.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.00154/0.5719, allocations: 0.9365 MB / 0.5521 GB, free: 12.63 MB / 430.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001061/0.573, allocations: 0.6483 MB / 0.5527 GB, free: 11.98 MB / 430.1 MB Notification: Performance of preOpt evalFunc (simulation): time 8.87e-05/0.5731, allocations: 20.97 kB / 0.5527 GB, free: 11.96 MB / 430.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.497e-05/0.5731, allocations: 47.56 kB / 0.5528 GB, free: 11.91 MB / 430.1 MB Notification: Performance of pre-optimization done (n=114): time 3.526e-06/0.5731, allocations: 4 kB / 0.5528 GB, free: 11.9 MB / 430.1 MB Notification: Performance of matching and sorting (n=134): time 0.01241/0.5855, allocations: 6.111 MB / 0.5588 GB, free: 5.633 MB / 430.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.08e-05/0.5856, allocations: 94.45 kB / 0.5589 GB, free: 5.52 MB / 430.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.002981/0.5886, allocations: 1.969 MB / 0.5608 GB, free: 3.523 MB / 430.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0002119/0.5888, allocations: 65.7 kB / 0.5608 GB, free: 3.453 MB / 430.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.001118/0.59, allocations: 1.427 MB / 0.5622 GB, free: 2.008 MB / 430.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0004289/0.5904, allocations: 469.7 kB / 0.5627 GB, free: 1.543 MB / 430.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0006457/0.5911, allocations: 443.9 kB / 0.5631 GB, free: 1.102 MB / 430.1 MB Notification: Performance of setup shared object (initialization): time 0.000106/0.5912, allocations: 301.1 kB / 0.5634 GB, free: 0.8047 MB / 430.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001267/0.5924, allocations: 0.7346 MB / 0.5641 GB, free: 68 kB / 430.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001959/0.5944, allocations: 1.623 MB / 0.5657 GB, free: 14.02 MB / 446.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.003061/0.5975, allocations: 2.239 MB / 0.5679 GB, free: 11.36 MB / 446.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.61e-05/0.5975, allocations: 11.94 kB / 0.5679 GB, free: 11.35 MB / 446.1 MB Notification: Performance of matching and sorting (n=290) (initialization): time 0.005962/0.6035, allocations: 2.826 MB / 0.5706 GB, free: 8.508 MB / 446.1 MB Notification: Performance of prepare postOptimizeDAE: time 5.157e-05/0.6036, allocations: 23.97 kB / 0.5707 GB, free: 8.484 MB / 446.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.805e-05/0.6036, allocations: 32 kB / 0.5707 GB, free: 8.453 MB / 446.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.002031/0.6057, allocations: 1.291 MB / 0.572 GB, free: 7.156 MB / 446.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001446/0.6071, allocations: 463.2 kB / 0.5724 GB, free: 6.703 MB / 446.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.004/0.6111, allocations: 3.005 MB / 0.5753 GB, free: 3.527 MB / 446.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.002294/0.6135, allocations: 207.6 kB / 0.5755 GB, free: 3.324 MB / 446.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0002606/0.6137, allocations: 115.9 kB / 0.5756 GB, free: 3.211 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_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.001578/0.6153, allocations: 0.6495 MB / 0.5763 GB, free: 2.551 MB / 446.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.000625/0.6159, allocations: 225.1 kB / 0.5765 GB, free: 2.328 MB / 446.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.003633/0.6196, allocations: 1.764 MB / 0.5782 GB, free: 0.5469 MB / 446.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.593e-05/0.6196, allocations: 16 kB / 0.5782 GB, free: 0.5312 MB / 446.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 8.366e-06/0.6196, allocations: 3.984 kB / 0.5782 GB, free: 0.5273 MB / 446.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.38e-05/0.6197, allocations: 7.969 kB / 0.5782 GB, free: 0.5195 MB / 446.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.2451/0.8648, allocations: 4.508 MB / 0.5826 GB, free: 129.2 MB / 446.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.078e-05/0.8648, allocations: 2.438 kB / 0.5827 GB, free: 129.2 MB / 446.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0008096/0.8656, allocations: 200 kB / 0.5828 GB, free: 129.2 MB / 446.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.001589/0.8672, allocations: 1.186 MB / 0.584 GB, free: 128.9 MB / 446.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001145/0.8674, allocations: 42.97 kB / 0.584 GB, free: 128.8 MB / 446.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.002434/0.8698, allocations: 2.849 MB / 0.5868 GB, free: 126.5 MB / 446.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.835e-06/0.8698, allocations: 4.344 kB / 0.5868 GB, free: 126.5 MB / 446.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.003906/0.8737, allocations: 2.631 MB / 0.5894 GB, free: 125.4 MB / 446.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0008593/0.8746, allocations: 446.2 kB / 0.5898 GB, free: 125.2 MB / 446.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0002728/0.8749, allocations: 52.17 kB / 0.5899 GB, free: 125.1 MB / 446.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0008986/0.8758, allocations: 104.3 kB / 0.59 GB, free: 125.1 MB / 446.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0003854/0.8762, allocations: 207.5 kB / 0.5902 GB, free: 125.1 MB / 446.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 8.643e-05/0.8763, allocations: 50.83 kB / 0.5902 GB, free: 125.1 MB / 446.1 MB Notification: Performance of sorting global known variables: time 0.001592/0.8779, allocations: 1.279 MB / 0.5915 GB, free: 124.6 MB / 446.1 MB Notification: Performance of sort global known variables: time 1.3e-07/0.8779, allocations: 2.344 kB / 0.5915 GB, free: 124.6 MB / 446.1 MB Notification: Performance of remove unused functions: time 0.001718/0.8796, allocations: 0.4931 MB / 0.592 GB, free: 124.5 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.0003314/0.88, allocations: 198.6 kB / 0.5921 GB, free: 124.4 MB / 446.1 MB Notification: Performance of simCode: created initialization part: time 0.003755/0.8837, allocations: 2.001 MB / 0.5941 GB, free: 123.7 MB / 446.1 MB Notification: Performance of simCode: created event and clocks part: time 4.248e-06/0.8838, allocations: 2.969 kB / 0.5941 GB, free: 123.7 MB / 446.1 MB Notification: Performance of simCode: created simulation system equations: time 0.001536/0.8853, allocations: 0.9906 MB / 0.5951 GB, free: 123.3 MB / 446.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001946/0.8873, allocations: 345.6 kB / 0.5954 GB, free: 123.1 MB / 446.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.009227/0.8965, allocations: 5.972 MB / 0.6012 GB, free: 119.7 MB / 446.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001197/0.8977, allocations: 1.655 MB / 0.6028 GB, free: 118.9 MB / 446.1 MB Notification: Performance of simCode: alias equations: time 0.001233/0.899, allocations: 324.4 kB / 0.6032 GB, free: 118.8 MB / 446.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002709/0.8992, allocations: 142.9 kB / 0.6033 GB, free: 118.8 MB / 446.1 MB Notification: Performance of SimCode: time 1.563e-06/0.8993, allocations: 4 kB / 0.6033 GB, free: 118.8 MB / 446.1 MB Notification: Performance of Templates: time 0.05183/0.9511, allocations: 29.44 MB / 0.632 GB, free: 112.5 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)