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.001346/0.001347, allocations: 104.6 kB / 16.41 MB, free: 6.496 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.001147/0.001147, allocations: 183 kB / 17.34 MB, free: 5.734 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.315/1.315, allocations: 222.9 MB / 241 MB, free: 15.15 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/VehicleInterfaces 2.0.1-master/package.mo): time 0.07294/0.07294, allocations: 7.998 MB / 299.2 MB, free: 7.113 MB / 238.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001175/0.001175, allocations: 59.91 kB / 413.7 MB, free: 22.86 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.08651/0.0877, allocations: 51.21 MB / 465 MB, free: 3.594 MB / 334.1 MB Notification: Performance of NFInst.instantiate(VehicleInterfaces.Examples.ConventionalAutomaticVehicle): time 0.02363/0.1114, allocations: 21.4 MB / 486.4 MB, free: 14.11 MB / 366.1 MB Notification: Performance of NFInst.instExpressions: time 0.01221/0.1236, allocations: 5.731 MB / 492.1 MB, free: 8.355 MB / 366.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.003991/0.1277, allocations: 171.5 kB / 492.3 MB, free: 8.188 MB / 366.1 MB Notification: Performance of NFTyping.typeComponents: time 0.002602/0.1303, allocations: 0.8531 MB / 493.1 MB, free: 7.328 MB / 366.1 MB Notification: Performance of NFTyping.typeBindings: time 0.002811/0.1331, allocations: 0.6895 MB / 493.8 MB, free: 6.633 MB / 366.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.008216/0.1414, allocations: 4.279 MB / 498.1 MB, free: 2.344 MB / 366.1 MB Notification: Performance of NFFlatten.flatten: time 0.004924/0.1463, allocations: 3.267 MB / 0.4896 GB, free: 15.06 MB / 382.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.006922/0.1533, allocations: 3.952 MB / 0.4935 GB, free: 11.04 MB / 382.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.002159/0.1555, allocations: 1.347 MB / 0.4948 GB, free: 9.691 MB / 382.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.002702/0.1582, allocations: 1.494 MB / 0.4962 GB, free: 8.191 MB / 382.1 MB Notification: Performance of NFPackage.collectConstants: time 0.001127/0.1593, allocations: 356 kB / 0.4966 GB, free: 7.844 MB / 382.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.001213/0.1606, allocations: 423.9 kB / 0.497 GB, free: 7.43 MB / 382.1 MB Notification: Performance of NFScalarize.scalarize: time 0.001017/0.1616, allocations: 0.7945 MB / 0.4978 GB, free: 6.633 MB / 382.1 MB Notification: Performance of NFVerifyModel.verify: time 0.002467/0.1641, allocations: 1.563 MB / 0.4993 GB, free: 5.062 MB / 382.1 MB Notification: Performance of NFConvertDAE.convert: time 0.005403/0.1695, allocations: 3.995 MB / 0.5032 GB, free: 1.055 MB / 382.1 MB Notification: Performance of FrontEnd - DAE generated: time 6.162e-06/0.1695, allocations: 3.938 kB / 0.5032 GB, free: 1.051 MB / 382.1 MB Notification: Performance of FrontEnd: time 2.285e-06/0.1695, allocations: 4 kB / 0.5032 GB, free: 1.047 MB / 382.1 MB Notification: Performance of Transformations before backend: time 0.0001733/0.1697, allocations: 0 / 0.5032 GB, free: 1.047 MB / 382.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.2241/0.3938, allocations: 3.091 MB / 0.5062 GB, free: 47.51 MB / 382.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.471e-05/0.3939, allocations: 9.094 kB / 0.5062 GB, free: 47.51 MB / 382.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.001064/0.395, allocations: 315.8 kB / 0.5065 GB, free: 47.34 MB / 382.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.003157/0.3981, allocations: 1.688 MB / 0.5082 GB, free: 46.42 MB / 382.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001346/0.3983, allocations: 188.5 kB / 0.5083 GB, free: 46.34 MB / 382.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0004434/0.3987, allocations: 254.2 kB / 0.5086 GB, free: 46.25 MB / 382.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.004751/0.4035, allocations: 2.659 MB / 0.5112 GB, free: 44.99 MB / 382.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0001032/0.4036, allocations: 28.38 kB / 0.5112 GB, free: 44.98 MB / 382.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0002067/0.4039, allocations: 104 kB / 0.5113 GB, free: 44.9 MB / 382.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0001159/0.404, allocations: 116.2 kB / 0.5114 GB, free: 44.89 MB / 382.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.003651/0.4076, allocations: 1.962 MB / 0.5133 GB, free: 44.18 MB / 382.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.01311/0.4208, allocations: 10.11 MB / 0.5232 GB, free: 36.8 MB / 382.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001512/0.4223, allocations: 0.9279 MB / 0.5241 GB, free: 36.32 MB / 382.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0008823/0.4232, allocations: 0.5629 MB / 0.5247 GB, free: 36.02 MB / 382.1 MB Notification: Performance of preOpt evalFunc (simulation): time 6.645e-05/0.4233, allocations: 12.88 kB / 0.5247 GB, free: 36.02 MB / 382.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.912e-05/0.4233, allocations: 42.78 kB / 0.5247 GB, free: 35.98 MB / 382.1 MB Notification: Performance of pre-optimization done (n=99): time 2.916e-06/0.4233, allocations: 0 / 0.5247 GB, free: 35.98 MB / 382.1 MB Notification: Performance of matching and sorting (n=125): time 0.01037/0.4337, allocations: 5.643 MB / 0.5302 GB, free: 32.46 MB / 382.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.107e-05/0.4338, allocations: 89.89 kB / 0.5303 GB, free: 32.37 MB / 382.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001927/0.4357, allocations: 1.897 MB / 0.5322 GB, free: 31.32 MB / 382.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0001101/0.4358, allocations: 77.47 kB / 0.5322 GB, free: 31.25 MB / 382.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0006602/0.4365, allocations: 1.338 MB / 0.5335 GB, free: 30.04 MB / 382.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0002363/0.4367, allocations: 429.4 kB / 0.534 GB, free: 29.63 MB / 382.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0004449/0.4372, allocations: 419.5 kB / 0.5344 GB, free: 29.21 MB / 382.1 MB Notification: Performance of setup shared object (initialization): time 3.649e-05/0.4372, allocations: 301.1 kB / 0.5346 GB, free: 28.91 MB / 382.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0009767/0.4382, allocations: 0.6992 MB / 0.5353 GB, free: 28.21 MB / 382.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001243/0.4395, allocations: 1.584 MB / 0.5369 GB, free: 26.2 MB / 382.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001977/0.4415, allocations: 2.165 MB / 0.539 GB, free: 23.62 MB / 382.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.114e-05/0.4415, allocations: 8 kB / 0.539 GB, free: 23.61 MB / 382.1 MB Notification: Performance of matching and sorting (n=275) (initialization): time 0.003837/0.4453, allocations: 2.752 MB / 0.5417 GB, free: 20.86 MB / 382.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.646e-05/0.4454, allocations: 16 kB / 0.5417 GB, free: 20.84 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.406e-05/0.4454, allocations: 39.92 kB / 0.5417 GB, free: 20.8 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0017/0.4471, allocations: 1.342 MB / 0.543 GB, free: 19.47 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001075/0.4482, allocations: 411.3 kB / 0.5434 GB, free: 19.07 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001782/0.45, allocations: 1.718 MB / 0.5451 GB, free: 17.32 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001751/0.4517, allocations: 211.5 kB / 0.5453 GB, free: 17.12 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.000121/0.4519, allocations: 112 kB / 0.5454 GB, free: 17.01 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.0009419/0.4528, allocations: 0.6268 MB / 0.546 GB, free: 16.37 MB / 382.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002928/0.4531, allocations: 217.2 kB / 0.5462 GB, free: 16.16 MB / 382.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.002749/0.4559, allocations: 1.749 MB / 0.548 GB, free: 14.39 MB / 382.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.004e-05/0.4559, allocations: 12 kB / 0.548 GB, free: 14.38 MB / 382.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.432e-06/0.4559, allocations: 3.938 kB / 0.548 GB, free: 14.38 MB / 382.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.065e-05/0.4559, allocations: 3.984 kB / 0.548 GB, free: 14.38 MB / 382.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.006445/0.4624, allocations: 4.424 MB / 0.5523 GB, free: 9.867 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 8.326e-06/0.4624, allocations: 4 kB / 0.5523 GB, free: 9.863 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0005866/0.463, allocations: 151.8 kB / 0.5524 GB, free: 9.715 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.001528/0.4646, allocations: 1.233 MB / 0.5536 GB, free: 8.48 MB / 382.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 8.781e-05/0.4647, allocations: 39.95 kB / 0.5537 GB, free: 8.441 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001705/0.4664, allocations: 1.517 MB / 0.5552 GB, free: 6.898 MB / 382.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.708e-06/0.4664, allocations: 8.031 kB / 0.5552 GB, free: 6.891 MB / 382.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.003649/0.47, allocations: 2.596 MB / 0.5577 GB, free: 4.262 MB / 382.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0007671/0.4708, allocations: 426.2 kB / 0.5581 GB, free: 3.824 MB / 382.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0002828/0.4711, allocations: 44 kB / 0.5582 GB, free: 3.781 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0008702/0.472, allocations: 95.95 kB / 0.5582 GB, free: 3.688 MB / 382.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0003412/0.4723, allocations: 204.6 kB / 0.5584 GB, free: 3.488 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 7.26e-05/0.4724, allocations: 39.97 kB / 0.5585 GB, free: 3.449 MB / 382.1 MB Notification: Performance of sorting global known variables: time 0.001371/0.4738, allocations: 1.226 MB / 0.5597 GB, free: 2.207 MB / 382.1 MB Notification: Performance of sort global known variables: time 1.21e-07/0.4738, allocations: 0 / 0.5597 GB, free: 2.207 MB / 382.1 MB Notification: Performance of remove unused functions: time 0.001474/0.4753, allocations: 462.6 kB / 0.5601 GB, free: 1.758 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.0003099/0.4756, allocations: 187.9 kB / 0.5603 GB, free: 1.566 MB / 382.1 MB Notification: Performance of simCode: created initialization part: time 0.002825/0.4784, allocations: 1.777 MB / 0.562 GB, free: 15.79 MB / 398.1 MB Notification: Performance of simCode: created event and clocks part: time 2.916e-06/0.4785, allocations: 4.062 kB / 0.562 GB, free: 15.79 MB / 398.1 MB Notification: Performance of simCode: created simulation system equations: time 0.001637/0.4801, allocations: 0.8031 MB / 0.5628 GB, free: 14.98 MB / 398.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001898/0.482, allocations: 333.3 kB / 0.5631 GB, free: 14.67 MB / 398.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.008641/0.4907, allocations: 4.261 MB / 0.5673 GB, free: 10.36 MB / 398.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001297/0.492, allocations: 1.596 MB / 0.5689 GB, free: 8.73 MB / 398.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0004198/0.4924, allocations: 139.4 kB / 0.569 GB, free: 8.594 MB / 398.1 MB Notification: Performance of SimCode: time 3.095e-06/0.4925, allocations: 0 / 0.569 GB, free: 8.594 MB / 398.1 MB Notification: Performance of Templates: time 0.05119/0.5436, allocations: 39.85 MB / 0.6079 GB, free: 0.75 MB / 430.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)