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/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/ModelicaServices 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/VehicleInterfaces 2.0.0-master/package.mo", uses=false) Using package VehicleInterfaces with version 2.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/VehicleInterfaces 2.0.0-master/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) 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) 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/Complex 4.0.0+maint.om/package.mo): time 0.0009534/0.0009537, allocations: 173.3 kB / 16.12 MB, free: 5.668 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.179/1.179, allocations: 223.3 MB / 240.1 MB, free: 11.71 MB / 202.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.000802/0.0008023, allocations: 101.8 kB / 291.3 MB, free: 10.79 MB / 234.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/VehicleInterfaces 2.0.0-master/package.mo): time 0.03706/0.03706, allocations: 8.006 MB / 350.4 MB, free: 36 kB / 282.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0003208/0.0003208, allocations: 11.22 kB / 413.3 MB, free: 58.13 MB / 298.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.06643/0.06677, allocations: 52.2 MB / 465.5 MB, free: 5.945 MB / 298.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.2677/0.3345, allocations: 109.4 MB / 0.5614 GB, free: 9.121 MB / 378.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002076/0.3347, allocations: 92.84 kB / 0.5615 GB, free: 9.078 MB / 378.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.7177/1.052, allocations: 266 MB / 0.8212 GB, free: 4.711 MB / 458.7 MB Notification: Performance of FrontEnd: time 2.915e-06/1.052, allocations: 0 / 0.8212 GB, free: 4.711 MB / 458.7 MB Notification: Performance of Transformations before backend: time 0.00017/1.053, allocations: 85.47 kB / 0.8213 GB, free: 4.629 MB / 458.7 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 696 * Number of variables: 696 Notification: Performance of Generate backend data structure: time 0.003941/1.057, allocations: 2.788 MB / 0.824 GB, free: 1.797 MB / 458.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.382e-05/1.057, allocations: 12.03 kB / 0.824 GB, free: 1.785 MB / 458.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0006461/1.057, allocations: 383.8 kB / 0.8244 GB, free: 1.41 MB / 458.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.1613/1.219, allocations: 1.87 MB / 0.8262 GB, free: 114.1 MB / 458.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.000199/1.219, allocations: 202 kB / 0.8264 GB, free: 114.1 MB / 458.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0004852/1.219, allocations: 276.6 kB / 0.8267 GB, free: 114.1 MB / 458.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.004689/1.224, allocations: 3.083 MB / 0.8297 GB, free: 113.4 MB / 458.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 9.731e-05/1.224, allocations: 24.47 kB / 0.8297 GB, free: 113.4 MB / 458.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0002083/1.224, allocations: 118.6 kB / 0.8298 GB, free: 113.4 MB / 458.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 8.812e-05/1.224, allocations: 101.1 kB / 0.8299 GB, free: 113.4 MB / 458.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.003569/1.228, allocations: 2.037 MB / 0.8319 GB, free: 113.4 MB / 458.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.01297/1.241, allocations: 11.78 MB / 0.8434 GB, free: 108.8 MB / 458.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001607/1.243, allocations: 1.069 MB / 0.8445 GB, free: 108.7 MB / 458.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001069/1.244, allocations: 0.7189 MB / 0.8452 GB, free: 108.7 MB / 458.7 MB Notification: Performance of preOpt evalFunc (simulation): time 9.133e-05/1.244, allocations: 19.94 kB / 0.8452 GB, free: 108.7 MB / 458.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.272e-05/1.244, allocations: 49.34 kB / 0.8452 GB, free: 108.7 MB / 458.7 MB Notification: Performance of pre-optimization done (n=131): time 3.296e-06/1.244, allocations: 3.281 kB / 0.8452 GB, free: 108.7 MB / 458.7 MB Notification: Performance of matching and sorting (n=151): time 0.01082/1.255, allocations: 6.413 MB / 0.8515 GB, free: 106.8 MB / 458.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.016e-05/1.255, allocations: 100.2 kB / 0.8516 GB, free: 106.7 MB / 458.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001944/1.257, allocations: 1.92 MB / 0.8535 GB, free: 106.5 MB / 458.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0001093/1.257, allocations: 74.67 kB / 0.8535 GB, free: 106.5 MB / 458.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0006559/1.257, allocations: 1.283 MB / 0.8548 GB, free: 106 MB / 458.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.000254/1.258, allocations: 0.4971 MB / 0.8553 GB, free: 105.7 MB / 458.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 8.467e-05/1.258, allocations: 42.3 kB / 0.8553 GB, free: 105.7 MB / 458.7 MB Notification: Performance of setup shared object (initialization): time 7.814e-05/1.258, allocations: 378 kB / 0.8557 GB, free: 105.4 MB / 458.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0009647/1.259, allocations: 0.6596 MB / 0.8563 GB, free: 105.3 MB / 458.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001109/1.26, allocations: 1.214 MB / 0.8575 GB, free: 104.3 MB / 458.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001813/1.262, allocations: 1.732 MB / 0.8592 GB, free: 103.1 MB / 458.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 7.785e-06/1.262, allocations: 3.656 kB / 0.8592 GB, free: 103.1 MB / 458.7 MB Notification: Performance of matching and sorting (n=247) (initialization): time 0.00334/1.265, allocations: 2.445 MB / 0.8616 GB, free: 102.1 MB / 458.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.062e-05/1.265, allocations: 17.72 kB / 0.8616 GB, free: 102.1 MB / 458.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.592e-05/1.265, allocations: 22.56 kB / 0.8616 GB, free: 102.1 MB / 458.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.00146/1.267, allocations: 1.094 MB / 0.8627 GB, free: 101.7 MB / 458.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0009775/1.268, allocations: 357.1 kB / 0.863 GB, free: 101.7 MB / 458.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002339/1.27, allocations: 3 MB / 0.866 GB, free: 99.25 MB / 458.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001389/1.271, allocations: 229.9 kB / 0.8662 GB, free: 99.21 MB / 458.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001303/1.272, allocations: 89.62 kB / 0.8663 GB, free: 99.19 MB / 458.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 80 * Number of states: 0 () * Number of discrete variables: 57 (driverEnvironment.ignition.y,brakes.brake_1.free,$PRE.brakes.brake_1.startForward,brakes.brake_1.startForward,$PRE.brakes.brake_1.startBackward,brakes.brake_1.startBackward,brakes.brake_1.locked,$PRE.brakes.brake_1.mode,brakes.brake_1.mode,brakes.brake_2.free,$PRE.brakes.brake_2.startForward,brakes.brake_2.startForward,$PRE.brakes.brake_2.startBackward,brakes.brake_2.startBackward,brakes.brake_2.locked,$PRE.brakes.brake_2.mode,brakes.brake_2.mode,brakes.brake_3.free,$PRE.brakes.brake_3.startForward,brakes.brake_3.startForward,$PRE.brakes.brake_3.startBackward,brakes.brake_3.startBackward,brakes.brake_3.locked,$PRE.brakes.brake_3.mode,brakes.brake_3.mode,brakes.brake_4.free,$PRE.brakes.brake_4.startForward,brakes.brake_4.startForward,$PRE.brakes.brake_4.startBackward,brakes.brake_4.startBackward,brakes.brake_4.locked,$PRE.brakes.brake_4.mode,brakes.brake_4.mode,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 (204): * Single equations (assignments): 198 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 4 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 0 * Torn equation systems: 2 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 1 {(1,100.0%) 3} * Non-linear torn systems: 1 {4 37} Notification: Performance of prepare postOptimizeDAE: time 0.001029/1.273, allocations: 0.621 MB / 0.8669 GB, free: 98.79 MB / 458.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002407/1.273, allocations: 225.1 kB / 0.8671 GB, free: 98.67 MB / 458.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.002964/1.276, allocations: 2.05 MB / 0.8691 GB, free: 97.74 MB / 458.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 9.348e-06/1.276, allocations: 15.09 kB / 0.8691 GB, free: 97.74 MB / 458.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.399e-06/1.276, allocations: 3.938 kB / 0.8691 GB, free: 97.74 MB / 458.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.205e-05/1.276, allocations: 6.516 kB / 0.8691 GB, free: 97.74 MB / 458.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.00643/1.282, allocations: 4.788 MB / 0.8738 GB, free: 95.49 MB / 458.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 6.402e-06/1.282, allocations: 3.531 kB / 0.8738 GB, free: 95.49 MB / 458.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0007511/1.283, allocations: 213.5 kB / 0.874 GB, free: 95.46 MB / 458.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.001315/1.284, allocations: 0.9985 MB / 0.875 GB, free: 95.2 MB / 458.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 9.17e-05/1.285, allocations: 41.7 kB / 0.875 GB, free: 95.18 MB / 458.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.002177/1.287, allocations: 2.842 MB / 0.8778 GB, free: 92.81 MB / 458.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.926e-06/1.287, allocations: 7.531 kB / 0.8778 GB, free: 92.8 MB / 458.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.003666/1.29, allocations: 2.697 MB / 0.8804 GB, free: 91.41 MB / 458.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.000668/1.291, allocations: 461.7 kB / 0.8809 GB, free: 91.08 MB / 458.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0002469/1.291, allocations: 61.11 kB / 0.8809 GB, free: 91.04 MB / 458.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.000908/1.292, allocations: 142 kB / 0.8811 GB, free: 91.02 MB / 458.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.000356/1.293, allocations: 250.9 kB / 0.8813 GB, free: 90.98 MB / 458.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 9.628e-05/1.293, allocations: 61.84 kB / 0.8814 GB, free: 90.96 MB / 458.7 MB Notification: Performance of sorting global known variables: time 0.001393/1.294, allocations: 1.275 MB / 0.8826 GB, free: 90.46 MB / 458.7 MB Notification: Performance of sort global known variables: time 1.6e-07/1.294, allocations: 0 / 0.8826 GB, free: 90.46 MB / 458.7 MB Notification: Performance of remove unused functions: time 0.001377/1.296, allocations: 487.4 kB / 0.8831 GB, free: 90.41 MB / 458.7 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,driverEnvironment.ignition.y) * 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 (110): * Single equations (assignments): 108 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 0 * Torn equation systems: 2 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 1 {(1,100.0%) 3} * Non-linear torn systems: 1 {4 32} Notification: Performance of Backend phase and start with SimCode phase: time 0.0002649/1.296, allocations: 212.4 kB / 0.8833 GB, free: 90.27 MB / 458.7 MB Notification: Performance of simCode: created initialization part: time 0.002682/1.298, allocations: 1.901 MB / 0.8851 GB, free: 89.39 MB / 458.7 MB Notification: Performance of simCode: created event and clocks part: time 3.537e-06/1.298, allocations: 0 / 0.8851 GB, free: 89.39 MB / 458.7 MB Notification: Performance of simCode: created simulation system equations: time 0.001521/1.3, allocations: 1.034 MB / 0.8861 GB, free: 88.92 MB / 458.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.00219/1.302, allocations: 324.4 kB / 0.8865 GB, free: 88.78 MB / 458.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.007325/1.31, allocations: 5.867 MB / 0.8922 GB, free: 85.47 MB / 458.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0009315/1.311, allocations: 1.65 MB / 0.8938 GB, free: 84.68 MB / 458.7 MB Notification: Performance of simCode: alias equations: time 0.0008955/1.311, allocations: 294 kB / 0.8941 GB, free: 84.64 MB / 458.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002338/1.312, allocations: 128.3 kB / 0.8942 GB, free: 84.63 MB / 458.7 MB Notification: Performance of SimCode: time 6.71e-07/1.312, allocations: 4 kB / 0.8942 GB, free: 84.62 MB / 458.7 MB Notification: Performance of Templates: time 0.03408/1.346, allocations: 27.14 MB / 0.9207 GB, free: 73.44 MB / 458.7 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)