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.001367/0.001367, allocations: 111.3 kB / 15.23 MB, free: 0.6406 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.001704/0.001704, allocations: 193.8 kB / 16.14 MB, free: 6.695 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.316/1.316, allocations: 222.9 MB / 239.8 MB, free: 4.613 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/VehicleInterfaces 2.0.1-master/package.mo): time 0.1649/0.1649, allocations: 7.982 MB / 297.9 MB, free: 2.41 MB / 238.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001306/0.001306, allocations: 59.91 kB / 359.9 MB, free: 15.17 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09537/0.0967, allocations: 51.21 MB / 411.1 MB, free: 11.91 MB / 350.1 MB Notification: Performance of NFInst.instantiate(VehicleInterfaces.Examples.ConventionalAutomaticVehicle): time 0.2297/0.3264, allocations: 94.72 MB / 0.494 GB, free: 14.43 MB / 382.1 MB Notification: Performance of NFInst.instExpressions: time 0.04194/0.3684, allocations: 18.09 MB / 0.5117 GB, free: 2.09 MB / 382.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.01985/0.3883, allocations: 452.7 kB / 0.5121 GB, free: 2.016 MB / 382.1 MB Notification: Performance of NFTyping.typeComponents: time 0.003093/0.3914, allocations: 0.7056 MB / 0.5128 GB, free: 1.633 MB / 382.1 MB Notification: Performance of NFTyping.typeBindings: time 0.003249/0.3948, allocations: 0.589 MB / 0.5134 GB, free: 1.234 MB / 382.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.00875/0.4035, allocations: 4.261 MB / 0.5175 GB, free: 15 MB / 398.1 MB Notification: Performance of NFFlatten.flatten: time 0.005333/0.4089, allocations: 3.138 MB / 0.5206 GB, free: 12.15 MB / 398.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.006828/0.4157, allocations: 2.954 MB / 0.5235 GB, free: 9.434 MB / 398.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.002403/0.4182, allocations: 1.163 MB / 0.5246 GB, free: 8.402 MB / 398.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.002718/0.4209, allocations: 1.428 MB / 0.526 GB, free: 7.266 MB / 398.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0009728/0.4219, allocations: 208 kB / 0.5262 GB, free: 7.062 MB / 398.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.001294/0.4232, allocations: 274 kB / 0.5265 GB, free: 6.812 MB / 398.1 MB Notification: Performance of NFScalarize.scalarize: time 0.001105/0.4243, allocations: 0.6523 MB / 0.5271 GB, free: 6.289 MB / 398.1 MB Notification: Performance of NFVerifyModel.verify: time 0.002495/0.4268, allocations: 1.416 MB / 0.5285 GB, free: 4.965 MB / 398.1 MB Notification: Performance of NFConvertDAE.convert: time 0.004517/0.4314, allocations: 3.8 MB / 0.5322 GB, free: 1.488 MB / 398.1 MB Notification: Performance of FrontEnd - DAE generated: time 6.632e-06/0.4314, allocations: 7.922 kB / 0.5322 GB, free: 1.48 MB / 398.1 MB Notification: Performance of FrontEnd: time 1.253e-06/0.4314, allocations: 4 kB / 0.5322 GB, free: 1.477 MB / 398.1 MB Notification: Performance of Transformations before backend: time 0.000156/0.4316, allocations: 0 / 0.5322 GB, free: 1.477 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.007349/0.4389, allocations: 3.092 MB / 0.5352 GB, free: 14.32 MB / 414.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.04e-05/0.439, allocations: 8.031 kB / 0.5352 GB, free: 14.31 MB / 414.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0007912/0.4398, allocations: 316.1 kB / 0.5355 GB, free: 14 MB / 414.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.002737/0.4425, allocations: 1.631 MB / 0.5371 GB, free: 12.31 MB / 414.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001278/0.4427, allocations: 184.8 kB / 0.5373 GB, free: 12.13 MB / 414.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0003732/0.4431, allocations: 251.8 kB / 0.5375 GB, free: 11.88 MB / 414.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.004503/0.4476, allocations: 2.676 MB / 0.5401 GB, free: 9.062 MB / 414.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 9.804e-05/0.4477, allocations: 27.73 kB / 0.5402 GB, free: 9.035 MB / 414.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001971/0.4479, allocations: 104 kB / 0.5403 GB, free: 8.934 MB / 414.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.000115/0.448, allocations: 115.9 kB / 0.5404 GB, free: 8.82 MB / 414.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.003593/0.4516, allocations: 1.953 MB / 0.5423 GB, free: 6.852 MB / 414.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.01398/0.4656, allocations: 10.2 MB / 0.5523 GB, free: 12.29 MB / 430.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001729/0.4674, allocations: 0.9287 MB / 0.5532 GB, free: 11.35 MB / 430.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001013/0.4684, allocations: 0.5686 MB / 0.5537 GB, free: 10.78 MB / 430.1 MB Notification: Performance of preOpt evalFunc (simulation): time 8.496e-05/0.4686, allocations: 13 kB / 0.5537 GB, free: 10.76 MB / 430.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.349e-05/0.4686, allocations: 47.56 kB / 0.5538 GB, free: 10.71 MB / 430.1 MB Notification: Performance of pre-optimization done (n=99): time 3.848e-06/0.4686, allocations: 0 / 0.5538 GB, free: 10.71 MB / 430.1 MB Notification: Performance of matching and sorting (n=125): time 0.01171/0.4803, allocations: 5.627 MB / 0.5593 GB, free: 4.949 MB / 430.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.289e-05/0.4804, allocations: 90.11 kB / 0.5594 GB, free: 4.844 MB / 430.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.002838/0.4833, allocations: 1.89 MB / 0.5612 GB, free: 2.922 MB / 430.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0001447/0.4834, allocations: 69.69 kB / 0.5613 GB, free: 2.848 MB / 430.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.001003/0.4844, allocations: 1.341 MB / 0.5626 GB, free: 1.488 MB / 430.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0004005/0.4848, allocations: 438.2 kB / 0.563 GB, free: 1.055 MB / 430.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0006405/0.4855, allocations: 423.4 kB / 0.5634 GB, free: 0.6328 MB / 430.1 MB Notification: Performance of setup shared object (initialization): time 9.182e-05/0.4856, allocations: 309.1 kB / 0.5637 GB, free: 336 kB / 430.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001303/0.4869, allocations: 0.6993 MB / 0.5644 GB, free: 15.62 MB / 446.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001719/0.4886, allocations: 1.586 MB / 0.5659 GB, free: 13.61 MB / 446.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.002719/0.4914, allocations: 2.163 MB / 0.568 GB, free: 11.03 MB / 446.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.273e-05/0.4914, allocations: 8 kB / 0.568 GB, free: 11.02 MB / 446.1 MB Notification: Performance of matching and sorting (n=275) (initialization): time 0.004732/0.4961, allocations: 2.742 MB / 0.5707 GB, free: 8.273 MB / 446.1 MB Notification: Performance of prepare postOptimizeDAE: time 3.448e-05/0.4962, allocations: 19.94 kB / 0.5707 GB, free: 8.254 MB / 446.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.621e-05/0.4962, allocations: 32 kB / 0.5708 GB, free: 8.223 MB / 446.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.002205/0.4985, allocations: 1.345 MB / 0.5721 GB, free: 6.875 MB / 446.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001244/0.4997, allocations: 415.3 kB / 0.5725 GB, free: 6.469 MB / 446.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002378/0.5021, allocations: 1.719 MB / 0.5742 GB, free: 4.723 MB / 446.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001763/0.5039, allocations: 207.6 kB / 0.5744 GB, free: 4.52 MB / 446.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0002147/0.5041, allocations: 108 kB / 0.5745 GB, free: 4.414 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.001183/0.5053, allocations: 0.6337 MB / 0.5751 GB, free: 3.77 MB / 446.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0004377/0.5058, allocations: 213.2 kB / 0.5753 GB, free: 3.559 MB / 446.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.00342/0.5092, allocations: 1.754 MB / 0.577 GB, free: 1.793 MB / 446.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.144e-05/0.5092, allocations: 12 kB / 0.577 GB, free: 1.781 MB / 446.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.073e-05/0.5092, allocations: 0 / 0.577 GB, free: 1.781 MB / 446.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.026e-05/0.5092, allocations: 7.922 kB / 0.577 GB, free: 1.773 MB / 446.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.1763/0.6856, allocations: 4.463 MB / 0.5814 GB, free: 130.6 MB / 446.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 8.346e-06/0.6856, allocations: 3.656 kB / 0.5814 GB, free: 130.6 MB / 446.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0006189/0.6862, allocations: 150.4 kB / 0.5815 GB, free: 130.6 MB / 446.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.001742/0.688, allocations: 1.23 MB / 0.5827 GB, free: 130.5 MB / 446.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001107/0.6881, allocations: 38.56 kB / 0.5828 GB, free: 130.5 MB / 446.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001872/0.69, allocations: 1.515 MB / 0.5842 GB, free: 129.8 MB / 446.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.156e-06/0.69, allocations: 3.25 kB / 0.5842 GB, free: 129.8 MB / 446.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.003883/0.6939, allocations: 2.593 MB / 0.5868 GB, free: 128.6 MB / 446.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0007383/0.6947, allocations: 418.4 kB / 0.5872 GB, free: 128.4 MB / 446.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0002757/0.6949, allocations: 50.22 kB / 0.5872 GB, free: 128.4 MB / 446.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0008359/0.6958, allocations: 95.97 kB / 0.5873 GB, free: 128.4 MB / 446.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0004222/0.6962, allocations: 196.5 kB / 0.5875 GB, free: 128.4 MB / 446.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 8.704e-05/0.6963, allocations: 50.14 kB / 0.5875 GB, free: 128.4 MB / 446.1 MB Notification: Performance of sorting global known variables: time 0.001586/0.6979, allocations: 1.217 MB / 0.5887 GB, free: 127.9 MB / 446.1 MB Notification: Performance of sort global known variables: time 1.4e-07/0.6979, allocations: 0 / 0.5887 GB, free: 127.9 MB / 446.1 MB Notification: Performance of remove unused functions: time 0.001606/0.6995, allocations: 466.8 kB / 0.5892 GB, free: 127.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.0003398/0.6999, allocations: 194.8 kB / 0.5894 GB, free: 127.7 MB / 446.1 MB Notification: Performance of simCode: created initialization part: time 0.003016/0.7029, allocations: 1.767 MB / 0.5911 GB, free: 127.2 MB / 446.1 MB Notification: Performance of simCode: created event and clocks part: time 5.34e-06/0.7029, allocations: 6.641 kB / 0.5911 GB, free: 127.2 MB / 446.1 MB Notification: Performance of simCode: created simulation system equations: time 0.001514/0.7044, allocations: 0.8105 MB / 0.5919 GB, free: 126.9 MB / 446.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001841/0.7063, allocations: 295.8 kB / 0.5922 GB, free: 126.8 MB / 446.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.00854/0.7149, allocations: 5.287 MB / 0.5973 GB, free: 123.8 MB / 446.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001161/0.7161, allocations: 1.586 MB / 0.5989 GB, free: 123 MB / 446.1 MB Notification: Performance of simCode: alias equations: time 0.001214/0.7173, allocations: 318.9 kB / 0.5992 GB, free: 122.9 MB / 446.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002824/0.7176, allocations: 122.5 kB / 0.5993 GB, free: 122.9 MB / 446.1 MB Notification: Performance of SimCode: time 1.633e-06/0.7176, allocations: 3.188 kB / 0.5993 GB, free: 122.9 MB / 446.1 MB Notification: Performance of Templates: time 0.04887/0.7665, allocations: 27.13 MB / 0.6258 GB, free: 117.9 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)