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.000948/0.0009481, allocations: 86.72 kB / 15.06 MB, free: 1.09 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.0009876/0.0009876, allocations: 168.7 kB / 15.95 MB, free: 204 kB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.49/1.49, allocations: 223.3 MB / 240 MB, free: 5.426 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/VehicleInterfaces 2.0.1-master/package.mo): time 0.1875/0.1875, allocations: 7.988 MB / 299.1 MB, free: 3.305 MB / 238.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0004643/0.0004645, allocations: 8.219 kB / 361.8 MB, free: 14.67 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1399/0.1404, allocations: 52.21 MB / 414 MB, free: 10.41 MB / 350.1 MB Notification: Performance of NFInst.instantiate(VehicleInterfaces.Examples.ConventionalAutomaticVehicle): time 0.3628/0.5032, allocations: 86.08 MB / 0.4883 GB, free: 3.984 MB / 366.1 MB Notification: Performance of NFInst.instExpressions: time 0.04545/0.5487, allocations: 17.45 MB / 0.5054 GB, free: 7.852 MB / 382.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.02463/0.5734, allocations: 444.6 kB / 0.5058 GB, free: 7.781 MB / 382.1 MB Notification: Performance of NFTyping.typeComponents: time 0.01327/0.5867, allocations: 3.373 MB / 0.5091 GB, free: 6.52 MB / 382.1 MB Notification: Performance of NFTyping.typeBindings: time 0.03234/0.6191, allocations: 8.375 MB / 0.5173 GB, free: 2.367 MB / 382.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.007313/0.6265, allocations: 0.7149 MB / 0.518 GB, free: 1.844 MB / 382.1 MB Notification: Performance of NFFlatten.flatten: time 0.00699/0.6335, allocations: 2.85 MB / 0.5208 GB, free: 15.16 MB / 398.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.007176/0.6407, allocations: 2.322 MB / 0.523 GB, free: 12.84 MB / 398.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.002439/0.6431, allocations: 0.9801 MB / 0.524 GB, free: 11.86 MB / 398.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.002789/0.6459, allocations: 1.139 MB / 0.5251 GB, free: 10.71 MB / 398.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0008258/0.6468, allocations: 116 kB / 0.5252 GB, free: 10.6 MB / 398.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.00134/0.6481, allocations: 167.9 kB / 0.5254 GB, free: 10.44 MB / 398.1 MB Notification: Performance of NFScalarize.scalarize: time 0.001175/0.6493, allocations: 0.5019 MB / 0.5259 GB, free: 9.934 MB / 398.1 MB Notification: Performance of NFVerifyModel.verify: time 0.001439/0.6508, allocations: 0.5431 MB / 0.5264 GB, free: 9.383 MB / 398.1 MB Notification: Performance of NFConvertDAE.convert: time 0.005128/0.6559, allocations: 3.008 MB / 0.5293 GB, free: 6.367 MB / 398.1 MB Notification: Performance of FrontEnd - DAE generated: time 1.182e-05/0.656, allocations: 4 kB / 0.5293 GB, free: 6.363 MB / 398.1 MB Notification: Performance of FrontEnd: time 3.266e-06/0.656, allocations: 0 / 0.5293 GB, free: 6.363 MB / 398.1 MB Notification: Performance of Transformations before backend: time 0.0002721/0.6563, allocations: 4 kB / 0.5293 GB, free: 6.359 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.007698/0.664, allocations: 2.627 MB / 0.5319 GB, free: 3.668 MB / 398.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.395e-05/0.664, allocations: 15.95 kB / 0.5319 GB, free: 3.652 MB / 398.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.00103/0.6651, allocations: 318.5 kB / 0.5322 GB, free: 3.34 MB / 398.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.003073/0.6682, allocations: 1.574 MB / 0.5338 GB, free: 1.711 MB / 398.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001722/0.6684, allocations: 184.8 kB / 0.5339 GB, free: 1.527 MB / 398.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.000688/0.6691, allocations: 247.8 kB / 0.5342 GB, free: 1.285 MB / 398.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.006026/0.6751, allocations: 2.66 MB / 0.5368 GB, free: 14.48 MB / 414.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.000182/0.6753, allocations: 27.73 kB / 0.5368 GB, free: 14.45 MB / 414.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0003318/0.6756, allocations: 99.98 kB / 0.5369 GB, free: 14.36 MB / 414.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0001421/0.6758, allocations: 116 kB / 0.537 GB, free: 14.24 MB / 414.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.004625/0.6804, allocations: 1.956 MB / 0.5389 GB, free: 12.27 MB / 414.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.01568/0.6961, allocations: 10.26 MB / 0.5489 GB, free: 1.648 MB / 414.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001679/0.6979, allocations: 0.92 MB / 0.5498 GB, free: 0.7109 MB / 414.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.000943/0.6988, allocations: 0.5603 MB / 0.5504 GB, free: 152 kB / 414.1 MB Notification: Performance of preOpt evalFunc (simulation): time 8.559e-05/0.6989, allocations: 20.98 kB / 0.5504 GB, free: 132 kB / 414.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.607e-05/0.699, allocations: 43.5 kB / 0.5504 GB, free: 80 kB / 414.1 MB Notification: Performance of pre-optimization done (n=99): time 3.126e-06/0.699, allocations: 4 kB / 0.5504 GB, free: 76 kB / 414.1 MB Notification: Performance of matching and sorting (n=125): time 0.01107/0.71, allocations: 5.805 MB / 0.5561 GB, free: 10.14 MB / 430.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.991e-05/0.7102, allocations: 98.14 kB / 0.5562 GB, free: 10.02 MB / 430.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.002446/0.7126, allocations: 1.871 MB / 0.558 GB, free: 8.117 MB / 430.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0001354/0.7128, allocations: 69.69 kB / 0.5581 GB, free: 8.043 MB / 430.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0009828/0.7138, allocations: 1.334 MB / 0.5594 GB, free: 6.691 MB / 430.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0003803/0.7141, allocations: 434.2 kB / 0.5598 GB, free: 6.262 MB / 430.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 9.432e-05/0.7142, allocations: 47.98 kB / 0.5599 GB, free: 6.215 MB / 430.1 MB Notification: Performance of setup shared object (initialization): time 0.0002863/0.7145, allocations: 386.2 kB / 0.5602 GB, free: 5.832 MB / 430.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001316/0.7159, allocations: 0.6992 MB / 0.5609 GB, free: 5.129 MB / 430.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001782/0.7176, allocations: 1.578 MB / 0.5624 GB, free: 3.125 MB / 430.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001261/0.7189, allocations: 0.8234 MB / 0.5633 GB, free: 2.301 MB / 430.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.2e-05/0.7189, allocations: 8 kB / 0.5633 GB, free: 2.293 MB / 430.1 MB Notification: Performance of matching and sorting (n=275) (initialization): time 0.004625/0.7236, allocations: 2.774 MB / 0.566 GB, free: 15.5 MB / 446.1 MB Notification: Performance of prepare postOptimizeDAE: time 3.444e-05/0.7236, allocations: 20 kB / 0.566 GB, free: 15.48 MB / 446.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.864e-05/0.7237, allocations: 28 kB / 0.566 GB, free: 15.46 MB / 446.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.002084/0.7257, allocations: 1.345 MB / 0.5673 GB, free: 14.11 MB / 446.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001273/0.727, allocations: 419.2 kB / 0.5677 GB, free: 13.7 MB / 446.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002127/0.7292, allocations: 1.723 MB / 0.5694 GB, free: 11.95 MB / 446.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001662/0.7308, allocations: 259.5 kB / 0.5697 GB, free: 11.7 MB / 446.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001396/0.731, allocations: 108 kB / 0.5698 GB, free: 11.59 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_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 (231): * Single equations (assignments): 230 * 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 41} Notification: Performance of prepare postOptimizeDAE: time 0.001083/0.7321, allocations: 0.6221 MB / 0.5704 GB, free: 10.96 MB / 446.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002949/0.7324, allocations: 217.2 kB / 0.5706 GB, free: 10.74 MB / 446.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.003154/0.7356, allocations: 1.746 MB / 0.5723 GB, free: 8.988 MB / 446.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.113e-05/0.7356, allocations: 15.94 kB / 0.5723 GB, free: 8.973 MB / 446.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.332e-06/0.7356, allocations: 0 / 0.5723 GB, free: 8.973 MB / 446.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.471e-05/0.7356, allocations: 11.92 kB / 0.5723 GB, free: 8.961 MB / 446.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.007188/0.7428, allocations: 4.53 MB / 0.5767 GB, free: 4.324 MB / 446.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 6.903e-06/0.7428, allocations: 0 / 0.5767 GB, free: 4.324 MB / 446.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0006234/0.7435, allocations: 155.8 kB / 0.5769 GB, free: 4.172 MB / 446.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.001815/0.7453, allocations: 1.226 MB / 0.5781 GB, free: 2.941 MB / 446.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 9.337e-05/0.7454, allocations: 39.97 kB / 0.5781 GB, free: 2.902 MB / 446.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.002045/0.7475, allocations: 1.521 MB / 0.5796 GB, free: 1.355 MB / 446.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.996e-06/0.7475, allocations: 3.938 kB / 0.5796 GB, free: 1.352 MB / 446.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.2205/0.968, allocations: 2.59 MB / 0.5821 GB, free: 127.6 MB / 446.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.001152/0.9692, allocations: 427.3 kB / 0.5825 GB, free: 127.5 MB / 446.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0002947/0.9695, allocations: 47.19 kB / 0.5826 GB, free: 127.5 MB / 446.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0009129/0.9705, allocations: 133.1 kB / 0.5827 GB, free: 127.5 MB / 446.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0004769/0.9709, allocations: 231.4 kB / 0.5829 GB, free: 127.5 MB / 446.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001171/0.9711, allocations: 48.64 kB / 0.583 GB, free: 127.5 MB / 446.1 MB Notification: Performance of sorting global known variables: time 0.001957/0.973, allocations: 1.206 MB / 0.5842 GB, free: 127.4 MB / 446.1 MB Notification: Performance of sort global known variables: time 1.31e-07/0.973, allocations: 0 / 0.5842 GB, free: 127.4 MB / 446.1 MB Notification: Performance of remove unused functions: time 0.002209/0.9753, allocations: 463 kB / 0.5846 GB, free: 127.4 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 (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 34} Notification: Performance of Backend phase and start with SimCode phase: time 0.0004673/0.9757, allocations: 180.9 kB / 0.5848 GB, free: 127.3 MB / 446.1 MB Notification: Performance of simCode: created initialization part: time 0.003836/0.9796, allocations: 1.775 MB / 0.5865 GB, free: 127.2 MB / 446.1 MB Notification: Performance of simCode: created event and clocks part: time 5.52e-06/0.9796, allocations: 0 / 0.5865 GB, free: 127.2 MB / 446.1 MB Notification: Performance of simCode: created simulation system equations: time 0.001656/0.9813, allocations: 0.809 MB / 0.5873 GB, free: 127.2 MB / 446.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001883/0.9832, allocations: 297.4 kB / 0.5876 GB, free: 127.2 MB / 446.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.008828/0.992, allocations: 5.146 MB / 0.5926 GB, free: 124.8 MB / 446.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001233/0.9933, allocations: 1.584 MB / 0.5941 GB, free: 124.1 MB / 446.1 MB Notification: Performance of simCode: alias equations: time 0.001226/0.9945, allocations: 314.5 kB / 0.5944 GB, free: 124 MB / 446.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002538/0.9948, allocations: 119.3 kB / 0.5946 GB, free: 124 MB / 446.1 MB Notification: Performance of SimCode: time 1.242e-06/0.9948, allocations: 0 / 0.5946 GB, free: 124 MB / 446.1 MB Notification: Performance of Templates: time 0.05077/1.046, allocations: 26.27 MB / 0.6202 GB, free: 120.1 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)