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-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.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.001207/0.001206, allocations: 103.9 kB / 16.35 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.0009977/0.0009978, allocations: 195.5 kB / 17.29 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.251/1.251, 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.04069/0.04069, allocations: 8.005 MB / 299.2 MB, free: 7.094 MB / 238.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001189/0.001189, allocations: 60.08 kB / 362 MB, free: 8.16 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1932/0.1944, allocations: 51.21 MB / 413.2 MB, free: 26.58 MB / 302.1 MB Notification: Performance of NFInst.instantiate(VehicleInterfaces.Examples.SeriesHybrid): time 0.01705/0.2115, allocations: 23.15 MB / 436.4 MB, free: 3.348 MB / 302.1 MB Notification: Performance of NFInst.instExpressions: time 0.01084/0.2224, allocations: 5.989 MB / 442.4 MB, free: 13.34 MB / 318.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.003962/0.2264, allocations: 183.4 kB / 442.6 MB, free: 13.16 MB / 318.1 MB Notification: Performance of NFTyping.typeComponents: time 0.002591/0.229, allocations: 0.9111 MB / 443.5 MB, free: 12.25 MB / 318.1 MB Notification: Performance of NFTyping.typeBindings: time 0.002727/0.2318, allocations: 0.7514 MB / 444.2 MB, free: 11.49 MB / 318.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.007496/0.2393, allocations: 4.248 MB / 448.5 MB, free: 7.23 MB / 318.1 MB Notification: Performance of NFFlatten.flatten: time 0.004745/0.244, allocations: 3.613 MB / 452.1 MB, free: 3.594 MB / 318.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.005262/0.2493, allocations: 4.207 MB / 456.3 MB, free: 15.31 MB / 334.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.001789/0.2511, allocations: 1.448 MB / 457.7 MB, free: 13.86 MB / 334.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.001634/0.2528, allocations: 1.622 MB / 459.4 MB, free: 12.23 MB / 334.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0004209/0.2532, allocations: 396 kB / 459.7 MB, free: 11.84 MB / 334.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0005661/0.2538, allocations: 459.9 kB / 460.2 MB, free: 11.39 MB / 334.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0005873/0.2544, allocations: 0.8607 MB / 461.1 MB, free: 10.53 MB / 334.1 MB Notification: Performance of NFVerifyModel.verify: time 0.001356/0.2557, allocations: 1.707 MB / 462.8 MB, free: 8.812 MB / 334.1 MB Notification: Performance of NFConvertDAE.convert: time 0.00356/0.2593, allocations: 4.357 MB / 467.1 MB, free: 4.441 MB / 334.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.358e-06/0.2593, allocations: 0 / 467.1 MB, free: 4.441 MB / 334.1 MB Notification: Performance of FrontEnd: time 2.104e-06/0.2593, allocations: 0 / 467.1 MB, free: 4.441 MB / 334.1 MB Notification: Performance of Transformations before backend: time 7.378e-05/0.2594, allocations: 4 kB / 467.1 MB, free: 4.438 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.005441/0.2649, allocations: 3.345 MB / 470.5 MB, free: 1.027 MB / 334.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.609e-05/0.2649, allocations: 12.03 kB / 470.5 MB, free: 1.016 MB / 334.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0004336/0.2654, allocations: 339.8 kB / 470.8 MB, free: 0.6797 MB / 334.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.002497/0.2679, allocations: 1.777 MB / 472.6 MB, free: 14.84 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.000129/0.268, allocations: 201.2 kB / 472.8 MB, free: 14.64 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.000341/0.2683, allocations: 279.7 kB / 473.1 MB, free: 14.38 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.004193/0.2725, allocations: 2.878 MB / 475.9 MB, free: 11.36 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 8.291e-05/0.2726, allocations: 27.73 kB / 476 MB, free: 11.34 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001967/0.2729, allocations: 108 kB / 476.1 MB, free: 11.23 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0001099/0.273, allocations: 123.9 kB / 476.2 MB, free: 11.11 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.003567/0.2765, allocations: 2.119 MB / 478.3 MB, free: 8.977 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.01237/0.2889, allocations: 10.74 MB / 489 MB, free: 13.86 MB / 366.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001438/0.2904, allocations: 0.9442 MB / 490 MB, free: 12.9 MB / 366.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001021/0.2914, allocations: 0.6493 MB / 490.6 MB, free: 12.24 MB / 366.1 MB Notification: Performance of preOpt evalFunc (simulation): time 8.847e-05/0.2915, allocations: 16.98 kB / 490.7 MB, free: 12.23 MB / 366.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.82e-05/0.2916, allocations: 47.56 kB / 490.7 MB, free: 12.17 MB / 366.1 MB Notification: Performance of pre-optimization done (n=114): time 2.825e-06/0.2916, allocations: 0 / 490.7 MB, free: 12.17 MB / 366.1 MB Notification: Performance of matching and sorting (n=134): time 0.01049/0.3021, allocations: 6.108 MB / 496.8 MB, free: 5.906 MB / 366.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.672e-05/0.3022, allocations: 94.42 kB / 496.9 MB, free: 5.793 MB / 366.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.002376/0.3045, allocations: 1.977 MB / 498.9 MB, free: 3.789 MB / 366.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0001464/0.3047, allocations: 65.7 kB / 498.9 MB, free: 3.719 MB / 366.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0009472/0.3057, allocations: 1.427 MB / 0.4886 GB, free: 2.273 MB / 366.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0003346/0.306, allocations: 465.8 kB / 0.4891 GB, free: 1.812 MB / 366.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0005735/0.3066, allocations: 447.8 kB / 0.4895 GB, free: 1.367 MB / 366.1 MB Notification: Performance of setup shared object (initialization): time 8.071e-05/0.3067, allocations: 301.1 kB / 0.4898 GB, free: 1.07 MB / 366.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001203/0.3079, allocations: 0.7307 MB / 0.4905 GB, free: 344 kB / 366.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001676/0.3096, allocations: 1.623 MB / 0.4921 GB, free: 14.29 MB / 382.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.002587/0.3122, allocations: 2.246 MB / 0.4943 GB, free: 11.62 MB / 382.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.285e-05/0.3122, allocations: 8 kB / 0.4943 GB, free: 11.61 MB / 382.1 MB Notification: Performance of matching and sorting (n=290) (initialization): time 0.004687/0.3169, allocations: 2.825 MB / 0.4971 GB, free: 8.773 MB / 382.1 MB Notification: Performance of prepare postOptimizeDAE: time 3.556e-05/0.3169, allocations: 22.19 kB / 0.4971 GB, free: 8.754 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.654e-05/0.317, allocations: 28 kB / 0.4971 GB, free: 8.727 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001987/0.319, allocations: 1.292 MB / 0.4984 GB, free: 7.43 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001318/0.3203, allocations: 459.2 kB / 0.4988 GB, free: 6.98 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.003004/0.3233, allocations: 3.017 MB / 0.5018 GB, free: 3.797 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001711/0.3251, allocations: 207.5 kB / 0.502 GB, free: 3.594 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001518/0.3252, allocations: 115.9 kB / 0.5021 GB, free: 3.48 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.001071/0.3263, allocations: 0.6533 MB / 0.5027 GB, free: 2.816 MB / 382.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0003214/0.3266, allocations: 225.1 kB / 0.5029 GB, free: 2.594 MB / 382.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.003007/0.3296, allocations: 1.76 MB / 0.5046 GB, free: 0.8125 MB / 382.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 9.729e-06/0.3297, allocations: 12 kB / 0.5046 GB, free: 0.8008 MB / 382.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.686e-06/0.3297, allocations: 0 / 0.5046 GB, free: 0.8008 MB / 382.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.189e-05/0.3297, allocations: 11.97 kB / 0.5047 GB, free: 0.7891 MB / 382.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.166/0.4957, allocations: 4.479 MB / 0.509 GB, free: 90.39 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 6.753e-06/0.4957, allocations: 3.969 kB / 0.509 GB, free: 90.39 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0007281/0.4965, allocations: 196.8 kB / 0.5092 GB, free: 90.38 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.001466/0.4979, allocations: 1.185 MB / 0.5104 GB, free: 90.06 MB / 382.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 8.852e-05/0.498, allocations: 46.28 kB / 0.5104 GB, free: 90.04 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.002249/0.5003, allocations: 2.833 MB / 0.5132 GB, free: 87.73 MB / 382.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.347e-06/0.5003, allocations: 2.875 kB / 0.5132 GB, free: 87.73 MB / 382.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.003913/0.5042, allocations: 2.63 MB / 0.5158 GB, free: 86.55 MB / 382.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0008818/0.5051, allocations: 442.9 kB / 0.5162 GB, free: 86.36 MB / 382.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0002755/0.5054, allocations: 50.25 kB / 0.5162 GB, free: 86.32 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0008873/0.5063, allocations: 112.3 kB / 0.5163 GB, free: 86.3 MB / 382.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0003934/0.5067, allocations: 210.3 kB / 0.5165 GB, free: 86.26 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 9.354e-05/0.5068, allocations: 51.66 kB / 0.5166 GB, free: 86.25 MB / 382.1 MB Notification: Performance of sorting global known variables: time 0.00157/0.5084, allocations: 1.28 MB / 0.5178 GB, free: 85.76 MB / 382.1 MB Notification: Performance of sort global known variables: time 2.2e-07/0.5084, allocations: 0 / 0.5178 GB, free: 85.76 MB / 382.1 MB Notification: Performance of remove unused functions: time 0.00151/0.5099, allocations: 0.4923 MB / 0.5183 GB, free: 85.71 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.0003096/0.5102, allocations: 197.9 kB / 0.5185 GB, free: 85.57 MB / 382.1 MB Notification: Performance of simCode: created initialization part: time 0.002785/0.513, allocations: 1.955 MB / 0.5204 GB, free: 84.79 MB / 382.1 MB Notification: Performance of simCode: created event and clocks part: time 3.457e-06/0.513, allocations: 2.812 kB / 0.5204 GB, free: 84.79 MB / 382.1 MB Notification: Performance of simCode: created simulation system equations: time 0.001575/0.5146, allocations: 0.9866 MB / 0.5214 GB, free: 84.34 MB / 382.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001454/0.5161, allocations: 357.9 kB / 0.5217 GB, free: 84.18 MB / 382.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.007288/0.5234, allocations: 4.793 MB / 0.5264 GB, free: 79.95 MB / 382.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0009051/0.5243, allocations: 1.659 MB / 0.528 GB, free: 78.27 MB / 382.1 MB Notification: Performance of simCode: alias equations: time 0.0007775/0.5251, allocations: 329.7 kB / 0.5283 GB, free: 77.94 MB / 382.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002473/0.5254, allocations: 143.2 kB / 0.5285 GB, free: 77.81 MB / 382.1 MB Notification: Performance of SimCode: time 5.61e-07/0.5254, allocations: 0 / 0.5285 GB, free: 77.81 MB / 382.1 MB Notification: Performance of Templates: time 0.03748/0.5629, allocations: 29.53 MB / 0.5573 GB, free: 48.46 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 cvode -lv LOG_STATS > VehicleInterfaces_VehicleInterfaces.Examples.SeriesHybrid.pipe 2>&1)