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/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/ModelicaServices 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/VehicleInterfaces 2.0.1/package.mo", uses=false) Using package VehicleInterfaces with version 2.0.1 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/VehicleInterfaces 2.0.1/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) 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) 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/Complex 4.0.0+maint.om/package.mo): time 0.001008/0.001008, allocations: 182.9 kB / 15.98 MB, free: 5.77 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.263/1.263, allocations: 222.9 MB / 239.7 MB, free: 10.98 MB / 202.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.0009509/0.0009508, allocations: 105.6 kB / 289.9 MB, free: 10.93 MB / 234.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/VehicleInterfaces 2.0.1/package.mo): time 0.07019/0.07019, allocations: 7.976 MB / 348 MB, free: 1.098 MB / 282.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0009932/0.0009933, allocations: 51.86 kB / 410 MB, free: 58.39 MB / 298.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.08052/0.08152, allocations: 51.2 MB / 461.2 MB, free: 7.23 MB / 298.7 MB Notification: Performance of NFInst.instantiate(VehicleInterfaces.Examples.ConventionalAutomaticVehicle): time 0.2596/0.3412, allocations: 94.74 MB / 0.5429 GB, free: 11.58 MB / 362.7 MB Notification: Performance of NFInst.instExpressions: time 0.04453/0.3857, allocations: 18.1 MB / 0.5605 GB, free: 9.43 MB / 378.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.02536/0.4111, allocations: 446.9 kB / 0.561 GB, free: 8.992 MB / 378.7 MB Notification: Performance of NFTyping.typeComponents: time 0.003218/0.4145, allocations: 0.7106 MB / 0.5617 GB, free: 8.277 MB / 378.7 MB Notification: Performance of NFTyping.typeBindings: time 0.003675/0.4182, allocations: 0.5817 MB / 0.5622 GB, free: 7.691 MB / 378.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.008175/0.4264, allocations: 4.272 MB / 0.5664 GB, free: 3.414 MB / 378.7 MB Notification: Performance of NFFlatten.flatten: time 0.005291/0.4317, allocations: 3.175 MB / 0.5695 GB, free: 248 kB / 378.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.005271/0.437, allocations: 2.945 MB / 0.5724 GB, free: 13.23 MB / 394.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.001851/0.4389, allocations: 1.183 MB / 0.5735 GB, free: 12.04 MB / 394.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.001929/0.4408, allocations: 1.423 MB / 0.5749 GB, free: 10.61 MB / 394.7 MB Notification: Performance of NFPackage.collectConstants: time 0.0004142/0.4412, allocations: 208 kB / 0.5751 GB, free: 10.41 MB / 394.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0005677/0.4418, allocations: 275.8 kB / 0.5754 GB, free: 10.14 MB / 394.7 MB Notification: Performance of NFScalarize.scalarize: time 0.0005341/0.4424, allocations: 0.65 MB / 0.576 GB, free: 9.488 MB / 394.7 MB Notification: Performance of NFVerifyModel.verify: time 0.001287/0.4437, allocations: 1.414 MB / 0.5774 GB, free: 8.066 MB / 394.7 MB Notification: Performance of NFConvertDAE.convert: time 0.00315/0.4468, allocations: 3.808 MB / 0.5811 GB, free: 4.246 MB / 394.7 MB Notification: Performance of FrontEnd - DAE generated: time 5.62e-06/0.4468, allocations: 0 / 0.5811 GB, free: 4.246 MB / 394.7 MB Notification: Performance of FrontEnd: time 1.012e-06/0.4469, allocations: 0 / 0.5811 GB, free: 4.246 MB / 394.7 MB Notification: Performance of Transformations before backend: time 8.562e-05/0.4469, allocations: 0 / 0.5811 GB, free: 4.246 MB / 394.7 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.005467/0.4524, allocations: 3.094 MB / 0.5841 GB, free: 1.086 MB / 394.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.294e-05/0.4525, allocations: 12.03 kB / 0.5842 GB, free: 1.074 MB / 394.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0004121/0.4529, allocations: 316.1 kB / 0.5845 GB, free: 0.7617 MB / 394.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.002207/0.4551, allocations: 1.631 MB / 0.586 GB, free: 15.07 MB / 410.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001164/0.4552, allocations: 176.8 kB / 0.5862 GB, free: 14.9 MB / 410.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0003179/0.4556, allocations: 271.7 kB / 0.5865 GB, free: 14.63 MB / 410.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.003943/0.4595, allocations: 2.658 MB / 0.5891 GB, free: 11.83 MB / 410.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 8.089e-05/0.4596, allocations: 23.8 kB / 0.5891 GB, free: 11.8 MB / 410.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001797/0.4598, allocations: 104 kB / 0.5892 GB, free: 11.7 MB / 410.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0001045/0.4599, allocations: 115.9 kB / 0.5893 GB, free: 11.59 MB / 410.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.003325/0.4633, allocations: 1.968 MB / 0.5912 GB, free: 9.605 MB / 410.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.01187/0.4751, allocations: 10.18 MB / 0.6012 GB, free: 15.04 MB / 426.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001502/0.4767, allocations: 0.9199 MB / 0.6021 GB, free: 14.11 MB / 426.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0008886/0.4776, allocations: 0.5689 MB / 0.6026 GB, free: 13.54 MB / 426.7 MB Notification: Performance of preOpt evalFunc (simulation): time 7.943e-05/0.4777, allocations: 16.91 kB / 0.6026 GB, free: 13.52 MB / 426.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.381e-05/0.4777, allocations: 43.89 kB / 0.6027 GB, free: 13.47 MB / 426.7 MB Notification: Performance of pre-optimization done (n=99): time 3.246e-06/0.4777, allocations: 0 / 0.6027 GB, free: 13.47 MB / 426.7 MB Notification: Performance of matching and sorting (n=125): time 0.01081/0.4885, allocations: 5.633 MB / 0.6082 GB, free: 7.703 MB / 426.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.945e-05/0.4886, allocations: 102 kB / 0.6083 GB, free: 7.586 MB / 426.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.002219/0.4909, allocations: 1.887 MB / 0.6101 GB, free: 5.668 MB / 426.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0001054/0.491, allocations: 65.69 kB / 0.6102 GB, free: 5.598 MB / 426.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0009364/0.4919, allocations: 1.345 MB / 0.6115 GB, free: 4.234 MB / 426.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0003389/0.4923, allocations: 430.2 kB / 0.6119 GB, free: 3.809 MB / 426.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0005639/0.4928, allocations: 435.3 kB / 0.6123 GB, free: 3.375 MB / 426.7 MB Notification: Performance of setup shared object (initialization): time 7.692e-05/0.4929, allocations: 305.1 kB / 0.6126 GB, free: 3.074 MB / 426.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001142/0.4941, allocations: 0.6953 MB / 0.6133 GB, free: 2.375 MB / 426.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001643/0.4957, allocations: 1.582 MB / 0.6148 GB, free: 376 kB / 426.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.002474/0.4982, allocations: 2.168 MB / 0.617 GB, free: 13.79 MB / 442.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.283e-05/0.4982, allocations: 8 kB / 0.617 GB, free: 13.78 MB / 442.7 MB Notification: Performance of matching and sorting (n=275) (initialization): time 0.004349/0.5026, allocations: 2.741 MB / 0.6196 GB, free: 11.03 MB / 442.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.977e-05/0.5026, allocations: 23.94 kB / 0.6197 GB, free: 11 MB / 442.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.926e-05/0.5027, allocations: 28 kB / 0.6197 GB, free: 10.98 MB / 442.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.002134/0.5048, allocations: 1.345 MB / 0.621 GB, free: 9.629 MB / 442.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001174/0.506, allocations: 419.2 kB / 0.6214 GB, free: 9.219 MB / 442.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002209/0.5082, allocations: 1.717 MB / 0.6231 GB, free: 7.473 MB / 442.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001786/0.51, allocations: 207.5 kB / 0.6233 GB, free: 7.27 MB / 442.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001486/0.5102, allocations: 108 kB / 0.6234 GB, free: 7.164 MB / 442.7 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.001083/0.5113, allocations: 0.6298 MB / 0.624 GB, free: 6.523 MB / 442.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0003109/0.5116, allocations: 213.3 kB / 0.6242 GB, free: 6.312 MB / 442.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.003148/0.5148, allocations: 1.746 MB / 0.6259 GB, free: 4.555 MB / 442.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.34e-05/0.5148, allocations: 19.92 kB / 0.6259 GB, free: 4.535 MB / 442.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.452e-06/0.5148, allocations: 0 / 0.6259 GB, free: 4.535 MB / 442.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.251e-05/0.5148, allocations: 11.97 kB / 0.6259 GB, free: 4.523 MB / 442.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.007294/0.5221, allocations: 4.465 MB / 0.6303 GB, free: 15.94 MB / 458.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 6.422e-06/0.5222, allocations: 4 kB / 0.6303 GB, free: 15.94 MB / 458.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0005923/0.5228, allocations: 151.8 kB / 0.6304 GB, free: 15.79 MB / 458.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.001807/0.5246, allocations: 1.219 MB / 0.6316 GB, free: 14.57 MB / 458.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 9.137e-05/0.5247, allocations: 39.97 kB / 0.6317 GB, free: 14.53 MB / 458.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001966/0.5267, allocations: 1.524 MB / 0.6332 GB, free: 12.98 MB / 458.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.497e-06/0.5267, allocations: 4 kB / 0.6332 GB, free: 12.97 MB / 458.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.2195/0.7462, allocations: 19.26 MB / 0.652 GB, free: 159.2 MB / 458.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0005933/0.7468, allocations: 422.4 kB / 0.6524 GB, free: 159 MB / 458.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0002113/0.747, allocations: 50.84 kB / 0.6524 GB, free: 159 MB / 458.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0008684/0.7479, allocations: 94.34 kB / 0.6525 GB, free: 159 MB / 458.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0004703/0.7484, allocations: 196.5 kB / 0.6527 GB, free: 159 MB / 458.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 9.583e-05/0.7485, allocations: 49 kB / 0.6527 GB, free: 158.9 MB / 458.7 MB Notification: Performance of sorting global known variables: time 0.001791/0.7503, allocations: 1.219 MB / 0.6539 GB, free: 158.5 MB / 458.7 MB Notification: Performance of sort global known variables: time 1.3e-07/0.7503, allocations: 3.062 kB / 0.6539 GB, free: 158.5 MB / 458.7 MB Notification: Performance of remove unused functions: time 0.002182/0.7525, allocations: 0.6566 MB / 0.6546 GB, free: 158.4 MB / 458.7 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.0003683/0.7529, allocations: 217.2 kB / 0.6548 GB, free: 158.3 MB / 458.7 MB Notification: Performance of simCode: created initialization part: time 0.003194/0.7561, allocations: 1.77 MB / 0.6565 GB, free: 157.7 MB / 458.7 MB Notification: Performance of simCode: created event and clocks part: time 3.606e-06/0.7561, allocations: 0 / 0.6565 GB, free: 157.7 MB / 458.7 MB Notification: Performance of simCode: created simulation system equations: time 0.001572/0.7577, allocations: 0.8162 MB / 0.6573 GB, free: 157.4 MB / 458.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.00164/0.7593, allocations: 306.2 kB / 0.6576 GB, free: 157.2 MB / 458.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.009828/0.7692, allocations: 6.259 MB / 0.6637 GB, free: 153.6 MB / 458.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001548/0.7707, allocations: 1.628 MB / 0.6653 GB, free: 152.9 MB / 458.7 MB Notification: Performance of simCode: alias equations: time 0.001251/0.772, allocations: 326.8 kB / 0.6656 GB, free: 152.8 MB / 458.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0003299/0.7724, allocations: 131.2 kB / 0.6657 GB, free: 152.8 MB / 458.7 MB Notification: Performance of SimCode: time 9.32e-07/0.7724, allocations: 0 / 0.6657 GB, free: 152.8 MB / 458.7 MB Notification: Performance of Templates: time 0.04207/0.8144, allocations: 33.9 MB / 0.6989 GB, free: 125 MB / 458.7 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)