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") [:1:1-1:32:writable] Error: Class GC_set_max_heap_size not found in scope (looking for a function or record). Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.003954/0.003954, allocations: 179.2 kB / 7.455 MB, free: 2.508 MB / 5.871 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.311/1.311, allocations: 221.4 MB / 229.3 MB, free: 3.016 MB / 186.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.0009406/0.0009407, allocations: 94.19 kB / 280.1 MB, free: 1.234 MB / 218.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/VehicleInterfaces 2.0.1/package.mo): time 0.03896/0.03896, allocations: 7.842 MB / 338.7 MB, free: 6.727 MB / 282.7 MB Notification: Performance of FrontEnd - loaded program: time 6.152e-06/6.182e-06, allocations: 4 kB / 396.9 MB, free: 68.64 MB / 298.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.08796/0.08798, allocations: 52.19 MB / 449.1 MB, free: 16.56 MB / 298.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.3039/0.3919, allocations: 108.7 MB / 0.5448 GB, free: 3.773 MB / 362.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002486/0.3922, allocations: 84.47 kB / 0.5449 GB, free: 3.738 MB / 362.7 MB Notification: Performance of FrontEnd: time 1.103/1.495, allocations: 265.3 MB / 0.804 GB, free: 121.6 MB / 458.7 MB Notification: Performance of Transformations before backend: time 0.0003627/1.495, allocations: 86.38 kB / 0.8041 GB, free: 121.6 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.007125/1.502, allocations: 2.602 MB / 0.8066 GB, free: 120.9 MB / 458.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.583e-05/1.503, allocations: 10.19 kB / 0.8066 GB, free: 120.9 MB / 458.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.001491/1.504, allocations: 370.9 kB / 0.807 GB, free: 120.8 MB / 458.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.003869/1.508, allocations: 1.81 MB / 0.8088 GB, free: 120.3 MB / 458.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001052/1.508, allocations: 91.41 kB / 0.8088 GB, free: 120.3 MB / 458.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0005795/1.509, allocations: 170.2 kB / 0.809 GB, free: 120.3 MB / 458.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.003746/1.512, allocations: 1.78 MB / 0.8107 GB, free: 120.3 MB / 458.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.004075/1.516, allocations: 2.614 MB / 0.8133 GB, free: 119.6 MB / 458.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.000109/1.517, allocations: 27.06 kB / 0.8133 GB, free: 119.6 MB / 458.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0002045/1.517, allocations: 7.281 kB / 0.8133 GB, free: 119.6 MB / 458.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 9.133e-05/1.517, allocations: 113.3 kB / 0.8134 GB, free: 119.6 MB / 458.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.01583/1.533, allocations: 11.25 MB / 0.8244 GB, free: 114.9 MB / 458.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001292/1.534, allocations: 0.7896 MB / 0.8252 GB, free: 114.9 MB / 458.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0008959/1.535, allocations: 0.6467 MB / 0.8258 GB, free: 114.8 MB / 458.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0001001/1.535, allocations: 20.45 kB / 0.8258 GB, free: 114.8 MB / 458.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.479e-05/1.535, allocations: 45 kB / 0.8259 GB, free: 114.8 MB / 458.7 MB Notification: Performance of pre-optimization done (n=131): time 4.188e-06/1.535, allocations: 3.844 kB / 0.8259 GB, free: 114.8 MB / 458.7 MB Notification: Performance of matching and sorting (n=151): time 0.009026/1.544, allocations: 4.557 MB / 0.8303 GB, free: 113.4 MB / 458.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.729e-05/1.544, allocations: 92.73 kB / 0.8304 GB, free: 113.3 MB / 458.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001617/1.546, allocations: 1.212 MB / 0.8316 GB, free: 113.1 MB / 458.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0001395/1.546, allocations: 53.78 kB / 0.8317 GB, free: 113 MB / 458.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0006679/1.547, allocations: 1.011 MB / 0.8327 GB, free: 112.4 MB / 458.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0003421/1.547, allocations: 0.4889 MB / 0.8331 GB, free: 112.1 MB / 458.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 8.831e-05/1.547, allocations: 0 / 0.8331 GB, free: 112.1 MB / 458.7 MB Notification: Performance of setup shared object (initialization): time 0.0001004/1.547, allocations: 378.1 kB / 0.8335 GB, free: 111.8 MB / 458.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0008654/1.548, allocations: 0.5864 MB / 0.8341 GB, free: 111.8 MB / 458.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001114/1.549, allocations: 1.134 MB / 0.8352 GB, free: 111.2 MB / 458.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001191/1.55, allocations: 0.6671 MB / 0.8358 GB, free: 111.1 MB / 458.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 7.704e-06/1.55, allocations: 10 kB / 0.8358 GB, free: 111.1 MB / 458.7 MB Notification: Performance of matching and sorting (n=247) (initialization): time 0.003868/1.554, allocations: 2.141 MB / 0.8379 GB, free: 110.9 MB / 458.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.761e-05/1.554, allocations: 11.75 kB / 0.8379 GB, free: 110.9 MB / 458.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.391e-05/1.554, allocations: 19.44 kB / 0.838 GB, free: 110.9 MB / 458.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001605/1.556, allocations: 1.037 MB / 0.839 GB, free: 110.8 MB / 458.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001261/1.557, allocations: 365 kB / 0.8393 GB, free: 110.8 MB / 458.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.003306/1.561, allocations: 3.073 MB / 0.8423 GB, free: 108.7 MB / 458.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001912/1.563, allocations: 213 kB / 0.8425 GB, free: 108.7 MB / 458.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001962/1.563, allocations: 95.77 kB / 0.8426 GB, free: 108.7 MB / 458.7 MB Warning: Iteration variables with default zero start attribute in torn nonlinear equation system: brakes.brake_1.sa:VARIABLE(unit = "1" ) "Path parameter of friction characteristic tau = f(a_relfric)" type: Real brakes.brake_2.sa:VARIABLE(unit = "1" ) "Path parameter of friction characteristic tau = f(a_relfric)" type: Real brakes.brake_3.sa:VARIABLE(unit = "1" ) "Path parameter of friction characteristic tau = f(a_relfric)" type: Real brakes.brake_4.sa:VARIABLE(unit = "1" ) "Path parameter of friction characteristic tau = f(a_relfric)" type: Real 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.0004445/1.563, allocations: 212.4 kB / 0.8428 GB, free: 108.5 MB / 458.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002901/1.564, allocations: 192.4 kB / 0.843 GB, free: 108.4 MB / 458.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.003416/1.567, allocations: 1.874 MB / 0.8448 GB, free: 107.6 MB / 458.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.503e-05/1.567, allocations: 14.25 kB / 0.8448 GB, free: 107.6 MB / 458.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 8.226e-06/1.567, allocations: 3.938 kB / 0.8448 GB, free: 107.6 MB / 458.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.465e-05/1.567, allocations: 10.19 kB / 0.8449 GB, free: 107.6 MB / 458.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.008199/1.575, allocations: 4.329 MB / 0.8491 GB, free: 105.6 MB / 458.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 8.446e-06/1.575, allocations: 3.938 kB / 0.8491 GB, free: 105.6 MB / 458.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0008887/1.576, allocations: 215.6 kB / 0.8493 GB, free: 105.6 MB / 458.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.001497/1.578, allocations: 0.9412 MB / 0.8502 GB, free: 105.3 MB / 458.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001114/1.578, allocations: 26.69 kB / 0.8502 GB, free: 105.3 MB / 458.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.003148/1.581, allocations: 2.898 MB / 0.8531 GB, free: 103 MB / 458.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 6.682e-06/1.581, allocations: 0 / 0.8531 GB, free: 103 MB / 458.7 MB Notification: Performance of postOpt detectJacobianSparsePattern (simulation): time 0.004357/1.585, allocations: 2.637 MB / 0.8556 GB, free: 101.5 MB / 458.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0009612/1.586, allocations: 410.8 kB / 0.856 GB, free: 101.2 MB / 458.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0003031/1.587, allocations: 34.55 kB / 0.8561 GB, free: 101.2 MB / 458.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001053/1.588, allocations: 133.3 kB / 0.8562 GB, free: 101.2 MB / 458.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.00043/1.588, allocations: 245.5 kB / 0.8564 GB, free: 101.1 MB / 458.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001219/1.588, allocations: 60.62 kB / 0.8565 GB, free: 101.1 MB / 458.7 MB Notification: Performance of sort global known variables: time 0.001306/1.59, allocations: 0.8886 MB / 0.8574 GB, free: 100.8 MB / 458.7 MB Notification: Performance of remove unused functions: time 0.001828/1.591, allocations: 426.6 kB / 0.8578 GB, free: 100.7 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.0003824/1.592, allocations: 175.8 kB / 0.8579 GB, free: 100.6 MB / 458.7 MB Notification: Performance of simCode: created initialization part: time 0.003324/1.595, allocations: 1.735 MB / 0.8596 GB, free: 99.79 MB / 458.7 MB Notification: Performance of simCode: created event and clocks part: time 5.8e-06/1.595, allocations: 0.6875 kB / 0.8596 GB, free: 99.79 MB / 458.7 MB Notification: Performance of simCode: created simulation system equations: time 0.001961/1.597, allocations: 0.9328 MB / 0.8605 GB, free: 99.35 MB / 458.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001838/1.599, allocations: 253.5 kB / 0.8608 GB, free: 99.27 MB / 458.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.008996/1.608, allocations: 3.48 MB / 0.8642 GB, free: 97.7 MB / 458.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001911/1.61, allocations: 1.823 MB / 0.866 GB, free: 96.9 MB / 458.7 MB Notification: Performance of SimCode: time 9.01e-07/1.61, allocations: 0 / 0.866 GB, free: 96.9 MB / 458.7 MB Notification: Performance of Templates: time 0.0482/1.658, allocations: 25.03 MB / 0.8904 GB, free: 87.4 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)