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.008015/0.008015, allocations: 106.2 kB / 15.74 MB, free: 6 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.001375/0.001376, allocations: 199 kB / 16.68 MB, free: 5.918 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.376/1.376, allocations: 222.9 MB / 240.4 MB, free: 4.148 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/VehicleInterfaces 2.0.1-master/package.mo): time 0.1948/0.1948, allocations: 7.98 MB / 298.5 MB, free: 2.199 MB / 238.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001224/0.001224, allocations: 55.91 kB / 413.1 MB, free: 10.16 MB / 350.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2258/0.227, allocations: 51.21 MB / 464.3 MB, free: 18.4 MB / 350.1 MB Notification: Performance of NFInst.instantiate(VehicleInterfaces.Examples.SeriesHybrid): time 0.02285/0.2499, allocations: 23.14 MB / 487.4 MB, free: 2.039 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.01358/0.2636, allocations: 5.97 MB / 493.4 MB, free: 13.34 MB / 366.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.004766/0.2684, allocations: 181.4 kB / 493.6 MB, free: 13.3 MB / 366.1 MB Notification: Performance of NFTyping.typeComponents: time 0.002602/0.271, allocations: 0.9261 MB / 494.5 MB, free: 12.54 MB / 366.1 MB Notification: Performance of NFTyping.typeBindings: time 0.003003/0.274, allocations: 0.7511 MB / 495.3 MB, free: 11.88 MB / 366.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.007792/0.2818, allocations: 4.245 MB / 499.5 MB, free: 8.895 MB / 366.1 MB Notification: Performance of NFFlatten.flatten: time 0.004714/0.2866, allocations: 3.606 MB / 0.4913 GB, free: 6.648 MB / 366.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.005262/0.2918, allocations: 4.224 MB / 0.4954 GB, free: 2.852 MB / 366.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.001961/0.2938, allocations: 1.468 MB / 0.4969 GB, free: 1.379 MB / 366.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.001819/0.2957, allocations: 1.618 MB / 0.4985 GB, free: 15.75 MB / 382.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0004841/0.2961, allocations: 392 kB / 0.4988 GB, free: 15.37 MB / 382.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0006653/0.2968, allocations: 463.8 kB / 0.4993 GB, free: 14.92 MB / 382.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0006285/0.2975, allocations: 0.8607 MB / 0.5001 GB, free: 14.05 MB / 382.1 MB Notification: Performance of NFVerifyModel.verify: time 0.001381/0.2989, allocations: 1.707 MB / 0.5018 GB, free: 12.34 MB / 382.1 MB Notification: Performance of NFConvertDAE.convert: time 0.003929/0.3028, allocations: 4.361 MB / 0.506 GB, free: 7.965 MB / 382.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.679e-06/0.3028, allocations: 0 / 0.506 GB, free: 7.965 MB / 382.1 MB Notification: Performance of FrontEnd: time 1.813e-06/0.3028, allocations: 4 kB / 0.506 GB, free: 7.961 MB / 382.1 MB Notification: Performance of Transformations before backend: time 5.029e-05/0.3029, allocations: 0 / 0.506 GB, free: 7.961 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: 704 * Number of variables: 704 Notification: Performance of Generate backend data structure: time 0.005487/0.3084, allocations: 3.345 MB / 0.5093 GB, free: 4.547 MB / 382.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.572e-05/0.3084, allocations: 12.03 kB / 0.5093 GB, free: 4.535 MB / 382.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.000454/0.3089, allocations: 343.8 kB / 0.5096 GB, free: 4.195 MB / 382.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.002413/0.3113, allocations: 1.777 MB / 0.5114 GB, free: 2.363 MB / 382.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001365/0.3114, allocations: 201.3 kB / 0.5116 GB, free: 2.164 MB / 382.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0003565/0.3118, allocations: 275.8 kB / 0.5118 GB, free: 1.895 MB / 382.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.004502/0.3163, allocations: 2.882 MB / 0.5147 GB, free: 14.88 MB / 398.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 8.411e-05/0.3164, allocations: 27.73 kB / 0.5147 GB, free: 14.85 MB / 398.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0002168/0.3166, allocations: 104 kB / 0.5148 GB, free: 14.75 MB / 398.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0001266/0.3168, allocations: 128 kB / 0.5149 GB, free: 14.62 MB / 398.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.003702/0.3205, allocations: 2.123 MB / 0.517 GB, free: 12.49 MB / 398.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.01381/0.3343, allocations: 10.74 MB / 0.5275 GB, free: 1.371 MB / 398.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001573/0.3359, allocations: 0.9414 MB / 0.5284 GB, free: 428 kB / 398.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001109/0.337, allocations: 0.649 MB / 0.529 GB, free: 15.76 MB / 414.1 MB Notification: Performance of preOpt evalFunc (simulation): time 6.382e-05/0.3371, allocations: 9 kB / 0.529 GB, free: 15.75 MB / 414.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.143e-05/0.3372, allocations: 51.56 kB / 0.5291 GB, free: 15.7 MB / 414.1 MB Notification: Performance of pre-optimization done (n=114): time 2.725e-06/0.3372, allocations: 0 / 0.5291 GB, free: 15.7 MB / 414.1 MB Notification: Performance of matching and sorting (n=134): time 0.01183/0.349, allocations: 6.112 MB / 0.535 GB, free: 9.426 MB / 414.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.238e-05/0.3491, allocations: 98.41 kB / 0.5351 GB, free: 9.309 MB / 414.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.002619/0.3517, allocations: 1.969 MB / 0.5371 GB, free: 7.312 MB / 414.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0001971/0.3519, allocations: 69.69 kB / 0.5371 GB, free: 7.238 MB / 414.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.001182/0.3531, allocations: 1.416 MB / 0.5385 GB, free: 5.805 MB / 414.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0003825/0.3535, allocations: 469.7 kB / 0.539 GB, free: 5.34 MB / 414.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0005777/0.3541, allocations: 443.8 kB / 0.5394 GB, free: 4.898 MB / 414.1 MB Notification: Performance of setup shared object (initialization): time 8.709e-05/0.3542, allocations: 313 kB / 0.5397 GB, free: 4.59 MB / 414.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001253/0.3554, allocations: 0.7268 MB / 0.5404 GB, free: 3.859 MB / 414.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001859/0.3573, allocations: 1.623 MB / 0.542 GB, free: 1.812 MB / 414.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.002976/0.3603, allocations: 2.242 MB / 0.5442 GB, free: 15.15 MB / 430.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.495e-05/0.3603, allocations: 8 kB / 0.5442 GB, free: 15.14 MB / 430.1 MB Notification: Performance of matching and sorting (n=290) (initialization): time 0.004944/0.3653, allocations: 2.829 MB / 0.5469 GB, free: 12.3 MB / 430.1 MB Notification: Performance of prepare postOptimizeDAE: time 3.722e-05/0.3653, allocations: 20 kB / 0.5469 GB, free: 12.28 MB / 430.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.571e-05/0.3654, allocations: 28 kB / 0.547 GB, free: 12.25 MB / 430.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.002017/0.3674, allocations: 1.295 MB / 0.5482 GB, free: 10.95 MB / 430.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001432/0.3689, allocations: 459.2 kB / 0.5487 GB, free: 10.5 MB / 430.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.003308/0.3722, allocations: 3.005 MB / 0.5516 GB, free: 7.328 MB / 430.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.002124/0.3743, allocations: 207.5 kB / 0.5518 GB, free: 7.125 MB / 430.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0002419/0.3746, allocations: 116 kB / 0.5519 GB, free: 7.012 MB / 430.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.001291/0.3759, allocations: 0.661 MB / 0.5526 GB, free: 6.34 MB / 430.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0004345/0.3763, allocations: 229.1 kB / 0.5528 GB, free: 6.113 MB / 430.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.003321/0.3797, allocations: 1.753 MB / 0.5545 GB, free: 4.34 MB / 430.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.344e-05/0.3797, allocations: 12 kB / 0.5545 GB, free: 4.328 MB / 430.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.333e-06/0.3797, allocations: 0 / 0.5545 GB, free: 4.328 MB / 430.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.241e-05/0.3797, allocations: 7.984 kB / 0.5545 GB, free: 4.32 MB / 430.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.009314/0.389, allocations: 4.495 MB / 0.5589 GB, free: 15.7 MB / 446.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.262e-05/0.3891, allocations: 4 kB / 0.5589 GB, free: 15.7 MB / 446.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0009414/0.3901, allocations: 199.7 kB / 0.5591 GB, free: 15.5 MB / 446.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.001976/0.3921, allocations: 1.182 MB / 0.5603 GB, free: 14.32 MB / 446.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001243/0.3922, allocations: 51.95 kB / 0.5603 GB, free: 14.27 MB / 446.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.003244/0.3955, allocations: 2.831 MB / 0.5631 GB, free: 11.27 MB / 446.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.87e-06/0.3955, allocations: 4.031 kB / 0.5631 GB, free: 11.27 MB / 446.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.004805/0.4003, allocations: 2.641 MB / 0.5656 GB, free: 8.57 MB / 446.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0009847/0.4013, allocations: 442.1 kB / 0.5661 GB, free: 8.117 MB / 446.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0005153/0.4018, allocations: 52 kB / 0.5661 GB, free: 8.066 MB / 446.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001164/0.403, allocations: 99.89 kB / 0.5662 GB, free: 7.969 MB / 446.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0004566/0.4035, allocations: 212.5 kB / 0.5664 GB, free: 7.762 MB / 446.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001059/0.4036, allocations: 51.95 kB / 0.5665 GB, free: 7.711 MB / 446.1 MB Notification: Performance of sorting global known variables: time 0.002215/0.4058, allocations: 1.271 MB / 0.5677 GB, free: 6.426 MB / 446.1 MB Notification: Performance of sort global known variables: time 2.1e-07/0.4058, allocations: 0 / 0.5677 GB, free: 6.426 MB / 446.1 MB Notification: Performance of remove unused functions: time 0.001951/0.4078, allocations: 0.4961 MB / 0.5682 GB, free: 5.93 MB / 446.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.0004001/0.4082, allocations: 203 kB / 0.5684 GB, free: 5.723 MB / 446.1 MB Notification: Performance of simCode: created initialization part: time 0.003619/0.4118, allocations: 1.955 MB / 0.5703 GB, free: 3.762 MB / 446.1 MB Notification: Performance of simCode: created event and clocks part: time 6.973e-06/0.4119, allocations: 4 kB / 0.5703 GB, free: 3.758 MB / 446.1 MB Notification: Performance of simCode: created simulation system equations: time 0.001899/0.4138, allocations: 0.9849 MB / 0.5713 GB, free: 2.762 MB / 446.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001879/0.4156, allocations: 352.7 kB / 0.5716 GB, free: 2.422 MB / 446.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.009378/0.425, allocations: 4.792 MB / 0.5763 GB, free: 13.58 MB / 462.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001608/0.4267, allocations: 1.656 MB / 0.5779 GB, free: 11.89 MB / 462.1 MB Notification: Performance of simCode: alias equations: time 0.001149/0.4278, allocations: 329.1 kB / 0.5782 GB, free: 11.57 MB / 462.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0004028/0.4283, allocations: 135.4 kB / 0.5783 GB, free: 11.44 MB / 462.1 MB Notification: Performance of SimCode: time 9.42e-07/0.4283, allocations: 4 kB / 0.5783 GB, free: 11.43 MB / 462.1 MB Notification: Performance of Templates: time 0.302/0.7302, allocations: 30.04 MB / 0.6077 GB, free: 108.7 MB / 462.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 -lv LOG_STATS > VehicleInterfaces_VehicleInterfaces.Examples.SeriesHybrid.pipe 2>&1)