Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr VehicleInterfaces_VehicleInterfaces.Examples.ConventionalManualVehicle.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.ConventionalManualVehicle,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="VehicleInterfaces_VehicleInterfaces.Examples.ConventionalManualVehicle") translateModel(VehicleInterfaces.Examples.ConventionalManualVehicle,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="VehicleInterfaces_VehicleInterfaces.Examples.ConventionalManualVehicle") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001757/0.001757, allocations: 174.2 kB / 12.73 MB, free: 2.59 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.386/1.386, allocations: 221.4 MB / 234.6 MB, free: 14.45 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.001049/0.001049, allocations: 89.22 kB / 285.6 MB, free: 12.99 MB / 234.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/VehicleInterfaces 2.0.1/package.mo): time 0.05142/0.05142, allocations: 7.832 MB / 344.3 MB, free: 2.32 MB / 282.7 MB Notification: Performance of FrontEnd - loaded program: time 2.823e-05/2.825e-05, allocations: 7.984 kB / 404.4 MB, free: 62.65 MB / 298.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09605/0.09609, allocations: 52.22 MB / 456.6 MB, free: 10.52 MB / 298.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.3942/0.4903, allocations: 110.9 MB / 0.5541 GB, free: 9.207 MB / 378.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002001/0.4906, allocations: 83.34 kB / 0.5542 GB, free: 9.172 MB / 378.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.5567/1.047, allocations: 127.1 MB / 0.6783 GB, free: 118.7 MB / 458.7 MB Notification: Performance of FrontEnd: time 1.162e-06/1.047, allocations: 0 / 0.6783 GB, free: 118.7 MB / 458.7 MB Notification: Performance of Transformations before backend: time 0.0002052/1.048, allocations: 82.88 kB / 0.6784 GB, free: 118.7 MB / 458.7 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 701 * Number of variables: 701 Notification: Performance of Generate backend data structure: time 0.005565/1.053, allocations: 2.679 MB / 0.681 GB, free: 117.6 MB / 458.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.708e-05/1.053, allocations: 10.41 kB / 0.681 GB, free: 117.6 MB / 458.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.001157/1.054, allocations: 395.6 kB / 0.6814 GB, free: 117.4 MB / 458.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.003135/1.057, allocations: 1.866 MB / 0.6832 GB, free: 116.9 MB / 458.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0002608/1.058, allocations: 364.6 kB / 0.6836 GB, free: 116.8 MB / 458.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0004103/1.058, allocations: 278.9 kB / 0.6839 GB, free: 116.7 MB / 458.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.004772/1.063, allocations: 3.117 MB / 0.6869 GB, free: 116 MB / 458.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0001148/1.063, allocations: 35.17 kB / 0.6869 GB, free: 116 MB / 458.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0002407/1.063, allocations: 124 kB / 0.687 GB, free: 116 MB / 458.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 9.73e-05/1.063, allocations: 103 kB / 0.6871 GB, free: 116 MB / 458.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.004161/1.068, allocations: 2.105 MB / 0.6892 GB, free: 116 MB / 458.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.01617/1.084, allocations: 12.33 MB / 0.7012 GB, free: 110.8 MB / 458.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001818/1.086, allocations: 1.166 MB / 0.7024 GB, free: 110.7 MB / 458.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001059/1.087, allocations: 0.7587 MB / 0.7031 GB, free: 110.7 MB / 458.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0001316/1.087, allocations: 22.23 kB / 0.7031 GB, free: 110.6 MB / 458.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.592e-05/1.087, allocations: 56.88 kB / 0.7032 GB, free: 110.6 MB / 458.7 MB Notification: Performance of pre-optimization done (n=149): time 4.128e-06/1.087, allocations: 0 / 0.7032 GB, free: 110.6 MB / 458.7 MB Notification: Performance of matching and sorting (n=179): time 0.009876/1.097, allocations: 6.189 MB / 0.7092 GB, free: 107.3 MB / 458.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.288e-05/1.097, allocations: 122.5 kB / 0.7094 GB, free: 107.2 MB / 458.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.002251/1.099, allocations: 1.692 MB / 0.711 GB, free: 106.5 MB / 458.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0001552/1.099, allocations: 83.44 kB / 0.7111 GB, free: 106.4 MB / 458.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0009278/1.1, allocations: 1.304 MB / 0.7124 GB, free: 105.4 MB / 458.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0004231/1.101, allocations: 0.6021 MB / 0.713 GB, free: 105 MB / 458.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001119/1.101, allocations: 47.34 kB / 0.713 GB, free: 104.9 MB / 458.7 MB Notification: Performance of setup shared object (initialization): time 0.0001194/1.101, allocations: 400.8 kB / 0.7134 GB, free: 104.6 MB / 458.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001144/1.102, allocations: 0.7516 MB / 0.7141 GB, free: 104.3 MB / 458.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001412/1.104, allocations: 1.421 MB / 0.7155 GB, free: 103.1 MB / 458.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001164/1.105, allocations: 0.8163 MB / 0.7163 GB, free: 102.7 MB / 458.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 9.738e-06/1.105, allocations: 13.89 kB / 0.7163 GB, free: 102.7 MB / 458.7 MB Notification: Performance of matching and sorting (n=297) (initialization): time 0.004646/1.109, allocations: 2.882 MB / 0.7191 GB, free: 101.5 MB / 458.7 MB Notification: Performance of prepare postOptimizeDAE: time 3.292e-05/1.109, allocations: 20.34 kB / 0.7191 GB, free: 101.5 MB / 458.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.035e-05/1.109, allocations: 26.38 kB / 0.7192 GB, free: 101.5 MB / 458.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.002106/1.112, allocations: 1.365 MB / 0.7205 GB, free: 100.7 MB / 458.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001197/1.113, allocations: 406.2 kB / 0.7209 GB, free: 100.3 MB / 458.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002315/1.115, allocations: 1.908 MB / 0.7228 GB, free: 98.49 MB / 458.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.002166/1.117, allocations: 294.2 kB / 0.723 GB, free: 98.26 MB / 458.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0002047/1.117, allocations: 109.5 kB / 0.7231 GB, free: 98.16 MB / 458.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 95 * Number of states: 0 () * Number of discrete variables: 66 (driverEnvironment.ignition.y,transmission.clutch.free,$PRE.transmission.clutch.startForward,transmission.clutch.startForward,$PRE.transmission.clutch.startBackward,transmission.clutch.startBackward,$PRE.transmission.clutch.mode,transmission.clutch.mode,transmission.clutchLocked.y,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,transmission.shiftOutput.gear,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 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (234): * Single equations (assignments): 228 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 5 * 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 {5 59} Notification: Performance of prepare postOptimizeDAE: time 0.0004464/1.118, allocations: 289.3 kB / 0.7234 GB, free: 97.88 MB / 458.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0003795/1.118, allocations: 244.9 kB / 0.7236 GB, free: 97.64 MB / 458.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.003686/1.122, allocations: 2.386 MB / 0.726 GB, free: 95.56 MB / 458.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.19e-05/1.122, allocations: 16 kB / 0.726 GB, free: 95.54 MB / 458.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.753e-06/1.122, allocations: 7.891 kB / 0.726 GB, free: 95.54 MB / 458.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.581e-05/1.122, allocations: 17.69 kB / 0.726 GB, free: 95.53 MB / 458.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.009032/1.131, allocations: 5.556 MB / 0.7314 GB, free: 90.1 MB / 458.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.093e-05/1.131, allocations: 4 kB / 0.7314 GB, free: 90.09 MB / 458.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.000941/1.132, allocations: 239.8 kB / 0.7317 GB, free: 89.86 MB / 458.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.001883/1.134, allocations: 1.244 MB / 0.7329 GB, free: 88.68 MB / 458.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001452/1.134, allocations: 59.94 kB / 0.7329 GB, free: 88.62 MB / 458.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.002162/1.136, allocations: 1.718 MB / 0.7346 GB, free: 86.88 MB / 458.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.558e-06/1.136, allocations: 4 kB / 0.7346 GB, free: 86.88 MB / 458.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.004525/1.141, allocations: 3.284 MB / 0.7378 GB, free: 83.48 MB / 458.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.001143/1.142, allocations: 0.5017 MB / 0.7383 GB, free: 82.96 MB / 458.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0003669/1.142, allocations: 64 kB / 0.7384 GB, free: 82.9 MB / 458.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001304/1.144, allocations: 191.8 kB / 0.7386 GB, free: 82.71 MB / 458.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0005045/1.144, allocations: 304.7 kB / 0.7389 GB, free: 82.41 MB / 458.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001438/1.144, allocations: 71.94 kB / 0.7389 GB, free: 82.34 MB / 458.7 MB Notification: Performance of sorting global known variables: time 0.001749/1.146, allocations: 1.275 MB / 0.7402 GB, free: 81.05 MB / 458.7 MB Notification: Performance of sort global known variables: time 2.41e-07/1.146, allocations: 0 / 0.7402 GB, free: 81.05 MB / 458.7 MB Notification: Performance of remove unused functions: time 0.001872/1.148, allocations: 0.5312 MB / 0.7407 GB, free: 80.52 MB / 458.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 11 * Number of states: 10 (transmission.clutch.phi_rel,transmission.clutch.w_rel,chassis.body.s,chassis.dragForces.v_rel,driverEnvironment.acceleratorPosition.s,driverEnvironment.acceleratorPosition.v,driverEnvironment.clutchPosition.s,driverEnvironment.clutchPosition.v,driverEnvironment.brakePosition.s,driverEnvironment.brakePosition.v) * Number of discrete variables: 27 (transmission.clutch.free,transmission.clutch.startForward,transmission.clutch.startBackward,transmission.clutch.mode,transmission.clutchLocked.y,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.ignition.y,transmission.shiftOutput.gear) * Number of discrete states: 15 (transmission.clutch.mode,transmission.clutch.startForward,brakes.brake_2.mode,brakes.brake_2.startForward,brakes.brake_2.startBackward,brakes.brake_1.mode,brakes.brake_1.startForward,brakes.brake_1.startBackward,brakes.brake_3.mode,brakes.brake_3.startForward,brakes.brake_3.startBackward,brakes.brake_4.mode,brakes.brake_4.startForward,brakes.brake_4.startBackward,transmission.clutch.startBackward) * Top-level inputs: 0 Notification: Strong component statistics for simulation (119): * Single equations (assignments): 118 * 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 {5 52} Notification: Performance of Backend phase and start with SimCode phase: time 0.0003867/1.148, allocations: 211.8 kB / 0.7409 GB, free: 80.31 MB / 458.7 MB Notification: Performance of simCode: created initialization part: time 0.003342/1.152, allocations: 2.118 MB / 0.743 GB, free: 78.18 MB / 458.7 MB Notification: Performance of simCode: created event and clocks part: time 6.152e-06/1.152, allocations: 4.062 kB / 0.743 GB, free: 78.17 MB / 458.7 MB Notification: Performance of simCode: created simulation system equations: time 0.001948/1.154, allocations: 1.113 MB / 0.7441 GB, free: 77.06 MB / 458.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001644/1.155, allocations: 321.8 kB / 0.7444 GB, free: 76.76 MB / 458.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.008646/1.164, allocations: 4.544 MB / 0.7488 GB, free: 72.21 MB / 458.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001004/1.165, allocations: 1.756 MB / 0.7505 GB, free: 70.43 MB / 458.7 MB Notification: Performance of simCode: alias equations: time 0.001062/1.166, allocations: 313.1 kB / 0.7508 GB, free: 70.13 MB / 458.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0003049/1.167, allocations: 127.4 kB / 0.7509 GB, free: 70 MB / 458.7 MB Notification: Performance of SimCode: time 9.42e-07/1.167, allocations: 0 / 0.7509 GB, free: 70 MB / 458.7 MB Notification: Performance of Templates: time 0.04764/1.214, allocations: 31.54 MB / 0.7817 GB, free: 38.87 MB / 458.7 MB make -j1 -f VehicleInterfaces_VehicleInterfaces.Examples.ConventionalManualVehicle.makefile (rm -f VehicleInterfaces_VehicleInterfaces.Examples.ConventionalManualVehicle.pipe ; mkfifo VehicleInterfaces_VehicleInterfaces.Examples.ConventionalManualVehicle.pipe ; head -c 1048576 < VehicleInterfaces_VehicleInterfaces.Examples.ConventionalManualVehicle.pipe >> ../files/VehicleInterfaces_VehicleInterfaces.Examples.ConventionalManualVehicle.sim & ./VehicleInterfaces_VehicleInterfaces.Examples.ConventionalManualVehicle -abortSlowSimulation -alarm=480 -lv LOG_STATS > VehicleInterfaces_VehicleInterfaces.Examples.ConventionalManualVehicle.pipe 2>&1)