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.001527/0.001527, allocations: 110.6 kB / 15.99 MB, free: 6.348 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.001567/0.001568, allocations: 191.3 kB / 16.91 MB, free: 6.188 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.379/1.379, allocations: 222.9 MB / 240.6 MB, free: 15.42 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/VehicleInterfaces 2.0.1-master/package.mo): time 0.04587/0.04587, allocations: 8 MB / 298.7 MB, free: 7.297 MB / 238.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001945/0.001945, allocations: 67.89 kB / 360.8 MB, free: 9.215 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1945/0.1965, allocations: 51.21 MB / 412 MB, free: 26.93 MB / 302.1 MB Notification: Performance of NFInst.instantiate(VehicleInterfaces.Examples.SeriesHybrid): time 0.07973/0.2763, allocations: 89.47 MB / 0.4897 GB, free: 1.117 MB / 366.1 MB Notification: Performance of NFInst.instExpressions: time 0.2315/0.5078, allocations: 17.15 MB / 0.5064 GB, free: 0.5703 MB / 382.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0156/0.5235, allocations: 432.1 kB / 0.5069 GB, free: 0.5703 MB / 382.1 MB Notification: Performance of NFTyping.typeComponents: time 0.003212/0.5267, allocations: 0.7565 MB / 0.5076 GB, free: 0.5703 MB / 382.1 MB Notification: Performance of NFTyping.typeBindings: time 0.003023/0.5298, allocations: 0.6498 MB / 0.5082 GB, free: 0.5586 MB / 382.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.006578/0.5364, allocations: 4.082 MB / 0.5122 GB, free: 0.5078 MB / 382.1 MB Notification: Performance of NFFlatten.flatten: time 0.004697/0.5411, allocations: 3.59 MB / 0.5157 GB, free: 496 kB / 382.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.006046/0.5472, allocations: 4.236 MB / 0.5199 GB, free: 15.99 MB / 398.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.002344/0.5496, allocations: 1.467 MB / 0.5213 GB, free: 15.99 MB / 398.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.002732/0.5523, allocations: 1.646 MB / 0.5229 GB, free: 15.98 MB / 398.1 MB Notification: Performance of NFPackage.collectConstants: time 0.001084/0.5534, allocations: 396.2 kB / 0.5233 GB, free: 15.98 MB / 398.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.001381/0.5548, allocations: 451.9 kB / 0.5237 GB, free: 15.98 MB / 398.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0007039/0.5555, allocations: 0.8701 MB / 0.5246 GB, free: 15.88 MB / 398.1 MB Notification: Performance of NFVerifyModel.verify: time 0.002021/0.5576, allocations: 1.706 MB / 0.5262 GB, free: 15.39 MB / 398.1 MB Notification: Performance of NFConvertDAE.convert: time 0.003097/0.5607, allocations: 3.463 MB / 0.5296 GB, free: 15.13 MB / 398.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.799e-06/0.5607, allocations: 0 / 0.5296 GB, free: 15.13 MB / 398.1 MB Notification: Performance of FrontEnd: time 1.863e-06/0.5607, allocations: 4 kB / 0.5296 GB, free: 15.13 MB / 398.1 MB Notification: Performance of Transformations before backend: time 9.908e-05/0.5608, allocations: 0 / 0.5296 GB, free: 15.13 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: 704 * Number of variables: 704 Notification: Performance of Generate backend data structure: time 0.00638/0.5672, allocations: 3.346 MB / 0.5329 GB, free: 13.69 MB / 398.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.427e-05/0.5672, allocations: 9.781 kB / 0.5329 GB, free: 13.69 MB / 398.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0005372/0.5678, allocations: 341.3 kB / 0.5332 GB, free: 13.51 MB / 398.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.002369/0.5702, allocations: 1.715 MB / 0.5349 GB, free: 12.76 MB / 398.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001537/0.5703, allocations: 201.3 kB / 0.5351 GB, free: 12.67 MB / 398.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0003812/0.5707, allocations: 280.8 kB / 0.5353 GB, free: 12.57 MB / 398.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.005238/0.576, allocations: 2.887 MB / 0.5382 GB, free: 11.17 MB / 398.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0001044/0.5761, allocations: 29.89 kB / 0.5382 GB, free: 11.15 MB / 398.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0002449/0.5763, allocations: 111.6 kB / 0.5383 GB, free: 11.07 MB / 398.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0001116/0.5765, allocations: 125.5 kB / 0.5384 GB, free: 11.04 MB / 398.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.003911/0.5804, allocations: 2.122 MB / 0.5405 GB, free: 10.02 MB / 398.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.01573/0.5961, allocations: 10.82 MB / 0.5511 GB, free: 1.398 MB / 398.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001635/0.5978, allocations: 0.946 MB / 0.552 GB, free: 0.9102 MB / 398.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001121/0.5989, allocations: 0.6531 MB / 0.5526 GB, free: 0.5703 MB / 398.1 MB Notification: Performance of preOpt evalFunc (simulation): time 9.116e-05/0.599, allocations: 15.16 kB / 0.5526 GB, free: 0.5664 MB / 398.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.377e-05/0.5991, allocations: 50.61 kB / 0.5527 GB, free: 0.5156 MB / 398.1 MB Notification: Performance of pre-optimization done (n=114): time 3.186e-06/0.5991, allocations: 0 / 0.5527 GB, free: 0.5156 MB / 398.1 MB Notification: Performance of matching and sorting (n=134): time 0.01227/0.6114, allocations: 6.103 MB / 0.5586 GB, free: 12.72 MB / 414.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.39e-05/0.6115, allocations: 95.8 kB / 0.5587 GB, free: 12.62 MB / 414.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.002866/0.6143, allocations: 1.98 MB / 0.5607 GB, free: 10.62 MB / 414.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0001836/0.6145, allocations: 69.7 kB / 0.5607 GB, free: 10.55 MB / 414.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.001294/0.6158, allocations: 1.418 MB / 0.5621 GB, free: 9.125 MB / 414.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0004721/0.6163, allocations: 472.3 kB / 0.5626 GB, free: 8.672 MB / 414.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0006805/0.617, allocations: 439.8 kB / 0.563 GB, free: 8.234 MB / 414.1 MB Notification: Performance of setup shared object (initialization): time 0.0001268/0.6171, allocations: 313.1 kB / 0.5633 GB, free: 7.926 MB / 414.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001382/0.6185, allocations: 0.7268 MB / 0.564 GB, free: 7.195 MB / 414.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0021/0.6206, allocations: 1.622 MB / 0.5656 GB, free: 5.164 MB / 414.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.003214/0.6239, allocations: 2.234 MB / 0.5678 GB, free: 2.633 MB / 414.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.081e-05/0.6239, allocations: 20 kB / 0.5678 GB, free: 2.613 MB / 414.1 MB Notification: Performance of matching and sorting (n=290) (initialization): time 0.005273/0.6292, allocations: 2.819 MB / 0.5705 GB, free: 15.96 MB / 430.1 MB Notification: Performance of prepare postOptimizeDAE: time 3.657e-05/0.6292, allocations: 20 kB / 0.5706 GB, free: 15.95 MB / 430.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.106e-05/0.6293, allocations: 28 kB / 0.5706 GB, free: 15.92 MB / 430.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.00214/0.6314, allocations: 1.296 MB / 0.5718 GB, free: 14.62 MB / 430.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001554/0.633, allocations: 463.4 kB / 0.5723 GB, free: 14.2 MB / 430.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.003557/0.6366, allocations: 3.003 MB / 0.5752 GB, free: 11.05 MB / 430.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.00207/0.6387, allocations: 211.5 kB / 0.5754 GB, free: 10.84 MB / 430.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.00019/0.6389, allocations: 112 kB / 0.5755 GB, free: 10.73 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.001406/0.6403, allocations: 0.6562 MB / 0.5762 GB, free: 10.1 MB / 430.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0004205/0.6407, allocations: 225.2 kB / 0.5764 GB, free: 9.879 MB / 430.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.003484/0.6442, allocations: 1.758 MB / 0.5781 GB, free: 8.109 MB / 430.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.619e-05/0.6442, allocations: 19.92 kB / 0.5781 GB, free: 8.09 MB / 430.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.444e-06/0.6442, allocations: 7.938 kB / 0.5781 GB, free: 8.082 MB / 430.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.884e-05/0.6443, allocations: 11.91 kB / 0.5781 GB, free: 8.07 MB / 430.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.008368/0.6526, allocations: 4.517 MB / 0.5826 GB, free: 3.5 MB / 430.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 8.947e-06/0.6527, allocations: 4.25 kB / 0.5826 GB, free: 3.496 MB / 430.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0008285/0.6535, allocations: 200.2 kB / 0.5827 GB, free: 3.312 MB / 430.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.00189/0.6554, allocations: 1.178 MB / 0.5839 GB, free: 2.129 MB / 430.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001153/0.6555, allocations: 43.95 kB / 0.5839 GB, free: 2.086 MB / 430.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.003224/0.6588, allocations: 2.842 MB / 0.5867 GB, free: 15.09 MB / 446.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.238e-06/0.6588, allocations: 4 kB / 0.5867 GB, free: 15.09 MB / 446.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.004519/0.6633, allocations: 2.637 MB / 0.5893 GB, free: 12.41 MB / 446.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0009268/0.6643, allocations: 438.1 kB / 0.5897 GB, free: 11.96 MB / 446.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.000299/0.6646, allocations: 48 kB / 0.5898 GB, free: 11.91 MB / 446.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.000971/0.6655, allocations: 111.8 kB / 0.5899 GB, free: 11.8 MB / 446.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0004491/0.666, allocations: 207.8 kB / 0.5901 GB, free: 11.6 MB / 446.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001137/0.6661, allocations: 59.95 kB / 0.5901 GB, free: 11.54 MB / 446.1 MB Notification: Performance of sorting global known variables: time 0.001978/0.6681, allocations: 1.267 MB / 0.5914 GB, free: 10.26 MB / 446.1 MB Notification: Performance of sort global known variables: time 4.71e-07/0.6681, allocations: 0 / 0.5914 GB, free: 10.26 MB / 446.1 MB Notification: Performance of remove unused functions: time 0.001918/0.67, allocations: 0.5 MB / 0.5918 GB, free: 9.762 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.0003917/0.6704, allocations: 202.1 kB / 0.592 GB, free: 9.57 MB / 446.1 MB Notification: Performance of simCode: created initialization part: time 0.004629/0.6751, allocations: 2.005 MB / 0.594 GB, free: 7.66 MB / 446.1 MB Notification: Performance of simCode: created event and clocks part: time 5.961e-06/0.6751, allocations: 0 / 0.594 GB, free: 7.66 MB / 446.1 MB Notification: Performance of simCode: created simulation system equations: time 0.001888/0.677, allocations: 0.9776 MB / 0.5949 GB, free: 6.695 MB / 446.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.00218/0.6792, allocations: 353.8 kB / 0.5953 GB, free: 6.355 MB / 446.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01078/0.69, allocations: 6.05 MB / 0.6012 GB, free: 268 kB / 446.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001486/0.6915, allocations: 1.667 MB / 0.6028 GB, free: 14.57 MB / 462.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0005394/0.6921, allocations: 151.4 kB / 0.603 GB, free: 14.43 MB / 462.1 MB Notification: Performance of SimCode: time 1.012e-06/0.6921, allocations: 0 / 0.603 GB, free: 14.43 MB / 462.1 MB Notification: Performance of Templates: time 0.07233/0.7644, allocations: 54.83 MB / 0.6565 GB, free: 7.641 MB / 0.4981 GB 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)