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.0008607/0.0008607, allocations: 92.16 kB / 16.02 MB, free: 80 kB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001245/0.001245, allocations: 182.4 kB / 16.92 MB, free: 6.922 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.393/1.393, allocations: 223.3 MB / 241 MB, free: 5.238 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/VehicleInterfaces 2.0.1-master/package.mo): time 0.1716/0.1716, allocations: 7.984 MB / 300.1 MB, free: 3.352 MB / 238.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0003468/0.0003469, allocations: 8 kB / 363 MB, free: 14.27 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1047/0.1051, allocations: 52.21 MB / 415.2 MB, free: 10.02 MB / 350.1 MB Notification: Performance of NFInst.instantiate(VehicleInterfaces.Examples.SeriesHybrid): time 0.2879/0.3931, allocations: 87.34 MB / 0.4908 GB, free: 2.168 MB / 366.1 MB Notification: Performance of NFInst.instExpressions: time 0.04719/0.4403, allocations: 17.16 MB / 0.5075 GB, free: 6.422 MB / 382.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.02467/0.465, allocations: 427.4 kB / 0.508 GB, free: 6.352 MB / 382.1 MB Notification: Performance of NFTyping.typeComponents: time 0.003475/0.4686, allocations: 0.6063 MB / 0.5085 GB, free: 6.016 MB / 382.1 MB Notification: Performance of NFTyping.typeBindings: time 0.00475/0.4734, allocations: 0.6402 MB / 0.5092 GB, free: 5.582 MB / 382.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0037/0.4771, allocations: 0.9796 MB / 0.5101 GB, free: 4.926 MB / 382.1 MB Notification: Performance of NFFlatten.flatten: time 0.006664/0.4838, allocations: 3.442 MB / 0.5135 GB, free: 3.23 MB / 382.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.006683/0.4905, allocations: 3.196 MB / 0.5166 GB, free: 1.324 MB / 382.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.002883/0.4934, allocations: 1.093 MB / 0.5177 GB, free: 0.8359 MB / 382.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.003226/0.4967, allocations: 1.319 MB / 0.519 GB, free: 15.95 MB / 398.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0007388/0.4974, allocations: 128 kB / 0.5191 GB, free: 15.82 MB / 398.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.001051/0.4985, allocations: 204 kB / 0.5193 GB, free: 15.64 MB / 398.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0006621/0.4992, allocations: 0.5737 MB / 0.5198 GB, free: 15.18 MB / 398.1 MB Notification: Performance of NFVerifyModel.verify: time 0.002138/0.5013, allocations: 1.413 MB / 0.5212 GB, free: 13.84 MB / 398.1 MB Notification: Performance of NFConvertDAE.convert: time 0.005164/0.5065, allocations: 3.283 MB / 0.5244 GB, free: 12.25 MB / 398.1 MB Notification: Performance of FrontEnd - DAE generated: time 9.538e-06/0.5065, allocations: 3.938 kB / 0.5244 GB, free: 12.25 MB / 398.1 MB Notification: Performance of FrontEnd: time 4.378e-06/0.5066, allocations: 0 / 0.5244 GB, free: 12.25 MB / 398.1 MB Notification: Performance of Transformations before backend: time 0.0001849/0.5068, allocations: 0 / 0.5244 GB, free: 12.25 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.007202/0.514, allocations: 2.813 MB / 0.5272 GB, free: 9.484 MB / 398.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.039e-05/0.514, allocations: 12.03 kB / 0.5272 GB, free: 9.473 MB / 398.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.001074/0.5151, allocations: 339.8 kB / 0.5275 GB, free: 9.137 MB / 398.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.004202/0.5193, allocations: 1.718 MB / 0.5292 GB, free: 7.363 MB / 398.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001999/0.5196, allocations: 197.3 kB / 0.5294 GB, free: 7.168 MB / 398.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0007316/0.5203, allocations: 283.7 kB / 0.5297 GB, free: 6.891 MB / 398.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.006607/0.5269, allocations: 2.886 MB / 0.5325 GB, free: 3.871 MB / 398.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0001386/0.5271, allocations: 27.8 kB / 0.5325 GB, free: 3.844 MB / 398.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0002844/0.5274, allocations: 112 kB / 0.5326 GB, free: 3.734 MB / 398.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0001427/0.5275, allocations: 123.9 kB / 0.5327 GB, free: 3.613 MB / 398.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.004868/0.5324, allocations: 2.134 MB / 0.5348 GB, free: 1.465 MB / 398.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.01759/0.55, allocations: 10.91 MB / 0.5455 GB, free: 6.184 MB / 414.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001884/0.552, allocations: 0.9482 MB / 0.5464 GB, free: 5.219 MB / 414.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.00122/0.5532, allocations: 0.66 MB / 0.547 GB, free: 4.559 MB / 414.1 MB Notification: Performance of preOpt evalFunc (simulation): time 7.472e-05/0.5533, allocations: 9 kB / 0.547 GB, free: 4.551 MB / 414.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.512e-05/0.5533, allocations: 47.56 kB / 0.5471 GB, free: 4.496 MB / 414.1 MB Notification: Performance of pre-optimization done (n=114): time 3.266e-06/0.5533, allocations: 0 / 0.5471 GB, free: 4.496 MB / 414.1 MB Notification: Performance of matching and sorting (n=134): time 0.01398/0.5673, allocations: 6.307 MB / 0.5532 GB, free: 14.03 MB / 430.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 7.203e-05/0.5674, allocations: 94.41 kB / 0.5533 GB, free: 13.91 MB / 430.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.003147/0.5706, allocations: 1.965 MB / 0.5553 GB, free: 11.92 MB / 430.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0003306/0.5709, allocations: 73.69 kB / 0.5553 GB, free: 11.84 MB / 430.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.001365/0.5723, allocations: 1.42 MB / 0.5567 GB, free: 10.41 MB / 430.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0006341/0.573, allocations: 469.7 kB / 0.5572 GB, free: 9.945 MB / 430.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0003094/0.5733, allocations: 206.2 kB / 0.5574 GB, free: 9.738 MB / 430.1 MB Notification: Performance of setup shared object (initialization): time 0.0001157/0.5734, allocations: 301.1 kB / 0.5576 GB, free: 9.441 MB / 430.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001577/0.575, allocations: 0.7346 MB / 0.5584 GB, free: 8.703 MB / 430.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0022/0.5772, allocations: 1.63 MB / 0.56 GB, free: 6.648 MB / 430.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.003346/0.5806, allocations: 2.255 MB / 0.5622 GB, free: 3.973 MB / 430.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.603e-05/0.5806, allocations: 8 kB / 0.5622 GB, free: 3.965 MB / 430.1 MB Notification: Performance of matching and sorting (n=290) (initialization): time 0.00553/0.5861, allocations: 2.833 MB / 0.5649 GB, free: 1.117 MB / 430.1 MB Notification: Performance of prepare postOptimizeDAE: time 4.228e-05/0.5862, allocations: 24.56 kB / 0.565 GB, free: 1.094 MB / 430.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.218e-05/0.5863, allocations: 28 kB / 0.565 GB, free: 1.066 MB / 430.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.002155/0.5884, allocations: 1.295 MB / 0.5662 GB, free: 15.76 MB / 446.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001583/0.59, allocations: 463.2 kB / 0.5667 GB, free: 15.31 MB / 446.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.003407/0.5935, allocations: 2.918 MB / 0.5695 GB, free: 12.23 MB / 446.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.002153/0.5956, allocations: 263.5 kB / 0.5698 GB, free: 11.97 MB / 446.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0002177/0.5959, allocations: 112 kB / 0.5699 GB, free: 11.86 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.001539/0.5974, allocations: 0.6533 MB / 0.5705 GB, free: 11.2 MB / 446.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0004272/0.5978, allocations: 225.1 kB / 0.5707 GB, free: 10.97 MB / 446.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.003604/0.6015, allocations: 1.768 MB / 0.5725 GB, free: 9.188 MB / 446.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.984e-05/0.6015, allocations: 23.92 kB / 0.5725 GB, free: 9.164 MB / 446.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.972e-06/0.6015, allocations: 0 / 0.5725 GB, free: 9.164 MB / 446.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.429e-05/0.6015, allocations: 3.984 kB / 0.5725 GB, free: 9.16 MB / 446.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.008869/0.6104, allocations: 4.583 MB / 0.577 GB, free: 4.465 MB / 446.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.4e-05/0.6105, allocations: 8 kB / 0.577 GB, free: 4.457 MB / 446.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0008761/0.6114, allocations: 195.7 kB / 0.5772 GB, free: 4.266 MB / 446.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.001898/0.6133, allocations: 1.182 MB / 0.5783 GB, free: 3.078 MB / 446.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001842/0.6135, allocations: 47.95 kB / 0.5784 GB, free: 3.031 MB / 446.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.003031/0.6165, allocations: 2.741 MB / 0.581 GB, free: 136 kB / 446.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.039e-06/0.6166, allocations: 4.031 kB / 0.5811 GB, free: 132 kB / 446.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.2231/0.8397, allocations: 2.643 MB / 0.5836 GB, free: 127.5 MB / 446.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.001046/0.8408, allocations: 444.7 kB / 0.5841 GB, free: 127.4 MB / 446.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0004062/0.8412, allocations: 52.81 kB / 0.5841 GB, free: 127.4 MB / 446.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.00117/0.8424, allocations: 145.8 kB / 0.5842 GB, free: 127.4 MB / 446.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0004558/0.8429, allocations: 205.4 kB / 0.5844 GB, free: 127.4 MB / 446.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 9.49e-05/0.843, allocations: 52.91 kB / 0.5845 GB, free: 127.4 MB / 446.1 MB Notification: Performance of sorting global known variables: time 0.002168/0.8451, allocations: 1.272 MB / 0.5857 GB, free: 127.3 MB / 446.1 MB Notification: Performance of sort global known variables: time 2.3e-07/0.8451, allocations: 0 / 0.5857 GB, free: 127.3 MB / 446.1 MB Notification: Performance of remove unused functions: time 0.002552/0.8477, allocations: 0.498 MB / 0.5862 GB, free: 127.3 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.0005011/0.8482, allocations: 194.6 kB / 0.5864 GB, free: 127.2 MB / 446.1 MB Notification: Performance of simCode: created initialization part: time 0.003978/0.8522, allocations: 1.962 MB / 0.5883 GB, free: 127 MB / 446.1 MB Notification: Performance of simCode: created event and clocks part: time 8.786e-06/0.8523, allocations: 3.094 kB / 0.5883 GB, free: 127 MB / 446.1 MB Notification: Performance of simCode: created simulation system equations: time 0.001918/0.8542, allocations: 0.9816 MB / 0.5893 GB, free: 126.9 MB / 446.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.00294/0.8572, allocations: 332.5 kB / 0.5896 GB, free: 126.9 MB / 446.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.009867/0.867, allocations: 6.285 MB / 0.5957 GB, free: 123.4 MB / 446.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001179/0.8683, allocations: 1.652 MB / 0.5974 GB, free: 122.6 MB / 446.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0005304/0.8688, allocations: 148.4 kB / 0.5975 GB, free: 122.6 MB / 446.1 MB Notification: Performance of SimCode: time 1.042e-06/0.8688, allocations: 0 / 0.5975 GB, free: 122.6 MB / 446.1 MB Notification: Performance of Templates: time 0.07042/0.9392, allocations: 54.37 MB / 0.6506 GB, free: 94.8 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)