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.001194/0.001194, allocations: 102.2 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.001212/0.001212, allocations: 194.3 kB / 17.3 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.234/1.234, allocations: 222.9 MB / 241 MB, free: 14.99 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/VehicleInterfaces 2.0.1-master/package.mo): time 0.04027/0.04027, allocations: 7.995 MB / 299.1 MB, free: 7.109 MB / 238.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001299/0.001299, allocations: 63.91 kB / 362 MB, free: 8.172 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1723/0.1736, allocations: 51.21 MB / 413.2 MB, free: 26.58 MB / 302.1 MB Notification: Performance of NFInst.instantiate(VehicleInterfaces.Examples.SeriesHybrid): time 0.0168/0.1904, allocations: 23.14 MB / 436.4 MB, free: 3.355 MB / 302.1 MB Notification: Performance of NFInst.instExpressions: time 0.0108/0.2013, allocations: 5.987 MB / 442.4 MB, free: 13.36 MB / 318.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.003893/0.2052, allocations: 179.5 kB / 442.6 MB, free: 13.18 MB / 318.1 MB Notification: Performance of NFTyping.typeComponents: time 0.002571/0.2078, allocations: 0.915 MB / 443.5 MB, free: 12.26 MB / 318.1 MB Notification: Performance of NFTyping.typeBindings: time 0.002623/0.2105, allocations: 0.7552 MB / 444.2 MB, free: 11.5 MB / 318.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.007339/0.2179, allocations: 4.244 MB / 448.5 MB, free: 7.242 MB / 318.1 MB Notification: Performance of NFFlatten.flatten: time 0.004269/0.2222, allocations: 3.602 MB / 452.1 MB, free: 3.617 MB / 318.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.004703/0.2269, allocations: 4.223 MB / 456.3 MB, free: 15.32 MB / 334.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.001528/0.2284, allocations: 1.444 MB / 457.7 MB, free: 13.87 MB / 334.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.001551/0.23, allocations: 1.618 MB / 459.4 MB, free: 12.24 MB / 334.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0004052/0.2304, allocations: 403.9 kB / 459.7 MB, free: 11.85 MB / 334.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0005399/0.2309, allocations: 455.9 kB / 460.2 MB, free: 11.4 MB / 334.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0005795/0.2315, allocations: 0.8607 MB / 461.1 MB, free: 10.54 MB / 334.1 MB Notification: Performance of NFVerifyModel.verify: time 0.001278/0.2328, allocations: 1.711 MB / 462.8 MB, free: 8.82 MB / 334.1 MB Notification: Performance of NFConvertDAE.convert: time 0.00326/0.2361, allocations: 4.357 MB / 467.1 MB, free: 4.449 MB / 334.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.659e-06/0.2361, allocations: 0 / 467.1 MB, free: 4.449 MB / 334.1 MB Notification: Performance of FrontEnd: time 1.683e-06/0.2361, allocations: 0 / 467.1 MB, free: 4.449 MB / 334.1 MB Notification: Performance of Transformations before backend: time 5.093e-05/0.2362, allocations: 0 / 467.1 MB, free: 4.449 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.004944/0.2411, allocations: 3.337 MB / 470.5 MB, free: 1.047 MB / 334.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.452e-05/0.2412, allocations: 16.03 kB / 470.5 MB, free: 1.031 MB / 334.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0003972/0.2416, allocations: 339.8 kB / 470.8 MB, free: 0.6953 MB / 334.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.002353/0.2439, allocations: 1.781 MB / 472.6 MB, free: 14.86 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001256/0.2441, allocations: 201.2 kB / 472.8 MB, free: 14.66 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.000343/0.2444, allocations: 279.7 kB / 473.1 MB, free: 14.39 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.00407/0.2485, allocations: 2.886 MB / 475.9 MB, free: 11.37 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 8.064e-05/0.2486, allocations: 23.73 kB / 476 MB, free: 11.34 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001907/0.2488, allocations: 108 kB / 476.1 MB, free: 11.24 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0001117/0.2489, allocations: 127.9 kB / 476.2 MB, free: 11.11 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.003434/0.2523, allocations: 2.118 MB / 478.3 MB, free: 8.984 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.01244/0.2648, allocations: 10.74 MB / 489 MB, free: 13.87 MB / 366.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001462/0.2663, allocations: 0.9402 MB / 490 MB, free: 12.91 MB / 366.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001001/0.2673, allocations: 0.6493 MB / 490.6 MB, free: 12.25 MB / 366.1 MB Notification: Performance of preOpt evalFunc (simulation): time 8.793e-05/0.2674, allocations: 16.98 kB / 490.7 MB, free: 12.24 MB / 366.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.212e-05/0.2674, allocations: 51.48 kB / 490.7 MB, free: 12.18 MB / 366.1 MB Notification: Performance of pre-optimization done (n=114): time 2.985e-06/0.2675, allocations: 0 / 490.7 MB, free: 12.18 MB / 366.1 MB Notification: Performance of matching and sorting (n=134): time 0.01051/0.278, allocations: 6.1 MB / 496.8 MB, free: 5.922 MB / 366.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.151e-05/0.278, allocations: 94.45 kB / 496.9 MB, free: 5.809 MB / 366.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.00228/0.2803, allocations: 1.977 MB / 498.9 MB, free: 3.805 MB / 366.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0001295/0.2805, allocations: 69.64 kB / 498.9 MB, free: 3.73 MB / 366.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0009393/0.2814, allocations: 1.427 MB / 0.4886 GB, free: 2.285 MB / 366.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0003228/0.2818, allocations: 465.8 kB / 0.4891 GB, free: 1.824 MB / 366.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0005506/0.2823, allocations: 443.8 kB / 0.4895 GB, free: 1.383 MB / 366.1 MB Notification: Performance of setup shared object (initialization): time 7.6e-05/0.2824, allocations: 301.1 kB / 0.4898 GB, free: 1.086 MB / 366.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001149/0.2835, allocations: 0.7345 MB / 0.4905 GB, free: 356 kB / 366.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001632/0.2852, allocations: 1.623 MB / 0.4921 GB, free: 14.3 MB / 382.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.002497/0.2877, allocations: 2.246 MB / 0.4943 GB, free: 11.64 MB / 382.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.1e-05/0.2877, allocations: 8 kB / 0.4943 GB, free: 11.63 MB / 382.1 MB Notification: Performance of matching and sorting (n=290) (initialization): time 0.004289/0.292, allocations: 2.829 MB / 0.4971 GB, free: 8.785 MB / 382.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.757e-05/0.2921, allocations: 16.19 kB / 0.4971 GB, free: 8.77 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.877e-05/0.2921, allocations: 36 kB / 0.4971 GB, free: 8.734 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001765/0.2939, allocations: 1.295 MB / 0.4984 GB, free: 7.434 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001247/0.2951, allocations: 455.2 kB / 0.4988 GB, free: 6.988 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002749/0.2979, allocations: 3.013 MB / 0.5018 GB, free: 3.809 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001534/0.2994, allocations: 207.6 kB / 0.502 GB, free: 3.605 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001448/0.2996, allocations: 112 kB / 0.5021 GB, free: 3.496 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.0009741/0.3006, allocations: 0.6532 MB / 0.5027 GB, free: 2.832 MB / 382.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002808/0.3009, allocations: 229 kB / 0.5029 GB, free: 2.605 MB / 382.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.002849/0.3037, allocations: 1.764 MB / 0.5046 GB, free: 0.8203 MB / 382.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.052e-05/0.3037, allocations: 12 kB / 0.5047 GB, free: 0.8086 MB / 382.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.388e-06/0.3037, allocations: 0 / 0.5047 GB, free: 0.8086 MB / 382.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.09e-05/0.3038, allocations: 7.969 kB / 0.5047 GB, free: 0.8008 MB / 382.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.1584/0.4621, allocations: 4.481 MB / 0.509 GB, free: 90.4 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 8.025e-06/0.4622, allocations: 3.969 kB / 0.509 GB, free: 90.4 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0007426/0.4629, allocations: 194.2 kB / 0.5092 GB, free: 90.39 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.001524/0.4645, allocations: 1.188 MB / 0.5104 GB, free: 90.07 MB / 382.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001105/0.4646, allocations: 44.67 kB / 0.5104 GB, free: 90.05 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.00227/0.4669, allocations: 2.829 MB / 0.5132 GB, free: 87.74 MB / 382.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.996e-06/0.4669, allocations: 1.969 kB / 0.5132 GB, free: 87.74 MB / 382.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.003996/0.4709, allocations: 2.635 MB / 0.5158 GB, free: 86.56 MB / 382.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0009913/0.4719, allocations: 447.8 kB / 0.5162 GB, free: 86.36 MB / 382.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0003393/0.4722, allocations: 50.34 kB / 0.5162 GB, free: 86.33 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0009431/0.4732, allocations: 103 kB / 0.5163 GB, free: 86.31 MB / 382.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0004076/0.4736, allocations: 207.4 kB / 0.5165 GB, free: 86.27 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 9.897e-05/0.4737, allocations: 53.53 kB / 0.5166 GB, free: 86.26 MB / 382.1 MB Notification: Performance of sorting global known variables: time 0.001541/0.4753, allocations: 1.276 MB / 0.5178 GB, free: 85.77 MB / 382.1 MB Notification: Performance of sort global known variables: time 3.91e-07/0.4753, allocations: 2.953 kB / 0.5178 GB, free: 85.77 MB / 382.1 MB Notification: Performance of remove unused functions: time 0.00164/0.4769, allocations: 0.4945 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.0003608/0.4773, allocations: 194.5 kB / 0.5185 GB, free: 85.58 MB / 382.1 MB Notification: Performance of simCode: created initialization part: time 0.002945/0.4802, allocations: 1.962 MB / 0.5204 GB, free: 84.8 MB / 382.1 MB Notification: Performance of simCode: created event and clocks part: time 5.39e-06/0.4803, allocations: 0 / 0.5204 GB, free: 84.8 MB / 382.1 MB Notification: Performance of simCode: created simulation system equations: time 0.001556/0.4818, allocations: 0.9931 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.001704/0.4836, allocations: 356.2 kB / 0.5217 GB, free: 84.19 MB / 382.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.007484/0.4911, allocations: 4.795 MB / 0.5264 GB, free: 79.96 MB / 382.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0009865/0.4921, allocations: 1.659 MB / 0.528 GB, free: 78.27 MB / 382.1 MB Notification: Performance of simCode: alias equations: time 0.0009461/0.4931, allocations: 325.1 kB / 0.5283 GB, free: 77.95 MB / 382.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002509/0.4933, allocations: 143.4 kB / 0.5285 GB, free: 77.82 MB / 382.1 MB Notification: Performance of SimCode: time 1.643e-06/0.4933, allocations: 0 / 0.5285 GB, free: 77.82 MB / 382.1 MB Notification: Performance of Templates: time 0.03878/0.5321, allocations: 29.52 MB / 0.5573 GB, free: 48.48 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)