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.0009577/0.0009577, allocations: 174.8 kB / 12.73 MB, free: 2.59 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.27/1.27, allocations: 221.4 MB / 234.6 MB, free: 14.4 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.0007998/0.0007999, allocations: 84.11 kB / 285.6 MB, free: 12.98 MB / 234.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/VehicleInterfaces 2.0.1/package.mo): time 0.03968/0.03968, allocations: 7.829 MB / 344.3 MB, free: 2.316 MB / 282.7 MB Notification: Performance of FrontEnd - loaded program: time 2.206e-05/2.208e-05, allocations: 0 / 404.4 MB, free: 62.65 MB / 298.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.08569/0.08573, allocations: 52.22 MB / 456.6 MB, free: 10.52 MB / 298.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.3583/0.444, allocations: 109.4 MB / 0.5528 GB, free: 10.61 MB / 378.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0003294/0.4444, allocations: 80.84 kB / 0.5528 GB, free: 10.58 MB / 378.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.8472/1.292, allocations: 266 MB / 0.8126 GB, free: 10.34 MB / 458.7 MB Notification: Performance of FrontEnd: time 1.593e-06/1.292, allocations: 0 / 0.8126 GB, free: 10.34 MB / 458.7 MB Notification: Performance of Transformations before backend: time 0.0001979/1.292, allocations: 83.97 kB / 0.8126 GB, free: 10.25 MB / 458.7 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 696 * Number of variables: 696 Notification: Performance of Generate backend data structure: time 0.004733/1.297, allocations: 2.551 MB / 0.8151 GB, free: 7.664 MB / 458.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.348e-05/1.297, allocations: 8.031 kB / 0.8151 GB, free: 7.656 MB / 458.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.001049/1.298, allocations: 382 kB / 0.8155 GB, free: 7.281 MB / 458.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.003183/1.301, allocations: 1.793 MB / 0.8173 GB, free: 5.504 MB / 458.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001108/1.301, allocations: 201.3 kB / 0.8175 GB, free: 5.305 MB / 458.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0004222/1.302, allocations: 291.5 kB / 0.8177 GB, free: 5.023 MB / 458.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.004519/1.306, allocations: 2.989 MB / 0.8207 GB, free: 1.809 MB / 458.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0001075/1.306, allocations: 29.7 kB / 0.8207 GB, free: 1.785 MB / 458.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.000225/1.306, allocations: 120 kB / 0.8208 GB, free: 1.668 MB / 458.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 8.924e-05/1.307, allocations: 95.98 kB / 0.8209 GB, free: 1.574 MB / 458.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.2819/1.588, allocations: 1.936 MB / 0.8228 GB, free: 115.1 MB / 458.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.01905/1.608, allocations: 11.76 MB / 0.8343 GB, free: 110.5 MB / 458.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001819/1.609, allocations: 1.031 MB / 0.8353 GB, free: 110.4 MB / 458.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.00112/1.611, allocations: 0.6766 MB / 0.8359 GB, free: 110.4 MB / 458.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0001211/1.611, allocations: 30.61 kB / 0.836 GB, free: 110.4 MB / 458.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.633e-05/1.611, allocations: 49.03 kB / 0.836 GB, free: 110.4 MB / 458.7 MB Notification: Performance of pre-optimization done (n=131): time 3.687e-06/1.611, allocations: 0 / 0.836 GB, free: 110.4 MB / 458.7 MB Notification: Performance of matching and sorting (n=151): time 0.009366/1.62, allocations: 4.893 MB / 0.8408 GB, free: 109 MB / 458.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.788e-05/1.62, allocations: 93.48 kB / 0.8409 GB, free: 108.9 MB / 458.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.00302/1.623, allocations: 1.657 MB / 0.8425 GB, free: 108.7 MB / 458.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0002302/1.623, allocations: 74.78 kB / 0.8426 GB, free: 108.6 MB / 458.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.001085/1.625, allocations: 1.277 MB / 0.8438 GB, free: 108.2 MB / 458.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0004576/1.625, allocations: 0.5083 MB / 0.8443 GB, free: 107.9 MB / 458.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.000108/1.625, allocations: 39.47 kB / 0.8443 GB, free: 107.9 MB / 458.7 MB Notification: Performance of setup shared object (initialization): time 0.0001444/1.625, allocations: 379.9 kB / 0.8447 GB, free: 107.6 MB / 458.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.00113/1.626, allocations: 0.616 MB / 0.8453 GB, free: 107.6 MB / 458.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001418/1.628, allocations: 1.181 MB / 0.8465 GB, free: 106.9 MB / 458.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001258/1.629, allocations: 0.6922 MB / 0.8471 GB, free: 106.9 MB / 458.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.305e-05/1.629, allocations: 5.312 kB / 0.8471 GB, free: 106.9 MB / 458.7 MB Notification: Performance of matching and sorting (n=247) (initialization): time 0.004352/1.633, allocations: 2.36 MB / 0.8494 GB, free: 106.7 MB / 458.7 MB Notification: Performance of prepare postOptimizeDAE: time 3.083e-05/1.634, allocations: 12.28 kB / 0.8495 GB, free: 106.7 MB / 458.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.288e-05/1.634, allocations: 20.72 kB / 0.8495 GB, free: 106.7 MB / 458.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001637/1.635, allocations: 1.061 MB / 0.8505 GB, free: 106.7 MB / 458.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001174/1.636, allocations: 363.2 kB / 0.8509 GB, free: 106.6 MB / 458.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002666/1.639, allocations: 2.989 MB / 0.8538 GB, free: 104.7 MB / 458.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001954/1.641, allocations: 222.1 kB / 0.854 GB, free: 104.7 MB / 458.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001714/1.641, allocations: 94.62 kB / 0.8541 GB, free: 104.7 MB / 458.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 80 * Number of states: 0 () * Number of discrete variables: 57 (driverEnvironment.ignition.y,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 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (204): * Single equations (assignments): 198 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 4 * 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%) 3} * Non-linear torn systems: 1 {4 37} Notification: Performance of prepare postOptimizeDAE: time 0.0003793/1.642, allocations: 261.6 kB / 0.8543 GB, free: 104.6 MB / 458.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.000316/1.642, allocations: 228.1 kB / 0.8545 GB, free: 104.5 MB / 458.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.003321/1.645, allocations: 1.992 MB / 0.8565 GB, free: 104.1 MB / 458.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.082e-05/1.645, allocations: 17.75 kB / 0.8565 GB, free: 104.1 MB / 458.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.099e-06/1.645, allocations: 0 / 0.8565 GB, free: 104.1 MB / 458.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.505e-05/1.645, allocations: 15.42 kB / 0.8565 GB, free: 104.1 MB / 458.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.00788/1.653, allocations: 4.741 MB / 0.8612 GB, free: 101.9 MB / 458.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 7.494e-06/1.653, allocations: 3.969 kB / 0.8612 GB, free: 101.9 MB / 458.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.000824/1.654, allocations: 209.3 kB / 0.8614 GB, free: 101.9 MB / 458.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.00146/1.656, allocations: 0.966 MB / 0.8623 GB, free: 101.6 MB / 458.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001123/1.656, allocations: 50.58 kB / 0.8623 GB, free: 101.6 MB / 458.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.002474/1.658, allocations: 2.831 MB / 0.8651 GB, free: 99.24 MB / 458.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.597e-06/1.658, allocations: 10.59 kB / 0.8651 GB, free: 99.23 MB / 458.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.003885/1.662, allocations: 2.762 MB / 0.8678 GB, free: 97.66 MB / 458.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0009242/1.663, allocations: 467 kB / 0.8683 GB, free: 97.32 MB / 458.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0002901/1.663, allocations: 54.77 kB / 0.8683 GB, free: 97.29 MB / 458.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001063/1.664, allocations: 143.9 kB / 0.8685 GB, free: 97.26 MB / 458.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.000414/1.665, allocations: 248.6 kB / 0.8687 GB, free: 97.23 MB / 458.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001154/1.665, allocations: 60.67 kB / 0.8687 GB, free: 97.21 MB / 458.7 MB Notification: Performance of sorting global known variables: time 0.001637/1.667, allocations: 1.248 MB / 0.87 GB, free: 96.7 MB / 458.7 MB Notification: Performance of sort global known variables: time 2.7e-07/1.667, allocations: 0 / 0.87 GB, free: 96.7 MB / 458.7 MB Notification: Performance of remove unused functions: time 0.001818/1.668, allocations: 494.7 kB / 0.8704 GB, free: 96.64 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,driverEnvironment.ignition.y) * 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) * Top-level inputs: 0 Notification: Strong component statistics for simulation (110): * Single equations (assignments): 108 * 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%) 3} * Non-linear torn systems: 1 {4 32} Notification: Performance of Backend phase and start with SimCode phase: time 0.0003427/1.669, allocations: 208.3 kB / 0.8706 GB, free: 96.5 MB / 458.7 MB Notification: Performance of simCode: created initialization part: time 0.002806/1.672, allocations: 1.84 MB / 0.8724 GB, free: 95.64 MB / 458.7 MB Notification: Performance of simCode: created event and clocks part: time 3.236e-06/1.672, allocations: 3.656 kB / 0.8724 GB, free: 95.64 MB / 458.7 MB Notification: Performance of simCode: created simulation system equations: time 0.001694/1.673, allocations: 0.9972 MB / 0.8734 GB, free: 95.16 MB / 458.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001635/1.675, allocations: 306.3 kB / 0.8737 GB, free: 95.04 MB / 458.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.007634/1.683, allocations: 3.798 MB / 0.8774 GB, free: 93.35 MB / 458.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001077/1.684, allocations: 1.707 MB / 0.8791 GB, free: 92.56 MB / 458.7 MB Notification: Performance of simCode: alias equations: time 0.001045/1.685, allocations: 300.1 kB / 0.8794 GB, free: 92.52 MB / 458.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002858/1.685, allocations: 121.3 kB / 0.8795 GB, free: 92.5 MB / 458.7 MB Notification: Performance of SimCode: time 9.82e-07/1.685, allocations: 0 / 0.8795 GB, free: 92.5 MB / 458.7 MB Notification: Performance of Templates: time 0.04205/1.727, allocations: 27.01 MB / 0.9059 GB, free: 85.73 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)