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.001808/0.001808, allocations: 174.9 kB / 12.73 MB, free: 2.59 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.539/1.539, allocations: 221.4 MB / 234.6 MB, free: 14.39 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.000912/0.0009119, allocations: 85.59 kB / 285.6 MB, free: 12.98 MB / 234.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/VehicleInterfaces 2.0.1/package.mo): time 0.03824/0.03824, allocations: 7.829 MB / 344.3 MB, free: 2.32 MB / 282.7 MB Notification: Performance of FrontEnd - loaded program: time 3.761e-05/3.764e-05, allocations: 4 kB / 404.5 MB, free: 62.56 MB / 298.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1142/0.1143, allocations: 52.21 MB / 456.7 MB, free: 10.43 MB / 298.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.4707/0.585, allocations: 109.4 MB / 0.5528 GB, free: 10.55 MB / 378.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002943/0.5854, allocations: 85.08 kB / 0.5529 GB, free: 10.52 MB / 378.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.9342/1.52, allocations: 266 MB / 0.8127 GB, free: 10.27 MB / 458.7 MB Notification: Performance of FrontEnd: time 2.034e-06/1.52, allocations: 0 / 0.8127 GB, free: 10.27 MB / 458.7 MB Notification: Performance of Transformations before backend: time 0.0001995/1.52, allocations: 87.97 kB / 0.8128 GB, free: 10.19 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.004189/1.524, allocations: 2.543 MB / 0.8152 GB, free: 7.605 MB / 458.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.744e-05/1.524, allocations: 12.03 kB / 0.8153 GB, free: 7.594 MB / 458.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0003913/1.525, allocations: 371.7 kB / 0.8156 GB, free: 7.223 MB / 458.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0008023/1.525, allocations: 382 kB / 0.816 GB, free: 6.848 MB / 458.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.002834/1.528, allocations: 1.802 MB / 0.8177 GB, free: 5.062 MB / 458.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001165/1.528, allocations: 201.1 kB / 0.8179 GB, free: 4.867 MB / 458.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.000329/1.529, allocations: 279.7 kB / 0.8182 GB, free: 4.594 MB / 458.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.004238/1.533, allocations: 2.996 MB / 0.8211 GB, free: 1.371 MB / 458.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 9.29e-05/1.533, allocations: 27.56 kB / 0.8211 GB, free: 1.348 MB / 458.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0002117/1.533, allocations: 112 kB / 0.8212 GB, free: 1.238 MB / 458.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 8.967e-05/1.533, allocations: 99.97 kB / 0.8213 GB, free: 1.141 MB / 458.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.3215/1.855, allocations: 1.938 MB / 0.8232 GB, free: 115.1 MB / 458.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.02449/1.879, allocations: 11.75 MB / 0.8347 GB, free: 110.4 MB / 458.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001941/1.881, allocations: 1.038 MB / 0.8357 GB, free: 110.4 MB / 458.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001206/1.883, allocations: 0.6838 MB / 0.8364 GB, free: 110.4 MB / 458.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0001163/1.883, allocations: 19.91 kB / 0.8364 GB, free: 110.4 MB / 458.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.537e-05/1.883, allocations: 50.48 kB / 0.8365 GB, free: 110.3 MB / 458.7 MB Notification: Performance of pre-optimization done (n=131): time 3.958e-06/1.883, allocations: 0 / 0.8365 GB, free: 110.3 MB / 458.7 MB Notification: Performance of matching and sorting (n=151): time 0.009452/1.892, allocations: 4.886 MB / 0.8412 GB, free: 108.9 MB / 458.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.081e-05/1.892, allocations: 94.19 kB / 0.8413 GB, free: 108.9 MB / 458.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.002894/1.895, allocations: 1.66 MB / 0.8429 GB, free: 108.6 MB / 458.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0001665/1.895, allocations: 74.33 kB / 0.843 GB, free: 108.6 MB / 458.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.001237/1.897, allocations: 1.277 MB / 0.8443 GB, free: 108.2 MB / 458.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.000428/1.897, allocations: 0.5052 MB / 0.8448 GB, free: 107.8 MB / 458.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001044/1.897, allocations: 39 kB / 0.8448 GB, free: 107.8 MB / 458.7 MB Notification: Performance of setup shared object (initialization): time 0.0001403/1.897, allocations: 378.8 kB / 0.8451 GB, free: 107.5 MB / 458.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001188/1.899, allocations: 0.6208 MB / 0.8458 GB, free: 107.5 MB / 458.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001469/1.9, allocations: 1.17 MB / 0.8469 GB, free: 106.9 MB / 458.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001197/1.901, allocations: 0.691 MB / 0.8476 GB, free: 106.9 MB / 458.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.469e-05/1.901, allocations: 5.531 kB / 0.8476 GB, free: 106.9 MB / 458.7 MB Notification: Performance of matching and sorting (n=247) (initialization): time 0.004336/1.906, allocations: 2.371 MB / 0.8499 GB, free: 106.6 MB / 458.7 MB Notification: Performance of prepare postOptimizeDAE: time 3.099e-05/1.906, allocations: 14.09 kB / 0.8499 GB, free: 106.6 MB / 458.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.278e-05/1.906, allocations: 19.94 kB / 0.8499 GB, free: 106.6 MB / 458.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001717/1.907, allocations: 1.066 MB / 0.851 GB, free: 106.6 MB / 458.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001068/1.908, allocations: 359.8 kB / 0.8513 GB, free: 106.6 MB / 458.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002693/1.911, allocations: 2.983 MB / 0.8542 GB, free: 104.7 MB / 458.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001858/1.913, allocations: 222.6 kB / 0.8544 GB, free: 104.7 MB / 458.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001633/1.913, allocations: 92.17 kB / 0.8545 GB, free: 104.7 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 () * 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.0003869/1.914, allocations: 268.3 kB / 0.8548 GB, free: 104.5 MB / 458.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.000311/1.914, allocations: 227.9 kB / 0.855 GB, free: 104.4 MB / 458.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.003402/1.917, allocations: 1.997 MB / 0.8569 GB, free: 104 MB / 458.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.574e-05/1.917, allocations: 14.81 kB / 0.857 GB, free: 104 MB / 458.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.121e-06/1.917, allocations: 0 / 0.857 GB, free: 104 MB / 458.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.433e-05/1.917, allocations: 11.31 kB / 0.857 GB, free: 104 MB / 458.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.008035/1.925, allocations: 4.738 MB / 0.8616 GB, free: 101.8 MB / 458.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 8.666e-06/1.925, allocations: 3.75 kB / 0.8616 GB, free: 101.8 MB / 458.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0008172/1.926, allocations: 210.2 kB / 0.8618 GB, free: 101.8 MB / 458.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.001453/1.928, allocations: 0.9709 MB / 0.8628 GB, free: 101.5 MB / 458.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001117/1.928, allocations: 49.97 kB / 0.8628 GB, free: 101.5 MB / 458.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.00254/1.93, allocations: 2.831 MB / 0.8656 GB, free: 99.11 MB / 458.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.27e-06/1.93, allocations: 11.12 kB / 0.8656 GB, free: 99.11 MB / 458.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.003945/1.934, allocations: 2.765 MB / 0.8683 GB, free: 97.53 MB / 458.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0009924/1.935, allocations: 466 kB / 0.8687 GB, free: 97.2 MB / 458.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0002748/1.936, allocations: 57.55 kB / 0.8688 GB, free: 97.16 MB / 458.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001015/1.937, allocations: 144.1 kB / 0.8689 GB, free: 97.13 MB / 458.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.000433/1.937, allocations: 244.6 kB / 0.8691 GB, free: 97.1 MB / 458.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.000116/1.937, allocations: 63.73 kB / 0.8692 GB, free: 97.09 MB / 458.7 MB Notification: Performance of sorting global known variables: time 0.001827/1.939, allocations: 1.251 MB / 0.8704 GB, free: 96.57 MB / 458.7 MB Notification: Performance of sort global known variables: time 3.01e-07/1.939, allocations: 0 / 0.8704 GB, free: 96.57 MB / 458.7 MB Notification: Performance of remove unused functions: time 0.001902/1.941, allocations: 492.2 kB / 0.8709 GB, free: 96.52 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) * 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.004134/1.945, allocations: 3.984 MB / 0.8748 GB, free: 93.84 MB / 458.7 MB Notification: Performance of simCode: created initialization part: time 0.003049/1.948, allocations: 1.839 MB / 0.8766 GB, free: 92.98 MB / 458.7 MB Notification: Performance of simCode: created event and clocks part: time 3.887e-06/1.948, allocations: 0 / 0.8766 GB, free: 92.98 MB / 458.7 MB Notification: Performance of simCode: created simulation system equations: time 0.001646/1.95, allocations: 1.003 MB / 0.8776 GB, free: 92.5 MB / 458.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001957/1.952, allocations: 304.6 kB / 0.8779 GB, free: 92.38 MB / 458.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.009641/1.962, allocations: 4.217 MB / 0.882 GB, free: 90.57 MB / 458.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001137/1.963, allocations: 1.711 MB / 0.8836 GB, free: 89.78 MB / 458.7 MB Notification: Performance of simCode: alias equations: time 0.001276/1.964, allocations: 291.2 kB / 0.8839 GB, free: 89.73 MB / 458.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001625/1.966, allocations: 1.05 MB / 0.8849 GB, free: 88.87 MB / 458.7 MB Notification: Performance of SimCode: time 1.923e-06/1.966, allocations: 0 / 0.8849 GB, free: 88.87 MB / 458.7 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.1075/2.073, allocations: 47.53 MB / 0.9314 GB, free: 61.54 MB / 458.7 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0002288/2.073, allocations: 182.8 kB / 0.9315 GB, free: 61.31 MB / 458.7 MB Notification: Performance of buildModelFMU: Generate platform static: time 3.531/5.605, allocations: 0 / 0.9315 GB, free: 61.31 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)