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"}) [:1:1-1:32:writable] Error: Class GC_set_max_heap_size not found in scope (looking for a function or record). Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.003217/0.003217, allocations: 179.8 kB / 7.458 MB, free: 2.5 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.423/1.423, allocations: 221.4 MB / 229.3 MB, free: 3.012 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.001046/0.001046, allocations: 98.03 kB / 280.1 MB, free: 1.219 MB / 218.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/VehicleInterfaces 2.0.1/package.mo): time 0.0394/0.0394, allocations: 7.852 MB / 338.7 MB, free: 6.707 MB / 282.7 MB Notification: Performance of FrontEnd - loaded program: time 0.2365/0.276, allocations: 58.3 MB / 397 MB, free: 68.55 MB / 298.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1125/0.3884, allocations: 52.19 MB / 449.2 MB, free: 16.47 MB / 298.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.4176/0.806, allocations: 108.8 MB / 0.5449 GB, free: 3.641 MB / 362.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002404/0.8063, allocations: 81.75 kB / 0.545 GB, free: 3.609 MB / 362.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 1.265/2.072, allocations: 268 MB / 0.8067 GB, free: 104.8 MB / 442.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.122e-05/2.072, allocations: 11 kB / 0.8068 GB, free: 104.8 MB / 442.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.001101/2.073, allocations: 369.6 kB / 0.8071 GB, free: 104.7 MB / 442.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.003306/2.076, allocations: 1.807 MB / 0.8089 GB, free: 104.2 MB / 442.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 8.809e-05/2.076, allocations: 86.19 kB / 0.809 GB, free: 104.2 MB / 442.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0003461/2.077, allocations: 179.6 kB / 0.8091 GB, free: 104.2 MB / 442.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.003448/2.08, allocations: 1.775 MB / 0.8109 GB, free: 104.2 MB / 442.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.00436/2.084, allocations: 2.617 MB / 0.8134 GB, free: 103.5 MB / 442.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0001158/2.085, allocations: 30.92 kB / 0.8134 GB, free: 103.5 MB / 442.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0002059/2.085, allocations: 3.656 kB / 0.8134 GB, free: 103.5 MB / 442.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0001274/2.085, allocations: 110 kB / 0.8135 GB, free: 103.5 MB / 442.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.01706/2.102, allocations: 11.25 MB / 0.8245 GB, free: 98.71 MB / 442.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001253/2.103, allocations: 0.8047 MB / 0.8253 GB, free: 98.66 MB / 442.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0009183/2.104, allocations: 0.6488 MB / 0.826 GB, free: 98.64 MB / 442.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0001085/2.104, allocations: 16.78 kB / 0.826 GB, free: 98.64 MB / 442.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.611e-05/2.104, allocations: 49.25 kB / 0.826 GB, free: 98.6 MB / 442.7 MB Notification: Performance of pre-optimization done (n=131): time 4.148e-06/2.104, allocations: 0.5625 kB / 0.826 GB, free: 98.6 MB / 442.7 MB Notification: Performance of matching and sorting (n=151): time 0.009277/2.114, allocations: 4.554 MB / 0.8305 GB, free: 97.15 MB / 442.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.212e-05/2.114, allocations: 94.02 kB / 0.8306 GB, free: 97.05 MB / 442.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001841/2.116, allocations: 1.217 MB / 0.8317 GB, free: 96.87 MB / 442.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0001394/2.116, allocations: 52.14 kB / 0.8318 GB, free: 96.84 MB / 442.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0009603/2.117, allocations: 1.009 MB / 0.8328 GB, free: 96.24 MB / 442.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.000412/2.117, allocations: 494.1 kB / 0.8332 GB, free: 95.94 MB / 442.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 8.956e-05/2.117, allocations: 2 kB / 0.8332 GB, free: 95.94 MB / 442.7 MB Notification: Performance of setup shared object (initialization): time 0.0001797/2.117, allocations: 378 kB / 0.8336 GB, free: 95.63 MB / 442.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0009574/2.118, allocations: 0.585 MB / 0.8342 GB, free: 95.63 MB / 442.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001197/2.12, allocations: 1.135 MB / 0.8353 GB, free: 94.97 MB / 442.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.00127/2.121, allocations: 0.6665 MB / 0.8359 GB, free: 94.93 MB / 442.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 9.648e-06/2.121, allocations: 7.594 kB / 0.8359 GB, free: 94.93 MB / 442.7 MB Notification: Performance of matching and sorting (n=247) (initialization): time 0.004004/2.125, allocations: 2.139 MB / 0.838 GB, free: 94.09 MB / 442.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.975e-05/2.125, allocations: 8.406 kB / 0.838 GB, free: 94.09 MB / 442.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.967e-05/2.125, allocations: 21.3 kB / 0.8381 GB, free: 94.09 MB / 442.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001664/2.127, allocations: 1.041 MB / 0.8391 GB, free: 93.78 MB / 442.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001207/2.128, allocations: 369.7 kB / 0.8394 GB, free: 93.73 MB / 442.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0033/2.131, allocations: 3.072 MB / 0.8424 GB, free: 91.31 MB / 442.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001796/2.133, allocations: 209.9 kB / 0.8426 GB, free: 91.29 MB / 442.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001823/2.133, allocations: 95 kB / 0.8427 GB, free: 91.27 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.0004443/2.134, allocations: 210.6 kB / 0.8429 GB, free: 91.1 MB / 442.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002926/2.134, allocations: 191.2 kB / 0.8431 GB, free: 91 MB / 442.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.003851/2.138, allocations: 1.87 MB / 0.8449 GB, free: 90.21 MB / 442.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.997e-05/2.138, allocations: 15.47 kB / 0.8449 GB, free: 90.21 MB / 442.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.179e-05/2.138, allocations: 4 kB / 0.845 GB, free: 90.2 MB / 442.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.993e-05/2.138, allocations: 11.84 kB / 0.845 GB, free: 90.2 MB / 442.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.009779/2.148, allocations: 4.328 MB / 0.8492 GB, free: 88.19 MB / 442.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.059e-05/2.148, allocations: 3.938 kB / 0.8492 GB, free: 88.19 MB / 442.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.000924/2.149, allocations: 210.8 kB / 0.8494 GB, free: 88.17 MB / 442.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.001494/2.15, allocations: 0.9468 MB / 0.8503 GB, free: 87.91 MB / 442.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001069/2.15, allocations: 33.59 kB / 0.8504 GB, free: 87.89 MB / 442.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.003087/2.153, allocations: 2.891 MB / 0.8532 GB, free: 85.56 MB / 442.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.491e-06/2.153, allocations: 3.938 kB / 0.8532 GB, free: 85.56 MB / 442.7 MB Notification: Performance of postOpt detectJacobianSparsePattern (simulation): time 0.005333/2.159, allocations: 2.634 MB / 0.8558 GB, free: 84.09 MB / 442.7 MB Notification: Performance of postOpt generateSymbolicLinearization (simulation): time 0.00608/2.165, allocations: 3.761 MB / 0.8594 GB, free: 81.88 MB / 442.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.001047/2.166, allocations: 414.3 kB / 0.8598 GB, free: 81.58 MB / 442.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0003737/2.166, allocations: 34.12 kB / 0.8599 GB, free: 81.56 MB / 442.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001138/2.168, allocations: 134 kB / 0.86 GB, free: 81.54 MB / 442.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0004777/2.168, allocations: 237.7 kB / 0.8602 GB, free: 81.52 MB / 442.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.00016/2.168, allocations: 68.56 kB / 0.8603 GB, free: 81.5 MB / 442.7 MB Notification: Performance of sort global known variables: time 0.001663/2.17, allocations: 0.8911 MB / 0.8611 GB, free: 81.12 MB / 442.7 MB Notification: Performance of remove unused functions: time 0.003394/2.173, allocations: 418.9 kB / 0.8615 GB, free: 81.12 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.0004855/2.174, allocations: 176.5 kB / 0.8617 GB, free: 81 MB / 442.7 MB Notification: Performance of simCode: created initialization part: time 0.003509/2.177, allocations: 1.732 MB / 0.8634 GB, free: 80.17 MB / 442.7 MB Notification: Performance of simCode: created event and clocks part: time 7.193e-06/2.177, allocations: 4.938 kB / 0.8634 GB, free: 80.17 MB / 442.7 MB Notification: Performance of simCode: created simulation system equations: time 0.002095/2.179, allocations: 0.9367 MB / 0.8643 GB, free: 79.72 MB / 442.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001914/2.181, allocations: 247.2 kB / 0.8646 GB, free: 79.63 MB / 442.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.009323/2.191, allocations: 3.485 MB / 0.868 GB, free: 78.07 MB / 442.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.002137/2.193, allocations: 1.834 MB / 0.8697 GB, free: 77.27 MB / 442.7 MB Notification: Performance of SimCode: time 1.162e-06/2.193, allocations: 2.25 kB / 0.8698 GB, free: 77.27 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)