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.001362/0.001362, allocations: 109.5 kB / 16.27 MB, free: 6.355 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.00122/0.00122, allocations: 192.3 kB / 17.2 MB, free: 5.953 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.403/1.403, allocations: 222.9 MB / 240.9 MB, free: 15.21 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/VehicleInterfaces 2.0.1-master/package.mo): time 0.04678/0.04678, allocations: 8.009 MB / 299.1 MB, free: 7.199 MB / 238.1 MB Notification: Performance of FrontEnd - loaded program: time 0.002162/0.002162, allocations: 59.91 kB / 361.3 MB, free: 8.93 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1976/0.1998, allocations: 51.21 MB / 412.5 MB, free: 26.76 MB / 302.1 MB Notification: Performance of NFInst.instantiate(VehicleInterfaces.Examples.ConventionalAutomaticVehicle): time 0.01663/0.2165, allocations: 21.44 MB / 433.9 MB, free: 5.238 MB / 302.1 MB Notification: Performance of NFInst.instExpressions: time 0.01028/0.2268, allocations: 5.731 MB / 439.7 MB, free: 15.48 MB / 318.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.004545/0.2314, allocations: 175.4 kB / 439.8 MB, free: 15.31 MB / 318.1 MB Notification: Performance of NFTyping.typeComponents: time 0.003035/0.2345, allocations: 0.8492 MB / 440.7 MB, free: 14.46 MB / 318.1 MB Notification: Performance of NFTyping.typeBindings: time 0.003336/0.2379, allocations: 0.6896 MB / 441.4 MB, free: 13.76 MB / 318.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.00953/0.2474, allocations: 4.283 MB / 445.6 MB, free: 9.469 MB / 318.1 MB Notification: Performance of NFFlatten.flatten: time 0.005644/0.2531, allocations: 3.251 MB / 448.9 MB, free: 6.199 MB / 318.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.007982/0.2611, allocations: 3.962 MB / 452.9 MB, free: 2.176 MB / 318.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.002329/0.2635, allocations: 1.324 MB / 454.2 MB, free: 0.8477 MB / 318.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.00275/0.2663, allocations: 1.49 MB / 455.7 MB, free: 15.35 MB / 334.1 MB Notification: Performance of NFPackage.collectConstants: time 0.001283/0.2676, allocations: 360 kB / 456 MB, free: 15 MB / 334.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.001442/0.2691, allocations: 415.9 kB / 456.4 MB, free: 14.59 MB / 334.1 MB Notification: Performance of NFScalarize.scalarize: time 0.001318/0.2704, allocations: 0.7983 MB / 457.2 MB, free: 13.79 MB / 334.1 MB Notification: Performance of NFVerifyModel.verify: time 0.003115/0.2735, allocations: 1.567 MB / 458.8 MB, free: 12.21 MB / 334.1 MB Notification: Performance of NFConvertDAE.convert: time 0.005976/0.2795, allocations: 3.949 MB / 462.7 MB, free: 8.254 MB / 334.1 MB Notification: Performance of FrontEnd - DAE generated: time 8.146e-06/0.2796, allocations: 0 / 462.7 MB, free: 8.254 MB / 334.1 MB Notification: Performance of FrontEnd: time 1.924e-06/0.2796, allocations: 0 / 462.7 MB, free: 8.254 MB / 334.1 MB Notification: Performance of Transformations before backend: time 0.0001875/0.2798, allocations: 3.938 kB / 462.8 MB, free: 8.25 MB / 334.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.008341/0.2881, allocations: 3.094 MB / 465.8 MB, free: 5.09 MB / 334.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.815e-05/0.2882, allocations: 12.03 kB / 465.9 MB, free: 5.078 MB / 334.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.000905/0.2891, allocations: 312.1 kB / 466.2 MB, free: 4.77 MB / 334.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.003216/0.2923, allocations: 1.639 MB / 467.8 MB, free: 3.074 MB / 334.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001869/0.2926, allocations: 180.7 kB / 468 MB, free: 2.895 MB / 334.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0006206/0.2932, allocations: 255.8 kB / 468.2 MB, free: 2.645 MB / 334.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.006178/0.2994, allocations: 2.666 MB / 470.9 MB, free: 15.83 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0001676/0.2996, allocations: 19.75 kB / 470.9 MB, free: 15.81 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0003354/0.2999, allocations: 104 kB / 471 MB, free: 15.71 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0001596/0.3001, allocations: 112 kB / 471.1 MB, free: 15.6 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.004628/0.3047, allocations: 1.972 MB / 473.1 MB, free: 13.61 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.01831/0.3231, allocations: 10.2 MB / 483.3 MB, free: 3.043 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.002081/0.3252, allocations: 0.9196 MB / 484.2 MB, free: 2.113 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001212/0.3264, allocations: 0.5591 MB / 484.8 MB, free: 1.547 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0001001/0.3266, allocations: 13 kB / 484.8 MB, free: 1.531 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.413e-05/0.3266, allocations: 51.5 kB / 484.8 MB, free: 1.473 MB / 350.1 MB Notification: Performance of pre-optimization done (n=99): time 3.967e-06/0.3266, allocations: 0 / 484.8 MB, free: 1.473 MB / 350.1 MB Notification: Performance of matching and sorting (n=125): time 0.01389/0.3405, allocations: 5.64 MB / 490.5 MB, free: 11.71 MB / 366.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 8.01e-05/0.3407, allocations: 94.11 kB / 490.6 MB, free: 11.6 MB / 366.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.003374/0.344, allocations: 1.89 MB / 492.5 MB, free: 9.676 MB / 366.1 MB Notification: Performance of collectPreVariables (initialization): time 0.000234/0.3443, allocations: 65.7 kB / 492.5 MB, free: 9.605 MB / 366.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.001443/0.3457, allocations: 1.337 MB / 493.9 MB, free: 8.25 MB / 366.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0006047/0.3464, allocations: 434.2 kB / 494.3 MB, free: 7.82 MB / 366.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0007897/0.3472, allocations: 427.4 kB / 494.7 MB, free: 7.395 MB / 366.1 MB Notification: Performance of setup shared object (initialization): time 0.0001388/0.3473, allocations: 309.1 kB / 495 MB, free: 7.09 MB / 366.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.00159/0.3489, allocations: 0.6953 MB / 495.7 MB, free: 6.391 MB / 366.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.002351/0.3513, allocations: 1.586 MB / 497.3 MB, free: 4.379 MB / 366.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0036/0.3549, allocations: 2.167 MB / 499.4 MB, free: 1.797 MB / 366.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.354e-05/0.355, allocations: 8 kB / 499.5 MB, free: 1.789 MB / 366.1 MB Notification: Performance of matching and sorting (n=275) (initialization): time 0.006127/0.3611, allocations: 2.739 MB / 0.4904 GB, free: 15.04 MB / 382.1 MB Notification: Performance of prepare postOptimizeDAE: time 4.569e-05/0.3612, allocations: 20 kB / 0.4904 GB, free: 15.02 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.634e-05/0.3613, allocations: 28 kB / 0.4905 GB, free: 14.99 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.002523/0.3638, allocations: 1.349 MB / 0.4918 GB, free: 13.64 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001459/0.3653, allocations: 415.2 kB / 0.4922 GB, free: 13.23 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002728/0.368, allocations: 1.724 MB / 0.4939 GB, free: 11.48 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001954/0.37, allocations: 199.5 kB / 0.4941 GB, free: 11.28 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0002766/0.3703, allocations: 112 kB / 0.4942 GB, free: 11.17 MB / 382.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.001363/0.3717, allocations: 0.6382 MB / 0.4948 GB, free: 10.52 MB / 382.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0004777/0.3722, allocations: 217.2 kB / 0.495 GB, free: 10.31 MB / 382.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.003839/0.376, allocations: 1.742 MB / 0.4967 GB, free: 8.551 MB / 382.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.572e-05/0.376, allocations: 12 kB / 0.4967 GB, free: 8.539 MB / 382.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 9.217e-06/0.3761, allocations: 4 kB / 0.4967 GB, free: 8.535 MB / 382.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.536e-05/0.3761, allocations: 7.969 kB / 0.4967 GB, free: 8.527 MB / 382.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.00898/0.3851, allocations: 4.465 MB / 0.5011 GB, free: 3.949 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 8.617e-06/0.3851, allocations: 4.156 kB / 0.5011 GB, free: 3.945 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0006622/0.3858, allocations: 155.7 kB / 0.5012 GB, free: 3.793 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.002138/0.3879, allocations: 1.231 MB / 0.5024 GB, free: 2.559 MB / 382.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001363/0.3881, allocations: 43.95 kB / 0.5025 GB, free: 2.516 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.002641/0.3907, allocations: 1.513 MB / 0.504 GB, free: 0.9766 MB / 382.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 9.318e-06/0.3908, allocations: 7.938 kB / 0.504 GB, free: 0.9688 MB / 382.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.1827/0.5734, allocations: 2.583 MB / 0.5065 GB, free: 92.14 MB / 382.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0009748/0.5745, allocations: 424.5 kB / 0.5069 GB, free: 91.95 MB / 382.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0005064/0.575, allocations: 52.64 kB / 0.5069 GB, free: 91.92 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.00114/0.5761, allocations: 89.91 kB / 0.507 GB, free: 91.91 MB / 382.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0004383/0.5766, allocations: 204.9 kB / 0.5072 GB, free: 91.87 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001108/0.5767, allocations: 46.5 kB / 0.5073 GB, free: 91.86 MB / 382.1 MB Notification: Performance of sorting global known variables: time 0.002244/0.579, allocations: 1.226 MB / 0.5085 GB, free: 91.38 MB / 382.1 MB Notification: Performance of sort global known variables: time 1.1e-07/0.579, allocations: 0 / 0.5085 GB, free: 91.38 MB / 382.1 MB Notification: Performance of remove unused functions: time 0.002102/0.5811, allocations: 461 kB / 0.5089 GB, free: 91.34 MB / 382.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.0004406/0.5815, allocations: 194.6 kB / 0.5091 GB, free: 91.21 MB / 382.1 MB Notification: Performance of simCode: created initialization part: time 0.004096/0.5857, allocations: 1.81 MB / 0.5109 GB, free: 90.59 MB / 382.1 MB Notification: Performance of simCode: created event and clocks part: time 5.85e-06/0.5857, allocations: 0 / 0.5109 GB, free: 90.59 MB / 382.1 MB Notification: Performance of simCode: created simulation system equations: time 0.001688/0.5874, allocations: 0.8091 MB / 0.5116 GB, free: 90.28 MB / 382.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002139/0.5895, allocations: 329 kB / 0.512 GB, free: 90.14 MB / 382.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.008806/0.5984, allocations: 4.352 MB / 0.5162 GB, free: 88.09 MB / 382.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001273/0.5997, allocations: 1.588 MB / 0.5178 GB, free: 87.31 MB / 382.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0003934/0.6001, allocations: 142 kB / 0.5179 GB, free: 87.29 MB / 382.1 MB Notification: Performance of SimCode: time 6.71e-07/0.6001, allocations: 3.969 kB / 0.5179 GB, free: 87.29 MB / 382.1 MB Notification: Performance of Templates: time 0.03987/0.64, allocations: 39.54 MB / 0.5565 GB, free: 49.25 MB / 382.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)