Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr VehicleInterfaces_VehicleInterfaces.Examples.SeriesHybrid.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/package.mo", uses=false) Using package VehicleInterfaces with version 2.0.1 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/VehicleInterfaces 2.0.1/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.SeriesHybrid,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="VehicleInterfaces_VehicleInterfaces.Examples.SeriesHybrid") translateModel(VehicleInterfaces.Examples.SeriesHybrid,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="VehicleInterfaces_VehicleInterfaces.Examples.SeriesHybrid") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001048/0.001048, allocations: 107.4 kB / 16.29 MB, free: 6.43 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.001117/0.001117, allocations: 184 kB / 17.22 MB, free: 5.934 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.388/1.388, allocations: 222.9 MB / 240.9 MB, free: 15.28 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/VehicleInterfaces 2.0.1/package.mo): time 0.04233/0.04233, allocations: 7.983 MB / 299 MB, free: 7.156 MB / 238.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001175/0.001175, allocations: 59.91 kB / 361.3 MB, free: 8.844 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2006/0.2018, allocations: 51.21 MB / 412.5 MB, free: 26.72 MB / 302.1 MB Notification: Performance of NFInst.instantiate(VehicleInterfaces.Examples.SeriesHybrid): time 0.01733/0.2191, allocations: 23.15 MB / 435.6 MB, free: 3.484 MB / 302.1 MB Notification: Performance of NFInst.instExpressions: time 0.01197/0.2311, allocations: 5.984 MB / 441.6 MB, free: 13.48 MB / 318.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.005557/0.2367, allocations: 179.5 kB / 441.8 MB, free: 13.3 MB / 318.1 MB Notification: Performance of NFTyping.typeComponents: time 0.003135/0.2399, allocations: 0.9228 MB / 442.7 MB, free: 12.37 MB / 318.1 MB Notification: Performance of NFTyping.typeBindings: time 0.003656/0.2436, allocations: 0.7552 MB / 443.5 MB, free: 11.61 MB / 318.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.008061/0.2517, allocations: 4.236 MB / 447.7 MB, free: 7.363 MB / 318.1 MB Notification: Performance of NFFlatten.flatten: time 0.005177/0.2569, allocations: 3.586 MB / 451.3 MB, free: 3.754 MB / 318.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.00567/0.2626, allocations: 4.207 MB / 455.5 MB, free: 15.47 MB / 334.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.002303/0.2649, allocations: 1.444 MB / 457 MB, free: 14.02 MB / 334.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.002181/0.2671, allocations: 1.618 MB / 458.6 MB, free: 12.39 MB / 334.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0005719/0.2677, allocations: 392 kB / 459 MB, free: 12.01 MB / 334.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0007256/0.2684, allocations: 463.9 kB / 459.4 MB, free: 11.56 MB / 334.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0007073/0.2691, allocations: 0.8568 MB / 460.3 MB, free: 10.7 MB / 334.1 MB Notification: Performance of NFVerifyModel.verify: time 0.001703/0.2708, allocations: 1.707 MB / 462 MB, free: 8.984 MB / 334.1 MB Notification: Performance of NFConvertDAE.convert: time 0.004247/0.2751, allocations: 4.353 MB / 466.3 MB, free: 4.617 MB / 334.1 MB Notification: Performance of FrontEnd - DAE generated: time 6.302e-06/0.2751, allocations: 0 / 466.3 MB, free: 4.617 MB / 334.1 MB Notification: Performance of FrontEnd: time 3.507e-06/0.2751, allocations: 7.984 kB / 466.3 MB, free: 4.609 MB / 334.1 MB Notification: Performance of Transformations before backend: time 0.0001047/0.2752, allocations: 0 / 466.3 MB, free: 4.609 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: 704 * Number of variables: 704 Notification: Performance of Generate backend data structure: time 0.005921/0.2812, allocations: 3.345 MB / 469.7 MB, free: 1.199 MB / 334.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.028e-05/0.2812, allocations: 8.031 kB / 469.7 MB, free: 1.191 MB / 334.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0004781/0.2817, allocations: 339.8 kB / 470 MB, free: 0.8555 MB / 334.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.002326/0.284, allocations: 1.718 MB / 471.7 MB, free: 15.08 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001437/0.2842, allocations: 201.2 kB / 471.9 MB, free: 14.88 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0003648/0.2846, allocations: 275.8 kB / 472.2 MB, free: 14.61 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.004499/0.2891, allocations: 2.886 MB / 475.1 MB, free: 11.59 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 9.489e-05/0.2892, allocations: 27.73 kB / 475.1 MB, free: 11.56 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.000231/0.2894, allocations: 112 kB / 475.2 MB, free: 11.45 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0001341/0.2896, allocations: 120 kB / 475.3 MB, free: 11.34 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.003893/0.2935, allocations: 2.133 MB / 477.5 MB, free: 9.191 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.01386/0.3073, allocations: 10.73 MB / 488.2 MB, free: 14.09 MB / 366.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001621/0.309, allocations: 0.9559 MB / 489.2 MB, free: 13.11 MB / 366.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001122/0.3101, allocations: 0.6416 MB / 489.8 MB, free: 12.46 MB / 366.1 MB Notification: Performance of preOpt evalFunc (simulation): time 7.307e-05/0.3102, allocations: 17 kB / 489.8 MB, free: 12.45 MB / 366.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.681e-05/0.3103, allocations: 47.55 kB / 489.9 MB, free: 12.39 MB / 366.1 MB Notification: Performance of pre-optimization done (n=114): time 3.196e-06/0.3103, allocations: 4 kB / 489.9 MB, free: 12.39 MB / 366.1 MB Notification: Performance of matching and sorting (n=134): time 0.01174/0.322, allocations: 6.096 MB / 496 MB, free: 6.137 MB / 366.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.713e-05/0.3221, allocations: 94.42 kB / 496.1 MB, free: 6.023 MB / 366.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.002613/0.3247, allocations: 1.977 MB / 498 MB, free: 4.02 MB / 366.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0001491/0.3249, allocations: 65.7 kB / 498.1 MB, free: 3.949 MB / 366.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.001189/0.3261, allocations: 1.427 MB / 499.5 MB, free: 2.504 MB / 366.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0004129/0.3265, allocations: 465.8 kB / 500 MB, free: 2.043 MB / 366.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0005665/0.3271, allocations: 439.8 kB / 0.4887 GB, free: 1.605 MB / 366.1 MB Notification: Performance of setup shared object (initialization): time 8.572e-05/0.3272, allocations: 309.1 kB / 0.489 GB, free: 1.301 MB / 366.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001215/0.3284, allocations: 0.7384 MB / 0.4897 GB, free: 0.5586 MB / 366.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001764/0.3302, allocations: 1.619 MB / 0.4913 GB, free: 14.51 MB / 382.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.00277/0.333, allocations: 2.234 MB / 0.4935 GB, free: 11.86 MB / 382.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.431e-05/0.333, allocations: 12 kB / 0.4935 GB, free: 11.85 MB / 382.1 MB Notification: Performance of matching and sorting (n=290) (initialization): time 0.004963/0.338, allocations: 2.829 MB / 0.4962 GB, free: 9.008 MB / 382.1 MB Notification: Performance of prepare postOptimizeDAE: time 3.36e-05/0.338, allocations: 20 kB / 0.4962 GB, free: 8.988 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.677e-05/0.338, allocations: 28 kB / 0.4963 GB, free: 8.961 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001893/0.3399, allocations: 1.299 MB / 0.4975 GB, free: 7.656 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001339/0.3413, allocations: 459.2 kB / 0.498 GB, free: 7.207 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.003042/0.3443, allocations: 3.012 MB / 0.5009 GB, free: 4.027 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001771/0.3461, allocations: 207.6 kB / 0.5011 GB, free: 3.824 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.000159/0.3463, allocations: 115.9 kB / 0.5012 GB, free: 3.711 MB / 382.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 136 * 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,accessories.inertia.cylinderColor[3],accessories.inertia.cylinderColor[2],accessories.inertia.cylinderColor[1],engine.flywheel.cylinderColor[3],engine.flywheel.cylinderColor[2],engine.flywheel.cylinderColor[1],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],driveline.leftHalfShaft.cylinderColor[3],driveline.leftHalfShaft.cylinderColor[2],driveline.leftHalfShaft.cylinderColor[1],driveline.rightHalfShaft.cylinderColor[3],driveline.rightHalfShaft.cylinderColor[2],driveline.rightHalfShaft.cylinderColor[1]) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (256): * Single equations (assignments): 254 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 2 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 1 system {(1,2,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 1 system {(4,29)} Notification: Performance of prepare postOptimizeDAE: time 0.001121/0.3474, allocations: 0.6573 MB / 0.5019 GB, free: 3.043 MB / 382.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0003353/0.3478, allocations: 229.1 kB / 0.5021 GB, free: 2.816 MB / 382.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.003063/0.3508, allocations: 1.753 MB / 0.5038 GB, free: 1.043 MB / 382.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.197e-05/0.3509, allocations: 12 kB / 0.5038 GB, free: 1.031 MB / 382.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.422e-06/0.3509, allocations: 8 kB / 0.5038 GB, free: 1.023 MB / 382.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.351e-05/0.3509, allocations: 7.969 kB / 0.5038 GB, free: 1.016 MB / 382.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.1931/0.544, allocations: 4.502 MB / 0.5082 GB, free: 90.54 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.011e-05/0.5441, allocations: 3.938 kB / 0.5082 GB, free: 90.54 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.000787/0.5449, allocations: 199.8 kB / 0.5084 GB, free: 90.53 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.001784/0.5467, allocations: 1.183 MB / 0.5096 GB, free: 90.21 MB / 382.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.000123/0.5468, allocations: 45.64 kB / 0.5096 GB, free: 90.19 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.002502/0.5493, allocations: 2.833 MB / 0.5124 GB, free: 87.89 MB / 382.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.337e-06/0.5493, allocations: 3.188 kB / 0.5124 GB, free: 87.89 MB / 382.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.004296/0.5536, allocations: 2.636 MB / 0.515 GB, free: 86.7 MB / 382.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0008759/0.5545, allocations: 436.8 kB / 0.5154 GB, free: 86.51 MB / 382.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0003032/0.5548, allocations: 54.69 kB / 0.5154 GB, free: 86.48 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0009793/0.5558, allocations: 99.84 kB / 0.5155 GB, free: 86.46 MB / 382.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0004733/0.5563, allocations: 211.6 kB / 0.5157 GB, free: 86.42 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001052/0.5564, allocations: 57.02 kB / 0.5158 GB, free: 86.41 MB / 382.1 MB Notification: Performance of sorting global known variables: time 0.001745/0.5582, allocations: 1.273 MB / 0.517 GB, free: 85.92 MB / 382.1 MB Notification: Performance of sort global known variables: time 1.3e-07/0.5582, allocations: 0 / 0.517 GB, free: 85.92 MB / 382.1 MB Notification: Performance of remove unused functions: time 0.00168/0.5598, allocations: 0.4984 MB / 0.5175 GB, free: 85.86 MB / 382.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 10 * Number of states: 6 (chassis.body.s,chassis.dragForces.v_rel,engine.end_1.zeroTorque1D.phi,accessories.inertia.w,generator.inductor.i,driveMotor.inductor.i) * 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_1.mode,brakes.brake_1.startForward,brakes.brake_1.startBackward,brakes.brake_2.mode,brakes.brake_2.startForward,brakes.brake_2.startBackward,brakes.brake_3.mode,brakes.brake_3.startForward,brakes.brake_3.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 (106): * Single equations (assignments): 104 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 2 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 1 system {(1,2,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 1 system {(4,24)} Notification: Performance of Backend phase and start with SimCode phase: time 0.0003133/0.5602, allocations: 199.6 kB / 0.5177 GB, free: 85.73 MB / 382.1 MB Notification: Performance of simCode: created initialization part: time 0.002961/0.5631, allocations: 1.949 MB / 0.5196 GB, free: 84.95 MB / 382.1 MB Notification: Performance of simCode: created event and clocks part: time 4.548e-06/0.5632, allocations: 3.531 kB / 0.5196 GB, free: 84.95 MB / 382.1 MB Notification: Performance of simCode: created simulation system equations: time 0.001561/0.5647, allocations: 0.9949 MB / 0.5206 GB, free: 84.49 MB / 382.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001843/0.5666, allocations: 346.8 kB / 0.5209 GB, free: 84.35 MB / 382.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.00764/0.5742, allocations: 4.791 MB / 0.5256 GB, free: 80.2 MB / 382.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0009269/0.5752, allocations: 1.656 MB / 0.5272 GB, free: 78.51 MB / 382.1 MB Notification: Performance of simCode: alias equations: time 0.0009378/0.5761, allocations: 337 kB / 0.5275 GB, free: 78.18 MB / 382.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002566/0.5764, allocations: 143.2 kB / 0.5277 GB, free: 78.04 MB / 382.1 MB Notification: Performance of SimCode: time 1.183e-06/0.5764, allocations: 0 / 0.5277 GB, free: 78.04 MB / 382.1 MB Notification: Performance of Templates: time 0.04166/0.6181, allocations: 29.52 MB / 0.5565 GB, free: 48.71 MB / 382.1 MB make -j1 -f VehicleInterfaces_VehicleInterfaces.Examples.SeriesHybrid.makefile (rm -f VehicleInterfaces_VehicleInterfaces.Examples.SeriesHybrid.pipe ; mkfifo VehicleInterfaces_VehicleInterfaces.Examples.SeriesHybrid.pipe ; head -c 1048576 < VehicleInterfaces_VehicleInterfaces.Examples.SeriesHybrid.pipe >> ../files/VehicleInterfaces_VehicleInterfaces.Examples.SeriesHybrid.sim & ./VehicleInterfaces_VehicleInterfaces.Examples.SeriesHybrid -abortSlowSimulation -alarm=480 -s gbode -lv LOG_STATS > VehicleInterfaces_VehicleInterfaces.Examples.SeriesHybrid.pipe 2>&1)