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") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.01185/0.01185, allocations: 170.2 kB / 15.11 MB, free: 5.973 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.439/1.439, allocations: 223.2 MB / 239 MB, free: 60 kB / 186.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.000938/0.0009381, allocations: 95.27 kB / 290.2 MB, free: 4.609 MB / 234.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/VehicleInterfaces 2.0.1/package.mo): time 0.04509/0.04508, allocations: 7.985 MB / 349.3 MB, free: 5.23 MB / 282.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0005116/0.0005117, allocations: 8 kB / 412 MB, free: 6.477 MB / 346.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2529/0.2534, allocations: 52.2 MB / 464.2 MB, free: 70.72 MB / 346.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.3511/0.6045, allocations: 106.7 MB / 0.5575 GB, free: 39.98 MB / 378.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002239/0.6048, allocations: 91.55 kB / 0.5576 GB, free: 39.98 MB / 378.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.3049/0.9097, allocations: 137.8 MB / 0.6921 GB, free: 1.23 MB / 426.7 MB Notification: Performance of FrontEnd: time 4.709e-06/0.9097, allocations: 4 kB / 0.6921 GB, free: 1.227 MB / 426.7 MB Notification: Performance of Transformations before backend: time 0.0002036/0.9099, allocations: 75.97 kB / 0.6922 GB, free: 1.152 MB / 426.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.005166/0.9151, allocations: 2.618 MB / 0.6947 GB, free: 14.47 MB / 442.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.224e-05/0.9152, allocations: 16.02 kB / 0.6948 GB, free: 14.45 MB / 442.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0008721/0.916, allocations: 360 kB / 0.6951 GB, free: 14.1 MB / 442.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.00317/0.9192, allocations: 1.733 MB / 0.6968 GB, free: 12.31 MB / 442.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001588/0.9194, allocations: 180.8 kB / 0.697 GB, free: 12.13 MB / 442.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0003975/0.9198, allocations: 259.7 kB / 0.6972 GB, free: 11.88 MB / 442.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.004992/0.9248, allocations: 2.843 MB / 0.7 GB, free: 8.766 MB / 442.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 9.267e-05/0.9249, allocations: 23.75 kB / 0.7 GB, free: 8.742 MB / 442.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0002247/0.9252, allocations: 108 kB / 0.7001 GB, free: 8.637 MB / 442.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0001004/0.9253, allocations: 91.97 kB / 0.7002 GB, free: 8.547 MB / 442.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.003643/0.9289, allocations: 1.89 MB / 0.702 GB, free: 6.641 MB / 442.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.01401/0.9429, allocations: 11.14 MB / 0.7129 GB, free: 11.12 MB / 458.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001768/0.9448, allocations: 1.056 MB / 0.7139 GB, free: 10.05 MB / 458.7 MB Notification: Performance of preOpt evalFunc (simulation): time 8.692e-05/0.9449, allocations: 13 kB / 0.714 GB, free: 10.04 MB / 458.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.781e-05/0.9449, allocations: 43.56 kB / 0.714 GB, free: 9.988 MB / 458.7 MB Notification: Performance of pre-optimization done (n=116): time 3.015e-06/0.9449, allocations: 0 / 0.714 GB, free: 9.988 MB / 458.7 MB Notification: Performance of matching and sorting (n=142): time 0.01108/0.956, allocations: 5.94 MB / 0.7198 GB, free: 3.922 MB / 458.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.762e-05/0.956, allocations: 94.42 kB / 0.7199 GB, free: 3.812 MB / 458.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.002078/0.9581, allocations: 1.605 MB / 0.7215 GB, free: 2.18 MB / 458.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0001357/0.9583, allocations: 77.72 kB / 0.7215 GB, free: 2.098 MB / 458.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0009797/0.9593, allocations: 1.193 MB / 0.7227 GB, free: 0.8906 MB / 458.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0003861/0.9597, allocations: 477.4 kB / 0.7232 GB, free: 428 kB / 458.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 9.84e-05/0.9598, allocations: 40 kB / 0.7232 GB, free: 388 kB / 458.7 MB Notification: Performance of setup shared object (initialization): time 0.0001719/0.9599, allocations: 377.8 kB / 0.7236 GB, free: 4 kB / 458.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.238/1.198, allocations: 0.619 MB / 0.7242 GB, free: 123.4 MB / 458.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.002093/1.2, allocations: 1.17 MB / 0.7253 GB, free: 122.8 MB / 458.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001422/1.202, allocations: 0.6726 MB / 0.726 GB, free: 122.8 MB / 458.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.089e-05/1.202, allocations: 6.969 kB / 0.726 GB, free: 122.8 MB / 458.7 MB Notification: Performance of matching and sorting (n=232) (initialization): time 0.005303/1.207, allocations: 2.362 MB / 0.7283 GB, free: 122.7 MB / 458.7 MB Notification: Performance of prepare postOptimizeDAE: time 3.922e-05/1.207, allocations: 10.25 kB / 0.7283 GB, free: 122.7 MB / 458.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.285e-05/1.207, allocations: 20.5 kB / 0.7283 GB, free: 122.7 MB / 458.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.002318/1.209, allocations: 1.171 MB / 0.7294 GB, free: 122.7 MB / 458.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001032/1.21, allocations: 305.7 kB / 0.7297 GB, free: 122.7 MB / 458.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002281/1.213, allocations: 1.734 MB / 0.7314 GB, free: 122.2 MB / 458.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001846/1.215, allocations: 221.3 kB / 0.7316 GB, free: 122.2 MB / 458.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001619/1.215, allocations: 89.25 kB / 0.7317 GB, free: 122.2 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.001366/1.216, allocations: 0.5991 MB / 0.7323 GB, free: 122.1 MB / 458.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.000334/1.216, allocations: 215.4 kB / 0.7325 GB, free: 122.1 MB / 458.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.003302/1.22, allocations: 2.021 MB / 0.7345 GB, free: 121.9 MB / 458.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 9.578e-06/1.22, allocations: 14.44 kB / 0.7345 GB, free: 121.9 MB / 458.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.183e-06/1.22, allocations: 3.953 kB / 0.7345 GB, free: 121.9 MB / 458.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.189e-05/1.22, allocations: 7.312 kB / 0.7345 GB, free: 121.9 MB / 458.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.007431/1.227, allocations: 4.709 MB / 0.7391 GB, free: 121.3 MB / 458.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 8.215e-06/1.227, allocations: 6.156 kB / 0.7391 GB, free: 121.3 MB / 458.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0005968/1.228, allocations: 152.9 kB / 0.7393 GB, free: 121.3 MB / 458.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.001702/1.23, allocations: 1.066 MB / 0.7403 GB, free: 121.3 MB / 458.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001071/1.23, allocations: 50.81 kB / 0.7404 GB, free: 121.3 MB / 458.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001914/1.232, allocations: 1.554 MB / 0.7419 GB, free: 120.8 MB / 458.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.066e-06/1.232, allocations: 0 / 0.7419 GB, free: 120.8 MB / 458.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.004117/1.236, allocations: 2.754 MB / 0.7446 GB, free: 120.3 MB / 458.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0009596/1.237, allocations: 446.1 kB / 0.745 GB, free: 120 MB / 458.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0002748/1.237, allocations: 49.5 kB / 0.745 GB, free: 120 MB / 458.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.000918/1.238, allocations: 141.2 kB / 0.7452 GB, free: 120 MB / 458.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0003948/1.238, allocations: 247.8 kB / 0.7454 GB, free: 120 MB / 458.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001031/1.239, allocations: 58.55 kB / 0.7455 GB, free: 120 MB / 458.7 MB Notification: Performance of sorting global known variables: time 0.001663/1.24, allocations: 1.219 MB / 0.7467 GB, free: 119.9 MB / 458.7 MB Notification: Performance of sort global known variables: time 3.11e-07/1.24, allocations: 0 / 0.7467 GB, free: 119.9 MB / 458.7 MB Notification: Performance of remove unused functions: time 0.001548/1.242, allocations: 444.8 kB / 0.7471 GB, free: 119.9 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.0003234/1.242, allocations: 198.3 kB / 0.7473 GB, free: 119.8 MB / 458.7 MB Notification: Performance of simCode: created initialization part: time 0.002972/1.245, allocations: 1.737 MB / 0.749 GB, free: 119.6 MB / 458.7 MB Notification: Performance of simCode: created event and clocks part: time 3.807e-06/1.245, allocations: 0 / 0.749 GB, free: 119.6 MB / 458.7 MB Notification: Performance of simCode: created simulation system equations: time 0.001559/1.247, allocations: 0.8612 MB / 0.7498 GB, free: 119.6 MB / 458.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001473/1.248, allocations: 293.7 kB / 0.7501 GB, free: 119.5 MB / 458.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.008139/1.256, allocations: 5.118 MB / 0.7551 GB, free: 117.1 MB / 458.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001108/1.257, allocations: 1.634 MB / 0.7567 GB, free: 116.3 MB / 458.7 MB Notification: Performance of simCode: alias equations: time 0.0009459/1.258, allocations: 276.6 kB / 0.7569 GB, free: 116.3 MB / 458.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002349/1.259, allocations: 111.5 kB / 0.757 GB, free: 116.3 MB / 458.7 MB Notification: Performance of SimCode: time 7.21e-07/1.259, allocations: 0 / 0.757 GB, free: 116.3 MB / 458.7 MB Notification: Performance of Templates: time 0.04231/1.301, allocations: 26.35 MB / 0.7828 GB, free: 109.6 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)