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.001124/0.001124, allocations: 107 kB / 16.36 MB, free: 5.875 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.001211/0.001211, allocations: 196.2 kB / 17.3 MB, free: 5.516 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.204/1.204, allocations: 222.9 MB / 241 MB, free: 14.98 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/VehicleInterfaces 2.0.1-master/package.mo): time 0.06434/0.06434, allocations: 7.993 MB / 299.2 MB, free: 7.117 MB / 238.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001164/0.001164, allocations: 59.91 kB / 362 MB, free: 8.184 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1697/0.1709, allocations: 51.21 MB / 413.2 MB, free: 26.61 MB / 302.1 MB Notification: Performance of NFInst.instantiate(VehicleInterfaces.Examples.ConventionalAutomaticVehicle): time 0.01488/0.1858, allocations: 21.42 MB / 434.7 MB, free: 5.109 MB / 302.1 MB Notification: Performance of NFInst.instExpressions: time 0.008936/0.1948, allocations: 5.726 MB / 440.4 MB, free: 15.37 MB / 318.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.003074/0.1979, allocations: 171.5 kB / 440.6 MB, free: 15.2 MB / 318.1 MB Notification: Performance of NFTyping.typeComponents: time 0.00201/0.2, allocations: 0.857 MB / 441.4 MB, free: 14.34 MB / 318.1 MB Notification: Performance of NFTyping.typeBindings: time 0.001851/0.2018, allocations: 0.6779 MB / 442.1 MB, free: 13.66 MB / 318.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.006872/0.2087, allocations: 4.287 MB / 446.4 MB, free: 9.359 MB / 318.1 MB Notification: Performance of NFFlatten.flatten: time 0.003523/0.2123, allocations: 3.278 MB / 449.7 MB, free: 6.062 MB / 318.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.004374/0.2167, allocations: 3.94 MB / 453.6 MB, free: 2.055 MB / 318.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.001447/0.2181, allocations: 1.335 MB / 454.9 MB, free: 0.7148 MB / 318.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.001505/0.2196, allocations: 1.49 MB / 456.4 MB, free: 15.22 MB / 334.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0003876/0.22, allocations: 360 kB / 456.8 MB, free: 14.87 MB / 334.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0005367/0.2206, allocations: 423.9 kB / 457.2 MB, free: 14.45 MB / 334.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0005455/0.2211, allocations: 0.8022 MB / 458 MB, free: 13.64 MB / 334.1 MB Notification: Performance of NFVerifyModel.verify: time 0.001194/0.2223, allocations: 1.563 MB / 459.5 MB, free: 12.07 MB / 334.1 MB Notification: Performance of NFConvertDAE.convert: time 0.003112/0.2255, allocations: 3.984 MB / 463.5 MB, free: 8.078 MB / 334.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.71e-06/0.2255, allocations: 0 / 463.5 MB, free: 8.078 MB / 334.1 MB Notification: Performance of FrontEnd: time 1.624e-06/0.2255, allocations: 3.938 kB / 463.5 MB, free: 8.074 MB / 334.1 MB Notification: Performance of Transformations before backend: time 4.967e-05/0.2255, allocations: 0 / 463.5 MB, free: 8.074 MB / 334.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.004739/0.2303, allocations: 3.09 MB / 466.6 MB, free: 4.918 MB / 334.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.874e-05/0.2303, allocations: 8.031 kB / 466.6 MB, free: 4.91 MB / 334.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0003859/0.2307, allocations: 316.1 kB / 466.9 MB, free: 4.598 MB / 334.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.002323/0.2331, allocations: 1.698 MB / 468.6 MB, free: 2.844 MB / 334.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001148/0.2332, allocations: 180.7 kB / 468.8 MB, free: 2.664 MB / 334.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.000323/0.2335, allocations: 251.8 kB / 469.1 MB, free: 2.418 MB / 334.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.003817/0.2373, allocations: 2.662 MB / 471.7 MB, free: 15.61 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 7.794e-05/0.2374, allocations: 31.73 kB / 471.8 MB, free: 15.58 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001711/0.2376, allocations: 95.98 kB / 471.8 MB, free: 15.48 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0001125/0.2377, allocations: 123.9 kB / 472 MB, free: 15.36 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.003235/0.241, allocations: 1.956 MB / 473.9 MB, free: 13.39 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.01147/0.2525, allocations: 10.11 MB / 484 MB, free: 2.906 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001458/0.2539, allocations: 0.92 MB / 485 MB, free: 1.973 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0008783/0.2548, allocations: 0.5629 MB / 485.5 MB, free: 1.402 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 8.631e-05/0.2549, allocations: 16.98 kB / 485.5 MB, free: 1.383 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.96e-05/0.255, allocations: 43.56 kB / 485.6 MB, free: 1.332 MB / 350.1 MB Notification: Performance of pre-optimization done (n=99): time 3.426e-06/0.255, allocations: 0 / 485.6 MB, free: 1.332 MB / 350.1 MB Notification: Performance of matching and sorting (n=125): time 0.01017/0.2652, allocations: 5.64 MB / 491.2 MB, free: 11.56 MB / 366.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.629e-05/0.2652, allocations: 94.09 kB / 491.3 MB, free: 11.45 MB / 366.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.002202/0.2674, allocations: 1.89 MB / 493.2 MB, free: 9.531 MB / 366.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0001099/0.2676, allocations: 69.69 kB / 493.3 MB, free: 9.457 MB / 366.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0008918/0.2685, allocations: 1.334 MB / 494.6 MB, free: 8.105 MB / 366.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0003076/0.2688, allocations: 434.2 kB / 495 MB, free: 7.676 MB / 366.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.000536/0.2693, allocations: 427.5 kB / 495.4 MB, free: 7.25 MB / 366.1 MB Notification: Performance of setup shared object (initialization): time 8.063e-05/0.2694, allocations: 309.1 kB / 495.7 MB, free: 6.945 MB / 366.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001137/0.2706, allocations: 0.6992 MB / 496.4 MB, free: 6.242 MB / 366.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001628/0.2722, allocations: 1.574 MB / 498 MB, free: 4.246 MB / 366.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.002496/0.2747, allocations: 2.165 MB / 0.4885 GB, free: 1.668 MB / 366.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.493e-05/0.2747, allocations: 12 kB / 0.4885 GB, free: 1.656 MB / 366.1 MB Notification: Performance of matching and sorting (n=275) (initialization): time 0.004382/0.2791, allocations: 2.747 MB / 0.4912 GB, free: 14.9 MB / 382.1 MB Notification: Performance of prepare postOptimizeDAE: time 3.251e-05/0.2792, allocations: 26.12 kB / 0.4912 GB, free: 14.88 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.451e-05/0.2792, allocations: 32.12 kB / 0.4912 GB, free: 14.84 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.002123/0.2813, allocations: 1.348 MB / 0.4925 GB, free: 13.49 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001179/0.2825, allocations: 411.3 kB / 0.4929 GB, free: 13.09 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002196/0.2847, allocations: 1.713 MB / 0.4946 GB, free: 11.35 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001615/0.2864, allocations: 207.5 kB / 0.4948 GB, free: 11.14 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001729/0.2866, allocations: 112 kB / 0.4949 GB, free: 11.04 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.001009/0.2876, allocations: 0.6337 MB / 0.4955 GB, free: 10.39 MB / 382.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0003745/0.288, allocations: 217.2 kB / 0.4957 GB, free: 10.18 MB / 382.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0032/0.2912, allocations: 1.742 MB / 0.4974 GB, free: 8.422 MB / 382.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.267e-05/0.2912, allocations: 12 kB / 0.4974 GB, free: 8.41 MB / 382.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.501e-06/0.2912, allocations: 0 / 0.4974 GB, free: 8.41 MB / 382.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 9.919e-06/0.2912, allocations: 3.984 kB / 0.4974 GB, free: 8.406 MB / 382.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.007333/0.2986, allocations: 4.432 MB / 0.5018 GB, free: 3.855 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.041e-05/0.2986, allocations: 4 kB / 0.5018 GB, free: 3.852 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0005949/0.2992, allocations: 163.8 kB / 0.5019 GB, free: 3.691 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.00182/0.301, allocations: 1.227 MB / 0.5031 GB, free: 2.461 MB / 382.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 9.99e-05/0.3011, allocations: 39.95 kB / 0.5032 GB, free: 2.422 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001934/0.3031, allocations: 1.513 MB / 0.5046 GB, free: 0.8828 MB / 382.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.02e-06/0.3031, allocations: 7.875 kB / 0.5046 GB, free: 0.875 MB / 382.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.1437/0.4468, allocations: 2.577 MB / 0.5072 GB, free: 92.01 MB / 382.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.000691/0.4475, allocations: 422.8 kB / 0.5076 GB, free: 91.82 MB / 382.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0002352/0.4478, allocations: 44.81 kB / 0.5076 GB, free: 91.79 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0008137/0.4486, allocations: 99.72 kB / 0.5077 GB, free: 91.77 MB / 382.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0003508/0.449, allocations: 204.8 kB / 0.5079 GB, free: 91.73 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 8.307e-05/0.4491, allocations: 46.7 kB / 0.5079 GB, free: 91.73 MB / 382.1 MB Notification: Performance of sorting global known variables: time 0.001331/0.4504, allocations: 1.22 MB / 0.5091 GB, free: 91.25 MB / 382.1 MB Notification: Performance of sort global known variables: time 3.21e-07/0.4504, allocations: 0 / 0.5091 GB, free: 91.25 MB / 382.1 MB Notification: Performance of remove unused functions: time 0.001295/0.4517, allocations: 468.3 kB / 0.5096 GB, free: 91.2 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.0002481/0.452, allocations: 185.9 kB / 0.5098 GB, free: 91.09 MB / 382.1 MB Notification: Performance of simCode: created initialization part: time 0.002576/0.4545, allocations: 1.773 MB / 0.5115 GB, free: 90.47 MB / 382.1 MB Notification: Performance of simCode: created event and clocks part: time 3.206e-06/0.4546, allocations: 0.6875 kB / 0.5115 GB, free: 90.47 MB / 382.1 MB Notification: Performance of simCode: created simulation system equations: time 0.001379/0.4559, allocations: 0.8185 MB / 0.5123 GB, free: 90.15 MB / 382.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001337/0.4573, allocations: 334.4 kB / 0.5126 GB, free: 90.02 MB / 382.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.006107/0.4634, allocations: 4.197 MB / 0.5167 GB, free: 88.05 MB / 382.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0007637/0.4642, allocations: 1.583 MB / 0.5183 GB, free: 87.29 MB / 382.1 MB Notification: Performance of simCode: alias equations: time 0.0006793/0.4649, allocations: 305.5 kB / 0.5185 GB, free: 87.24 MB / 382.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002167/0.4651, allocations: 136.7 kB / 0.5187 GB, free: 87.22 MB / 382.1 MB Notification: Performance of SimCode: time 3.9e-07/0.4651, allocations: 0 / 0.5187 GB, free: 87.22 MB / 382.1 MB Notification: Performance of Templates: time 0.03182/0.4969, allocations: 28.59 MB / 0.5466 GB, free: 60.14 MB / 382.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 -s gbode -lv LOG_STATS > VehicleInterfaces_VehicleInterfaces.Examples.ConventionalAutomaticVehicle.pipe 2>&1)