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.0-master/package.mo", uses=false) Using package VehicleInterfaces with version 2.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/VehicleInterfaces 2.0.0-master/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") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.0008656/0.0008657, allocations: 173 kB / 16.12 MB, free: 5.691 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.187/1.187, allocations: 223.3 MB / 240.1 MB, free: 11.71 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.0008599/0.0008598, allocations: 103.4 kB / 291.3 MB, free: 10.76 MB / 234.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/VehicleInterfaces 2.0.0-master/package.mo): time 0.03741/0.03741, allocations: 7.992 MB / 350.4 MB, free: 32 kB / 282.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0003119/0.0003119, allocations: 12 kB / 413.3 MB, free: 58.1 MB / 298.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.06831/0.06864, allocations: 52.2 MB / 465.5 MB, free: 5.922 MB / 298.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.2608/0.3295, allocations: 106.8 MB / 0.5589 GB, free: 11.6 MB / 378.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002156/0.3297, allocations: 88.91 kB / 0.5589 GB, free: 11.55 MB / 378.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.4508/0.7805, allocations: 137.7 MB / 0.6934 GB, free: 122.1 MB / 458.7 MB Notification: Performance of FrontEnd: time 2.375e-06/0.7806, allocations: 0 / 0.6934 GB, free: 122.1 MB / 458.7 MB Notification: Performance of Transformations before backend: time 0.0001546/0.7807, allocations: 80.62 kB / 0.6935 GB, free: 122.1 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: 632 * Number of variables: 632 Notification: Performance of Generate backend data structure: time 0.003453/0.7842, allocations: 2.593 MB / 0.696 GB, free: 120.5 MB / 458.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.168e-05/0.7842, allocations: 9.312 kB / 0.6961 GB, free: 120.5 MB / 458.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0005664/0.7848, allocations: 352.3 kB / 0.6964 GB, free: 120.4 MB / 458.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.002079/0.7869, allocations: 1.8 MB / 0.6981 GB, free: 119.5 MB / 458.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 8.554e-05/0.787, allocations: 181.6 kB / 0.6983 GB, free: 119.5 MB / 458.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0002652/0.7873, allocations: 250.4 kB / 0.6986 GB, free: 119.5 MB / 458.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.003297/0.7906, allocations: 2.864 MB / 0.7014 GB, free: 118.3 MB / 458.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 8.368e-05/0.7907, allocations: 25.09 kB / 0.7014 GB, free: 118.3 MB / 458.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.000181/0.7908, allocations: 112.8 kB / 0.7015 GB, free: 118.3 MB / 458.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.908e-05/0.7909, allocations: 96.58 kB / 0.7016 GB, free: 118.3 MB / 458.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.002756/0.7937, allocations: 1.886 MB / 0.7034 GB, free: 118 MB / 458.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.009561/0.8033, allocations: 11.15 MB / 0.7143 GB, free: 111.4 MB / 458.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001382/0.8047, allocations: 1.054 MB / 0.7153 GB, free: 110.8 MB / 458.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0008599/0.8055, allocations: 0.6344 MB / 0.716 GB, free: 110.5 MB / 458.7 MB Notification: Performance of preOpt evalFunc (simulation): time 8.285e-05/0.8056, allocations: 20.53 kB / 0.716 GB, free: 110.5 MB / 458.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.781e-05/0.8056, allocations: 47.44 kB / 0.716 GB, free: 110.4 MB / 458.7 MB Notification: Performance of pre-optimization done (n=116): time 3.246e-06/0.8057, allocations: 0 / 0.716 GB, free: 110.4 MB / 458.7 MB Notification: Performance of matching and sorting (n=142): time 0.008929/0.8146, allocations: 5.939 MB / 0.7218 GB, free: 105.1 MB / 458.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 2.929e-05/0.8146, allocations: 98.39 kB / 0.7219 GB, free: 105 MB / 458.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001634/0.8163, allocations: 1.843 MB / 0.7237 GB, free: 103.1 MB / 458.7 MB Notification: Performance of collectPreVariables (initialization): time 9.701e-05/0.8164, allocations: 69.7 kB / 0.7238 GB, free: 103 MB / 458.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0005417/0.8169, allocations: 1.2 MB / 0.725 GB, free: 101.8 MB / 458.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0002273/0.8172, allocations: 476.8 kB / 0.7254 GB, free: 101.4 MB / 458.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 7.647e-05/0.8172, allocations: 40 kB / 0.7254 GB, free: 101.3 MB / 458.7 MB Notification: Performance of setup shared object (initialization): time 7.451e-05/0.8173, allocations: 381.8 kB / 0.7258 GB, free: 100.9 MB / 458.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0009305/0.8183, allocations: 0.6247 MB / 0.7264 GB, free: 100.3 MB / 458.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001069/0.8193, allocations: 1.175 MB / 0.7276 GB, free: 98.91 MB / 458.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001724/0.8211, allocations: 1.659 MB / 0.7292 GB, free: 97.01 MB / 458.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 6.001e-06/0.8211, allocations: 8 kB / 0.7292 GB, free: 97 MB / 458.7 MB Notification: Performance of matching and sorting (n=232) (initialization): time 0.003236/0.8243, allocations: 2.364 MB / 0.7315 GB, free: 94.62 MB / 458.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.057e-05/0.8244, allocations: 12 kB / 0.7315 GB, free: 94.61 MB / 458.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.439e-05/0.8244, allocations: 20 kB / 0.7315 GB, free: 94.59 MB / 458.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.00168/0.8261, allocations: 1.162 MB / 0.7327 GB, free: 93.48 MB / 458.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0008035/0.8269, allocations: 303.5 kB / 0.733 GB, free: 93.19 MB / 458.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001839/0.8287, allocations: 1.738 MB / 0.7347 GB, free: 91.43 MB / 458.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001144/0.8299, allocations: 215.9 kB / 0.7349 GB, free: 91.21 MB / 458.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001249/0.83, allocations: 95.97 kB / 0.735 GB, free: 91.12 MB / 458.7 MB 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 () * Number of clocked 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.000788/0.8308, allocations: 0.5869 MB / 0.7355 GB, free: 90.53 MB / 458.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002055/0.831, allocations: 217.2 kB / 0.7357 GB, free: 90.32 MB / 458.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.002913/0.834, allocations: 2.028 MB / 0.7377 GB, free: 88.27 MB / 458.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 8.786e-06/0.834, allocations: 12 kB / 0.7377 GB, free: 88.26 MB / 458.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.719e-06/0.834, allocations: 0 / 0.7377 GB, free: 88.26 MB / 458.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.066e-05/0.834, allocations: 7.969 kB / 0.7377 GB, free: 88.25 MB / 458.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.005971/0.84, allocations: 4.734 MB / 0.7424 GB, free: 83.45 MB / 458.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.809e-06/0.84, allocations: 0 / 0.7424 GB, free: 83.45 MB / 458.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.000527/0.8405, allocations: 160 kB / 0.7425 GB, free: 83.29 MB / 458.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.001471/0.842, allocations: 1.067 MB / 0.7436 GB, free: 82.27 MB / 458.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 8.048e-05/0.8421, allocations: 43.95 kB / 0.7436 GB, free: 82.23 MB / 458.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001663/0.8438, allocations: 1.551 MB / 0.7451 GB, free: 80.65 MB / 458.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.495e-06/0.8438, allocations: 3.938 kB / 0.7451 GB, free: 80.64 MB / 458.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.00348/0.8473, allocations: 2.65 MB / 0.7477 GB, free: 77.95 MB / 458.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0004826/0.8478, allocations: 442.2 kB / 0.7481 GB, free: 77.5 MB / 458.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0002218/0.848, allocations: 48 kB / 0.7482 GB, free: 77.45 MB / 458.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.000791/0.8488, allocations: 136 kB / 0.7483 GB, free: 77.32 MB / 458.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0003447/0.8492, allocations: 240.7 kB / 0.7485 GB, free: 77.09 MB / 458.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 9.178e-05/0.8493, allocations: 59.94 kB / 0.7486 GB, free: 77.03 MB / 458.7 MB Notification: Performance of sorting global known variables: time 0.00124/0.8505, allocations: 1.226 MB / 0.7498 GB, free: 75.79 MB / 458.7 MB Notification: Performance of sort global known variables: time 1.6e-07/0.8505, allocations: 0 / 0.7498 GB, free: 75.79 MB / 458.7 MB Notification: Performance of remove unused functions: time 0.00105/0.8516, allocations: 440 kB / 0.7502 GB, free: 75.36 MB / 458.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) * Number of clocked states: 0 () * 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.0002564/0.8518, allocations: 208.9 kB / 0.7504 GB, free: 75.15 MB / 458.7 MB Notification: Performance of simCode: created initialization part: time 0.002385/0.8542, allocations: 1.739 MB / 0.7521 GB, free: 73.39 MB / 458.7 MB Notification: Performance of simCode: created event and clocks part: time 2.354e-06/0.8542, allocations: 0 / 0.7521 GB, free: 73.39 MB / 458.7 MB Notification: Performance of simCode: created simulation system equations: time 0.001403/0.8556, allocations: 0.8577 MB / 0.7529 GB, free: 72.54 MB / 458.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001672/0.8573, allocations: 305.6 kB / 0.7532 GB, free: 72.25 MB / 458.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.006019/0.8634, allocations: 5.138 MB / 0.7582 GB, free: 67.07 MB / 458.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0008318/0.8642, allocations: 1.573 MB / 0.7598 GB, free: 65.47 MB / 458.7 MB Notification: Performance of simCode: alias equations: time 0.0007086/0.8649, allocations: 282.7 kB / 0.7601 GB, free: 65.2 MB / 458.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002115/0.8651, allocations: 115.4 kB / 0.7602 GB, free: 65.08 MB / 458.7 MB Notification: Performance of SimCode: time 2.61e-07/0.8651, allocations: 2.156 kB / 0.7602 GB, free: 65.08 MB / 458.7 MB Notification: Performance of Templates: time 0.0326/0.8977, allocations: 26.49 MB / 0.786 GB, free: 38.89 MB / 458.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)