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.001101/0.001101, allocations: 98.72 kB / 16.02 MB, free: 76 kB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001694/0.001694, allocations: 180.3 kB / 16.92 MB, free: 6.918 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.369/1.369, allocations: 223.3 MB / 241 MB, free: 5.348 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/VehicleInterfaces 2.0.1-master/package.mo): time 0.1508/0.1508, allocations: 7.981 MB / 300.1 MB, free: 3.359 MB / 238.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0003801/0.0003804, allocations: 12 kB / 363 MB, free: 14.31 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09946/0.09986, allocations: 52.21 MB / 415.2 MB, free: 10.06 MB / 350.1 MB Notification: Performance of NFInst.instantiate(VehicleInterfaces.Examples.ConventionalAutomaticVehicle): time 0.2716/0.3715, allocations: 92.57 MB / 0.4959 GB, free: 14.34 MB / 382.1 MB Notification: Performance of NFInst.instExpressions: time 0.0492/0.4208, allocations: 18.05 MB / 0.5135 GB, free: 2.02 MB / 382.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.02578/0.4466, allocations: 449 kB / 0.514 GB, free: 1.945 MB / 382.1 MB Notification: Performance of NFTyping.typeComponents: time 0.002645/0.4493, allocations: 0.5575 MB / 0.5145 GB, free: 1.637 MB / 382.1 MB Notification: Performance of NFTyping.typeBindings: time 0.004202/0.4536, allocations: 0.5802 MB / 0.5151 GB, free: 1.246 MB / 382.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.003457/0.457, allocations: 0.9056 MB / 0.516 GB, free: 0.6484 MB / 382.1 MB Notification: Performance of NFFlatten.flatten: time 0.006351/0.4634, allocations: 3.132 MB / 0.519 GB, free: 15.11 MB / 398.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.006378/0.4698, allocations: 3.01 MB / 0.522 GB, free: 12.7 MB / 398.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.002592/0.4725, allocations: 1.001 MB / 0.5229 GB, free: 11.81 MB / 398.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.002838/0.4753, allocations: 1.207 MB / 0.5241 GB, free: 10.84 MB / 398.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0005696/0.4759, allocations: 116 kB / 0.5242 GB, free: 10.73 MB / 398.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0009119/0.4769, allocations: 179.8 kB / 0.5244 GB, free: 10.57 MB / 398.1 MB Notification: Performance of NFScalarize.scalarize: time 0.000656/0.4775, allocations: 0.5268 MB / 0.5249 GB, free: 10.15 MB / 398.1 MB Notification: Performance of NFVerifyModel.verify: time 0.001927/0.4795, allocations: 1.283 MB / 0.5262 GB, free: 8.934 MB / 398.1 MB Notification: Performance of NFConvertDAE.convert: time 0.004585/0.4841, allocations: 3.017 MB / 0.5291 GB, free: 7.449 MB / 398.1 MB Notification: Performance of FrontEnd - DAE generated: time 7.605e-06/0.4841, allocations: 0 / 0.5291 GB, free: 7.449 MB / 398.1 MB Notification: Performance of FrontEnd: time 2.515e-06/0.4841, allocations: 0 / 0.5291 GB, free: 7.449 MB / 398.1 MB Notification: Performance of Transformations before backend: time 0.0001632/0.4843, allocations: 0 / 0.5291 GB, free: 7.449 MB / 398.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.006624/0.4909, allocations: 2.599 MB / 0.5316 GB, free: 4.785 MB / 398.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.375e-05/0.491, allocations: 12.03 kB / 0.5317 GB, free: 4.773 MB / 398.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.00106/0.492, allocations: 312.1 kB / 0.532 GB, free: 4.465 MB / 398.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.003105/0.4951, allocations: 1.635 MB / 0.5335 GB, free: 2.773 MB / 398.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001622/0.4953, allocations: 180.8 kB / 0.5337 GB, free: 2.594 MB / 398.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0004776/0.4958, allocations: 259.7 kB / 0.534 GB, free: 2.34 MB / 398.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.005125/0.5009, allocations: 2.676 MB / 0.5366 GB, free: 15.52 MB / 414.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 9.491e-05/0.5011, allocations: 23.75 kB / 0.5366 GB, free: 15.5 MB / 414.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0002066/0.5013, allocations: 92 kB / 0.5367 GB, free: 15.41 MB / 414.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0001509/0.5014, allocations: 119.9 kB / 0.5368 GB, free: 15.29 MB / 414.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.004132/0.5056, allocations: 1.976 MB / 0.5387 GB, free: 13.3 MB / 414.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.01478/0.5204, allocations: 10.27 MB / 0.5488 GB, free: 2.664 MB / 414.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001765/0.5222, allocations: 0.9361 MB / 0.5497 GB, free: 1.715 MB / 414.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001009/0.5232, allocations: 0.5765 MB / 0.5502 GB, free: 1.137 MB / 414.1 MB Notification: Performance of preOpt evalFunc (simulation): time 6.493e-05/0.5233, allocations: 9 kB / 0.5503 GB, free: 1.125 MB / 414.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.589e-05/0.5233, allocations: 43.56 kB / 0.5503 GB, free: 1.074 MB / 414.1 MB Notification: Performance of pre-optimization done (n=99): time 2.845e-06/0.5233, allocations: 0 / 0.5503 GB, free: 1.074 MB / 414.1 MB Notification: Performance of matching and sorting (n=125): time 0.01207/0.5354, allocations: 5.826 MB / 0.556 GB, free: 11.12 MB / 430.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 7.342e-05/0.5355, allocations: 90.11 kB / 0.5561 GB, free: 11.01 MB / 430.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.002758/0.5383, allocations: 1.891 MB / 0.5579 GB, free: 9.09 MB / 430.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0001526/0.5385, allocations: 65.69 kB / 0.558 GB, free: 9.02 MB / 430.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.001448/0.5399, allocations: 1.337 MB / 0.5593 GB, free: 7.664 MB / 430.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0003964/0.5403, allocations: 438.2 kB / 0.5597 GB, free: 7.23 MB / 430.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002535/0.5406, allocations: 185.9 kB / 0.5599 GB, free: 7.043 MB / 430.1 MB Notification: Performance of setup shared object (initialization): time 0.0001176/0.5407, allocations: 309.1 kB / 0.5602 GB, free: 6.738 MB / 430.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001317/0.542, allocations: 0.707 MB / 0.5609 GB, free: 6.027 MB / 430.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001913/0.5439, allocations: 1.59 MB / 0.5624 GB, free: 4.012 MB / 430.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.002942/0.5469, allocations: 2.179 MB / 0.5645 GB, free: 1.418 MB / 430.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.27e-05/0.5469, allocations: 8 kB / 0.5646 GB, free: 1.41 MB / 430.1 MB Notification: Performance of matching and sorting (n=275) (initialization): time 0.004839/0.5518, allocations: 2.757 MB / 0.5672 GB, free: 14.64 MB / 446.1 MB Notification: Performance of prepare postOptimizeDAE: time 3.57e-05/0.5518, allocations: 19.94 kB / 0.5673 GB, free: 14.62 MB / 446.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.461e-05/0.5519, allocations: 39.94 kB / 0.5673 GB, free: 14.59 MB / 446.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.002266/0.5541, allocations: 1.345 MB / 0.5686 GB, free: 13.24 MB / 446.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001267/0.5554, allocations: 419.3 kB / 0.569 GB, free: 12.83 MB / 446.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002401/0.5578, allocations: 1.719 MB / 0.5707 GB, free: 11.08 MB / 446.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001832/0.5597, allocations: 251.5 kB / 0.5709 GB, free: 10.84 MB / 446.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001563/0.5598, allocations: 108 kB / 0.571 GB, free: 10.73 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.001287/0.5611, allocations: 0.6376 MB / 0.5717 GB, free: 10.08 MB / 446.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0003177/0.5615, allocations: 217.2 kB / 0.5719 GB, free: 9.867 MB / 446.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.00368/0.5651, allocations: 1.75 MB / 0.5736 GB, free: 8.105 MB / 446.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.504e-05/0.5652, allocations: 16 kB / 0.5736 GB, free: 8.09 MB / 446.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.823e-06/0.5652, allocations: 0 / 0.5736 GB, free: 8.09 MB / 446.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.278e-05/0.5652, allocations: 11.97 kB / 0.5736 GB, free: 8.078 MB / 446.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.007809/0.573, allocations: 4.53 MB / 0.578 GB, free: 3.438 MB / 446.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 9.097e-06/0.5731, allocations: 4 kB / 0.578 GB, free: 3.434 MB / 446.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0006313/0.5737, allocations: 159.7 kB / 0.5782 GB, free: 3.277 MB / 446.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.002109/0.5758, allocations: 1.227 MB / 0.5794 GB, free: 2.047 MB / 446.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001015/0.5759, allocations: 47.95 kB / 0.5794 GB, free: 2 MB / 446.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.002148/0.5781, allocations: 1.513 MB / 0.5809 GB, free: 472 kB / 446.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.6e-06/0.5781, allocations: 7.938 kB / 0.5809 GB, free: 464 kB / 446.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.2034/0.7815, allocations: 2.595 MB / 0.5834 GB, free: 129.1 MB / 446.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0007831/0.7823, allocations: 423.7 kB / 0.5838 GB, free: 129 MB / 446.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0004316/0.7828, allocations: 53.25 kB / 0.5839 GB, free: 129 MB / 446.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001129/0.7839, allocations: 129.1 kB / 0.584 GB, free: 129 MB / 446.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0003886/0.7843, allocations: 204.5 kB / 0.5842 GB, free: 129 MB / 446.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 7.99e-05/0.7844, allocations: 48.55 kB / 0.5843 GB, free: 129 MB / 446.1 MB Notification: Performance of sorting global known variables: time 0.001547/0.786, allocations: 1.217 MB / 0.5855 GB, free: 128.8 MB / 446.1 MB Notification: Performance of sort global known variables: time 2.51e-07/0.786, allocations: 0 / 0.5855 GB, free: 128.8 MB / 446.1 MB Notification: Performance of remove unused functions: time 0.001605/0.7876, allocations: 467.5 kB / 0.5859 GB, free: 128.8 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.0003053/0.7879, allocations: 182.4 kB / 0.5861 GB, free: 128.7 MB / 446.1 MB Notification: Performance of simCode: created initialization part: time 0.002865/0.7908, allocations: 1.782 MB / 0.5878 GB, free: 128.6 MB / 446.1 MB Notification: Performance of simCode: created event and clocks part: time 3.507e-06/0.7908, allocations: 0 / 0.5878 GB, free: 128.6 MB / 446.1 MB Notification: Performance of simCode: created simulation system equations: time 0.001515/0.7923, allocations: 0.811 MB / 0.5886 GB, free: 128.6 MB / 446.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002131/0.7944, allocations: 306.9 kB / 0.5889 GB, free: 128.6 MB / 446.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.007617/0.8021, allocations: 5.517 MB / 0.5943 GB, free: 125.7 MB / 446.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0009502/0.803, allocations: 1.584 MB / 0.5958 GB, free: 124.9 MB / 446.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0003802/0.8034, allocations: 137 kB / 0.596 GB, free: 124.9 MB / 446.1 MB Notification: Performance of SimCode: time 6.31e-07/0.8034, allocations: 0 / 0.596 GB, free: 124.9 MB / 446.1 MB Notification: Performance of Templates: time 0.0495/0.853, allocations: 39.1 MB / 0.6342 GB, free: 112.1 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)