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.001596/0.001596, allocations: 111.3 kB / 15.23 MB, free: 0.6602 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.001902/0.001901, allocations: 193 kB / 16.13 MB, free: 6.648 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.31/1.31, allocations: 222.9 MB / 239.8 MB, free: 4.59 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/VehicleInterfaces 2.0.1-master/package.mo): time 0.1408/0.1408, allocations: 7.991 MB / 297.9 MB, free: 2.352 MB / 238.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001198/0.001198, allocations: 59.91 kB / 359.9 MB, free: 15.19 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.08546/0.08668, allocations: 51.21 MB / 411.1 MB, free: 11.94 MB / 350.1 MB Notification: Performance of NFInst.instantiate(VehicleInterfaces.Examples.SeriesHybrid): time 0.2281/0.3148, allocations: 89.42 MB / 0.4888 GB, free: 2.336 MB / 366.1 MB Notification: Performance of NFInst.instExpressions: time 0.03882/0.3536, allocations: 17.2 MB / 0.5056 GB, free: 6.566 MB / 382.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.01997/0.3737, allocations: 431.5 kB / 0.506 GB, free: 6.496 MB / 382.1 MB Notification: Performance of NFTyping.typeComponents: time 0.003215/0.3769, allocations: 0.7588 MB / 0.5068 GB, free: 6.082 MB / 382.1 MB Notification: Performance of NFTyping.typeBindings: time 0.003805/0.3808, allocations: 0.645 MB / 0.5074 GB, free: 5.645 MB / 382.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.008529/0.3894, allocations: 4.201 MB / 0.5115 GB, free: 3.457 MB / 382.1 MB Notification: Performance of NFFlatten.flatten: time 0.005148/0.3945, allocations: 3.446 MB / 0.5149 GB, free: 1.746 MB / 382.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.006218/0.4008, allocations: 3.159 MB / 0.5179 GB, free: 14.88 MB / 398.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.002527/0.4033, allocations: 1.267 MB / 0.5192 GB, free: 13.75 MB / 398.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.002639/0.406, allocations: 1.55 MB / 0.5207 GB, free: 12.52 MB / 398.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0009602/0.407, allocations: 224 kB / 0.5209 GB, free: 12.3 MB / 398.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.001156/0.4081, allocations: 287.7 kB / 0.5212 GB, free: 12.04 MB / 398.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0009526/0.4091, allocations: 0.6975 MB / 0.5219 GB, free: 11.48 MB / 398.1 MB Notification: Performance of NFVerifyModel.verify: time 0.002555/0.4117, allocations: 1.547 MB / 0.5234 GB, free: 10.03 MB / 398.1 MB Notification: Performance of NFConvertDAE.convert: time 0.004464/0.4162, allocations: 4.162 MB / 0.5274 GB, free: 6.492 MB / 398.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.34e-06/0.4162, allocations: 0 / 0.5274 GB, free: 6.492 MB / 398.1 MB Notification: Performance of FrontEnd: time 1.293e-06/0.4162, allocations: 0 / 0.5274 GB, free: 6.492 MB / 398.1 MB Notification: Performance of Transformations before backend: time 0.0001366/0.4163, allocations: 0 / 0.5274 GB, free: 6.492 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.006742/0.4231, allocations: 3.333 MB / 0.5307 GB, free: 3.094 MB / 398.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.107e-05/0.4231, allocations: 12.03 kB / 0.5307 GB, free: 3.082 MB / 398.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0005345/0.4237, allocations: 339.8 kB / 0.531 GB, free: 2.746 MB / 398.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.002584/0.4263, allocations: 1.714 MB / 0.5327 GB, free: 0.9766 MB / 398.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001497/0.4264, allocations: 201.3 kB / 0.5329 GB, free: 0.7773 MB / 398.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0004313/0.4269, allocations: 287.6 kB / 0.5332 GB, free: 0.4961 MB / 398.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.005089/0.432, allocations: 2.886 MB / 0.536 GB, free: 13.48 MB / 414.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0001076/0.4321, allocations: 23.75 kB / 0.536 GB, free: 13.45 MB / 414.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0002248/0.4323, allocations: 108 kB / 0.5361 GB, free: 13.35 MB / 414.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0001274/0.4325, allocations: 123.9 kB / 0.5362 GB, free: 13.23 MB / 414.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.004243/0.4367, allocations: 2.127 MB / 0.5383 GB, free: 11.09 MB / 414.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.01493/0.4517, allocations: 10.84 MB / 0.5489 GB, free: 15.88 MB / 430.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001619/0.4533, allocations: 0.9325 MB / 0.5498 GB, free: 14.93 MB / 430.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001115/0.4545, allocations: 0.6481 MB / 0.5504 GB, free: 14.28 MB / 430.1 MB Notification: Performance of preOpt evalFunc (simulation): time 7.929e-05/0.4546, allocations: 16.94 kB / 0.5504 GB, free: 14.27 MB / 430.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.969e-05/0.4546, allocations: 47.56 kB / 0.5505 GB, free: 14.21 MB / 430.1 MB Notification: Performance of pre-optimization done (n=114): time 2.645e-06/0.4546, allocations: 0 / 0.5505 GB, free: 14.21 MB / 430.1 MB Notification: Performance of matching and sorting (n=134): time 0.01178/0.4664, allocations: 6.108 MB / 0.5565 GB, free: 7.945 MB / 430.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.265e-05/0.4665, allocations: 94.42 kB / 0.5565 GB, free: 7.832 MB / 430.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.002469/0.4689, allocations: 1.969 MB / 0.5585 GB, free: 5.836 MB / 430.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0001633/0.4691, allocations: 69.69 kB / 0.5585 GB, free: 5.762 MB / 430.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.001068/0.4702, allocations: 1.427 MB / 0.5599 GB, free: 4.316 MB / 430.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0004185/0.4706, allocations: 469.7 kB / 0.5604 GB, free: 3.852 MB / 430.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0005944/0.4712, allocations: 443.9 kB / 0.5608 GB, free: 3.41 MB / 430.1 MB Notification: Performance of setup shared object (initialization): time 8.999e-05/0.4713, allocations: 309 kB / 0.5611 GB, free: 3.105 MB / 430.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001279/0.4726, allocations: 0.7345 MB / 0.5618 GB, free: 2.367 MB / 430.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.002021/0.4747, allocations: 1.627 MB / 0.5634 GB, free: 324 kB / 430.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.002938/0.4776, allocations: 2.232 MB / 0.5656 GB, free: 13.66 MB / 446.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.43e-05/0.4776, allocations: 8 kB / 0.5656 GB, free: 13.66 MB / 446.1 MB Notification: Performance of matching and sorting (n=290) (initialization): time 0.005166/0.4828, allocations: 2.821 MB / 0.5683 GB, free: 10.82 MB / 446.1 MB Notification: Performance of prepare postOptimizeDAE: time 3.798e-05/0.4829, allocations: 19.94 kB / 0.5684 GB, free: 10.8 MB / 446.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.029e-05/0.4829, allocations: 35.94 kB / 0.5684 GB, free: 10.77 MB / 446.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.002027/0.485, allocations: 1.303 MB / 0.5697 GB, free: 9.457 MB / 446.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001536/0.4865, allocations: 463.2 kB / 0.5701 GB, free: 9.004 MB / 446.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.003197/0.4897, allocations: 2.898 MB / 0.5729 GB, free: 5.941 MB / 446.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001945/0.4917, allocations: 203.5 kB / 0.5731 GB, free: 5.742 MB / 446.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0002514/0.492, allocations: 123.9 kB / 0.5733 GB, free: 5.621 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.001329/0.4933, allocations: 0.6545 MB / 0.5739 GB, free: 4.957 MB / 446.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0004601/0.4938, allocations: 225.1 kB / 0.5741 GB, free: 4.734 MB / 446.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.003579/0.4974, allocations: 1.76 MB / 0.5758 GB, free: 2.957 MB / 446.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.511e-05/0.4974, allocations: 15.94 kB / 0.5758 GB, free: 2.941 MB / 446.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.973e-06/0.4974, allocations: 0 / 0.5758 GB, free: 2.941 MB / 446.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.222e-05/0.4975, allocations: 11.97 kB / 0.5759 GB, free: 2.93 MB / 446.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.1669/0.6644, allocations: 4.503 MB / 0.5803 GB, free: 128.8 MB / 446.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 8.896e-06/0.6644, allocations: 5.219 kB / 0.5803 GB, free: 128.8 MB / 446.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0007975/0.6652, allocations: 201.4 kB / 0.5804 GB, free: 128.8 MB / 446.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.001548/0.6668, allocations: 1.181 MB / 0.5816 GB, free: 128.7 MB / 446.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001356/0.667, allocations: 44.86 kB / 0.5816 GB, free: 128.7 MB / 446.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.002298/0.6693, allocations: 2.739 MB / 0.5843 GB, free: 127 MB / 446.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.715e-06/0.6693, allocations: 0 / 0.5843 GB, free: 127 MB / 446.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.003847/0.6731, allocations: 2.635 MB / 0.5869 GB, free: 126 MB / 446.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0007467/0.6739, allocations: 444.1 kB / 0.5873 GB, free: 125.8 MB / 446.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0004201/0.6743, allocations: 48.19 kB / 0.5874 GB, free: 125.7 MB / 446.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001061/0.6754, allocations: 108.8 kB / 0.5875 GB, free: 125.7 MB / 446.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0004103/0.6758, allocations: 214.2 kB / 0.5877 GB, free: 125.7 MB / 446.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001027/0.6759, allocations: 50.52 kB / 0.5877 GB, free: 125.7 MB / 446.1 MB Notification: Performance of sorting global known variables: time 0.001782/0.6777, allocations: 1.271 MB / 0.589 GB, free: 125.2 MB / 446.1 MB Notification: Performance of sort global known variables: time 3.4e-07/0.6777, allocations: 0 / 0.589 GB, free: 125.2 MB / 446.1 MB Notification: Performance of remove unused functions: time 0.001872/0.6796, allocations: 0.4977 MB / 0.5894 GB, free: 125.1 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.0003611/0.68, allocations: 191.7 kB / 0.5896 GB, free: 125 MB / 446.1 MB Notification: Performance of simCode: created initialization part: time 0.003179/0.6832, allocations: 1.956 MB / 0.5915 GB, free: 124.3 MB / 446.1 MB Notification: Performance of simCode: created event and clocks part: time 6.452e-06/0.6832, allocations: 3.125 kB / 0.5915 GB, free: 124.3 MB / 446.1 MB Notification: Performance of simCode: created simulation system equations: time 0.001725/0.6849, allocations: 0.9788 MB / 0.5925 GB, free: 123.9 MB / 446.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002044/0.687, allocations: 335.7 kB / 0.5928 GB, free: 123.7 MB / 446.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.009098/0.6961, allocations: 5.962 MB / 0.5986 GB, free: 120.3 MB / 446.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001289/0.6974, allocations: 1.662 MB / 0.6003 GB, free: 119.5 MB / 446.1 MB Notification: Performance of simCode: alias equations: time 0.001103/0.6986, allocations: 326.5 kB / 0.6006 GB, free: 119.5 MB / 446.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0003051/0.6989, allocations: 130.5 kB / 0.6007 GB, free: 119.5 MB / 446.1 MB Notification: Performance of SimCode: time 7.72e-07/0.6989, allocations: 4.75 kB / 0.6007 GB, free: 119.5 MB / 446.1 MB Notification: Performance of Templates: time 0.04485/0.7437, allocations: 28.07 MB / 0.6281 GB, free: 114.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)