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: "" <> buildModelFMU(VehicleInterfaces.Examples.ConventionalAutomaticVehicle,fileNamePrefix="VehicleInterfaces_VehicleInterfaces_Examples_ConventionalAutomaticVehicle",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(VehicleInterfaces.Examples.ConventionalAutomaticVehicle,fileNamePrefix="VehicleInterfaces_VehicleInterfaces_Examples_ConventionalAutomaticVehicle",fmuType="me",version="2.0",platforms={"static"}) [: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.004082/0.004083, allocations: 179.8 kB / 7.458 MB, free: 2.5 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.33/1.33, allocations: 221.4 MB / 229.3 MB, free: 3.254 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.001009/0.001009, allocations: 94.47 kB / 280.1 MB, free: 1.332 MB / 218.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/VehicleInterfaces 2.0.1/package.mo): time 0.03957/0.03957, allocations: 7.842 MB / 338.7 MB, free: 6.82 MB / 282.7 MB Notification: Performance of FrontEnd - loaded program: time 0.2594/0.299, allocations: 58.29 MB / 397 MB, free: 68.58 MB / 298.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1125/0.4115, allocations: 52.21 MB / 449.2 MB, free: 16.47 MB / 298.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.4277/0.8393, allocations: 106.2 MB / 0.5424 GB, free: 6.18 MB / 362.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0004431/0.8398, allocations: 80.09 kB / 0.5425 GB, free: 6.148 MB / 362.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.6235/1.463, allocations: 139.6 MB / 0.6788 GB, free: 110.2 MB / 442.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.614e-05/1.463, allocations: 12.94 kB / 0.6788 GB, free: 110.2 MB / 442.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.001346/1.465, allocations: 339.1 kB / 0.6792 GB, free: 110 MB / 442.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.003821/1.469, allocations: 1.735 MB / 0.6809 GB, free: 109.3 MB / 442.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001245/1.469, allocations: 82.69 kB / 0.6809 GB, free: 109.3 MB / 442.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0004414/1.469, allocations: 158.9 kB / 0.6811 GB, free: 109.3 MB / 442.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.004034/1.473, allocations: 1.643 MB / 0.6827 GB, free: 109.2 MB / 442.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.006032/1.479, allocations: 2.437 MB / 0.6851 GB, free: 108.2 MB / 442.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.000147/1.48, allocations: 32.11 kB / 0.6851 GB, free: 108.1 MB / 442.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0002181/1.48, allocations: 6.219 kB / 0.6851 GB, free: 108.1 MB / 442.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0002041/1.48, allocations: 100.9 kB / 0.6852 GB, free: 108.1 MB / 442.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0188/1.499, allocations: 10.68 MB / 0.6956 GB, free: 101.8 MB / 442.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001461/1.5, allocations: 0.8082 MB / 0.6964 GB, free: 101.4 MB / 442.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0008324/1.501, allocations: 0.5742 MB / 0.697 GB, free: 101.1 MB / 442.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0001122/1.501, allocations: 20.41 kB / 0.697 GB, free: 101 MB / 442.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.6e-05/1.501, allocations: 42.75 kB / 0.697 GB, free: 101 MB / 442.7 MB Notification: Performance of pre-optimization done (n=116): time 5.189e-06/1.501, allocations: 0 / 0.697 GB, free: 101 MB / 442.7 MB Notification: Performance of matching and sorting (n=142): time 0.01016/1.512, allocations: 4.229 MB / 0.7012 GB, free: 96.76 MB / 442.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.976e-05/1.512, allocations: 94.45 kB / 0.7013 GB, free: 96.65 MB / 442.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001782/1.513, allocations: 1.173 MB / 0.7024 GB, free: 95.48 MB / 442.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0001424/1.514, allocations: 45.7 kB / 0.7025 GB, free: 95.43 MB / 442.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0007815/1.514, allocations: 0.932 MB / 0.7034 GB, free: 94.48 MB / 442.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0004554/1.515, allocations: 469.2 kB / 0.7038 GB, free: 94.02 MB / 442.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 9.006e-05/1.515, allocations: 0 / 0.7038 GB, free: 94.02 MB / 442.7 MB Notification: Performance of setup shared object (initialization): time 0.0001535/1.515, allocations: 381.6 kB / 0.7042 GB, free: 93.64 MB / 442.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0008942/1.516, allocations: 0.5546 MB / 0.7047 GB, free: 93.09 MB / 442.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001143/1.517, allocations: 1.095 MB / 0.7058 GB, free: 91.76 MB / 442.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001231/1.518, allocations: 0.6368 MB / 0.7064 GB, free: 91.14 MB / 442.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 8.686e-06/1.518, allocations: 7.094 kB / 0.7064 GB, free: 91.14 MB / 442.7 MB Notification: Performance of matching and sorting (n=232) (initialization): time 0.00429/1.523, allocations: 2.071 MB / 0.7084 GB, free: 89.06 MB / 442.7 MB Notification: Performance of prepare postOptimizeDAE: time 3.558e-05/1.523, allocations: 8 kB / 0.7084 GB, free: 89.05 MB / 442.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.807e-05/1.523, allocations: 20 kB / 0.7085 GB, free: 89.03 MB / 442.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.002228/1.525, allocations: 1.1 MB / 0.7095 GB, free: 87.98 MB / 442.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001112/1.526, allocations: 313.6 kB / 0.7098 GB, free: 87.68 MB / 442.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002857/1.529, allocations: 1.895 MB / 0.7117 GB, free: 85.76 MB / 442.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001952/1.531, allocations: 209.5 kB / 0.7119 GB, free: 85.55 MB / 442.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001803/1.531, allocations: 91.97 kB / 0.712 GB, free: 85.46 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.0004517/1.532, allocations: 208.9 kB / 0.7122 GB, free: 85.27 MB / 442.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002935/1.532, allocations: 185.7 kB / 0.7124 GB, free: 85.09 MB / 442.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.003944/1.536, allocations: 1.844 MB / 0.7142 GB, free: 83.22 MB / 442.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.311e-05/1.536, allocations: 16 kB / 0.7142 GB, free: 83.21 MB / 442.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.351e-05/1.536, allocations: 0 / 0.7142 GB, free: 83.21 MB / 442.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.052e-05/1.536, allocations: 15.77 kB / 0.7142 GB, free: 83.2 MB / 442.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.008729/1.545, allocations: 4.29 MB / 0.7184 GB, free: 78.84 MB / 442.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.055e-05/1.545, allocations: 4.156 kB / 0.7184 GB, free: 78.84 MB / 442.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0006646/1.546, allocations: 159.7 kB / 0.7185 GB, free: 78.68 MB / 442.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.001748/1.547, allocations: 1.008 MB / 0.7195 GB, free: 77.73 MB / 442.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001141/1.547, allocations: 23.95 kB / 0.7195 GB, free: 77.7 MB / 442.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.002508/1.55, allocations: 1.699 MB / 0.7212 GB, free: 75.98 MB / 442.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 6.492e-06/1.55, allocations: 0 / 0.7212 GB, free: 75.98 MB / 442.7 MB Notification: Performance of postOpt detectJacobianSparsePattern (simulation): time 0.004659/1.555, allocations: 2.545 MB / 0.7237 GB, free: 73.36 MB / 442.7 MB Notification: Performance of postOpt generateSymbolicLinearization (simulation): time 0.005664/1.56, allocations: 3.628 MB / 0.7272 GB, free: 69.67 MB / 442.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0009918/1.561, allocations: 402.5 kB / 0.7276 GB, free: 69.25 MB / 442.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0003473/1.562, allocations: 24 kB / 0.7276 GB, free: 69.23 MB / 442.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001148/1.563, allocations: 130.8 kB / 0.7278 GB, free: 69.11 MB / 442.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0004965/1.563, allocations: 240.6 kB / 0.728 GB, free: 68.88 MB / 442.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001276/1.564, allocations: 55.95 kB / 0.728 GB, free: 68.82 MB / 442.7 MB Notification: Performance of sort global known variables: time 0.001434/1.565, allocations: 0.848 MB / 0.7289 GB, free: 67.98 MB / 442.7 MB Notification: Performance of remove unused functions: time 0.002804/1.568, allocations: 387.9 kB / 0.7292 GB, free: 67.6 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.0004642/1.568, allocations: 169.6 kB / 0.7294 GB, free: 67.43 MB / 442.7 MB Notification: Performance of simCode: created initialization part: time 0.003183/1.572, allocations: 1.577 MB / 0.7309 GB, free: 65.83 MB / 442.7 MB Notification: Performance of simCode: created event and clocks part: time 6.242e-06/1.572, allocations: 0 / 0.7309 GB, free: 65.83 MB / 442.7 MB Notification: Performance of simCode: created simulation system equations: time 0.00165/1.573, allocations: 0.7887 MB / 0.7317 GB, free: 65.04 MB / 442.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002056/1.575, allocations: 236.6 kB / 0.7319 GB, free: 64.82 MB / 442.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.008668/1.584, allocations: 3.008 MB / 0.7349 GB, free: 61.76 MB / 442.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001586/1.586, allocations: 1.74 MB / 0.7366 GB, free: 59.98 MB / 442.7 MB Notification: Performance of SimCode: time 2.084e-06/1.586, allocations: 0 / 0.7366 GB, free: 59.98 MB / 442.7 MB (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 & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator --tempDir=temp_VehicleInterfaces_VehicleInterfaces_Examples_ConventionalAutomaticVehicle_fmu --startTime=0 --stopTime=10 --timeout=50 --tolerance=1e-06 VehicleInterfaces_VehicleInterfaces_Examples_ConventionalAutomaticVehicle.fmu > VehicleInterfaces_VehicleInterfaces.Examples.ConventionalAutomaticVehicle.pipe 2>&1)