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.001195/0.001195, allocations: 106.8 kB / 16.41 MB, free: 6.508 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.001001/0.001001, allocations: 187 kB / 17.34 MB, free: 5.742 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.741/1.741, 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.07431/0.07431, allocations: 8.013 MB / 299.2 MB, free: 7.098 MB / 238.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001354/0.001354, allocations: 63.91 kB / 413.8 MB, free: 22.85 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1058/0.1072, allocations: 51.2 MB / 465 MB, free: 3.594 MB / 334.1 MB Notification: Performance of NFInst.instantiate(VehicleInterfaces.Examples.ConventionalAutomaticVehicle): time 0.02291/0.1302, allocations: 21.41 MB / 486.4 MB, free: 14.1 MB / 366.1 MB Notification: Performance of NFInst.instExpressions: time 0.01347/0.1437, allocations: 5.731 MB / 492.1 MB, free: 8.348 MB / 366.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.005585/0.1494, allocations: 167.5 kB / 492.3 MB, free: 8.184 MB / 366.1 MB Notification: Performance of NFTyping.typeComponents: time 0.002809/0.1522, allocations: 0.857 MB / 493.1 MB, free: 7.32 MB / 366.1 MB Notification: Performance of NFTyping.typeBindings: time 0.002994/0.1552, allocations: 0.7052 MB / 493.8 MB, free: 6.609 MB / 366.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.007952/0.1632, allocations: 4.283 MB / 498.1 MB, free: 2.316 MB / 366.1 MB Notification: Performance of NFFlatten.flatten: time 0.005697/0.1689, allocations: 3.274 MB / 0.4896 GB, free: 15.03 MB / 382.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.005445/0.1744, allocations: 3.952 MB / 0.4935 GB, free: 11.01 MB / 382.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.001952/0.1764, allocations: 1.343 MB / 0.4948 GB, free: 9.66 MB / 382.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.001741/0.1781, allocations: 1.494 MB / 0.4963 GB, free: 8.16 MB / 382.1 MB Notification: Performance of NFPackage.collectConstants: time 0.000415/0.1785, allocations: 360 kB / 0.4966 GB, free: 7.809 MB / 382.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0006098/0.1792, allocations: 423.9 kB / 0.497 GB, free: 7.395 MB / 382.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0006303/0.1798, allocations: 0.7945 MB / 0.4978 GB, free: 6.598 MB / 382.1 MB Notification: Performance of NFVerifyModel.verify: time 0.001421/0.1812, allocations: 1.563 MB / 0.4993 GB, free: 5.027 MB / 382.1 MB Notification: Performance of NFConvertDAE.convert: time 0.003968/0.1852, allocations: 4.003 MB / 0.5032 GB, free: 1.012 MB / 382.1 MB Notification: Performance of FrontEnd - DAE generated: time 8.506e-06/0.1852, allocations: 7.938 kB / 0.5032 GB, free: 1.004 MB / 382.1 MB Notification: Performance of FrontEnd: time 3.426e-06/0.1852, allocations: 0 / 0.5032 GB, free: 1.004 MB / 382.1 MB Notification: Performance of Transformations before backend: time 6.878e-05/0.1853, allocations: 0 / 0.5032 GB, free: 1.004 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.2792/0.4646, allocations: 3.082 MB / 0.5062 GB, free: 47.53 MB / 382.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.891e-05/0.4646, allocations: 10.61 kB / 0.5062 GB, free: 47.53 MB / 382.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.001198/0.4658, allocations: 314.7 kB / 0.5065 GB, free: 47.36 MB / 382.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.003621/0.4695, allocations: 1.696 MB / 0.5082 GB, free: 46.43 MB / 382.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001616/0.4697, allocations: 181.6 kB / 0.5084 GB, free: 46.35 MB / 382.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0004215/0.4701, allocations: 252.5 kB / 0.5086 GB, free: 46.26 MB / 382.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.005208/0.4753, allocations: 2.665 MB / 0.5112 GB, free: 45 MB / 382.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 9.565e-05/0.4754, allocations: 26.33 kB / 0.5112 GB, free: 44.99 MB / 382.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001771/0.4756, allocations: 96.94 kB / 0.5113 GB, free: 44.91 MB / 382.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0001552/0.4758, allocations: 115.2 kB / 0.5114 GB, free: 44.9 MB / 382.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.003702/0.4795, allocations: 1.965 MB / 0.5134 GB, free: 44.19 MB / 382.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.01387/0.4934, allocations: 10.11 MB / 0.5232 GB, free: 36.81 MB / 382.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.00199/0.4954, allocations: 0.9153 MB / 0.5241 GB, free: 36.34 MB / 382.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0009103/0.4963, allocations: 0.5683 MB / 0.5247 GB, free: 36.04 MB / 382.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.000519/0.4969, allocations: 12.62 kB / 0.5247 GB, free: 36.04 MB / 382.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.25e-05/0.4969, allocations: 47.38 kB / 0.5247 GB, free: 35.99 MB / 382.1 MB Notification: Performance of pre-optimization done (n=99): time 3.457e-06/0.4969, allocations: 0 / 0.5247 GB, free: 35.99 MB / 382.1 MB Notification: Performance of matching and sorting (n=125): time 0.0125/0.5094, allocations: 5.657 MB / 0.5303 GB, free: 32.47 MB / 382.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.015e-05/0.5095, allocations: 89.95 kB / 0.5304 GB, free: 32.38 MB / 382.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.002424/0.512, allocations: 1.889 MB / 0.5322 GB, free: 31.33 MB / 382.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0001038/0.5121, allocations: 65.47 kB / 0.5323 GB, free: 31.27 MB / 382.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0007761/0.5129, allocations: 1.341 MB / 0.5336 GB, free: 30.04 MB / 382.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0002637/0.5131, allocations: 433 kB / 0.534 GB, free: 29.62 MB / 382.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0004814/0.5136, allocations: 423.5 kB / 0.5344 GB, free: 29.2 MB / 382.1 MB Notification: Performance of setup shared object (initialization): time 4.842e-05/0.5137, allocations: 309.1 kB / 0.5347 GB, free: 28.9 MB / 382.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0009784/0.5147, allocations: 0.6953 MB / 0.5354 GB, free: 28.2 MB / 382.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001328/0.516, allocations: 1.582 MB / 0.5369 GB, free: 26.19 MB / 382.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.002026/0.518, allocations: 2.163 MB / 0.539 GB, free: 23.61 MB / 382.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.087e-05/0.518, allocations: 8 kB / 0.539 GB, free: 23.61 MB / 382.1 MB Notification: Performance of matching and sorting (n=275) (initialization): time 0.003918/0.522, allocations: 2.749 MB / 0.5417 GB, free: 20.85 MB / 382.1 MB Notification: Performance of prepare postOptimizeDAE: time 3.09e-05/0.522, allocations: 16 kB / 0.5417 GB, free: 20.83 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.638e-05/0.5221, allocations: 35.94 kB / 0.5418 GB, free: 20.8 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.002082/0.5241, allocations: 1.344 MB / 0.5431 GB, free: 19.46 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001054/0.5252, allocations: 419.2 kB / 0.5435 GB, free: 19.05 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001835/0.5271, allocations: 1.715 MB / 0.5451 GB, free: 17.32 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001789/0.5289, allocations: 215.4 kB / 0.5454 GB, free: 17.11 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001298/0.529, allocations: 108 kB / 0.5455 GB, free: 17 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.001038/0.53, allocations: 0.6221 MB / 0.5461 GB, free: 16.37 MB / 382.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002759/0.5303, allocations: 217.2 kB / 0.5463 GB, free: 16.15 MB / 382.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.00271/0.533, allocations: 1.751 MB / 0.548 GB, free: 14.39 MB / 382.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 9.728e-06/0.5331, allocations: 12 kB / 0.548 GB, free: 14.38 MB / 382.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.652e-06/0.5331, allocations: 0 / 0.548 GB, free: 14.38 MB / 382.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.111e-05/0.5331, allocations: 7.969 kB / 0.548 GB, free: 14.37 MB / 382.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.006185/0.5393, allocations: 4.426 MB / 0.5523 GB, free: 9.859 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 7.033e-06/0.5393, allocations: 0 / 0.5523 GB, free: 9.859 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0005485/0.5399, allocations: 152 kB / 0.5525 GB, free: 9.711 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.001536/0.5414, allocations: 1.237 MB / 0.5537 GB, free: 8.473 MB / 382.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 8.472e-05/0.5415, allocations: 39.97 kB / 0.5537 GB, free: 8.434 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001691/0.5432, allocations: 1.515 MB / 0.5552 GB, free: 6.891 MB / 382.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.665e-06/0.5432, allocations: 6.438 kB / 0.5552 GB, free: 6.887 MB / 382.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.003633/0.5469, allocations: 2.596 MB / 0.5577 GB, free: 4.254 MB / 382.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.000691/0.5476, allocations: 418.2 kB / 0.5581 GB, free: 3.824 MB / 382.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0002356/0.5478, allocations: 48 kB / 0.5582 GB, free: 3.777 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0007888/0.5486, allocations: 95.95 kB / 0.5583 GB, free: 3.684 MB / 382.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0003664/0.549, allocations: 196.7 kB / 0.5585 GB, free: 3.492 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 7.918e-05/0.5491, allocations: 47.95 kB / 0.5585 GB, free: 3.445 MB / 382.1 MB Notification: Performance of sorting global known variables: time 0.001416/0.5505, allocations: 1.218 MB / 0.5597 GB, free: 2.211 MB / 382.1 MB Notification: Performance of sort global known variables: time 1.3e-07/0.5505, allocations: 4 kB / 0.5597 GB, free: 2.207 MB / 382.1 MB Notification: Performance of remove unused functions: time 0.001564/0.5521, allocations: 466.6 kB / 0.5601 GB, free: 1.754 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.0003142/0.5524, allocations: 195.4 kB / 0.5603 GB, free: 1.559 MB / 382.1 MB Notification: Performance of simCode: created initialization part: time 0.003228/0.5556, allocations: 1.779 MB / 0.5621 GB, free: 15.79 MB / 398.1 MB Notification: Performance of simCode: created event and clocks part: time 3.777e-06/0.5556, allocations: 0 / 0.5621 GB, free: 15.79 MB / 398.1 MB Notification: Performance of simCode: created simulation system equations: time 0.001566/0.5572, allocations: 0.8085 MB / 0.5629 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.001518/0.5587, allocations: 331.1 kB / 0.5632 GB, free: 14.66 MB / 398.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.00788/0.5666, allocations: 4.282 MB / 0.5674 GB, free: 10.34 MB / 398.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001236/0.5679, allocations: 1.589 MB / 0.5689 GB, free: 8.715 MB / 398.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0003396/0.5682, allocations: 135.4 kB / 0.569 GB, free: 8.582 MB / 398.1 MB Notification: Performance of SimCode: time 2.364e-06/0.5682, allocations: 0 / 0.569 GB, free: 8.582 MB / 398.1 MB Notification: Performance of Templates: time 0.05775/0.626, allocations: 39.84 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)