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.001431/0.001431, allocations: 109 kB / 16.37 MB, free: 6.477 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.001586/0.001586, allocations: 193.1 kB / 17.31 MB, free: 5.824 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.273/1.273, allocations: 222.9 MB / 241 MB, free: 15.2 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/VehicleInterfaces 2.0.1-master/package.mo): time 0.06484/0.06484, allocations: 8.005 MB / 299.2 MB, free: 7.156 MB / 238.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001267/0.001267, allocations: 63.89 kB / 362 MB, free: 8.215 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1748/0.176, allocations: 51.2 MB / 413.3 MB, free: 26.63 MB / 302.1 MB Notification: Performance of NFInst.instantiate(VehicleInterfaces.Examples.ConventionalAutomaticVehicle): time 0.01514/0.1912, allocations: 21.41 MB / 434.7 MB, free: 5.141 MB / 302.1 MB Notification: Performance of NFInst.instExpressions: time 0.01022/0.2015, allocations: 5.732 MB / 440.4 MB, free: 15.4 MB / 318.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.003431/0.205, allocations: 171.4 kB / 440.6 MB, free: 15.23 MB / 318.1 MB Notification: Performance of NFTyping.typeComponents: time 0.002001/0.207, allocations: 0.861 MB / 441.4 MB, free: 14.37 MB / 318.1 MB Notification: Performance of NFTyping.typeBindings: time 0.001794/0.2088, allocations: 0.6779 MB / 442.1 MB, free: 13.68 MB / 318.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.006824/0.2157, allocations: 4.287 MB / 446.4 MB, free: 9.387 MB / 318.1 MB Notification: Performance of NFFlatten.flatten: time 0.003205/0.2189, allocations: 3.267 MB / 449.7 MB, free: 6.102 MB / 318.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.004142/0.2231, allocations: 3.948 MB / 453.6 MB, free: 2.086 MB / 318.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.001274/0.2243, allocations: 1.331 MB / 454.9 MB, free: 0.75 MB / 318.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.001405/0.2258, allocations: 1.494 MB / 456.4 MB, free: 15.25 MB / 334.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0003566/0.2261, allocations: 360 kB / 456.8 MB, free: 14.9 MB / 334.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0005111/0.2266, allocations: 423.9 kB / 457.2 MB, free: 14.48 MB / 334.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0005674/0.2272, allocations: 0.7983 MB / 458 MB, free: 13.68 MB / 334.1 MB Notification: Performance of NFVerifyModel.verify: time 0.001145/0.2284, allocations: 1.563 MB / 459.6 MB, free: 12.11 MB / 334.1 MB Notification: Performance of NFConvertDAE.convert: time 0.002944/0.2313, allocations: 3.991 MB / 463.5 MB, free: 8.105 MB / 334.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.088e-06/0.2313, allocations: 0 / 463.5 MB, free: 8.105 MB / 334.1 MB Notification: Performance of FrontEnd: time 1.262e-06/0.2313, allocations: 0 / 463.5 MB, free: 8.105 MB / 334.1 MB Notification: Performance of Transformations before backend: time 3.338e-05/0.2314, allocations: 0 / 463.5 MB, free: 8.105 MB / 334.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.004477/0.2359, allocations: 3.094 MB / 466.6 MB, free: 4.945 MB / 334.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.802e-05/0.2359, allocations: 12.03 kB / 466.7 MB, free: 4.934 MB / 334.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0003755/0.2363, allocations: 312.1 kB / 467 MB, free: 4.625 MB / 334.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.002193/0.2385, allocations: 1.69 MB / 468.6 MB, free: 2.879 MB / 334.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001255/0.2386, allocations: 188.7 kB / 468.8 MB, free: 2.691 MB / 334.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0003154/0.239, allocations: 247.8 kB / 469.1 MB, free: 2.449 MB / 334.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.003883/0.2428, allocations: 2.67 MB / 471.7 MB, free: 15.63 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 7.773e-05/0.2429, allocations: 23.8 kB / 471.8 MB, free: 15.61 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001773/0.2431, allocations: 96 kB / 471.9 MB, free: 15.52 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0001178/0.2432, allocations: 115.9 kB / 472 MB, free: 15.4 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.003427/0.2467, allocations: 1.972 MB / 473.9 MB, free: 13.41 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.01156/0.2582, allocations: 10.11 MB / 484.1 MB, free: 2.926 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001504/0.2598, allocations: 0.916 MB / 485 MB, free: 1.996 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0008794/0.2607, allocations: 0.5552 MB / 485.5 MB, free: 1.434 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 8.427e-05/0.2608, allocations: 12.98 kB / 485.5 MB, free: 1.418 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.458e-05/0.2608, allocations: 43.56 kB / 485.6 MB, free: 1.367 MB / 350.1 MB Notification: Performance of pre-optimization done (n=99): time 2.886e-06/0.2608, allocations: 4 kB / 485.6 MB, free: 1.363 MB / 350.1 MB Notification: Performance of matching and sorting (n=125): time 0.01025/0.2711, allocations: 5.641 MB / 491.2 MB, free: 11.59 MB / 366.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.422e-05/0.2711, allocations: 90.11 kB / 491.3 MB, free: 11.49 MB / 366.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.002203/0.2733, allocations: 1.894 MB / 493.2 MB, free: 9.562 MB / 366.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0001044/0.2735, allocations: 65.69 kB / 493.3 MB, free: 9.492 MB / 366.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0009818/0.2744, allocations: 1.334 MB / 494.6 MB, free: 8.141 MB / 366.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0003052/0.2748, allocations: 446.1 kB / 495 MB, free: 7.699 MB / 366.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0005502/0.2753, allocations: 423.5 kB / 495.5 MB, free: 7.277 MB / 366.1 MB Notification: Performance of setup shared object (initialization): time 8.407e-05/0.2754, allocations: 305.1 kB / 495.8 MB, free: 6.977 MB / 366.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001163/0.2766, allocations: 0.6992 MB / 496.5 MB, free: 6.273 MB / 366.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001678/0.2783, allocations: 1.574 MB / 498 MB, free: 4.277 MB / 366.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.002495/0.2808, allocations: 2.167 MB / 0.4885 GB, free: 1.695 MB / 366.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.234e-05/0.2808, allocations: 12 kB / 0.4885 GB, free: 1.684 MB / 366.1 MB Notification: Performance of matching and sorting (n=275) (initialization): time 0.004449/0.2852, allocations: 2.751 MB / 0.4912 GB, free: 14.92 MB / 382.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.968e-05/0.2853, allocations: 22.06 kB / 0.4912 GB, free: 14.9 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.065e-05/0.2853, allocations: 32 kB / 0.4912 GB, free: 14.87 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001994/0.2873, allocations: 1.345 MB / 0.4925 GB, free: 13.52 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.00114/0.2885, allocations: 419.2 kB / 0.4929 GB, free: 13.11 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002181/0.2907, allocations: 1.705 MB / 0.4946 GB, free: 11.38 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001571/0.2923, allocations: 211.5 kB / 0.4948 GB, free: 11.17 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001494/0.2924, allocations: 112 kB / 0.4949 GB, free: 11.06 MB / 382.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.0009992/0.2934, allocations: 0.6298 MB / 0.4955 GB, free: 10.42 MB / 382.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002687/0.2937, allocations: 217.2 kB / 0.4957 GB, free: 10.21 MB / 382.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.003104/0.2968, allocations: 1.754 MB / 0.4974 GB, free: 8.441 MB / 382.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.009e-05/0.2968, allocations: 12 kB / 0.4975 GB, free: 8.43 MB / 382.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.169e-06/0.2968, allocations: 0 / 0.4975 GB, free: 8.43 MB / 382.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.188e-05/0.2969, allocations: 7.969 kB / 0.4975 GB, free: 8.422 MB / 382.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.007105/0.304, allocations: 4.42 MB / 0.5018 GB, free: 3.887 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 8.145e-06/0.304, allocations: 12.16 kB / 0.5018 GB, free: 3.875 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0005846/0.3046, allocations: 151.8 kB / 0.5019 GB, free: 3.727 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.001801/0.3064, allocations: 1.227 MB / 0.5031 GB, free: 2.496 MB / 382.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 8.864e-05/0.3065, allocations: 43.95 kB / 0.5032 GB, free: 2.453 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001969/0.3085, allocations: 1.509 MB / 0.5046 GB, free: 0.918 MB / 382.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.31e-06/0.3085, allocations: 11.94 kB / 0.5047 GB, free: 0.9062 MB / 382.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.159/0.4675, allocations: 2.579 MB / 0.5072 GB, free: 92.12 MB / 382.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.000849/0.4684, allocations: 422.7 kB / 0.5076 GB, free: 91.93 MB / 382.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0003893/0.4688, allocations: 49.8 kB / 0.5076 GB, free: 91.91 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.000931/0.4697, allocations: 95.33 kB / 0.5077 GB, free: 91.89 MB / 382.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.000402/0.4701, allocations: 204.5 kB / 0.5079 GB, free: 91.85 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 9.48e-05/0.4702, allocations: 45.08 kB / 0.508 GB, free: 91.84 MB / 382.1 MB Notification: Performance of sorting global known variables: time 0.001563/0.4718, allocations: 1.224 MB / 0.5092 GB, free: 91.37 MB / 382.1 MB Notification: Performance of sort global known variables: time 4.51e-07/0.4718, allocations: 0 / 0.5092 GB, free: 91.37 MB / 382.1 MB Notification: Performance of remove unused functions: time 0.001401/0.4732, allocations: 464.1 kB / 0.5096 GB, free: 91.32 MB / 382.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.0002646/0.4735, allocations: 187.6 kB / 0.5098 GB, free: 91.2 MB / 382.1 MB Notification: Performance of simCode: created initialization part: time 0.002712/0.4762, allocations: 1.776 MB / 0.5115 GB, free: 90.58 MB / 382.1 MB Notification: Performance of simCode: created event and clocks part: time 3.557e-06/0.4762, allocations: 2.625 kB / 0.5115 GB, free: 90.58 MB / 382.1 MB Notification: Performance of simCode: created simulation system equations: time 0.001544/0.4778, allocations: 0.8178 MB / 0.5123 GB, free: 90.27 MB / 382.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001455/0.4793, allocations: 320.5 kB / 0.5126 GB, free: 90.13 MB / 382.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.006464/0.4857, allocations: 4.201 MB / 0.5167 GB, free: 88.16 MB / 382.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0008089/0.4866, allocations: 1.58 MB / 0.5183 GB, free: 87.4 MB / 382.1 MB Notification: Performance of simCode: alias equations: time 0.0007127/0.4873, allocations: 320.3 kB / 0.5186 GB, free: 87.34 MB / 382.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002269/0.4875, allocations: 130.9 kB / 0.5187 GB, free: 87.32 MB / 382.1 MB Notification: Performance of SimCode: time 5.61e-07/0.4875, allocations: 1.75 kB / 0.5187 GB, free: 87.32 MB / 382.1 MB Notification: Performance of Templates: time 0.03401/0.5215, allocations: 28.58 MB / 0.5466 GB, free: 60.21 MB / 382.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 -s cvode -lv LOG_STATS > VehicleInterfaces_VehicleInterfaces.Examples.ConventionalAutomaticVehicle.pipe 2>&1)