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.005055/0.005055, allocations: 101.6 kB / 15.73 MB, free: 6.055 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.001164/0.001164, allocations: 200.3 kB / 16.68 MB, free: 5.969 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.474/1.474, allocations: 222.9 MB / 240.4 MB, free: 15.14 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/VehicleInterfaces 2.0.1-master/package.mo): time 0.07898/0.07898, allocations: 7.998 MB / 298.5 MB, free: 7.098 MB / 238.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001216/0.001216, allocations: 67.84 kB / 413.1 MB, free: 22.85 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1073/0.1085, allocations: 51.21 MB / 464.3 MB, free: 3.59 MB / 334.1 MB Notification: Performance of NFInst.instantiate(VehicleInterfaces.Examples.ConventionalAutomaticVehicle): time 0.02358/0.1322, allocations: 21.41 MB / 485.7 MB, free: 14.1 MB / 366.1 MB Notification: Performance of NFInst.instExpressions: time 0.0135/0.1457, allocations: 5.733 MB / 491.4 MB, free: 8.344 MB / 366.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.006044/0.1518, allocations: 171.5 kB / 491.6 MB, free: 8.176 MB / 366.1 MB Notification: Performance of NFTyping.typeComponents: time 0.003141/0.155, allocations: 0.8453 MB / 492.4 MB, free: 7.324 MB / 366.1 MB Notification: Performance of NFTyping.typeBindings: time 0.003294/0.1583, allocations: 0.6818 MB / 493.1 MB, free: 6.637 MB / 366.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.008738/0.1671, allocations: 4.29 MB / 497.4 MB, free: 2.336 MB / 366.1 MB Notification: Performance of NFFlatten.flatten: time 0.005787/0.1729, allocations: 3.267 MB / 0.4889 GB, free: 15.05 MB / 382.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.008252/0.1812, allocations: 3.952 MB / 0.4928 GB, free: 11.04 MB / 382.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.002529/0.1837, allocations: 1.343 MB / 0.4941 GB, free: 9.688 MB / 382.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.003079/0.1868, allocations: 1.494 MB / 0.4956 GB, free: 8.188 MB / 382.1 MB Notification: Performance of NFPackage.collectConstants: time 0.00117/0.188, allocations: 360 kB / 0.4959 GB, free: 7.836 MB / 382.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.001543/0.1896, allocations: 427.9 kB / 0.4963 GB, free: 7.418 MB / 382.1 MB Notification: Performance of NFScalarize.scalarize: time 0.001271/0.1909, allocations: 0.7905 MB / 0.4971 GB, free: 6.625 MB / 382.1 MB Notification: Performance of NFVerifyModel.verify: time 0.003041/0.1939, allocations: 1.563 MB / 0.4986 GB, free: 5.055 MB / 382.1 MB Notification: Performance of NFConvertDAE.convert: time 0.004849/0.1988, allocations: 3.999 MB / 0.5025 GB, free: 1.043 MB / 382.1 MB Notification: Performance of FrontEnd - DAE generated: time 6.001e-06/0.1988, allocations: 4 kB / 0.5025 GB, free: 1.039 MB / 382.1 MB Notification: Performance of FrontEnd: time 2.655e-06/0.1988, allocations: 0 / 0.5025 GB, free: 1.039 MB / 382.1 MB Notification: Performance of Transformations before backend: time 5.414e-05/0.1989, allocations: 0 / 0.5025 GB, free: 1.039 MB / 382.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.2635/0.4624, allocations: 3.094 MB / 0.5055 GB, free: 47.51 MB / 382.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.299e-05/0.4625, allocations: 9.625 kB / 0.5056 GB, free: 47.51 MB / 382.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0007185/0.4632, allocations: 313.9 kB / 0.5059 GB, free: 47.34 MB / 382.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.004154/0.4674, allocations: 1.693 MB / 0.5075 GB, free: 46.42 MB / 382.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0002064/0.4676, allocations: 180.5 kB / 0.5077 GB, free: 46.34 MB / 382.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0005897/0.4682, allocations: 255.7 kB / 0.5079 GB, free: 46.25 MB / 382.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.006027/0.4742, allocations: 2.661 MB / 0.5105 GB, free: 44.99 MB / 382.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 8.8e-05/0.4743, allocations: 24.39 kB / 0.5105 GB, free: 44.98 MB / 382.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001929/0.4745, allocations: 99.64 kB / 0.5106 GB, free: 44.9 MB / 382.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0001551/0.4747, allocations: 115.8 kB / 0.5108 GB, free: 44.89 MB / 382.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.003937/0.4786, allocations: 1.967 MB / 0.5127 GB, free: 44.18 MB / 382.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.01421/0.4929, allocations: 10.11 MB / 0.5225 GB, free: 36.79 MB / 382.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.00183/0.4947, allocations: 0.9187 MB / 0.5234 GB, free: 36.32 MB / 382.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0009811/0.4957, allocations: 0.5623 MB / 0.524 GB, free: 36.02 MB / 382.1 MB Notification: Performance of preOpt evalFunc (simulation): time 6.427e-05/0.4958, allocations: 19.52 kB / 0.524 GB, free: 36.02 MB / 382.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.689e-05/0.4958, allocations: 44.39 kB / 0.524 GB, free: 35.97 MB / 382.1 MB Notification: Performance of pre-optimization done (n=99): time 2.836e-06/0.4959, allocations: 2.656 kB / 0.5241 GB, free: 35.97 MB / 382.1 MB Notification: Performance of matching and sorting (n=125): time 0.01093/0.5068, allocations: 5.642 MB / 0.5296 GB, free: 32.46 MB / 382.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.854e-05/0.5069, allocations: 89.95 kB / 0.5296 GB, free: 32.37 MB / 382.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001984/0.5088, allocations: 1.896 MB / 0.5315 GB, free: 31.32 MB / 382.1 MB Notification: Performance of collectPreVariables (initialization): time 9.882e-05/0.509, allocations: 69.53 kB / 0.5316 GB, free: 31.26 MB / 382.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0007322/0.5097, allocations: 1.342 MB / 0.5329 GB, free: 30 MB / 382.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0002572/0.51, allocations: 425.7 kB / 0.5333 GB, free: 29.59 MB / 382.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0004911/0.5105, allocations: 427.5 kB / 0.5337 GB, free: 29.17 MB / 382.1 MB Notification: Performance of setup shared object (initialization): time 4.781e-05/0.5105, allocations: 301.1 kB / 0.534 GB, free: 28.87 MB / 382.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.000983/0.5115, allocations: 0.6992 MB / 0.5347 GB, free: 28.17 MB / 382.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001295/0.5128, allocations: 1.58 MB / 0.5362 GB, free: 26.16 MB / 382.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.002059/0.5149, allocations: 2.171 MB / 0.5383 GB, free: 23.58 MB / 382.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.046e-05/0.5149, allocations: 8 kB / 0.5383 GB, free: 23.57 MB / 382.1 MB Notification: Performance of matching and sorting (n=275) (initialization): time 0.00389/0.5188, allocations: 2.745 MB / 0.541 GB, free: 20.82 MB / 382.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.754e-05/0.5188, allocations: 23.94 kB / 0.541 GB, free: 20.79 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.527e-05/0.5189, allocations: 32 kB / 0.5411 GB, free: 20.76 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001727/0.5206, allocations: 1.348 MB / 0.5424 GB, free: 19.43 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001083/0.5217, allocations: 421.5 kB / 0.5428 GB, free: 19.02 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001887/0.5236, allocations: 1.711 MB / 0.5445 GB, free: 17.28 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001891/0.5255, allocations: 215.4 kB / 0.5447 GB, free: 17.07 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001231/0.5256, allocations: 104 kB / 0.5448 GB, free: 16.97 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.001026/0.5267, allocations: 0.6299 MB / 0.5454 GB, free: 16.33 MB / 382.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002772/0.527, allocations: 217.2 kB / 0.5456 GB, free: 16.11 MB / 382.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.002753/0.5297, allocations: 1.742 MB / 0.5473 GB, free: 14.36 MB / 382.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.083e-05/0.5297, allocations: 15.98 kB / 0.5473 GB, free: 14.34 MB / 382.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.174e-06/0.5297, allocations: 4 kB / 0.5473 GB, free: 14.34 MB / 382.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.075e-05/0.5298, allocations: 3.984 kB / 0.5473 GB, free: 14.33 MB / 382.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.006574/0.5363, allocations: 4.429 MB / 0.5516 GB, free: 9.82 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 7.825e-06/0.5364, allocations: 0 / 0.5516 GB, free: 9.82 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0005744/0.537, allocations: 163.7 kB / 0.5518 GB, free: 9.66 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.001575/0.5385, allocations: 1.23 MB / 0.553 GB, free: 8.43 MB / 382.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 9.568e-05/0.5387, allocations: 35.95 kB / 0.553 GB, free: 8.395 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001783/0.5404, allocations: 1.519 MB / 0.5545 GB, free: 6.848 MB / 382.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.617e-06/0.5405, allocations: 0 / 0.5545 GB, free: 6.848 MB / 382.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.003777/0.5442, allocations: 2.596 MB / 0.557 GB, free: 4.215 MB / 382.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0008279/0.5451, allocations: 422.2 kB / 0.5574 GB, free: 3.781 MB / 382.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0005103/0.5456, allocations: 51.98 kB / 0.5575 GB, free: 3.73 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001131/0.5467, allocations: 87.89 kB / 0.5576 GB, free: 3.645 MB / 382.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0003782/0.5471, allocations: 200.8 kB / 0.5578 GB, free: 3.449 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 8.954e-05/0.5472, allocations: 47.95 kB / 0.5578 GB, free: 3.402 MB / 382.1 MB Notification: Performance of sorting global known variables: time 0.002345/0.5496, allocations: 1.218 MB / 0.559 GB, free: 2.168 MB / 382.1 MB Notification: Performance of sort global known variables: time 1.5e-07/0.5496, allocations: 6.344 kB / 0.559 GB, free: 2.164 MB / 382.1 MB Notification: Performance of remove unused functions: time 0.00293/0.5525, allocations: 462.6 kB / 0.5594 GB, free: 1.715 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.0005349/0.5531, allocations: 195.4 kB / 0.5596 GB, free: 1.52 MB / 382.1 MB Notification: Performance of simCode: created initialization part: time 0.003479/0.5566, allocations: 1.773 MB / 0.5614 GB, free: 15.75 MB / 398.1 MB Notification: Performance of simCode: created event and clocks part: time 4.057e-06/0.5566, allocations: 0 / 0.5614 GB, free: 15.75 MB / 398.1 MB Notification: Performance of simCode: created simulation system equations: time 0.001818/0.5584, allocations: 0.815 MB / 0.5622 GB, free: 14.93 MB / 398.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002274/0.5607, allocations: 336 kB / 0.5625 GB, free: 14.61 MB / 398.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01019/0.5709, allocations: 4.181 MB / 0.5666 GB, free: 10.39 MB / 398.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.00194/0.5729, allocations: 1.592 MB / 0.5681 GB, free: 8.77 MB / 398.1 MB Notification: Performance of simCode: alias equations: time 0.001201/0.5741, allocations: 312.7 kB / 0.5684 GB, free: 8.461 MB / 398.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0004347/0.5746, allocations: 135.4 kB / 0.5685 GB, free: 8.328 MB / 398.1 MB Notification: Performance of SimCode: time 7.61e-07/0.5746, allocations: 0 / 0.5685 GB, free: 8.328 MB / 398.1 MB Notification: Performance of Templates: time 0.05538/0.63, allocations: 29.08 MB / 0.597 GB, free: 11.39 MB / 430.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)