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.1/package.mo", uses=false) Using package VehicleInterfaces with version 2.0.1 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/VehicleInterfaces 2.0.1/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: "" <> buildModelFMU(VehicleInterfaces.Examples.SeriesHybrid,fileNamePrefix="VehicleInterfaces_VehicleInterfaces_Examples_SeriesHybrid",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(VehicleInterfaces.Examples.SeriesHybrid,fileNamePrefix="VehicleInterfaces_VehicleInterfaces_Examples_SeriesHybrid",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.006421/0.006421, allocations: 170.6 kB / 15.11 MB, free: 5.973 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.387/1.387, allocations: 223.2 MB / 239 MB, free: 1.793 MB / 186.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.0008481/0.0008478, allocations: 107.5 kB / 290.2 MB, free: 13.95 MB / 234.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/VehicleInterfaces 2.0.1/package.mo): time 0.04027/0.04027, allocations: 7.978 MB / 349.3 MB, free: 3.117 MB / 282.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0003649/0.0003653, allocations: 14.05 kB / 412.1 MB, free: 88.98 MB / 330.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1086/0.109, allocations: 52.21 MB / 464.3 MB, free: 43.11 MB / 330.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.4179/0.527, allocations: 109.2 MB / 0.5601 GB, free: 15.29 MB / 362.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002746/0.5273, allocations: 94.7 kB / 0.5602 GB, free: 15.29 MB / 362.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.8866/1.414, allocations: 266 MB / 0.82 GB, free: 51.69 MB / 458.7 MB Notification: Performance of FrontEnd: time 3.346e-06/1.414, allocations: 0 / 0.82 GB, free: 51.69 MB / 458.7 MB Notification: Performance of Transformations before backend: time 0.0003708/1.414, allocations: 87.97 kB / 0.8201 GB, free: 51.61 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.007948/1.422, allocations: 2.822 MB / 0.8228 GB, free: 48.95 MB / 458.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.837e-05/1.422, allocations: 8.031 kB / 0.8228 GB, free: 48.94 MB / 458.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.001368/1.424, allocations: 376 kB / 0.8232 GB, free: 48.73 MB / 458.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.001635/1.425, allocations: 389.7 kB / 0.8235 GB, free: 48.36 MB / 458.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.004604/1.43, allocations: 1.808 MB / 0.8253 GB, free: 47.06 MB / 458.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0002538/1.43, allocations: 202.2 kB / 0.8255 GB, free: 46.94 MB / 458.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0009659/1.431, allocations: 275.9 kB / 0.8258 GB, free: 46.76 MB / 458.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.007797/1.439, allocations: 3.055 MB / 0.8288 GB, free: 43.66 MB / 458.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0002718/1.439, allocations: 33.14 kB / 0.8288 GB, free: 43.64 MB / 458.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.000637/1.44, allocations: 120 kB / 0.8289 GB, free: 43.52 MB / 458.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0001369/1.44, allocations: 106.2 kB / 0.829 GB, free: 43.42 MB / 458.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.005092/1.445, allocations: 2.034 MB / 0.831 GB, free: 41.4 MB / 458.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.01908/1.464, allocations: 11.76 MB / 0.8425 GB, free: 29.48 MB / 458.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.002176/1.467, allocations: 1.079 MB / 0.8435 GB, free: 28.39 MB / 458.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0001605/1.467, allocations: 17.31 kB / 0.8435 GB, free: 28.37 MB / 458.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.257e-05/1.467, allocations: 49.38 kB / 0.8436 GB, free: 28.32 MB / 458.7 MB Notification: Performance of pre-optimization done (n=131): time 4.399e-06/1.467, allocations: 0 / 0.8436 GB, free: 28.32 MB / 458.7 MB Notification: Performance of matching and sorting (n=151): time 0.01554/1.483, allocations: 6.424 MB / 0.8499 GB, free: 21.75 MB / 458.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.601e-05/1.483, allocations: 98.36 kB / 0.8499 GB, free: 21.64 MB / 458.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.003953/1.487, allocations: 1.68 MB / 0.8516 GB, free: 19.94 MB / 458.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0003518/1.487, allocations: 73.69 kB / 0.8517 GB, free: 19.86 MB / 458.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.001575/1.489, allocations: 1.275 MB / 0.8529 GB, free: 18.57 MB / 458.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0008148/1.489, allocations: 0.5048 MB / 0.8534 GB, free: 18.05 MB / 458.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002363/1.49, allocations: 39.94 kB / 0.8534 GB, free: 18.02 MB / 458.7 MB Notification: Performance of setup shared object (initialization): time 0.0002093/1.49, allocations: 381.9 kB / 0.8538 GB, free: 17.64 MB / 458.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001448/1.491, allocations: 0.656 MB / 0.8544 GB, free: 16.98 MB / 458.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.00159/1.493, allocations: 1.211 MB / 0.8556 GB, free: 15.52 MB / 458.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.00137/1.494, allocations: 0.7134 MB / 0.8563 GB, free: 14.81 MB / 458.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.859e-05/1.494, allocations: 8 kB / 0.8563 GB, free: 14.8 MB / 458.7 MB Notification: Performance of matching and sorting (n=247) (initialization): time 0.005261/1.5, allocations: 2.441 MB / 0.8587 GB, free: 12.35 MB / 458.7 MB Notification: Performance of prepare postOptimizeDAE: time 4.776e-05/1.5, allocations: 12 kB / 0.8587 GB, free: 12.34 MB / 458.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.806e-05/1.5, allocations: 20 kB / 0.8587 GB, free: 12.32 MB / 458.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.002032/1.502, allocations: 1.098 MB / 0.8598 GB, free: 11.27 MB / 458.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001277/1.503, allocations: 363.4 kB / 0.8602 GB, free: 10.91 MB / 458.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.00311/1.506, allocations: 3.002 MB / 0.8631 GB, free: 7.754 MB / 458.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.002199/1.508, allocations: 223.7 kB / 0.8633 GB, free: 7.535 MB / 458.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0002895/1.509, allocations: 95.98 kB / 0.8634 GB, free: 7.441 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.00201/1.511, allocations: 0.6217 MB / 0.864 GB, free: 6.82 MB / 458.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0006725/1.511, allocations: 225.1 kB / 0.8642 GB, free: 6.598 MB / 458.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.004372/1.516, allocations: 2.048 MB / 0.8662 GB, free: 4.523 MB / 458.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.541e-05/1.516, allocations: 16 kB / 0.8662 GB, free: 4.508 MB / 458.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 9.568e-06/1.516, allocations: 0 / 0.8662 GB, free: 4.508 MB / 458.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.581e-05/1.516, allocations: 11.92 kB / 0.8662 GB, free: 4.496 MB / 458.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.301/1.817, allocations: 4.776 MB / 0.8709 GB, free: 109 MB / 458.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.528e-05/1.817, allocations: 0 / 0.8709 GB, free: 109 MB / 458.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001228/1.818, allocations: 208.4 kB / 0.8711 GB, free: 109 MB / 458.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.002159/1.821, allocations: 0.9947 MB / 0.8721 GB, free: 109 MB / 458.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0003649/1.821, allocations: 49.97 kB / 0.8721 GB, free: 109 MB / 458.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.00335/1.824, allocations: 2.85 MB / 0.8749 GB, free: 107.1 MB / 458.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 7.965e-06/1.824, allocations: 6.188 kB / 0.8749 GB, free: 107.1 MB / 458.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.006/1.83, allocations: 2.842 MB / 0.8777 GB, free: 106.6 MB / 458.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.001583/1.832, allocations: 459.6 kB / 0.8781 GB, free: 106.5 MB / 458.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0008008/1.833, allocations: 60.12 kB / 0.8782 GB, free: 106.5 MB / 458.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001776/1.835, allocations: 139.3 kB / 0.8783 GB, free: 106.5 MB / 458.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0006375/1.835, allocations: 249.3 kB / 0.8786 GB, free: 106.5 MB / 458.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001972/1.835, allocations: 68.03 kB / 0.8786 GB, free: 106.5 MB / 458.7 MB Notification: Performance of sorting global known variables: time 0.00364/1.839, allocations: 1.268 MB / 0.8799 GB, free: 106.4 MB / 458.7 MB Notification: Performance of sort global known variables: time 2.41e-07/1.839, allocations: 0 / 0.8799 GB, free: 106.4 MB / 458.7 MB Notification: Performance of remove unused functions: time 0.003408/1.843, allocations: 497.5 kB / 0.8803 GB, free: 106.4 MB / 458.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 9 * 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.006917/1.849, allocations: 3.996 MB / 0.8842 GB, free: 104.8 MB / 458.7 MB Notification: Performance of simCode: created initialization part: time 0.004081/1.854, allocations: 1.916 MB / 0.8861 GB, free: 104.6 MB / 458.7 MB Notification: Performance of simCode: created event and clocks part: time 7.294e-06/1.854, allocations: 0 / 0.8861 GB, free: 104.6 MB / 458.7 MB Notification: Performance of simCode: created simulation system equations: time 0.002032/1.856, allocations: 1.013 MB / 0.8871 GB, free: 104.5 MB / 458.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002619/1.858, allocations: 312.2 kB / 0.8874 GB, free: 104.4 MB / 458.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.04197/1.9, allocations: 27.53 MB / 0.9143 GB, free: 85.57 MB / 458.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0022/1.903, allocations: 1.711 MB / 0.916 GB, free: 84.82 MB / 458.7 MB Notification: Performance of simCode: alias equations: time 0.001561/1.904, allocations: 293.9 kB / 0.9162 GB, free: 84.77 MB / 458.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001698/1.906, allocations: 1.046 MB / 0.9173 GB, free: 84.77 MB / 458.7 MB Notification: Performance of SimCode: time 1.353e-06/1.906, allocations: 2.156 kB / 0.9173 GB, free: 84.77 MB / 458.7 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.08641/1.992, allocations: 47.89 MB / 0.964 GB, free: 69.9 MB / 458.7 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001806/1.993, allocations: 205.3 kB / 0.9642 GB, free: 69.65 MB / 458.7 MB Notification: Performance of buildModelFMU: Generate platform static: time 3.406/5.398, allocations: 0 / 0.9642 GB, free: 69.65 MB / 458.7 MB (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 & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator --tempDir=temp_VehicleInterfaces_VehicleInterfaces_Examples_SeriesHybrid_fmu --startTime=0 --stopTime=10 --timeout=50 --tolerance=1e-06 VehicleInterfaces_VehicleInterfaces_Examples_SeriesHybrid.fmu > VehicleInterfaces_VehicleInterfaces.Examples.SeriesHybrid.pipe 2>&1)