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.001085/0.001085, allocations: 103.4 kB / 15.33 MB, free: 0.5078 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.001071/0.001071, allocations: 193.7 kB / 16.25 MB, free: 6.629 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.336/1.336, allocations: 222.9 MB / 239.9 MB, free: 4.547 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/VehicleInterfaces 2.0.1-master/package.mo): time 0.1464/0.1464, allocations: 7.984 MB / 298.1 MB, free: 2.254 MB / 238.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001282/0.001283, allocations: 59.91 kB / 360.1 MB, free: 15.05 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09301/0.0943, allocations: 51.22 MB / 411.3 MB, free: 11.79 MB / 350.1 MB Notification: Performance of NFInst.instantiate(VehicleInterfaces.Examples.ConventionalAutomaticVehicle): time 0.2482/0.3426, allocations: 94.75 MB / 0.4942 GB, free: 14.26 MB / 382.1 MB Notification: Performance of NFInst.instExpressions: time 0.04023/0.3829, allocations: 18.06 MB / 0.5118 GB, free: 1.934 MB / 382.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.01957/0.4025, allocations: 448 kB / 0.5123 GB, free: 1.863 MB / 382.1 MB Notification: Performance of NFTyping.typeComponents: time 0.002984/0.4055, allocations: 0.7109 MB / 0.513 GB, free: 1.477 MB / 382.1 MB Notification: Performance of NFTyping.typeBindings: time 0.003385/0.409, allocations: 0.5789 MB / 0.5135 GB, free: 1.086 MB / 382.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.009207/0.4182, allocations: 4.135 MB / 0.5176 GB, free: 14.95 MB / 398.1 MB Notification: Performance of NFFlatten.flatten: time 0.006714/0.4249, allocations: 3.258 MB / 0.5208 GB, free: 11.96 MB / 398.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.00649/0.4314, allocations: 3.973 MB / 0.5246 GB, free: 8.234 MB / 398.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.002213/0.4337, allocations: 1.352 MB / 0.526 GB, free: 7.016 MB / 398.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.002134/0.4358, allocations: 1.514 MB / 0.5274 GB, free: 5.793 MB / 398.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0006119/0.4364, allocations: 360 kB / 0.5278 GB, free: 5.441 MB / 398.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0007187/0.4372, allocations: 421.3 kB / 0.5282 GB, free: 5.043 MB / 398.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0006751/0.4379, allocations: 0.8111 MB / 0.529 GB, free: 4.363 MB / 398.1 MB Notification: Performance of NFVerifyModel.verify: time 0.001712/0.4396, allocations: 1.564 MB / 0.5305 GB, free: 2.891 MB / 398.1 MB Notification: Performance of NFConvertDAE.convert: time 0.004066/0.4436, allocations: 3.945 MB / 0.5344 GB, free: 15.34 MB / 414.1 MB Notification: Performance of FrontEnd - DAE generated: time 6.503e-06/0.4437, allocations: 4 kB / 0.5344 GB, free: 15.33 MB / 414.1 MB Notification: Performance of FrontEnd: time 1.513e-06/0.4437, allocations: 0 / 0.5344 GB, free: 15.33 MB / 414.1 MB Notification: Performance of Transformations before backend: time 9.098e-05/0.4438, allocations: 0 / 0.5344 GB, free: 15.33 MB / 414.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.005531/0.4493, allocations: 3.097 MB / 0.5374 GB, free: 12.17 MB / 414.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.046e-05/0.4494, allocations: 8.031 kB / 0.5374 GB, free: 12.16 MB / 414.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0004695/0.4498, allocations: 316.2 kB / 0.5377 GB, free: 11.85 MB / 414.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.002179/0.452, allocations: 1.635 MB / 0.5393 GB, free: 10.16 MB / 414.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001197/0.4522, allocations: 180.8 kB / 0.5395 GB, free: 9.98 MB / 414.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.000332/0.4525, allocations: 259.7 kB / 0.5397 GB, free: 9.727 MB / 414.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.004309/0.4568, allocations: 2.676 MB / 0.5423 GB, free: 6.906 MB / 414.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0001109/0.457, allocations: 27.66 kB / 0.5423 GB, free: 6.879 MB / 414.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.000211/0.4572, allocations: 103.9 kB / 0.5424 GB, free: 6.777 MB / 414.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0001388/0.4573, allocations: 112 kB / 0.5426 GB, free: 6.668 MB / 414.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.003645/0.461, allocations: 1.968 MB / 0.5445 GB, free: 4.684 MB / 414.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.01256/0.4736, allocations: 10.18 MB / 0.5544 GB, free: 10.14 MB / 430.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001544/0.4751, allocations: 0.9199 MB / 0.5553 GB, free: 9.203 MB / 430.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.000894/0.476, allocations: 0.5681 MB / 0.5559 GB, free: 8.633 MB / 430.1 MB Notification: Performance of preOpt evalFunc (simulation): time 8.522e-05/0.4761, allocations: 13 kB / 0.5559 GB, free: 8.617 MB / 430.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.735e-05/0.4762, allocations: 47.5 kB / 0.5559 GB, free: 8.562 MB / 430.1 MB Notification: Performance of pre-optimization done (n=99): time 2.375e-06/0.4762, allocations: 0 / 0.5559 GB, free: 8.562 MB / 430.1 MB Notification: Performance of matching and sorting (n=125): time 0.01109/0.4873, allocations: 5.632 MB / 0.5614 GB, free: 2.797 MB / 430.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.556e-05/0.4874, allocations: 94.14 kB / 0.5615 GB, free: 2.688 MB / 430.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.002321/0.4897, allocations: 1.89 MB / 0.5634 GB, free: 0.7656 MB / 430.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0001282/0.4898, allocations: 65.7 kB / 0.5634 GB, free: 0.6953 MB / 430.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.001027/0.4909, allocations: 1.337 MB / 0.5647 GB, free: 15.34 MB / 446.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0003381/0.4912, allocations: 430.2 kB / 0.5651 GB, free: 14.91 MB / 446.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0005599/0.4918, allocations: 431.4 kB / 0.5656 GB, free: 14.48 MB / 446.1 MB Notification: Performance of setup shared object (initialization): time 9.655e-05/0.4919, allocations: 305.1 kB / 0.5658 GB, free: 14.18 MB / 446.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001156/0.493, allocations: 0.6992 MB / 0.5665 GB, free: 13.48 MB / 446.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001722/0.4948, allocations: 1.586 MB / 0.5681 GB, free: 11.46 MB / 446.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.002567/0.4974, allocations: 2.164 MB / 0.5702 GB, free: 8.887 MB / 446.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.103e-05/0.4974, allocations: 8 kB / 0.5702 GB, free: 8.879 MB / 446.1 MB Notification: Performance of matching and sorting (n=275) (initialization): time 0.004488/0.5019, allocations: 2.735 MB / 0.5729 GB, free: 6.133 MB / 446.1 MB Notification: Performance of prepare postOptimizeDAE: time 3.309e-05/0.5019, allocations: 20.56 kB / 0.5729 GB, free: 6.113 MB / 446.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.099e-05/0.502, allocations: 32 kB / 0.5729 GB, free: 6.082 MB / 446.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.002094/0.5041, allocations: 1.349 MB / 0.5742 GB, free: 4.73 MB / 446.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001189/0.5053, allocations: 419.2 kB / 0.5746 GB, free: 4.32 MB / 446.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002198/0.5075, allocations: 1.719 MB / 0.5763 GB, free: 2.574 MB / 446.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001566/0.509, allocations: 207.5 kB / 0.5765 GB, free: 2.371 MB / 446.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001513/0.5092, allocations: 108 kB / 0.5766 GB, free: 2.266 MB / 446.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.00104/0.5103, allocations: 0.6391 MB / 0.5772 GB, free: 1.617 MB / 446.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002919/0.5106, allocations: 209.3 kB / 0.5774 GB, free: 1.41 MB / 446.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.1791/0.6896, allocations: 1.745 MB / 0.5791 GB, free: 131.1 MB / 446.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.094e-05/0.6897, allocations: 13.5 kB / 0.5792 GB, free: 131.1 MB / 446.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.145e-05/0.6897, allocations: 2.469 kB / 0.5792 GB, free: 131.1 MB / 446.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.881e-05/0.6897, allocations: 5.672 kB / 0.5792 GB, free: 131.1 MB / 446.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.008318/0.6981, allocations: 4.461 MB / 0.5835 GB, free: 130.1 MB / 446.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 8.426e-06/0.6981, allocations: 3 kB / 0.5835 GB, free: 130.1 MB / 446.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0005924/0.6987, allocations: 151.1 kB / 0.5837 GB, free: 130.1 MB / 446.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.00169/0.7004, allocations: 1.235 MB / 0.5849 GB, free: 129.8 MB / 446.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001068/0.7006, allocations: 40.56 kB / 0.5849 GB, free: 129.7 MB / 446.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001919/0.7025, allocations: 1.514 MB / 0.5864 GB, free: 128.8 MB / 446.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.741e-06/0.7025, allocations: 5.094 kB / 0.5864 GB, free: 128.8 MB / 446.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.004076/0.7066, allocations: 2.596 MB / 0.5889 GB, free: 127.7 MB / 446.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.001008/0.7076, allocations: 417.9 kB / 0.5893 GB, free: 127.5 MB / 446.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0005084/0.7081, allocations: 45.97 kB / 0.5894 GB, free: 127.5 MB / 446.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001174/0.7093, allocations: 98.52 kB / 0.5895 GB, free: 127.4 MB / 446.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0004364/0.7098, allocations: 197.2 kB / 0.5897 GB, free: 127.4 MB / 446.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.000104/0.7099, allocations: 55.55 kB / 0.5897 GB, free: 127.4 MB / 446.1 MB Notification: Performance of sorting global known variables: time 0.001879/0.7118, allocations: 1.218 MB / 0.5909 GB, free: 126.9 MB / 446.1 MB Notification: Performance of sort global known variables: time 1.6e-07/0.7118, allocations: 0 / 0.5909 GB, free: 126.9 MB / 446.1 MB Notification: Performance of remove unused functions: time 0.001727/0.7135, allocations: 464.9 kB / 0.5913 GB, free: 126.9 MB / 446.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.0003632/0.7139, allocations: 192.4 kB / 0.5915 GB, free: 126.7 MB / 446.1 MB Notification: Performance of simCode: created initialization part: time 0.00386/0.7178, allocations: 1.814 MB / 0.5933 GB, free: 126.2 MB / 446.1 MB Notification: Performance of simCode: created event and clocks part: time 5.26e-06/0.7178, allocations: 0 / 0.5933 GB, free: 126.2 MB / 446.1 MB Notification: Performance of simCode: created simulation system equations: time 0.001528/0.7193, allocations: 0.8113 MB / 0.5941 GB, free: 125.9 MB / 446.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001986/0.7213, allocations: 330.6 kB / 0.5944 GB, free: 125.8 MB / 446.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.009248/0.7306, allocations: 5.286 MB / 0.5996 GB, free: 122.7 MB / 446.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001575/0.7322, allocations: 1.581 MB / 0.6011 GB, free: 121.9 MB / 446.1 MB Notification: Performance of simCode: alias equations: time 0.001229/0.7335, allocations: 317.8 kB / 0.6014 GB, free: 121.9 MB / 446.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0003972/0.7339, allocations: 132.1 kB / 0.6015 GB, free: 121.9 MB / 446.1 MB Notification: Performance of SimCode: time 1.383e-06/0.7339, allocations: 4 kB / 0.6015 GB, free: 121.9 MB / 446.1 MB Notification: Performance of Templates: time 0.05489/0.7888, allocations: 28.48 MB / 0.6294 GB, free: 115.6 MB / 446.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)