Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr VehicleInterfaces_VehicleInterfaces.Examples.ConventionalAutomaticVehicleExternalDriver.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.ConventionalAutomaticVehicleExternalDriver,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="VehicleInterfaces_VehicleInterfaces.Examples.ConventionalAutomaticVehicleExternalDriver") translateModel(VehicleInterfaces.Examples.ConventionalAutomaticVehicleExternalDriver,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="VehicleInterfaces_VehicleInterfaces.Examples.ConventionalAutomaticVehicleExternalDriver") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001453/0.001453, allocations: 105.1 kB / 16.41 MB, free: 6.41 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.001425/0.001425, allocations: 189.7 kB / 17.35 MB, free: 5.695 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.346/1.346, allocations: 222.9 MB / 241 MB, free: 15.16 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/VehicleInterfaces 2.0.1-master/package.mo): time 0.04174/0.04174, allocations: 7.996 MB / 299.2 MB, free: 7.141 MB / 238.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001163/0.001163, allocations: 67.89 kB / 413.7 MB, free: 23 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1062/0.1074, allocations: 51.21 MB / 465 MB, free: 3.738 MB / 334.1 MB Notification: Performance of NFInst.instantiate(VehicleInterfaces.Examples.ConventionalAutomaticVehicleExternalDriver): time 0.03368/0.1411, allocations: 21.85 MB / 486.8 MB, free: 13.8 MB / 366.1 MB Notification: Performance of NFInst.instExpressions: time 0.01706/0.1582, allocations: 5.867 MB / 492.7 MB, free: 7.914 MB / 366.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.006271/0.1645, allocations: 175.5 kB / 492.8 MB, free: 7.742 MB / 366.1 MB Notification: Performance of NFTyping.typeComponents: time 0.003562/0.1682, allocations: 0.8647 MB / 493.7 MB, free: 6.871 MB / 366.1 MB Notification: Performance of NFTyping.typeBindings: time 0.003663/0.1718, allocations: 0.7127 MB / 494.4 MB, free: 6.152 MB / 366.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.01163/0.1835, allocations: 4.341 MB / 498.8 MB, free: 1.801 MB / 366.1 MB Notification: Performance of NFFlatten.flatten: time 0.006937/0.1905, allocations: 3.411 MB / 0.4904 GB, free: 14.38 MB / 382.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.00831/0.1988, allocations: 4.162 MB / 0.4945 GB, free: 10.14 MB / 382.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.002859/0.2017, allocations: 1.421 MB / 0.4959 GB, free: 8.715 MB / 382.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.002969/0.2047, allocations: 1.56 MB / 0.4974 GB, free: 7.148 MB / 382.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0008131/0.2055, allocations: 380 kB / 0.4977 GB, free: 6.777 MB / 382.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.001054/0.2066, allocations: 451.9 kB / 0.4982 GB, free: 6.336 MB / 382.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0009127/0.2075, allocations: 0.8334 MB / 0.499 GB, free: 5.5 MB / 382.1 MB Notification: Performance of NFVerifyModel.verify: time 0.002288/0.2098, allocations: 1.652 MB / 0.5006 GB, free: 3.84 MB / 382.1 MB Notification: Performance of NFConvertDAE.convert: time 0.2289/0.4388, allocations: 4.199 MB / 0.5047 GB, free: 15.08 MB / 382.1 MB Notification: Performance of FrontEnd - DAE generated: time 8.466e-06/0.4388, allocations: 0 / 0.5047 GB, free: 15.08 MB / 382.1 MB Notification: Performance of FrontEnd: time 1.844e-06/0.4388, allocations: 1.688 kB / 0.5047 GB, free: 15.08 MB / 382.1 MB Notification: Performance of Transformations before backend: time 0.0001968/0.439, allocations: 0 / 0.5047 GB, free: 15.08 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: 689 * Number of variables: 689 Notification: Performance of Generate backend data structure: time 0.006628/0.4457, allocations: 3.253 MB / 0.5079 GB, free: 13.75 MB / 382.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.034e-05/0.4457, allocations: 10.8 kB / 0.5079 GB, free: 13.75 MB / 382.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0005982/0.4463, allocations: 333.2 kB / 0.5082 GB, free: 13.58 MB / 382.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.002789/0.4491, allocations: 1.75 MB / 0.5099 GB, free: 13.08 MB / 382.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001384/0.4493, allocations: 199.9 kB / 0.5101 GB, free: 13.07 MB / 382.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0003651/0.4496, allocations: 275.5 kB / 0.5104 GB, free: 13.05 MB / 382.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.004728/0.4544, allocations: 2.856 MB / 0.5132 GB, free: 12.6 MB / 382.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0001129/0.4545, allocations: 29.19 kB / 0.5132 GB, free: 12.59 MB / 382.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0002168/0.4547, allocations: 110.4 kB / 0.5133 GB, free: 12.59 MB / 382.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0001382/0.4549, allocations: 123.1 kB / 0.5134 GB, free: 12.59 MB / 382.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.004087/0.459, allocations: 2.054 MB / 0.5154 GB, free: 12.55 MB / 382.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.01354/0.4725, allocations: 11.11 MB / 0.5263 GB, free: 7.113 MB / 382.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001485/0.4741, allocations: 0.9136 MB / 0.5272 GB, free: 6.719 MB / 382.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0008476/0.4749, allocations: 0.5618 MB / 0.5277 GB, free: 6.469 MB / 382.1 MB Notification: Performance of preOpt evalFunc (simulation): time 6.903e-05/0.475, allocations: 17.64 kB / 0.5277 GB, free: 6.461 MB / 382.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.725e-05/0.475, allocations: 47.44 kB / 0.5278 GB, free: 6.414 MB / 382.1 MB Notification: Performance of pre-optimization done (n=99): time 2.936e-06/0.475, allocations: 0 / 0.5278 GB, free: 6.414 MB / 382.1 MB Notification: Performance of matching and sorting (n=125): time 0.01081/0.4859, allocations: 5.71 MB / 0.5333 GB, free: 3.348 MB / 382.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.617e-05/0.4859, allocations: 90.77 kB / 0.5334 GB, free: 3.254 MB / 382.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.002342/0.4883, allocations: 2.033 MB / 0.5354 GB, free: 2.461 MB / 382.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0001368/0.4884, allocations: 74.17 kB / 0.5355 GB, free: 2.402 MB / 382.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0007613/0.4892, allocations: 1.426 MB / 0.5369 GB, free: 1.301 MB / 382.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0002839/0.4895, allocations: 444 kB / 0.5373 GB, free: 0.9805 MB / 382.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0005196/0.49, allocations: 449.2 kB / 0.5377 GB, free: 0.7578 MB / 382.1 MB Notification: Performance of setup shared object (initialization): time 4.362e-05/0.4901, allocations: 310.2 kB / 0.538 GB, free: 464 kB / 382.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001074/0.4911, allocations: 0.7126 MB / 0.5387 GB, free: 184 kB / 382.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001943/0.4931, allocations: 1.705 MB / 0.5404 GB, free: 14.7 MB / 398.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.002707/0.4958, allocations: 2.301 MB / 0.5426 GB, free: 12.8 MB / 398.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.609e-05/0.4959, allocations: 8.281 kB / 0.5426 GB, free: 12.8 MB / 398.1 MB Notification: Performance of matching and sorting (n=290) (initialization): time 0.004613/0.5005, allocations: 2.849 MB / 0.5454 GB, free: 11.38 MB / 398.1 MB Notification: Performance of prepare postOptimizeDAE: time 3.635e-05/0.5005, allocations: 20 kB / 0.5454 GB, free: 11.36 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.055e-05/0.5006, allocations: 41.5 kB / 0.5455 GB, free: 11.33 MB / 398.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.002177/0.5028, allocations: 1.363 MB / 0.5468 GB, free: 9.984 MB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001294/0.5041, allocations: 446 kB / 0.5472 GB, free: 9.586 MB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002296/0.5064, allocations: 1.718 MB / 0.5489 GB, free: 7.859 MB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.002045/0.5085, allocations: 219.5 kB / 0.5491 GB, free: 7.645 MB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.000166/0.5086, allocations: 108 kB / 0.5492 GB, free: 7.539 MB / 398.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 150 * Number of states: 0 () * Number of discrete variables: 57 (driverEnvironment.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 (246): * Single equations (assignments): 245 * 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.001123/0.5098, allocations: 0.6621 MB / 0.5499 GB, free: 6.906 MB / 398.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0003798/0.5101, allocations: 225.1 kB / 0.5501 GB, free: 6.684 MB / 398.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.003168/0.5133, allocations: 1.753 MB / 0.5518 GB, free: 4.926 MB / 398.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.177e-05/0.5133, allocations: 12 kB / 0.5518 GB, free: 4.914 MB / 398.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.683e-06/0.5134, allocations: 4 kB / 0.5518 GB, free: 4.91 MB / 398.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.325e-05/0.5134, allocations: 11.97 kB / 0.5518 GB, free: 4.898 MB / 398.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.007652/0.521, allocations: 4.504 MB / 0.5562 GB, free: 360 kB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 6.513e-06/0.5211, allocations: 0 / 0.5562 GB, free: 360 kB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0006123/0.5217, allocations: 162 kB / 0.5564 GB, free: 208 kB / 398.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.001889/0.5236, allocations: 1.229 MB / 0.5576 GB, free: 14.97 MB / 414.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 9.753e-05/0.5237, allocations: 39.95 kB / 0.5576 GB, free: 14.93 MB / 414.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.002036/0.5258, allocations: 1.516 MB / 0.5591 GB, free: 13.39 MB / 414.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.236e-06/0.5258, allocations: 0 / 0.5591 GB, free: 13.39 MB / 414.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.004286/0.5301, allocations: 2.615 MB / 0.5617 GB, free: 10.76 MB / 414.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.001023/0.5311, allocations: 438.2 kB / 0.5621 GB, free: 10.31 MB / 414.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0002858/0.5314, allocations: 51.75 kB / 0.5621 GB, free: 10.26 MB / 414.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0008808/0.5323, allocations: 95.94 kB / 0.5622 GB, free: 10.17 MB / 414.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.000419/0.5327, allocations: 207.6 kB / 0.5624 GB, free: 9.965 MB / 414.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 8.453e-05/0.5328, allocations: 47.95 kB / 0.5625 GB, free: 9.918 MB / 414.1 MB Notification: Performance of sorting global known variables: time 0.00182/0.5346, allocations: 1.3 MB / 0.5637 GB, free: 8.605 MB / 414.1 MB Notification: Performance of sort global known variables: time 3.81e-07/0.5346, allocations: 0 / 0.5637 GB, free: 8.605 MB / 414.1 MB Notification: Performance of remove unused functions: time 0.001863/0.5365, allocations: 480 kB / 0.5642 GB, free: 8.137 MB / 414.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,driverEnvironment.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.0003216/0.5368, allocations: 190 kB / 0.5644 GB, free: 7.949 MB / 414.1 MB Notification: Performance of simCode: created initialization part: time 0.003116/0.54, allocations: 1.824 MB / 0.5661 GB, free: 6.234 MB / 414.1 MB Notification: Performance of simCode: created event and clocks part: time 3.246e-06/0.54, allocations: 0 / 0.5661 GB, free: 6.234 MB / 414.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0015/0.5415, allocations: 0.809 MB / 0.5669 GB, free: 5.445 MB / 414.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001833/0.5433, allocations: 346.8 kB / 0.5673 GB, free: 5.113 MB / 414.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.007993/0.5513, allocations: 4.472 MB / 0.5716 GB, free: 0.6133 MB / 414.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001217/0.5526, allocations: 1.647 MB / 0.5732 GB, free: 14.94 MB / 430.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.000421/0.553, allocations: 147.4 kB / 0.5734 GB, free: 14.8 MB / 430.1 MB Notification: Performance of SimCode: time 5.21e-07/0.553, allocations: 0 / 0.5734 GB, free: 14.8 MB / 430.1 MB Notification: Performance of Templates: time 0.05678/0.6098, allocations: 41.75 MB / 0.6142 GB, free: 5.086 MB / 462.1 MB make -j1 -f VehicleInterfaces_VehicleInterfaces.Examples.ConventionalAutomaticVehicleExternalDriver.makefile (rm -f VehicleInterfaces_VehicleInterfaces.Examples.ConventionalAutomaticVehicleExternalDriver.pipe ; mkfifo VehicleInterfaces_VehicleInterfaces.Examples.ConventionalAutomaticVehicleExternalDriver.pipe ; head -c 1048576 < VehicleInterfaces_VehicleInterfaces.Examples.ConventionalAutomaticVehicleExternalDriver.pipe >> ../files/VehicleInterfaces_VehicleInterfaces.Examples.ConventionalAutomaticVehicleExternalDriver.sim & ./VehicleInterfaces_VehicleInterfaces.Examples.ConventionalAutomaticVehicleExternalDriver -abortSlowSimulation -alarm=480 -lv LOG_STATS > VehicleInterfaces_VehicleInterfaces.Examples.ConventionalAutomaticVehicleExternalDriver.pipe 2>&1)