Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr VehicleInterfaces_VehicleInterfaces.Examples.PowerSplitHybrid.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.PowerSplitHybrid,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="VehicleInterfaces_VehicleInterfaces.Examples.PowerSplitHybrid") translateModel(VehicleInterfaces.Examples.PowerSplitHybrid,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="VehicleInterfaces_VehicleInterfaces.Examples.PowerSplitHybrid") [: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.002998/0.002998, allocations: 178 kB / 7.454 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.3/1.3, allocations: 221.4 MB / 229.3 MB, free: 3.012 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.00096/0.00096, allocations: 94.98 kB / 280.1 MB, free: 1.328 MB / 218.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/VehicleInterfaces 2.0.1/package.mo): time 0.0382/0.0382, allocations: 7.853 MB / 338.7 MB, free: 6.805 MB / 282.7 MB Notification: Performance of FrontEnd - loaded program: time 6.793e-06/6.833e-06, allocations: 0 / 396.9 MB, free: 68.7 MB / 298.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.0939/0.09392, allocations: 52.2 MB / 449.1 MB, free: 16.58 MB / 298.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.322/0.416, allocations: 109.2 MB / 0.5453 GB, free: 3.535 MB / 362.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002115/0.4163, allocations: 88.33 kB / 0.5454 GB, free: 3.496 MB / 362.7 MB Notification: Performance of FrontEnd: time 1.274/1.69, allocations: 303.9 MB / 0.8421 GB, free: 102 MB / 442.7 MB Notification: Performance of Transformations before backend: time 0.0002418/1.691, allocations: 93.2 kB / 0.8422 GB, free: 101.9 MB / 442.7 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 769 * Number of variables: 769 Notification: Performance of Generate backend data structure: time 0.005066/1.696, allocations: 2.799 MB / 0.845 GB, free: 100.4 MB / 442.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.328e-05/1.696, allocations: 7.844 kB / 0.845 GB, free: 100.4 MB / 442.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.000956/1.697, allocations: 403.6 kB / 0.8453 GB, free: 100.2 MB / 442.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.003249/1.7, allocations: 1.957 MB / 0.8473 GB, free: 99.34 MB / 442.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 8.671e-05/1.7, allocations: 95.81 kB / 0.8474 GB, free: 99.34 MB / 442.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0003514/1.7, allocations: 190.7 kB / 0.8475 GB, free: 99.33 MB / 442.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.003557/1.704, allocations: 1.911 MB / 0.8494 GB, free: 99.22 MB / 442.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.005489/1.709, allocations: 2.853 MB / 0.8522 GB, free: 98.11 MB / 442.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0001303/1.71, allocations: 28.06 kB / 0.8522 GB, free: 98.1 MB / 442.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0002232/1.71, allocations: 6.344 kB / 0.8522 GB, free: 98.1 MB / 442.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0001522/1.71, allocations: 118.3 kB / 0.8523 GB, free: 98.09 MB / 442.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.01722/1.727, allocations: 12.06 MB / 0.8641 GB, free: 90.62 MB / 442.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001698/1.729, allocations: 0.847 MB / 0.8649 GB, free: 90.21 MB / 442.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001138/1.73, allocations: 0.6867 MB / 0.8656 GB, free: 89.88 MB / 442.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0001133/1.73, allocations: 17.84 kB / 0.8656 GB, free: 89.88 MB / 442.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.755e-05/1.73, allocations: 52.59 kB / 0.8657 GB, free: 89.82 MB / 442.7 MB Notification: Performance of pre-optimization done (n=139): time 3.828e-06/1.73, allocations: 0 / 0.8657 GB, free: 89.82 MB / 442.7 MB Notification: Performance of matching and sorting (n=160): time 0.01035/1.741, allocations: 4.847 MB / 0.8704 GB, free: 86.91 MB / 442.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.166e-05/1.741, allocations: 93.42 kB / 0.8705 GB, free: 86.81 MB / 442.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.002117/1.743, allocations: 1.281 MB / 0.8717 GB, free: 86.11 MB / 442.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0001546/1.743, allocations: 47.64 kB / 0.8718 GB, free: 86.06 MB / 442.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0008798/1.744, allocations: 1.097 MB / 0.8729 GB, free: 85.12 MB / 442.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0003919/1.744, allocations: 0.519 MB / 0.8734 GB, free: 84.66 MB / 442.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 9.555e-05/1.744, allocations: 4 kB / 0.8734 GB, free: 84.65 MB / 442.7 MB Notification: Performance of setup shared object (initialization): time 0.0001207/1.744, allocations: 380.7 kB / 0.8737 GB, free: 84.29 MB / 442.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001082/1.746, allocations: 0.6058 MB / 0.8743 GB, free: 84 MB / 442.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001429/1.747, allocations: 1.181 MB / 0.8755 GB, free: 82.89 MB / 442.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001231/1.748, allocations: 0.6973 MB / 0.8762 GB, free: 82.2 MB / 442.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 7.194e-06/1.748, allocations: 4 kB / 0.8762 GB, free: 82.2 MB / 442.7 MB Notification: Performance of matching and sorting (n=260) (initialization): time 0.003896/1.752, allocations: 2.211 MB / 0.8783 GB, free: 79.98 MB / 442.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.73e-05/1.752, allocations: 4 kB / 0.8783 GB, free: 79.98 MB / 442.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.49e-05/1.752, allocations: 23.98 kB / 0.8783 GB, free: 79.95 MB / 442.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001587/1.754, allocations: 1.038 MB / 0.8794 GB, free: 78.97 MB / 442.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001259/1.755, allocations: 399.3 kB / 0.8797 GB, free: 78.58 MB / 442.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.00308/1.758, allocations: 3.078 MB / 0.8827 GB, free: 75.37 MB / 442.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001895/1.76, allocations: 207.7 kB / 0.8829 GB, free: 75.16 MB / 442.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001764/1.76, allocations: 95.98 kB / 0.883 GB, free: 75.07 MB / 442.7 MB Warning: Iteration variables with default zero start attribute in torn nonlinear equation system: brakes.brake_3.sa:VARIABLE(unit = "1" ) "Path parameter of friction characteristic tau = f(a_relfric)" type: Real 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_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: 83 * 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 (217): * Single equations (assignments): 211 * 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.0004224/1.761, allocations: 206.8 kB / 0.8832 GB, free: 74.86 MB / 442.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002989/1.761, allocations: 205.4 kB / 0.8834 GB, free: 74.66 MB / 442.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.003233/1.764, allocations: 1.93 MB / 0.8853 GB, free: 72.71 MB / 442.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.228e-05/1.764, allocations: 16 kB / 0.8853 GB, free: 72.7 MB / 442.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.635e-06/1.764, allocations: 0 / 0.8853 GB, free: 72.7 MB / 442.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.298e-05/1.764, allocations: 7.969 kB / 0.8853 GB, free: 72.69 MB / 442.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.007583/1.772, allocations: 4.507 MB / 0.8897 GB, free: 68.12 MB / 442.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 6.583e-06/1.772, allocations: 0 / 0.8897 GB, free: 68.12 MB / 442.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0009688/1.773, allocations: 235.7 kB / 0.89 GB, free: 67.89 MB / 442.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.001399/1.774, allocations: 0.9402 MB / 0.8909 GB, free: 67 MB / 442.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001103/1.774, allocations: 31.94 kB / 0.8909 GB, free: 66.97 MB / 442.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.002801/1.777, allocations: 2.89 MB / 0.8937 GB, free: 63.94 MB / 442.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.859e-06/1.777, allocations: 9.125 kB / 0.8937 GB, free: 63.93 MB / 442.7 MB Notification: Performance of postOpt detectJacobianSparsePattern (simulation): time 0.003733/1.781, allocations: 2.65 MB / 0.8963 GB, free: 61.18 MB / 442.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0007926/1.782, allocations: 426.3 kB / 0.8967 GB, free: 60.74 MB / 442.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0003108/1.782, allocations: 28 kB / 0.8968 GB, free: 60.71 MB / 442.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.00104/1.783, allocations: 138.9 kB / 0.8969 GB, free: 60.58 MB / 442.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0004143/1.784, allocations: 244.7 kB / 0.8971 GB, free: 60.34 MB / 442.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001259/1.784, allocations: 67.94 kB / 0.8972 GB, free: 60.27 MB / 442.7 MB Notification: Performance of sort global known variables: time 0.001233/1.785, allocations: 0.923 MB / 0.8981 GB, free: 59.33 MB / 442.7 MB Notification: Performance of remove unused functions: time 0.001801/1.787, allocations: 451.9 kB / 0.8985 GB, free: 58.89 MB / 442.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 8 * Number of states: 6 (chassis.body.s,chassis.dragForces.v_rel,engine.end_1.zeroTorque1D.phi,engine.flywheel.w,motor1.inductor.i,motor2.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 (119): * Single equations (assignments): 117 * 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.0003372/1.787, allocations: 181.4 kB / 0.8987 GB, free: 58.7 MB / 442.7 MB Notification: Performance of simCode: created initialization part: time 0.002697/1.79, allocations: 1.793 MB / 0.9005 GB, free: 56.88 MB / 442.7 MB Notification: Performance of simCode: created event and clocks part: time 4.018e-06/1.79, allocations: 0 / 0.9005 GB, free: 56.88 MB / 442.7 MB Notification: Performance of simCode: created simulation system equations: time 0.001584/1.791, allocations: 0.9518 MB / 0.9014 GB, free: 55.92 MB / 442.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001403/1.793, allocations: 242.5 kB / 0.9016 GB, free: 55.69 MB / 442.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.007526/1.8, allocations: 3.659 MB / 0.9052 GB, free: 52 MB / 442.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001417/1.802, allocations: 1.918 MB / 0.9071 GB, free: 50.07 MB / 442.7 MB Notification: Performance of SimCode: time 6.01e-07/1.802, allocations: 0 / 0.9071 GB, free: 50.07 MB / 442.7 MB Notification: Performance of Templates: time 0.03824/1.84, allocations: 25.81 MB / 0.9323 GB, free: 24.77 MB / 442.7 MB make -j1 -f VehicleInterfaces_VehicleInterfaces.Examples.PowerSplitHybrid.makefile (rm -f VehicleInterfaces_VehicleInterfaces.Examples.PowerSplitHybrid.pipe ; mkfifo VehicleInterfaces_VehicleInterfaces.Examples.PowerSplitHybrid.pipe ; head -c 1048576 < VehicleInterfaces_VehicleInterfaces.Examples.PowerSplitHybrid.pipe >> ../files/VehicleInterfaces_VehicleInterfaces.Examples.PowerSplitHybrid.sim & ./VehicleInterfaces_VehicleInterfaces.Examples.PowerSplitHybrid -abortSlowSimulation -alarm=480 -lv LOG_STATS > VehicleInterfaces_VehicleInterfaces.Examples.PowerSplitHybrid.pipe 2>&1)