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/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 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.001031/0.001031, allocations: 106.6 kB / 16.29 MB, free: 6.43 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.001027/0.001027, allocations: 184 kB / 17.22 MB, free: 5.934 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.353/1.353, allocations: 222.9 MB / 240.9 MB, free: 15.29 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/VehicleInterfaces 2.0.1/package.mo): time 0.06915/0.06915, allocations: 7.984 MB / 299 MB, free: 7.078 MB / 238.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001182/0.001182, allocations: 63.91 kB / 361.3 MB, free: 8.762 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2201/0.2212, allocations: 51.2 MB / 412.5 MB, free: 26.71 MB / 302.1 MB Notification: Performance of NFInst.instantiate(VehicleInterfaces.Examples.ConventionalAutomaticVehicle): time 0.01653/0.2378, allocations: 21.41 MB / 433.9 MB, free: 5.223 MB / 302.1 MB Notification: Performance of NFInst.instExpressions: time 0.01164/0.2495, allocations: 5.726 MB / 439.6 MB, free: 15.48 MB / 318.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.00431/0.2539, allocations: 171.5 kB / 439.8 MB, free: 15.31 MB / 318.1 MB Notification: Performance of NFTyping.typeComponents: time 0.00252/0.2564, allocations: 0.8569 MB / 440.7 MB, free: 14.45 MB / 318.1 MB Notification: Performance of NFTyping.typeBindings: time 0.002487/0.259, allocations: 0.6818 MB / 441.3 MB, free: 13.76 MB / 318.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.007651/0.2666, allocations: 4.279 MB / 445.6 MB, free: 9.469 MB / 318.1 MB Notification: Performance of NFFlatten.flatten: time 0.004337/0.271, allocations: 3.247 MB / 448.9 MB, free: 6.203 MB / 318.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.005233/0.2762, allocations: 3.959 MB / 452.8 MB, free: 2.176 MB / 318.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.001712/0.2779, allocations: 1.324 MB / 454.1 MB, free: 0.8477 MB / 318.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.001569/0.2795, allocations: 1.486 MB / 455.6 MB, free: 15.36 MB / 334.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0004025/0.2799, allocations: 360 kB / 456 MB, free: 15 MB / 334.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0005786/0.2805, allocations: 423.9 kB / 456.4 MB, free: 14.59 MB / 334.1 MB Notification: Performance of NFScalarize.scalarize: time 0.000637/0.2812, allocations: 0.7983 MB / 457.2 MB, free: 13.79 MB / 334.1 MB Notification: Performance of NFVerifyModel.verify: time 0.001397/0.2826, allocations: 1.559 MB / 458.8 MB, free: 12.22 MB / 334.1 MB Notification: Performance of NFConvertDAE.convert: time 0.003546/0.2861, allocations: 3.983 MB / 462.7 MB, free: 8.223 MB / 334.1 MB Notification: Performance of FrontEnd - DAE generated: time 7.173e-06/0.2862, allocations: 4 kB / 462.7 MB, free: 8.219 MB / 334.1 MB Notification: Performance of FrontEnd: time 1.833e-06/0.2862, allocations: 0 / 462.7 MB, free: 8.219 MB / 334.1 MB Notification: Performance of Transformations before backend: time 5.393e-05/0.2862, allocations: 0 / 462.7 MB, free: 8.219 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.005126/0.2914, allocations: 3.098 MB / 465.8 MB, free: 5.055 MB / 334.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.07e-05/0.2914, allocations: 11.97 kB / 465.9 MB, free: 5.043 MB / 334.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0004425/0.2919, allocations: 320.1 kB / 466.2 MB, free: 4.727 MB / 334.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.002217/0.2941, allocations: 1.631 MB / 467.8 MB, free: 3.039 MB / 334.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001383/0.2942, allocations: 188.7 kB / 468 MB, free: 2.852 MB / 334.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0003422/0.2946, allocations: 247.8 kB / 468.2 MB, free: 2.609 MB / 334.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.004132/0.2987, allocations: 2.666 MB / 470.9 MB, free: 15.79 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 8.811e-05/0.2988, allocations: 27.69 kB / 470.9 MB, free: 15.77 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0002026/0.299, allocations: 100 kB / 471 MB, free: 15.67 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0001132/0.2992, allocations: 112 kB / 471.1 MB, free: 15.56 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.003515/0.3027, allocations: 1.968 MB / 473.1 MB, free: 13.58 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.01293/0.3156, allocations: 10.11 MB / 483.2 MB, free: 3.09 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001637/0.3173, allocations: 0.916 MB / 484.1 MB, free: 2.16 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0009604/0.3183, allocations: 0.5552 MB / 484.7 MB, free: 1.598 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 7.012e-05/0.3184, allocations: 12.98 kB / 484.7 MB, free: 1.582 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.168e-05/0.3184, allocations: 47.5 kB / 484.7 MB, free: 1.527 MB / 350.1 MB Notification: Performance of pre-optimization done (n=99): time 2.865e-06/0.3184, allocations: 0 / 484.7 MB, free: 1.527 MB / 350.1 MB Notification: Performance of matching and sorting (n=125): time 0.01127/0.3297, allocations: 5.64 MB / 490.4 MB, free: 11.76 MB / 366.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.823e-05/0.3298, allocations: 90.11 kB / 490.5 MB, free: 11.65 MB / 366.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.002409/0.3322, allocations: 1.894 MB / 492.4 MB, free: 9.727 MB / 366.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0001146/0.3323, allocations: 69.69 kB / 492.4 MB, free: 9.652 MB / 366.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.001042/0.3334, allocations: 1.334 MB / 493.8 MB, free: 8.301 MB / 366.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0003509/0.3337, allocations: 438.1 kB / 494.2 MB, free: 7.867 MB / 366.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0005697/0.3343, allocations: 419.5 kB / 494.6 MB, free: 7.449 MB / 366.1 MB Notification: Performance of setup shared object (initialization): time 9.534e-05/0.3344, allocations: 309.1 kB / 494.9 MB, free: 7.145 MB / 366.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001244/0.3357, allocations: 0.6992 MB / 495.6 MB, free: 6.441 MB / 366.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001867/0.3375, allocations: 1.578 MB / 497.2 MB, free: 4.441 MB / 366.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.002792/0.3403, allocations: 2.167 MB / 499.3 MB, free: 1.859 MB / 366.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.263e-05/0.3404, allocations: 8 kB / 499.4 MB, free: 1.852 MB / 366.1 MB Notification: Performance of matching and sorting (n=275) (initialization): time 0.004695/0.3451, allocations: 2.749 MB / 0.4903 GB, free: 15.09 MB / 382.1 MB Notification: Performance of prepare postOptimizeDAE: time 3.529e-05/0.3451, allocations: 19.94 kB / 0.4904 GB, free: 15.07 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.911e-05/0.3451, allocations: 32.16 kB / 0.4904 GB, free: 15.04 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.002167/0.3473, allocations: 1.348 MB / 0.4917 GB, free: 13.69 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001204/0.3485, allocations: 419.2 kB / 0.4921 GB, free: 13.28 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002328/0.3509, allocations: 1.713 MB / 0.4938 GB, free: 11.54 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001676/0.3526, allocations: 207.6 kB / 0.494 GB, free: 11.33 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001793/0.3528, allocations: 108 kB / 0.4941 GB, free: 11.23 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.001082/0.3538, allocations: 0.6274 MB / 0.4947 GB, free: 10.59 MB / 382.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0003172/0.3542, allocations: 217.2 kB / 0.4949 GB, free: 10.38 MB / 382.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.003376/0.3576, allocations: 1.754 MB / 0.4966 GB, free: 8.609 MB / 382.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.19e-05/0.3576, allocations: 19.94 kB / 0.4966 GB, free: 8.59 MB / 382.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.8e-06/0.3576, allocations: 0 / 0.4966 GB, free: 8.59 MB / 382.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.342e-05/0.3576, allocations: 3.984 kB / 0.4966 GB, free: 8.586 MB / 382.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.007431/0.3651, allocations: 4.449 MB / 0.501 GB, free: 4.023 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 8.837e-06/0.3651, allocations: 4 kB / 0.501 GB, free: 4.02 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.000625/0.3657, allocations: 163.9 kB / 0.5011 GB, free: 3.859 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.001932/0.3677, allocations: 1.223 MB / 0.5023 GB, free: 2.633 MB / 382.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001011/0.3678, allocations: 43.95 kB / 0.5024 GB, free: 2.59 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.00209/0.3699, allocations: 1.505 MB / 0.5038 GB, free: 1.059 MB / 382.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.989e-06/0.3699, allocations: 7.938 kB / 0.5038 GB, free: 1.051 MB / 382.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.171/0.5408, allocations: 2.582 MB / 0.5064 GB, free: 92.17 MB / 382.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0008295/0.5417, allocations: 422 kB / 0.5068 GB, free: 91.98 MB / 382.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0002562/0.542, allocations: 50.8 kB / 0.5068 GB, free: 91.95 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.000847/0.5428, allocations: 95.22 kB / 0.5069 GB, free: 91.94 MB / 382.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0003967/0.5432, allocations: 197.8 kB / 0.5071 GB, free: 91.9 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 9.358e-05/0.5433, allocations: 52.58 kB / 0.5071 GB, free: 91.89 MB / 382.1 MB Notification: Performance of sorting global known variables: time 0.001512/0.5449, allocations: 1.222 MB / 0.5083 GB, free: 91.41 MB / 382.1 MB Notification: Performance of sort global known variables: time 2.4e-07/0.5449, allocations: 0 / 0.5083 GB, free: 91.41 MB / 382.1 MB Notification: Performance of remove unused functions: time 0.001392/0.5463, allocations: 465 kB / 0.5088 GB, free: 91.37 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.0002904/0.5466, allocations: 187.2 kB / 0.509 GB, free: 91.25 MB / 382.1 MB Notification: Performance of simCode: created initialization part: time 0.002816/0.5494, allocations: 1.781 MB / 0.5107 GB, free: 90.64 MB / 382.1 MB Notification: Performance of simCode: created event and clocks part: time 2.485e-06/0.5494, allocations: 0 / 0.5107 GB, free: 90.64 MB / 382.1 MB Notification: Performance of simCode: created simulation system equations: time 0.001478/0.5509, allocations: 0.8101 MB / 0.5115 GB, free: 90.33 MB / 382.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001429/0.5523, allocations: 328.6 kB / 0.5118 GB, free: 90.2 MB / 382.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.006672/0.559, allocations: 4.188 MB / 0.5159 GB, free: 88.23 MB / 382.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0008447/0.5599, allocations: 1.589 MB / 0.5175 GB, free: 87.47 MB / 382.1 MB Notification: Performance of simCode: alias equations: time 0.0007208/0.5606, allocations: 314.1 kB / 0.5177 GB, free: 87.41 MB / 382.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002302/0.5608, allocations: 137.7 kB / 0.5179 GB, free: 87.39 MB / 382.1 MB Notification: Performance of SimCode: time 9.31e-07/0.5608, allocations: 0 / 0.5179 GB, free: 87.39 MB / 382.1 MB Notification: Performance of Templates: time 0.04817/0.609, allocations: 28.58 MB / 0.5458 GB, free: 60.29 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 gbode -lv LOG_STATS > VehicleInterfaces_VehicleInterfaces.Examples.ConventionalAutomaticVehicle.pipe 2>&1)