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.007574/0.007574, allocations: 95.81 kB / 15.73 MB, free: 6.055 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.001494/0.001494, allocations: 202.7 kB / 16.68 MB, free: 5.977 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.399/1.399, allocations: 222.9 MB / 240.4 MB, free: 4.145 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/VehicleInterfaces 2.0.1-master/package.mo): time 0.2325/0.2325, allocations: 7.976 MB / 298.5 MB, free: 2.312 MB / 238.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001713/0.001713, allocations: 59.91 kB / 413.1 MB, free: 10.19 MB / 350.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2774/0.2792, allocations: 51.21 MB / 464.3 MB, free: 18.5 MB / 350.1 MB Notification: Performance of NFInst.instantiate(VehicleInterfaces.Examples.ConventionalAutomaticVehicle): time 0.02219/0.3014, allocations: 21.4 MB / 485.7 MB, free: 3.359 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.01421/0.3157, allocations: 5.722 MB / 491.4 MB, free: 14.92 MB / 366.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.006891/0.3226, allocations: 173.4 kB / 491.6 MB, free: 14.88 MB / 366.1 MB Notification: Performance of NFTyping.typeComponents: time 0.003156/0.3258, allocations: 0.8612 MB / 492.4 MB, free: 14.18 MB / 366.1 MB Notification: Performance of NFTyping.typeBindings: time 0.003619/0.3295, allocations: 0.7052 MB / 493.1 MB, free: 13.57 MB / 366.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.008755/0.3382, allocations: 4.283 MB / 497.4 MB, free: 10.58 MB / 366.1 MB Notification: Performance of NFFlatten.flatten: time 0.006148/0.3444, allocations: 3.269 MB / 0.489 GB, free: 8.547 MB / 366.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.007377/0.3518, allocations: 3.958 MB / 0.4928 GB, free: 5.543 MB / 366.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.002882/0.3547, allocations: 1.347 MB / 0.4941 GB, free: 4.191 MB / 366.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.00286/0.3576, allocations: 1.49 MB / 0.4956 GB, free: 2.695 MB / 366.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0008949/0.3585, allocations: 360 kB / 0.4959 GB, free: 2.344 MB / 366.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.001343/0.3599, allocations: 431.9 kB / 0.4963 GB, free: 1.922 MB / 366.1 MB Notification: Performance of NFScalarize.scalarize: time 0.00125/0.3611, allocations: 0.7945 MB / 0.4971 GB, free: 1.125 MB / 366.1 MB Notification: Performance of NFVerifyModel.verify: time 0.002806/0.364, allocations: 1.559 MB / 0.4986 GB, free: 15.55 MB / 382.1 MB Notification: Performance of NFConvertDAE.convert: time 0.005271/0.3693, allocations: 4.018 MB / 0.5026 GB, free: 11.53 MB / 382.1 MB Notification: Performance of FrontEnd - DAE generated: time 6.492e-06/0.3693, allocations: 0 / 0.5026 GB, free: 11.53 MB / 382.1 MB Notification: Performance of FrontEnd: time 2.054e-06/0.3693, allocations: 0 / 0.5026 GB, free: 11.53 MB / 382.1 MB Notification: Performance of Transformations before backend: time 0.0001021/0.3694, allocations: 3.938 kB / 0.5026 GB, free: 11.52 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.005687/0.3751, allocations: 3.177 MB / 0.5057 GB, free: 8.277 MB / 382.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.282e-05/0.3752, allocations: 8.031 kB / 0.5057 GB, free: 8.27 MB / 382.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0005011/0.3757, allocations: 329.9 kB / 0.506 GB, free: 7.945 MB / 382.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.002453/0.3781, allocations: 1.711 MB / 0.5077 GB, free: 6.18 MB / 382.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001463/0.3783, allocations: 180.8 kB / 0.5078 GB, free: 6 MB / 382.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0003478/0.3786, allocations: 259.9 kB / 0.5081 GB, free: 5.746 MB / 382.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.00421/0.3829, allocations: 2.662 MB / 0.5107 GB, free: 2.938 MB / 382.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 9.631e-05/0.383, allocations: 27.8 kB / 0.5107 GB, free: 2.91 MB / 382.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0002067/0.3832, allocations: 104 kB / 0.5108 GB, free: 2.809 MB / 382.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0001329/0.3833, allocations: 112 kB / 0.5109 GB, free: 2.699 MB / 382.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.003714/0.3871, allocations: 1.972 MB / 0.5128 GB, free: 0.7109 MB / 382.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.01266/0.3997, allocations: 10.13 MB / 0.5227 GB, free: 6.203 MB / 398.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001502/0.4013, allocations: 0.9106 MB / 0.5236 GB, free: 5.281 MB / 398.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0008897/0.4022, allocations: 0.563 MB / 0.5242 GB, free: 4.711 MB / 398.1 MB Notification: Performance of preOpt evalFunc (simulation): time 8.033e-05/0.4023, allocations: 16.98 kB / 0.5242 GB, free: 4.695 MB / 398.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.544e-05/0.4023, allocations: 43.56 kB / 0.5242 GB, free: 4.645 MB / 398.1 MB Notification: Performance of pre-optimization done (n=99): time 2.765e-06/0.4023, allocations: 0 / 0.5242 GB, free: 4.645 MB / 398.1 MB Notification: Performance of matching and sorting (n=125): time 0.01081/0.4131, allocations: 5.723 MB / 0.5298 GB, free: 14.8 MB / 414.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.193e-05/0.4132, allocations: 94.14 kB / 0.5299 GB, free: 14.69 MB / 414.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.002336/0.4156, allocations: 1.898 MB / 0.5318 GB, free: 12.76 MB / 414.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0001159/0.4157, allocations: 65.7 kB / 0.5318 GB, free: 12.69 MB / 414.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0009838/0.4167, allocations: 1.377 MB / 0.5332 GB, free: 11.3 MB / 414.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0003453/0.417, allocations: 448.5 kB / 0.5336 GB, free: 10.86 MB / 414.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0005574/0.4176, allocations: 431.7 kB / 0.534 GB, free: 10.43 MB / 414.1 MB Notification: Performance of setup shared object (initialization): time 8.862e-05/0.4177, allocations: 301.1 kB / 0.5343 GB, free: 10.13 MB / 414.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001164/0.4189, allocations: 0.6992 MB / 0.535 GB, free: 9.426 MB / 414.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001769/0.4206, allocations: 1.582 MB / 0.5365 GB, free: 7.422 MB / 414.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.002693/0.4234, allocations: 2.166 MB / 0.5386 GB, free: 4.844 MB / 414.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.182e-05/0.4234, allocations: 8 kB / 0.5387 GB, free: 4.836 MB / 414.1 MB Notification: Performance of matching and sorting (n=275) (initialization): time 0.004472/0.4279, allocations: 2.755 MB / 0.5413 GB, free: 2.07 MB / 414.1 MB Notification: Performance of prepare postOptimizeDAE: time 3.025e-05/0.4279, allocations: 20 kB / 0.5414 GB, free: 2.051 MB / 414.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.793e-05/0.4279, allocations: 31.94 kB / 0.5414 GB, free: 2.02 MB / 414.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.002042/0.43, allocations: 1.349 MB / 0.5427 GB, free: 0.668 MB / 414.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001181/0.4312, allocations: 423.2 kB / 0.5431 GB, free: 260 kB / 414.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002207/0.4334, allocations: 1.709 MB / 0.5448 GB, free: 14.51 MB / 430.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001631/0.435, allocations: 211.6 kB / 0.545 GB, free: 14.3 MB / 430.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001644/0.4352, allocations: 111.9 kB / 0.5451 GB, free: 14.2 MB / 430.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.001059/0.4363, allocations: 0.6337 MB / 0.5457 GB, free: 13.55 MB / 430.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0003244/0.4366, allocations: 230.4 kB / 0.5459 GB, free: 13.32 MB / 430.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.003213/0.4398, allocations: 1.746 MB / 0.5476 GB, free: 11.57 MB / 430.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.266e-05/0.4399, allocations: 12 kB / 0.5476 GB, free: 11.55 MB / 430.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.384e-06/0.4399, allocations: 4 kB / 0.5477 GB, free: 11.55 MB / 430.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.439e-05/0.4399, allocations: 15.91 kB / 0.5477 GB, free: 11.54 MB / 430.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.007507/0.4474, allocations: 4.416 MB / 0.552 GB, free: 7.008 MB / 430.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 6.071e-06/0.4474, allocations: 0 / 0.552 GB, free: 7.008 MB / 430.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0006097/0.448, allocations: 155.8 kB / 0.5521 GB, free: 6.855 MB / 430.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.001997/0.4501, allocations: 1.234 MB / 0.5533 GB, free: 5.617 MB / 430.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 9.871e-05/0.4502, allocations: 35.95 kB / 0.5534 GB, free: 5.582 MB / 430.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.002211/0.4524, allocations: 1.517 MB / 0.5548 GB, free: 4.039 MB / 430.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.204e-06/0.4524, allocations: 0 / 0.5548 GB, free: 4.039 MB / 430.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0044/0.4568, allocations: 2.609 MB / 0.5574 GB, free: 1.391 MB / 430.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0009783/0.4578, allocations: 435.4 kB / 0.5578 GB, free: 0.9453 MB / 430.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0002478/0.4581, allocations: 48 kB / 0.5579 GB, free: 0.8984 MB / 430.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0008328/0.4589, allocations: 99.94 kB / 0.558 GB, free: 0.8008 MB / 430.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0004226/0.4593, allocations: 196.6 kB / 0.5581 GB, free: 0.6094 MB / 430.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 9.077e-05/0.4594, allocations: 47.95 kB / 0.5582 GB, free: 0.5625 MB / 430.1 MB Notification: Performance of sorting global known variables: time 0.001673/0.4611, allocations: 1.226 MB / 0.5594 GB, free: 15.32 MB / 446.1 MB Notification: Performance of sort global known variables: time 2.1e-07/0.4611, allocations: 0 / 0.5594 GB, free: 15.32 MB / 446.1 MB Notification: Performance of remove unused functions: time 0.001594/0.4627, allocations: 456 kB / 0.5598 GB, free: 14.88 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.0003258/0.4631, allocations: 197.3 kB / 0.56 GB, free: 14.67 MB / 446.1 MB Notification: Performance of simCode: created initialization part: time 0.003243/0.4663, allocations: 1.771 MB / 0.5617 GB, free: 12.91 MB / 446.1 MB Notification: Performance of simCode: created event and clocks part: time 4.478e-06/0.4663, allocations: 0 / 0.5617 GB, free: 12.91 MB / 446.1 MB Notification: Performance of simCode: created simulation system equations: time 0.001644/0.468, allocations: 0.8187 MB / 0.5625 GB, free: 12.09 MB / 446.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001688/0.4697, allocations: 330.8 kB / 0.5629 GB, free: 11.77 MB / 446.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.007925/0.4776, allocations: 4.28 MB / 0.567 GB, free: 7.434 MB / 446.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001244/0.4789, allocations: 1.581 MB / 0.5686 GB, free: 5.816 MB / 446.1 MB Notification: Performance of simCode: alias equations: time 0.0009093/0.4798, allocations: 312.6 kB / 0.5689 GB, free: 5.508 MB / 446.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002656/0.4801, allocations: 131.4 kB / 0.569 GB, free: 5.379 MB / 446.1 MB Notification: Performance of SimCode: time 6.71e-07/0.4801, allocations: 7.938 kB / 0.569 GB, free: 5.371 MB / 446.1 MB Notification: Performance of Templates: time 0.2917/0.7718, allocations: 29.07 MB / 0.5974 GB, free: 115.8 MB / 462.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)