Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr VehicleInterfaces_VehicleInterfaces.Examples.ConventionalAutomaticVehicle.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.ConventionalAutomaticVehicle,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="VehicleInterfaces_VehicleInterfaces.Examples.ConventionalAutomaticVehicle") translateModel(VehicleInterfaces.Examples.ConventionalAutomaticVehicle,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="VehicleInterfaces_VehicleInterfaces.Examples.ConventionalAutomaticVehicle") [: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.003402/0.003402, allocations: 183.5 kB / 7.459 MB, free: 2.488 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.28/1.28, 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.0009561/0.0009562, allocations: 103.2 kB / 280.1 MB, free: 1.324 MB / 218.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/VehicleInterfaces 2.0.1/package.mo): time 0.03733/0.03733, allocations: 7.853 MB / 338.7 MB, free: 6.801 MB / 282.7 MB Notification: Performance of FrontEnd - loaded program: time 7.845e-06/7.875e-06, allocations: 0 / 396.9 MB, free: 68.69 MB / 298.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1017/0.1018, allocations: 52.2 MB / 449.1 MB, free: 16.59 MB / 298.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.3386/0.4404, allocations: 106.2 MB / 0.5423 GB, free: 6.359 MB / 362.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002549/0.4407, allocations: 78.69 kB / 0.5424 GB, free: 6.328 MB / 362.7 MB Notification: Performance of FrontEnd: time 0.5058/0.9465, allocations: 137.1 MB / 0.6763 GB, free: 111.8 MB / 442.7 MB Notification: Performance of Transformations before backend: time 0.0001986/0.9468, allocations: 77.12 kB / 0.6764 GB, free: 111.7 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: 632 * Number of variables: 632 Notification: Performance of Generate backend data structure: time 0.004464/0.9513, allocations: 2.413 MB / 0.6787 GB, free: 110.3 MB / 442.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.701e-05/0.9513, allocations: 10.12 kB / 0.6787 GB, free: 110.3 MB / 442.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0008698/0.9522, allocations: 341 kB / 0.6791 GB, free: 110.2 MB / 442.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.002784/0.955, allocations: 1.74 MB / 0.6808 GB, free: 109.4 MB / 442.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 8.226e-05/0.9551, allocations: 79.41 kB / 0.6808 GB, free: 109.4 MB / 442.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0003231/0.9554, allocations: 157.7 kB / 0.681 GB, free: 109.4 MB / 442.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.003009/0.9584, allocations: 1.64 MB / 0.6826 GB, free: 109.3 MB / 442.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.003605/0.962, allocations: 2.445 MB / 0.685 GB, free: 108.3 MB / 442.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0001001/0.9621, allocations: 28.64 kB / 0.685 GB, free: 108.3 MB / 442.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001903/0.9623, allocations: 5.469 kB / 0.685 GB, free: 108.3 MB / 442.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0001035/0.9624, allocations: 96.12 kB / 0.6851 GB, free: 108.3 MB / 442.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.01558/0.978, allocations: 10.69 MB / 0.6955 GB, free: 101.9 MB / 442.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001551/0.9796, allocations: 0.7997 MB / 0.6963 GB, free: 101.6 MB / 442.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0008269/0.9805, allocations: 0.5758 MB / 0.6969 GB, free: 101.3 MB / 442.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0001255/0.9806, allocations: 24.83 kB / 0.6969 GB, free: 101.3 MB / 442.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.443e-05/0.9806, allocations: 46.81 kB / 0.697 GB, free: 101.2 MB / 442.7 MB Notification: Performance of pre-optimization done (n=116): time 3.988e-06/0.9807, allocations: 0 / 0.697 GB, free: 101.2 MB / 442.7 MB Notification: Performance of matching and sorting (n=142): time 0.008746/0.9894, allocations: 4.222 MB / 0.7011 GB, free: 97 MB / 442.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.442e-05/0.9895, allocations: 94.41 kB / 0.7012 GB, free: 96.89 MB / 442.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001491/0.991, allocations: 1.169 MB / 0.7023 GB, free: 95.72 MB / 442.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0001371/0.9911, allocations: 49.69 kB / 0.7024 GB, free: 95.66 MB / 442.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0006841/0.9918, allocations: 0.932 MB / 0.7033 GB, free: 94.71 MB / 442.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0003441/0.9922, allocations: 461.2 kB / 0.7037 GB, free: 94.26 MB / 442.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 8.679e-05/0.9923, allocations: 15.03 kB / 0.7037 GB, free: 94.25 MB / 442.7 MB Notification: Performance of setup shared object (initialization): time 0.0001312/0.9924, allocations: 373.9 kB / 0.7041 GB, free: 93.88 MB / 442.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0008373/0.9932, allocations: 0.5585 MB / 0.7046 GB, free: 93.32 MB / 442.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0009954/0.9942, allocations: 1.092 MB / 0.7057 GB, free: 92 MB / 442.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.00112/0.9954, allocations: 0.6333 MB / 0.7063 GB, free: 91.38 MB / 442.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 7.565e-06/0.9954, allocations: 8 kB / 0.7063 GB, free: 91.38 MB / 442.7 MB Notification: Performance of matching and sorting (n=232) (initialization): time 0.003555/0.999, allocations: 2.073 MB / 0.7083 GB, free: 89.29 MB / 442.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.506e-05/0.999, allocations: 4 kB / 0.7083 GB, free: 89.29 MB / 442.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.905e-05/0.999, allocations: 20 kB / 0.7084 GB, free: 89.27 MB / 442.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001785/1.001, allocations: 1.112 MB / 0.7094 GB, free: 88.2 MB / 442.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0009428/1.002, allocations: 303.5 kB / 0.7097 GB, free: 87.91 MB / 442.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002366/1.004, allocations: 1.903 MB / 0.7116 GB, free: 85.98 MB / 442.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001595/1.006, allocations: 203.8 kB / 0.7118 GB, free: 85.78 MB / 442.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001485/1.006, allocations: 91.97 kB / 0.7119 GB, free: 85.69 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: 79 * 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,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],accessories.inertia.cylinderColor[3],accessories.inertia.cylinderColor[2],accessories.inertia.cylinderColor[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],engine.flywheel.cylinderColor[3],engine.flywheel.cylinderColor[2],engine.flywheel.cylinderColor[1]) * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (175): * Single equations (assignments): 170 * 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: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 0 * Non-linear torn systems: 1 {4 54} Notification: Performance of prepare postOptimizeDAE: time 0.000345/1.006, allocations: 197.1 kB / 0.7121 GB, free: 85.5 MB / 442.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002482/1.007, allocations: 191.8 kB / 0.7122 GB, free: 85.32 MB / 442.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.003239/1.01, allocations: 1.854 MB / 0.7141 GB, free: 83.45 MB / 442.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.228e-05/1.01, allocations: 19.98 kB / 0.7141 GB, free: 83.43 MB / 442.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.252e-06/1.01, allocations: 0 / 0.7141 GB, free: 83.43 MB / 442.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.274e-05/1.01, allocations: 7.875 kB / 0.7141 GB, free: 83.42 MB / 442.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.00713/1.017, allocations: 4.278 MB / 0.7183 GB, free: 79.07 MB / 442.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 8.466e-06/1.017, allocations: 0 / 0.7183 GB, free: 79.07 MB / 442.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.000657/1.018, allocations: 163.7 kB / 0.7184 GB, free: 78.91 MB / 442.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.001614/1.019, allocations: 1.012 MB / 0.7194 GB, free: 77.95 MB / 442.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001077/1.019, allocations: 23.95 kB / 0.7194 GB, free: 77.93 MB / 442.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.002467/1.022, allocations: 1.698 MB / 0.7211 GB, free: 76.21 MB / 442.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.839e-06/1.022, allocations: 4 kB / 0.7211 GB, free: 76.2 MB / 442.7 MB Notification: Performance of postOpt detectJacobianSparsePattern (simulation): time 0.003851/1.026, allocations: 2.545 MB / 0.7236 GB, free: 73.59 MB / 442.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0007959/1.027, allocations: 390.6 kB / 0.724 GB, free: 73.19 MB / 442.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0002945/1.027, allocations: 32 kB / 0.724 GB, free: 73.16 MB / 442.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0009402/1.028, allocations: 120 kB / 0.7241 GB, free: 73.04 MB / 442.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0003826/1.028, allocations: 244.8 kB / 0.7243 GB, free: 72.8 MB / 442.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.000112/1.028, allocations: 55.52 kB / 0.7244 GB, free: 72.75 MB / 442.7 MB Notification: Performance of sort global known variables: time 0.001094/1.029, allocations: 0.848 MB / 0.7252 GB, free: 71.91 MB / 442.7 MB Notification: Performance of remove unused functions: time 0.001379/1.031, allocations: 387.9 kB / 0.7256 GB, free: 71.54 MB / 442.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 7 * Number of states: 2 (chassis.body.s,chassis.dragForces.v_rel) * 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 (89): * Single equations (assignments): 88 * 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: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 0 * Non-linear torn systems: 1 {4 47} Notification: Performance of Backend phase and start with SimCode phase: time 0.0003171/1.031, allocations: 167 kB / 0.7257 GB, free: 71.36 MB / 442.7 MB Notification: Performance of simCode: created initialization part: time 0.002419/1.034, allocations: 1.585 MB / 0.7273 GB, free: 69.75 MB / 442.7 MB Notification: Performance of simCode: created event and clocks part: time 3.637e-06/1.034, allocations: 4 kB / 0.7273 GB, free: 69.75 MB / 442.7 MB Notification: Performance of simCode: created simulation system equations: time 0.001445/1.035, allocations: 0.783 MB / 0.7281 GB, free: 68.97 MB / 442.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001238/1.036, allocations: 228.4 kB / 0.7283 GB, free: 68.76 MB / 442.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.006243/1.043, allocations: 3.006 MB / 0.7312 GB, free: 65.7 MB / 442.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001243/1.044, allocations: 1.736 MB / 0.7329 GB, free: 63.93 MB / 442.7 MB Notification: Performance of SimCode: time 1.112e-06/1.044, allocations: 0 / 0.7329 GB, free: 63.93 MB / 442.7 MB Notification: Performance of Templates: time 0.03549/1.079, allocations: 24.18 MB / 0.7565 GB, free: 40.11 MB / 442.7 MB make -j1 -f VehicleInterfaces_VehicleInterfaces.Examples.ConventionalAutomaticVehicle.makefile (rm -f VehicleInterfaces_VehicleInterfaces.Examples.ConventionalAutomaticVehicle.pipe ; mkfifo VehicleInterfaces_VehicleInterfaces.Examples.ConventionalAutomaticVehicle.pipe ; head -c 1048576 < VehicleInterfaces_VehicleInterfaces.Examples.ConventionalAutomaticVehicle.pipe >> ../files/VehicleInterfaces_VehicleInterfaces.Examples.ConventionalAutomaticVehicle.sim & ./VehicleInterfaces_VehicleInterfaces.Examples.ConventionalAutomaticVehicle -abortSlowSimulation -alarm=480 -lv LOG_STATS > VehicleInterfaces_VehicleInterfaces.Examples.ConventionalAutomaticVehicle.pipe 2>&1)