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.009348/0.009348, allocations: 100.4 kB / 15.87 MB, free: 5.863 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.001433/0.001433, allocations: 190.1 kB / 16.79 MB, free: 5.805 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.634/1.634, allocations: 222.9 MB / 240.5 MB, free: 4.547 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/VehicleInterfaces 2.0.1-master/package.mo): time 0.2246/0.2246, allocations: 7.985 MB / 298.6 MB, free: 2.324 MB / 238.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001541/0.001541, allocations: 63.91 kB / 360.6 MB, free: 15.15 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1613/0.1629, allocations: 51.2 MB / 411.8 MB, free: 11.9 MB / 350.1 MB Notification: Performance of NFInst.instantiate(VehicleInterfaces.Examples.ConventionalAutomaticVehicle): time 0.4406/0.6036, allocations: 94.74 MB / 0.4946 GB, free: 14.45 MB / 382.1 MB Notification: Performance of NFInst.instExpressions: time 0.06901/0.6726, allocations: 18.09 MB / 0.5123 GB, free: 2.113 MB / 382.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.03692/0.7096, allocations: 452.5 kB / 0.5127 GB, free: 2.039 MB / 382.1 MB Notification: Performance of NFTyping.typeComponents: time 0.004708/0.7144, allocations: 0.7003 MB / 0.5134 GB, free: 1.66 MB / 382.1 MB Notification: Performance of NFTyping.typeBindings: time 0.005173/0.7197, allocations: 0.5917 MB / 0.514 GB, free: 1.262 MB / 382.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.01134/0.7311, allocations: 4.263 MB / 0.5182 GB, free: 15 MB / 398.1 MB Notification: Performance of NFFlatten.flatten: time 0.009632/0.7407, allocations: 3.138 MB / 0.5212 GB, free: 12.16 MB / 398.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.01094/0.7517, allocations: 2.952 MB / 0.5241 GB, free: 9.441 MB / 398.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.00462/0.7564, allocations: 1.159 MB / 0.5252 GB, free: 8.414 MB / 398.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.005191/0.7617, allocations: 1.427 MB / 0.5266 GB, free: 7.277 MB / 398.1 MB Notification: Performance of NFPackage.collectConstants: time 0.001576/0.7633, allocations: 204 kB / 0.5268 GB, free: 7.078 MB / 398.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.001823/0.7652, allocations: 277.6 kB / 0.5271 GB, free: 6.824 MB / 398.1 MB Notification: Performance of NFScalarize.scalarize: time 0.001082/0.7663, allocations: 0.6556 MB / 0.5277 GB, free: 6.297 MB / 398.1 MB Notification: Performance of NFVerifyModel.verify: time 0.003253/0.7695, allocations: 1.412 MB / 0.5291 GB, free: 4.977 MB / 398.1 MB Notification: Performance of NFConvertDAE.convert: time 0.005637/0.7752, allocations: 3.109 MB / 0.5322 GB, free: 2.16 MB / 398.1 MB Notification: Performance of FrontEnd - DAE generated: time 1.183e-05/0.7753, allocations: 0 / 0.5322 GB, free: 2.16 MB / 398.1 MB Notification: Performance of FrontEnd: time 5.49e-06/0.7753, allocations: 3.984 kB / 0.5322 GB, free: 2.156 MB / 398.1 MB Notification: Performance of Transformations before backend: time 0.0001872/0.7755, allocations: 0 / 0.5322 GB, free: 2.156 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.01061/0.7861, allocations: 3.09 MB / 0.5352 GB, free: 15 MB / 414.1 MB Notification: Performance of prepare preOptimizeDAE: time 8.144e-05/0.7862, allocations: 12.03 kB / 0.5352 GB, free: 14.99 MB / 414.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0007947/0.787, allocations: 316 kB / 0.5355 GB, free: 14.68 MB / 414.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.00349/0.7905, allocations: 1.643 MB / 0.5371 GB, free: 12.98 MB / 414.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001894/0.7907, allocations: 176.8 kB / 0.5373 GB, free: 12.8 MB / 414.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0005049/0.7912, allocations: 255.8 kB / 0.5375 GB, free: 12.55 MB / 414.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.005889/0.7971, allocations: 2.672 MB / 0.5401 GB, free: 9.734 MB / 414.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0001063/0.7973, allocations: 27.73 kB / 0.5401 GB, free: 9.707 MB / 414.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001976/0.7975, allocations: 96 kB / 0.5402 GB, free: 9.613 MB / 414.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0001258/0.7976, allocations: 116 kB / 0.5403 GB, free: 9.5 MB / 414.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.004059/0.8017, allocations: 1.96 MB / 0.5423 GB, free: 7.523 MB / 414.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.01809/0.8198, allocations: 10.2 MB / 0.5522 GB, free: 12.96 MB / 430.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.002072/0.822, allocations: 0.9199 MB / 0.5531 GB, free: 12.02 MB / 430.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001171/0.8232, allocations: 0.5608 MB / 0.5537 GB, free: 11.46 MB / 430.1 MB Notification: Performance of preOpt evalFunc (simulation): time 9.684e-05/0.8233, allocations: 17 kB / 0.5537 GB, free: 11.44 MB / 430.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.761e-05/0.8234, allocations: 47.5 kB / 0.5537 GB, free: 11.39 MB / 430.1 MB Notification: Performance of pre-optimization done (n=99): time 4.478e-06/0.8234, allocations: 0 / 0.5537 GB, free: 11.39 MB / 430.1 MB Notification: Performance of matching and sorting (n=125): time 0.01407/0.8374, allocations: 5.632 MB / 0.5592 GB, free: 5.625 MB / 430.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 7.901e-05/0.8376, allocations: 94.11 kB / 0.5593 GB, free: 5.516 MB / 430.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.003683/0.8413, allocations: 1.89 MB / 0.5612 GB, free: 3.594 MB / 430.1 MB Notification: Performance of collectPreVariables (initialization): time 0.000317/0.8416, allocations: 65.69 kB / 0.5612 GB, free: 3.523 MB / 430.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.001422/0.843, allocations: 1.337 MB / 0.5625 GB, free: 2.168 MB / 430.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0006348/0.8437, allocations: 438.2 kB / 0.5629 GB, free: 1.734 MB / 430.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0008865/0.8446, allocations: 427.4 kB / 0.5634 GB, free: 1.309 MB / 430.1 MB Notification: Performance of setup shared object (initialization): time 0.0001513/0.8448, allocations: 309 kB / 0.5637 GB, free: 1.004 MB / 430.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001509/0.8463, allocations: 0.6992 MB / 0.5643 GB, free: 308 kB / 430.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.002113/0.8484, allocations: 1.586 MB / 0.5659 GB, free: 14.29 MB / 446.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.003467/0.8519, allocations: 2.167 MB / 0.568 GB, free: 11.7 MB / 446.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.397e-05/0.8519, allocations: 8 kB / 0.568 GB, free: 11.7 MB / 446.1 MB Notification: Performance of matching and sorting (n=275) (initialization): time 0.005675/0.8576, allocations: 2.731 MB / 0.5707 GB, free: 8.953 MB / 446.1 MB Notification: Performance of prepare postOptimizeDAE: time 6.052e-05/0.8577, allocations: 23.94 kB / 0.5707 GB, free: 8.93 MB / 446.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.922e-05/0.8578, allocations: 28 kB / 0.5707 GB, free: 8.902 MB / 446.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.002545/0.8603, allocations: 1.353 MB / 0.572 GB, free: 7.547 MB / 446.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001419/0.8618, allocations: 419.2 kB / 0.5724 GB, free: 7.137 MB / 446.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002804/0.8646, allocations: 1.715 MB / 0.5741 GB, free: 5.395 MB / 446.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.002384/0.867, allocations: 203.6 kB / 0.5743 GB, free: 5.195 MB / 446.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0002574/0.8673, allocations: 112 kB / 0.5744 GB, free: 5.086 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_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.001758/0.869, allocations: 0.6299 MB / 0.575 GB, free: 4.445 MB / 446.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0006993/0.8697, allocations: 213.3 kB / 0.5752 GB, free: 4.234 MB / 446.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.004074/0.8738, allocations: 1.75 MB / 0.5769 GB, free: 2.473 MB / 446.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.701e-05/0.8739, allocations: 12 kB / 0.577 GB, free: 2.461 MB / 446.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.42e-05/0.8739, allocations: 4 kB / 0.577 GB, free: 2.457 MB / 446.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.356e-05/0.8739, allocations: 3.984 kB / 0.577 GB, free: 2.453 MB / 446.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.331/1.205, allocations: 4.467 MB / 0.5813 GB, free: 130.6 MB / 446.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.852e-05/1.205, allocations: 3.125 kB / 0.5813 GB, free: 130.6 MB / 446.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0007271/1.206, allocations: 156.4 kB / 0.5815 GB, free: 130.6 MB / 446.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.00216/1.208, allocations: 1.227 MB / 0.5827 GB, free: 130.6 MB / 446.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001707/1.208, allocations: 43.27 kB / 0.5827 GB, free: 130.6 MB / 446.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0023/1.21, allocations: 1.518 MB / 0.5842 GB, free: 130 MB / 446.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.779e-06/1.21, allocations: 4.406 kB / 0.5842 GB, free: 130 MB / 446.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.004744/1.215, allocations: 2.58 MB / 0.5867 GB, free: 128.9 MB / 446.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.001363/1.217, allocations: 423 kB / 0.5871 GB, free: 128.7 MB / 446.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0007051/1.217, allocations: 48.22 kB / 0.5872 GB, free: 128.6 MB / 446.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001283/1.219, allocations: 100 kB / 0.5873 GB, free: 128.6 MB / 446.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0004383/1.219, allocations: 194.8 kB / 0.5875 GB, free: 128.6 MB / 446.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001055/1.219, allocations: 50.69 kB / 0.5875 GB, free: 128.6 MB / 446.1 MB Notification: Performance of sorting global known variables: time 0.002883/1.222, allocations: 1.221 MB / 0.5887 GB, free: 128.1 MB / 446.1 MB Notification: Performance of sort global known variables: time 2.575e-06/1.222, allocations: 0 / 0.5887 GB, free: 128.1 MB / 446.1 MB Notification: Performance of remove unused functions: time 0.003131/1.225, allocations: 463.5 kB / 0.5891 GB, free: 128.1 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 (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.0006261/1.226, allocations: 194.8 kB / 0.5893 GB, free: 127.9 MB / 446.1 MB Notification: Performance of simCode: created initialization part: time 0.004345/1.23, allocations: 1.763 MB / 0.591 GB, free: 127.4 MB / 446.1 MB Notification: Performance of simCode: created event and clocks part: time 8.426e-06/1.23, allocations: 0 / 0.591 GB, free: 127.4 MB / 446.1 MB Notification: Performance of simCode: created simulation system equations: time 0.001772/1.232, allocations: 0.8069 MB / 0.5918 GB, free: 127.1 MB / 446.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.003039/1.235, allocations: 315.9 kB / 0.5921 GB, free: 127 MB / 446.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01125/1.246, allocations: 5.361 MB / 0.5974 GB, free: 124 MB / 446.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001593/1.248, allocations: 1.587 MB / 0.5989 GB, free: 123.2 MB / 446.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0006081/1.249, allocations: 136.4 kB / 0.5991 GB, free: 123.2 MB / 446.1 MB Notification: Performance of SimCode: time 1.593e-06/1.249, allocations: 0 / 0.5991 GB, free: 123.2 MB / 446.1 MB Notification: Performance of Templates: time 0.08587/1.335, allocations: 39.54 MB / 0.6377 GB, free: 108.6 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)