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.001201/0.001201, allocations: 172.5 kB / 7.647 MB, free: 1.422 MB / 5.871 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.331/1.331, allocations: 221.5 MB / 229.6 MB, free: 3.191 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.0008563/0.0008564, allocations: 92.23 kB / 280.5 MB, free: 1.145 MB / 218.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/VehicleInterfaces 2.0.1/package.mo): time 0.03835/0.03835, allocations: 7.841 MB / 339.1 MB, free: 6.625 MB / 282.7 MB Notification: Performance of FrontEnd - loaded program: time 1.749e-05/1.752e-05, allocations: 0 / 397.6 MB, free: 68.21 MB / 298.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09611/0.09615, allocations: 52.22 MB / 449.8 MB, free: 16.1 MB / 298.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.4028/0.499, allocations: 108.8 MB / 0.5455 GB, free: 3.047 MB / 362.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002611/0.4993, allocations: 88.14 kB / 0.5456 GB, free: 3.008 MB / 362.7 MB Notification: Performance of FrontEnd - DAE generated: time 1.188/1.687, allocations: 265.5 MB / 0.8048 GB, free: 105.3 MB / 442.7 MB Notification: Performance of FrontEnd: time 1.743e-06/1.687, allocations: 1.125 kB / 0.8048 GB, free: 105.3 MB / 442.7 MB Notification: Performance of Transformations before backend: time 0.0002525/1.687, allocations: 91.39 kB / 0.8049 GB, free: 105.3 MB / 442.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.004991/1.692, allocations: 2.54 MB / 0.8074 GB, free: 104.1 MB / 442.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.472e-05/1.692, allocations: 10.25 kB / 0.8074 GB, free: 104.1 MB / 442.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.00107/1.694, allocations: 381.4 kB / 0.8078 GB, free: 104 MB / 442.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.003053/1.697, allocations: 1.795 MB / 0.8095 GB, free: 103.5 MB / 442.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001218/1.697, allocations: 88.38 kB / 0.8096 GB, free: 103.5 MB / 442.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0003989/1.697, allocations: 186.1 kB / 0.8098 GB, free: 103.5 MB / 442.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.003608/1.701, allocations: 1.767 MB / 0.8115 GB, free: 103.5 MB / 442.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.004606/1.705, allocations: 2.617 MB / 0.8141 GB, free: 102.8 MB / 442.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0001137/1.706, allocations: 27.41 kB / 0.8141 GB, free: 102.8 MB / 442.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0002024/1.706, allocations: 6.281 kB / 0.8141 GB, free: 102.8 MB / 442.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0001382/1.706, allocations: 100.6 kB / 0.8142 GB, free: 102.8 MB / 442.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.01631/1.722, allocations: 11.21 MB / 0.8252 GB, free: 98.04 MB / 442.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001356/1.724, allocations: 0.9696 MB / 0.8261 GB, free: 97.98 MB / 442.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0008655/1.724, allocations: 0.6484 MB / 0.8267 GB, free: 97.95 MB / 442.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.000115/1.725, allocations: 16.83 kB / 0.8268 GB, free: 97.95 MB / 442.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.135e-05/1.725, allocations: 48.69 kB / 0.8268 GB, free: 97.91 MB / 442.7 MB Notification: Performance of pre-optimization done (n=131): time 3.887e-06/1.725, allocations: 336 / 0.8268 GB, free: 97.91 MB / 442.7 MB Notification: Performance of matching and sorting (n=151): time 0.008214/1.733, allocations: 4.599 MB / 0.8313 GB, free: 96.47 MB / 442.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.727e-05/1.733, allocations: 97.36 kB / 0.8314 GB, free: 96.38 MB / 442.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001714/1.735, allocations: 1.212 MB / 0.8326 GB, free: 96.19 MB / 442.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0001232/1.735, allocations: 46.98 kB / 0.8326 GB, free: 96.16 MB / 442.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.00101/1.736, allocations: 1.302 MB / 0.8339 GB, free: 95.56 MB / 442.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0003458/1.736, allocations: 495.6 kB / 0.8344 GB, free: 95.26 MB / 442.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 8.511e-05/1.736, allocations: 0 / 0.8344 GB, free: 95.26 MB / 442.7 MB Notification: Performance of setup shared object (initialization): time 0.0001224/1.736, allocations: 384.6 kB / 0.8347 GB, free: 94.95 MB / 442.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0008549/1.737, allocations: 0.5798 MB / 0.8353 GB, free: 94.95 MB / 442.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001122/1.738, allocations: 1.13 MB / 0.8364 GB, free: 94.29 MB / 442.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001127/1.74, allocations: 0.6624 MB / 0.837 GB, free: 94.1 MB / 442.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 9.137e-06/1.74, allocations: 7.844 kB / 0.837 GB, free: 94.1 MB / 442.7 MB Notification: Performance of matching and sorting (n=247) (initialization): time 0.003596/1.743, allocations: 2.137 MB / 0.8391 GB, free: 93.22 MB / 442.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.961e-05/1.743, allocations: 14.41 kB / 0.8391 GB, free: 93.22 MB / 442.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.954e-05/1.743, allocations: 22.17 kB / 0.8392 GB, free: 93.22 MB / 442.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001544/1.745, allocations: 1.058 MB / 0.8402 GB, free: 92.91 MB / 442.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.00112/1.746, allocations: 367.8 kB / 0.8406 GB, free: 92.87 MB / 442.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002912/1.749, allocations: 3.069 MB / 0.8435 GB, free: 90.42 MB / 442.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001737/1.751, allocations: 188.7 kB / 0.8437 GB, free: 90.41 MB / 442.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001597/1.751, allocations: 89.78 kB / 0.8438 GB, free: 90.39 MB / 442.7 MB Warning: Iteration variables with default zero start attribute in torn nonlinear equation system: brakes.brake_1.sa:VARIABLE(unit = "1" ) "Path parameter of friction characteristic tau = f(a_relfric)" type: Real brakes.brake_2.sa:VARIABLE(unit = "1" ) "Path parameter of friction characteristic tau = f(a_relfric)" type: Real brakes.brake_3.sa:VARIABLE(unit = "1" ) "Path parameter of friction characteristic tau = f(a_relfric)" type: Real brakes.brake_4.sa:VARIABLE(unit = "1" ) "Path parameter of friction characteristic tau = f(a_relfric)" type: Real 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.0004301/1.751, allocations: 212.8 kB / 0.844 GB, free: 90.23 MB / 442.7 MB Notification: Performance of postOpt createAliasVarsForOutputStates (simulation): time 0.002827/1.754, allocations: 1.559 MB / 0.8455 GB, free: 89.57 MB / 442.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002799/1.754, allocations: 191.9 kB / 0.8457 GB, free: 89.47 MB / 442.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.003198/1.758, allocations: 1.862 MB / 0.8475 GB, free: 88.66 MB / 442.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.467e-05/1.758, allocations: 17.09 kB / 0.8476 GB, free: 88.66 MB / 442.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.765e-06/1.758, allocations: 2.719 kB / 0.8476 GB, free: 88.66 MB / 442.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.547e-05/1.758, allocations: 7.125 kB / 0.8476 GB, free: 88.66 MB / 442.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.007988/1.766, allocations: 4.309 MB / 0.8518 GB, free: 86.65 MB / 442.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 8.687e-06/1.766, allocations: 2.969 kB / 0.8518 GB, free: 86.65 MB / 442.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0008253/1.766, allocations: 208.7 kB / 0.852 GB, free: 86.63 MB / 442.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.001397/1.768, allocations: 0.9598 MB / 0.8529 GB, free: 86.36 MB / 442.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001036/1.768, allocations: 28.77 kB / 0.8529 GB, free: 86.36 MB / 442.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.002815/1.771, allocations: 2.907 MB / 0.8558 GB, free: 84 MB / 442.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 8.105e-06/1.771, allocations: 3.531 kB / 0.8558 GB, free: 84 MB / 442.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.003955/1.775, allocations: 2.618 MB / 0.8583 GB, free: 82.51 MB / 442.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0008807/1.776, allocations: 409.3 kB / 0.8587 GB, free: 82.22 MB / 442.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.000251/1.776, allocations: 29.44 kB / 0.8588 GB, free: 82.2 MB / 442.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0009556/1.777, allocations: 123.7 kB / 0.8589 GB, free: 82.2 MB / 442.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0004343/1.777, allocations: 252.5 kB / 0.8591 GB, free: 82.15 MB / 442.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001174/1.777, allocations: 61.05 kB / 0.8592 GB, free: 82.14 MB / 442.7 MB Notification: Performance of sorting global known variables: time 0.001314/1.779, allocations: 0.8837 MB / 0.86 GB, free: 81.77 MB / 442.7 MB Notification: Performance of sort global known variables: time 1.51e-07/1.779, allocations: 0 / 0.86 GB, free: 81.77 MB / 442.7 MB Notification: Performance of remove unused functions: time 0.001882/1.781, allocations: 418.3 kB / 0.8604 GB, free: 81.77 MB / 442.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.785, allocations: 3.818 MB / 0.8642 GB, free: 79.17 MB / 442.7 MB Notification: Performance of simCode: created initialization part: time 0.00288/1.788, allocations: 1.731 MB / 0.8659 GB, free: 78.34 MB / 442.7 MB Notification: Performance of simCode: created event and clocks part: time 4.789e-06/1.788, allocations: 3.938 kB / 0.8659 GB, free: 78.33 MB / 442.7 MB Notification: Performance of simCode: created simulation system equations: time 0.001578/1.789, allocations: 0.9549 MB / 0.8668 GB, free: 77.87 MB / 442.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001735/1.791, allocations: 237.9 kB / 0.867 GB, free: 77.79 MB / 442.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01071/1.802, allocations: 4.061 MB / 0.871 GB, free: 76.09 MB / 442.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001762/1.804, allocations: 1.697 MB / 0.8726 GB, free: 75.31 MB / 442.7 MB Notification: Performance of simCode: alias equations: time 0.001072/1.805, allocations: 257.7 kB / 0.8729 GB, free: 75.27 MB / 442.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001225/1.806, allocations: 1.026 MB / 0.8739 GB, free: 74.36 MB / 442.7 MB Notification: Performance of SimCode: time 1.593e-06/1.806, allocations: 0 / 0.8739 GB, free: 74.36 MB / 442.7 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.082/1.888, allocations: 41.94 MB / 0.9148 GB, free: 41.16 MB / 442.7 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0002609/1.888, allocations: 127.6 kB / 0.915 GB, free: 40.97 MB / 442.7 MB Notification: Performance of buildModelFMU: Generate platform static: time 3.361/5.249, allocations: 0 / 0.915 GB, free: 40.97 MB / 442.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)