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.007725/0.007725, allocations: 98.3 kB / 15.73 MB, free: 5.977 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.0013/0.0013, allocations: 195.9 kB / 16.67 MB, free: 5.906 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.551/1.551, allocations: 222.9 MB / 240.3 MB, free: 15.09 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/VehicleInterfaces 2.0.1-master/package.mo): time 0.09177/0.09177, allocations: 7.996 MB / 298.5 MB, free: 7.117 MB / 238.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001156/0.001156, allocations: 63.89 kB / 413.1 MB, free: 22.88 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1152/0.1164, allocations: 51.22 MB / 464.3 MB, free: 3.617 MB / 334.1 MB Notification: Performance of NFInst.instantiate(VehicleInterfaces.Examples.ConventionalAutomaticVehicle): time 0.02347/0.1399, allocations: 21.41 MB / 485.7 MB, free: 14.12 MB / 366.1 MB Notification: Performance of NFInst.instExpressions: time 0.01614/0.1561, allocations: 5.727 MB / 491.4 MB, free: 8.375 MB / 366.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.006051/0.1622, allocations: 171.5 kB / 491.6 MB, free: 8.207 MB / 366.1 MB Notification: Performance of NFTyping.typeComponents: time 0.003447/0.1658, allocations: 0.8415 MB / 492.4 MB, free: 7.359 MB / 366.1 MB Notification: Performance of NFTyping.typeBindings: time 0.003575/0.1694, allocations: 0.6856 MB / 493.1 MB, free: 6.668 MB / 366.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.009307/0.1787, allocations: 4.29 MB / 497.4 MB, free: 2.367 MB / 366.1 MB Notification: Performance of NFFlatten.flatten: time 0.006194/0.1849, allocations: 3.271 MB / 0.4889 GB, free: 15.08 MB / 382.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.00788/0.1928, allocations: 3.948 MB / 0.4928 GB, free: 11.07 MB / 382.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.002393/0.1953, allocations: 1.331 MB / 0.4941 GB, free: 9.73 MB / 382.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.003248/0.1985, allocations: 1.494 MB / 0.4955 GB, free: 8.23 MB / 382.1 MB Notification: Performance of NFPackage.collectConstants: time 0.00119/0.1997, allocations: 360 kB / 0.4959 GB, free: 7.879 MB / 382.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.001534/0.2013, allocations: 427.9 kB / 0.4963 GB, free: 7.461 MB / 382.1 MB Notification: Performance of NFScalarize.scalarize: time 0.001324/0.2026, allocations: 0.7984 MB / 0.4971 GB, free: 6.66 MB / 382.1 MB Notification: Performance of NFVerifyModel.verify: time 0.003464/0.2061, allocations: 1.559 MB / 0.4986 GB, free: 5.094 MB / 382.1 MB Notification: Performance of NFConvertDAE.convert: time 0.004963/0.2111, allocations: 4.012 MB / 0.5025 GB, free: 1.066 MB / 382.1 MB Notification: Performance of FrontEnd - DAE generated: time 8.235e-06/0.2111, allocations: 4 kB / 0.5025 GB, free: 1.062 MB / 382.1 MB Notification: Performance of FrontEnd: time 2.995e-06/0.2111, allocations: 0 / 0.5025 GB, free: 1.062 MB / 382.1 MB Notification: Performance of Transformations before backend: time 5.835e-05/0.2112, allocations: 0 / 0.5025 GB, free: 1.062 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.2376/0.4488, allocations: 3.168 MB / 0.5056 GB, free: 47.51 MB / 382.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.271e-05/0.4488, allocations: 12.88 kB / 0.5056 GB, free: 47.51 MB / 382.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0005549/0.4494, allocations: 327.8 kB / 0.5059 GB, free: 47.34 MB / 382.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.002703/0.4521, allocations: 1.711 MB / 0.5076 GB, free: 46.52 MB / 382.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001437/0.4522, allocations: 181.1 kB / 0.5078 GB, free: 46.44 MB / 382.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0003584/0.4526, allocations: 254.3 kB / 0.508 GB, free: 46.35 MB / 382.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.004505/0.4571, allocations: 2.667 MB / 0.5106 GB, free: 45.09 MB / 382.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 9.282e-05/0.4572, allocations: 23.28 kB / 0.5107 GB, free: 45.07 MB / 382.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.000181/0.4574, allocations: 98.75 kB / 0.5107 GB, free: 45 MB / 382.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.000136/0.4576, allocations: 124.1 kB / 0.5109 GB, free: 44.99 MB / 382.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.003812/0.4614, allocations: 1.959 MB / 0.5128 GB, free: 44.27 MB / 382.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.01333/0.4747, allocations: 10.14 MB / 0.5227 GB, free: 36.94 MB / 382.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001584/0.4763, allocations: 0.911 MB / 0.5236 GB, free: 36.47 MB / 382.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0008542/0.4772, allocations: 0.5643 MB / 0.5241 GB, free: 36.18 MB / 382.1 MB Notification: Performance of preOpt evalFunc (simulation): time 8.309e-05/0.4773, allocations: 13.98 kB / 0.5241 GB, free: 36.18 MB / 382.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.576e-05/0.4773, allocations: 43.72 kB / 0.5242 GB, free: 36.12 MB / 382.1 MB Notification: Performance of pre-optimization done (n=99): time 2.745e-06/0.4773, allocations: 0 / 0.5242 GB, free: 36.12 MB / 382.1 MB Notification: Performance of matching and sorting (n=125): time 0.01072/0.4881, allocations: 5.736 MB / 0.5298 GB, free: 32.53 MB / 382.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.34e-05/0.4881, allocations: 97.75 kB / 0.5299 GB, free: 32.43 MB / 382.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.002047/0.4902, allocations: 1.893 MB / 0.5317 GB, free: 31.39 MB / 382.1 MB Notification: Performance of collectPreVariables (initialization): time 8.921e-05/0.4903, allocations: 65.5 kB / 0.5318 GB, free: 31.33 MB / 382.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0007487/0.491, allocations: 1.371 MB / 0.5331 GB, free: 30.05 MB / 382.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0002495/0.4913, allocations: 460.1 kB / 0.5336 GB, free: 29.61 MB / 382.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0004932/0.4918, allocations: 423.8 kB / 0.534 GB, free: 29.19 MB / 382.1 MB Notification: Performance of setup shared object (initialization): time 4.887e-05/0.4919, allocations: 313.1 kB / 0.5343 GB, free: 28.88 MB / 382.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0009813/0.4928, allocations: 0.6953 MB / 0.5349 GB, free: 28.18 MB / 382.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001293/0.4941, allocations: 1.579 MB / 0.5365 GB, free: 26.18 MB / 382.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.002009/0.4962, allocations: 2.163 MB / 0.5386 GB, free: 23.6 MB / 382.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 9.909e-06/0.4962, allocations: 8 kB / 0.5386 GB, free: 23.59 MB / 382.1 MB Notification: Performance of matching and sorting (n=275) (initialization): time 0.003911/0.5001, allocations: 2.764 MB / 0.5413 GB, free: 20.82 MB / 382.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.925e-05/0.5001, allocations: 19.94 kB / 0.5413 GB, free: 20.8 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.5e-05/0.5002, allocations: 32 kB / 0.5414 GB, free: 20.77 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001738/0.5019, allocations: 1.341 MB / 0.5427 GB, free: 19.44 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001052/0.503, allocations: 419.2 kB / 0.5431 GB, free: 19.03 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001838/0.5048, allocations: 1.719 MB / 0.5447 GB, free: 17.29 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001688/0.5065, allocations: 203.7 kB / 0.5449 GB, free: 17.09 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001274/0.5067, allocations: 112 kB / 0.545 GB, free: 16.98 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.0009407/0.5076, allocations: 0.6298 MB / 0.5457 GB, free: 16.34 MB / 382.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002452/0.5079, allocations: 234.4 kB / 0.5459 GB, free: 16.11 MB / 382.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.002741/0.5106, allocations: 1.75 MB / 0.5476 GB, free: 14.34 MB / 382.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.005e-05/0.5106, allocations: 12 kB / 0.5476 GB, free: 14.33 MB / 382.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.522e-06/0.5107, allocations: 0 / 0.5476 GB, free: 14.33 MB / 382.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.017e-05/0.5107, allocations: 3.984 kB / 0.5476 GB, free: 14.32 MB / 382.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.006234/0.5169, allocations: 4.419 MB / 0.5519 GB, free: 9.82 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 8.516e-06/0.5169, allocations: 4 kB / 0.5519 GB, free: 9.816 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0005611/0.5175, allocations: 159.9 kB / 0.5521 GB, free: 9.66 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.001558/0.5191, allocations: 1.226 MB / 0.5533 GB, free: 8.434 MB / 382.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 8.197e-05/0.5192, allocations: 43.95 kB / 0.5533 GB, free: 8.391 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001711/0.5209, allocations: 1.519 MB / 0.5548 GB, free: 6.844 MB / 382.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.216e-06/0.5209, allocations: 10.44 kB / 0.5548 GB, free: 6.836 MB / 382.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.003514/0.5244, allocations: 2.613 MB / 0.5574 GB, free: 4.191 MB / 382.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0006561/0.5251, allocations: 431.5 kB / 0.5578 GB, free: 3.75 MB / 382.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0002478/0.5253, allocations: 48 kB / 0.5578 GB, free: 3.703 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0008468/0.5262, allocations: 95.95 kB / 0.5579 GB, free: 3.609 MB / 382.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0003593/0.5266, allocations: 196.7 kB / 0.5581 GB, free: 3.418 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 7.74e-05/0.5266, allocations: 47.95 kB / 0.5581 GB, free: 3.371 MB / 382.1 MB Notification: Performance of sorting global known variables: time 0.001382/0.528, allocations: 1.222 MB / 0.5593 GB, free: 2.133 MB / 382.1 MB Notification: Performance of sort global known variables: time 1.41e-07/0.528, allocations: 0 / 0.5593 GB, free: 2.133 MB / 382.1 MB Notification: Performance of remove unused functions: time 0.001476/0.5295, allocations: 467.9 kB / 0.5598 GB, free: 1.676 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.0002982/0.5298, allocations: 189.2 kB / 0.56 GB, free: 1.48 MB / 382.1 MB Notification: Performance of simCode: created initialization part: time 0.002849/0.5327, allocations: 1.774 MB / 0.5617 GB, free: 15.71 MB / 398.1 MB Notification: Performance of simCode: created event and clocks part: time 4.117e-06/0.5327, allocations: 4 kB / 0.5617 GB, free: 15.7 MB / 398.1 MB Notification: Performance of simCode: created simulation system equations: time 0.001672/0.5344, allocations: 0.8127 MB / 0.5625 GB, free: 14.89 MB / 398.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001653/0.5361, allocations: 329.4 kB / 0.5628 GB, free: 14.58 MB / 398.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.008124/0.5442, allocations: 4.274 MB / 0.567 GB, free: 10.26 MB / 398.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001279/0.5455, allocations: 1.589 MB / 0.5685 GB, free: 8.641 MB / 398.1 MB Notification: Performance of simCode: alias equations: time 0.0009145/0.5464, allocations: 316.7 kB / 0.5688 GB, free: 8.328 MB / 398.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002666/0.5467, allocations: 139.3 kB / 0.569 GB, free: 8.191 MB / 398.1 MB Notification: Performance of SimCode: time 1.202e-06/0.5467, allocations: 0 / 0.569 GB, free: 8.191 MB / 398.1 MB Notification: Performance of Templates: time 0.04949/0.5962, allocations: 29.07 MB / 0.5974 GB, free: 11.27 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)