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/ModelicaServices 4.0.0+maint.om/package.mo", uses=false) 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/VehicleInterfaces 2.0.1-master/package.mo", uses=false) Using package VehicleInterfaces with version 2.0.1 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/VehicleInterfaces 2.0.1-master/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) Using package ModelicaServices with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 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/ModelicaServices 4.0.0+maint.om/package.mo): time 0.0008879/0.0008878, allocations: 97.56 kB / 15.36 MB, free: 0.7344 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.005535/0.005535, allocations: 171.2 kB / 16.27 MB, free: 6.648 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.332/1.332, allocations: 223.3 MB / 240.3 MB, free: 5.344 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/VehicleInterfaces 2.0.1-master/package.mo): time 0.1657/0.1657, allocations: 7.982 MB / 299.4 MB, free: 3.266 MB / 238.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0003031/0.0003031, allocations: 11.94 kB / 362.4 MB, free: 14.31 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09028/0.0906, allocations: 52.21 MB / 414.6 MB, free: 10.05 MB / 350.1 MB Notification: Performance of NFInst.instantiate(VehicleInterfaces.Examples.ConventionalAutomaticVehicle): time 0.2467/0.3374, allocations: 92.57 MB / 0.4953 GB, free: 14.18 MB / 382.1 MB Notification: Performance of NFInst.instExpressions: time 0.04165/0.3791, allocations: 18.05 MB / 0.5129 GB, free: 1.855 MB / 382.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.01898/0.3981, allocations: 446.2 kB / 0.5133 GB, free: 1.785 MB / 382.1 MB Notification: Performance of NFTyping.typeComponents: time 0.002338/0.4005, allocations: 0.5519 MB / 0.5139 GB, free: 1.48 MB / 382.1 MB Notification: Performance of NFTyping.typeBindings: time 0.00343/0.4039, allocations: 0.5831 MB / 0.5144 GB, free: 1.086 MB / 382.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.002998/0.4069, allocations: 0.907 MB / 0.5153 GB, free: 500 kB / 382.1 MB Notification: Performance of NFFlatten.flatten: time 0.005212/0.4122, allocations: 3.125 MB / 0.5184 GB, free: 14.95 MB / 398.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.006169/0.4184, allocations: 3.01 MB / 0.5213 GB, free: 12.64 MB / 398.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.002135/0.4205, allocations: 1.001 MB / 0.5223 GB, free: 11.75 MB / 398.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.002297/0.4229, allocations: 1.206 MB / 0.5235 GB, free: 10.79 MB / 398.1 MB Notification: Performance of NFPackage.collectConstants: time 0.000421/0.4233, allocations: 116 kB / 0.5236 GB, free: 10.67 MB / 398.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0006637/0.424, allocations: 176.1 kB / 0.5237 GB, free: 10.52 MB / 398.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0005757/0.4245, allocations: 0.5262 MB / 0.5243 GB, free: 10.1 MB / 398.1 MB Notification: Performance of NFVerifyModel.verify: time 0.001562/0.4261, allocations: 1.287 MB / 0.5255 GB, free: 8.875 MB / 398.1 MB Notification: Performance of NFConvertDAE.convert: time 0.004289/0.4304, allocations: 3.657 MB / 0.5291 GB, free: 6.809 MB / 398.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.589e-06/0.4305, allocations: 0 / 0.5291 GB, free: 6.809 MB / 398.1 MB Notification: Performance of FrontEnd: time 2.745e-06/0.4305, allocations: 0 / 0.5291 GB, free: 6.809 MB / 398.1 MB Notification: Performance of Transformations before backend: time 0.000118/0.4306, allocations: 0 / 0.5291 GB, free: 6.809 MB / 398.1 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 640 * Number of variables: 640 Notification: Performance of Generate backend data structure: time 0.005391/0.436, allocations: 2.605 MB / 0.5316 GB, free: 4.148 MB / 398.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.24e-05/0.436, allocations: 8.031 kB / 0.5316 GB, free: 4.141 MB / 398.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0006093/0.4367, allocations: 312.1 kB / 0.5319 GB, free: 3.832 MB / 398.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.002519/0.4392, allocations: 1.635 MB / 0.5335 GB, free: 2.141 MB / 398.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001472/0.4393, allocations: 184.7 kB / 0.5337 GB, free: 1.957 MB / 398.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0004313/0.4398, allocations: 255.7 kB / 0.534 GB, free: 1.707 MB / 398.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.005156/0.4449, allocations: 2.68 MB / 0.5366 GB, free: 14.88 MB / 414.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0001063/0.4451, allocations: 15.81 kB / 0.5366 GB, free: 14.87 MB / 414.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0002457/0.4453, allocations: 98.16 kB / 0.5367 GB, free: 14.77 MB / 414.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0001232/0.4455, allocations: 119.9 kB / 0.5368 GB, free: 14.66 MB / 414.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.004105/0.4496, allocations: 1.972 MB / 0.5387 GB, free: 12.67 MB / 414.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.01469/0.4643, allocations: 10.27 MB / 0.5488 GB, free: 2.031 MB / 414.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001761/0.4661, allocations: 0.9358 MB / 0.5497 GB, free: 1.082 MB / 414.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001025/0.4671, allocations: 0.572 MB / 0.5502 GB, free: 0.5078 MB / 414.1 MB Notification: Performance of preOpt evalFunc (simulation): time 7.856e-05/0.4672, allocations: 16.98 kB / 0.5502 GB, free: 500 kB / 414.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.23e-05/0.4673, allocations: 47.56 kB / 0.5503 GB, free: 444 kB / 414.1 MB Notification: Performance of pre-optimization done (n=99): time 2.785e-06/0.4673, allocations: 0 / 0.5503 GB, free: 444 kB / 414.1 MB Notification: Performance of matching and sorting (n=125): time 0.0128/0.4801, allocations: 5.821 MB / 0.556 GB, free: 10.48 MB / 430.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.441e-05/0.4802, allocations: 90.11 kB / 0.5561 GB, free: 10.38 MB / 430.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.002559/0.4827, allocations: 1.89 MB / 0.5579 GB, free: 8.453 MB / 430.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0001956/0.483, allocations: 65.7 kB / 0.558 GB, free: 8.383 MB / 430.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0009712/0.4839, allocations: 1.341 MB / 0.5593 GB, free: 7.023 MB / 430.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0004105/0.4844, allocations: 430.2 kB / 0.5597 GB, free: 6.598 MB / 430.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002463/0.4846, allocations: 193.9 kB / 0.5599 GB, free: 6.402 MB / 430.1 MB Notification: Performance of setup shared object (initialization): time 8.878e-05/0.4847, allocations: 305.1 kB / 0.5602 GB, free: 6.102 MB / 430.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001323/0.486, allocations: 0.711 MB / 0.5609 GB, free: 5.387 MB / 430.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001758/0.4878, allocations: 1.582 MB / 0.5624 GB, free: 3.379 MB / 430.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.002799/0.4906, allocations: 2.18 MB / 0.5645 GB, free: 0.7852 MB / 430.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.428e-05/0.4907, allocations: 11.94 kB / 0.5645 GB, free: 0.7734 MB / 430.1 MB Notification: Performance of matching and sorting (n=275) (initialization): time 0.004959/0.4956, allocations: 2.755 MB / 0.5672 GB, free: 14.01 MB / 446.1 MB Notification: Performance of prepare postOptimizeDAE: time 3.143e-05/0.4957, allocations: 19.94 kB / 0.5673 GB, free: 13.99 MB / 446.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.299e-05/0.4957, allocations: 32 kB / 0.5673 GB, free: 13.96 MB / 446.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.002191/0.4979, allocations: 1.349 MB / 0.5686 GB, free: 12.61 MB / 446.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001284/0.4992, allocations: 419.2 kB / 0.569 GB, free: 12.2 MB / 446.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002303/0.5015, allocations: 1.711 MB / 0.5707 GB, free: 10.46 MB / 446.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001898/0.5034, allocations: 259.6 kB / 0.5709 GB, free: 10.2 MB / 446.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001832/0.5036, allocations: 115.9 kB / 0.571 GB, free: 10.09 MB / 446.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 135 * Number of states: 0 () * Number of discrete variables: 57 (controlBus.driverBus.ignition,brakes.brake_4.mode,$PRE.brakes.brake_4.mode,brakes.brake_4.locked,brakes.brake_4.startBackward,$PRE.brakes.brake_4.startBackward,brakes.brake_4.startForward,$PRE.brakes.brake_4.startForward,brakes.brake_4.free,brakes.brake_3.mode,$PRE.brakes.brake_3.mode,brakes.brake_3.locked,brakes.brake_3.startBackward,$PRE.brakes.brake_3.startBackward,brakes.brake_3.startForward,$PRE.brakes.brake_3.startForward,brakes.brake_3.free,brakes.brake_2.mode,$PRE.brakes.brake_2.mode,brakes.brake_2.locked,brakes.brake_2.startBackward,$PRE.brakes.brake_2.startBackward,brakes.brake_2.startForward,$PRE.brakes.brake_2.startForward,brakes.brake_2.free,brakes.brake_1.mode,$PRE.brakes.brake_1.mode,brakes.brake_1.locked,brakes.brake_1.startBackward,$PRE.brakes.brake_1.startBackward,brakes.brake_1.startForward,$PRE.brakes.brake_1.startForward,brakes.brake_1.free,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 (231): * Single equations (assignments): 230 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 0 systems * Non-linear torn systems (#iteration vars, #inner vars): 1 system {(4,41)} Notification: Performance of prepare postOptimizeDAE: time 0.001236/0.5049, allocations: 0.6337 MB / 0.5716 GB, free: 9.445 MB / 446.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0003178/0.5052, allocations: 217.2 kB / 0.5719 GB, free: 9.23 MB / 446.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.003434/0.5087, allocations: 1.754 MB / 0.5736 GB, free: 7.465 MB / 446.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.285e-05/0.5087, allocations: 12 kB / 0.5736 GB, free: 7.453 MB / 446.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.894e-06/0.5087, allocations: 3.984 kB / 0.5736 GB, free: 7.449 MB / 446.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.298e-05/0.5087, allocations: 3.984 kB / 0.5736 GB, free: 7.445 MB / 446.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.009056/0.5178, allocations: 4.538 MB / 0.578 GB, free: 2.797 MB / 446.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 8.015e-06/0.5178, allocations: 4.156 kB / 0.578 GB, free: 2.793 MB / 446.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0006362/0.5185, allocations: 155.8 kB / 0.5782 GB, free: 2.641 MB / 446.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.001928/0.5204, allocations: 1.223 MB / 0.5794 GB, free: 1.414 MB / 446.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001168/0.5206, allocations: 39.95 kB / 0.5794 GB, free: 1.375 MB / 446.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.1844/0.7049, allocations: 1.518 MB / 0.5809 GB, free: 128.4 MB / 446.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.51e-06/0.705, allocations: 1.562 kB / 0.5809 GB, free: 128.4 MB / 446.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.005083/0.7101, allocations: 2.604 MB / 0.5834 GB, free: 128.1 MB / 446.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0008095/0.7109, allocations: 424.8 kB / 0.5838 GB, free: 128 MB / 446.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0004194/0.7113, allocations: 52.77 kB / 0.5839 GB, free: 128 MB / 446.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001118/0.7125, allocations: 132 kB / 0.584 GB, free: 128 MB / 446.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.000414/0.7129, allocations: 197 kB / 0.5842 GB, free: 128 MB / 446.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001021/0.713, allocations: 46.89 kB / 0.5842 GB, free: 128 MB / 446.1 MB Notification: Performance of sorting global known variables: time 0.002113/0.7151, allocations: 1.221 MB / 0.5854 GB, free: 127.9 MB / 446.1 MB Notification: Performance of sort global known variables: time 2.5e-07/0.7151, allocations: 0 / 0.5854 GB, free: 127.9 MB / 446.1 MB Notification: Performance of remove unused functions: time 0.001889/0.717, allocations: 463.8 kB / 0.5859 GB, free: 127.9 MB / 446.1 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,controlBus.driverBus.ignition) * Number of discrete states: 12 (brakes.brake_3.mode,brakes.brake_3.startForward,brakes.brake_3.startBackward,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_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 (not torn): 0 * Torn equation systems: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 0 systems * Non-linear torn systems (#iteration vars, #inner vars): 1 system {(4,34)} Notification: Performance of Backend phase and start with SimCode phase: time 0.0004111/0.7175, allocations: 188.1 kB / 0.5861 GB, free: 127.8 MB / 446.1 MB Notification: Performance of simCode: created initialization part: time 0.003359/0.7208, allocations: 1.78 MB / 0.5878 GB, free: 127.7 MB / 446.1 MB Notification: Performance of simCode: created event and clocks part: time 3.927e-06/0.7209, allocations: 0 / 0.5878 GB, free: 127.7 MB / 446.1 MB Notification: Performance of simCode: created simulation system equations: time 0.001643/0.7225, allocations: 0.8149 MB / 0.5886 GB, free: 127.6 MB / 446.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002405/0.7249, allocations: 319.1 kB / 0.5889 GB, free: 127.6 MB / 446.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.008543/0.7335, allocations: 5.422 MB / 0.5942 GB, free: 124.6 MB / 446.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001235/0.7348, allocations: 1.589 MB / 0.5957 GB, free: 123.8 MB / 446.1 MB Notification: Performance of simCode: alias equations: time 0.00108/0.7359, allocations: 313.1 kB / 0.596 GB, free: 123.8 MB / 446.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0003141/0.7362, allocations: 126.6 kB / 0.5962 GB, free: 123.8 MB / 446.1 MB Notification: Performance of SimCode: time 7.82e-07/0.7362, allocations: 0 / 0.5962 GB, free: 123.8 MB / 446.1 MB Notification: Performance of Templates: time 0.04577/0.782, allocations: 26.9 MB / 0.6224 GB, free: 118.5 MB / 446.1 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)