Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr VehicleInterfaces_VehicleInterfaces.Examples.PowerSplitHybrid.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.PowerSplitHybrid,fileNamePrefix="VehicleInterfaces_VehicleInterfaces_Examples_PowerSplitHybrid",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(VehicleInterfaces.Examples.PowerSplitHybrid,fileNamePrefix="VehicleInterfaces_VehicleInterfaces_Examples_PowerSplitHybrid",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.003546/0.003546, allocations: 178.6 kB / 7.455 MB, free: 2.508 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.422/1.422, allocations: 221.4 MB / 229.3 MB, free: 3.379 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.000917/0.000917, allocations: 97.59 kB / 280.1 MB, free: 1.293 MB / 218.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/VehicleInterfaces 2.0.1/package.mo): time 0.03887/0.03887, allocations: 7.839 MB / 338.7 MB, free: 6.785 MB / 282.7 MB Notification: Performance of FrontEnd - loaded program: time 0.2289/0.2678, allocations: 58.3 MB / 397 MB, free: 68.58 MB / 298.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1147/0.3825, allocations: 52.22 MB / 449.2 MB, free: 16.46 MB / 298.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.3621/0.7447, allocations: 109.3 MB / 0.5454 GB, free: 3.164 MB / 362.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002849/0.745, allocations: 82.34 kB / 0.5455 GB, free: 3.133 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: 769 * Number of variables: 769 Notification: Performance of Generate backend data structure: time 1.262/2.007, allocations: 306.8 MB / 0.8451 GB, free: 100.1 MB / 442.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.923e-05/2.007, allocations: 7.844 kB / 0.8451 GB, free: 100.1 MB / 442.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.001089/2.008, allocations: 406.2 kB / 0.8455 GB, free: 99.88 MB / 442.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.003545/2.012, allocations: 1.954 MB / 0.8474 GB, free: 99.07 MB / 442.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 8.37e-05/2.012, allocations: 95.88 kB / 0.8475 GB, free: 99.07 MB / 442.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0003701/2.012, allocations: 189.3 kB / 0.8477 GB, free: 99.06 MB / 442.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.003771/2.016, allocations: 1.913 MB / 0.8495 GB, free: 98.95 MB / 442.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.005767/2.022, allocations: 2.854 MB / 0.8523 GB, free: 97.84 MB / 442.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0001339/2.022, allocations: 30.19 kB / 0.8523 GB, free: 97.83 MB / 442.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0002217/2.022, allocations: 6.094 kB / 0.8523 GB, free: 97.83 MB / 442.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0001437/2.023, allocations: 115.3 kB / 0.8525 GB, free: 97.82 MB / 442.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.01869/2.041, allocations: 12.06 MB / 0.8642 GB, free: 90.29 MB / 442.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001626/2.043, allocations: 0.8454 MB / 0.8651 GB, free: 89.88 MB / 442.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.00125/2.044, allocations: 0.6836 MB / 0.8657 GB, free: 89.55 MB / 442.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0001237/2.044, allocations: 24.53 kB / 0.8658 GB, free: 89.55 MB / 442.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.621e-05/2.044, allocations: 46.38 kB / 0.8658 GB, free: 89.5 MB / 442.7 MB Notification: Performance of pre-optimization done (n=139): time 4.037e-06/2.044, allocations: 0 / 0.8658 GB, free: 89.5 MB / 442.7 MB Notification: Performance of matching and sorting (n=160): time 0.01116/2.056, allocations: 4.847 MB / 0.8705 GB, free: 86.59 MB / 442.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.371e-05/2.056, allocations: 97.58 kB / 0.8706 GB, free: 86.48 MB / 442.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.002641/2.058, allocations: 1.281 MB / 0.8719 GB, free: 85.78 MB / 442.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0002081/2.058, allocations: 46.73 kB / 0.8719 GB, free: 85.74 MB / 442.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.001081/2.06, allocations: 1.101 MB / 0.873 GB, free: 84.79 MB / 442.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0004653/2.06, allocations: 0.5198 MB / 0.8735 GB, free: 84.33 MB / 442.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 9.548e-05/2.06, allocations: 0 / 0.8735 GB, free: 84.33 MB / 442.7 MB Notification: Performance of setup shared object (initialization): time 0.0001371/2.06, allocations: 380.1 kB / 0.8739 GB, free: 83.97 MB / 442.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001191/2.061, allocations: 0.614 MB / 0.8745 GB, free: 83.67 MB / 442.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001457/2.063, allocations: 1.173 MB / 0.8756 GB, free: 82.46 MB / 442.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001233/2.064, allocations: 0.6997 MB / 0.8763 GB, free: 81.78 MB / 442.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 7.133e-06/2.064, allocations: 4 kB / 0.8763 GB, free: 81.77 MB / 442.7 MB Notification: Performance of matching and sorting (n=260) (initialization): time 0.003888/2.068, allocations: 2.2 MB / 0.8784 GB, free: 79.56 MB / 442.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.951e-05/2.068, allocations: 8.188 kB / 0.8785 GB, free: 79.55 MB / 442.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.879e-05/2.068, allocations: 27.98 kB / 0.8785 GB, free: 79.53 MB / 442.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001682/2.07, allocations: 1.037 MB / 0.8795 GB, free: 78.54 MB / 442.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001309/2.071, allocations: 395.4 kB / 0.8799 GB, free: 78.15 MB / 442.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.003527/2.075, allocations: 3.08 MB / 0.8829 GB, free: 74.94 MB / 442.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.002183/2.077, allocations: 207.7 kB / 0.8831 GB, free: 74.74 MB / 442.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0002659/2.077, allocations: 99.92 kB / 0.8832 GB, free: 74.64 MB / 442.7 MB Warning: Iteration variables with default zero start attribute in torn nonlinear equation system: brakes.brake_3.sa:VARIABLE(unit = "1" ) "Path parameter of friction characteristic tau = f(a_relfric)" type: Real 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_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: 83 * 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 (217): * Single equations (assignments): 211 * 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.0005964/2.078, allocations: 209.2 kB / 0.8834 GB, free: 74.43 MB / 442.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0006258/2.078, allocations: 205.4 kB / 0.8836 GB, free: 74.23 MB / 442.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.004056/2.083, allocations: 1.921 MB / 0.8854 GB, free: 72.29 MB / 442.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.607e-05/2.083, allocations: 16 kB / 0.8855 GB, free: 72.27 MB / 442.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.256e-05/2.083, allocations: 0 / 0.8855 GB, free: 72.27 MB / 442.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.651e-05/2.083, allocations: 7.969 kB / 0.8855 GB, free: 72.26 MB / 442.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01025/2.093, allocations: 4.5 MB / 0.8899 GB, free: 67.7 MB / 442.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 7.925e-06/2.093, allocations: 0 / 0.8899 GB, free: 67.7 MB / 442.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001094/2.094, allocations: 242.5 kB / 0.8901 GB, free: 67.47 MB / 442.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.001541/2.096, allocations: 0.9401 MB / 0.891 GB, free: 66.58 MB / 442.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001449/2.096, allocations: 31.94 kB / 0.891 GB, free: 66.55 MB / 442.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.00319/2.099, allocations: 2.894 MB / 0.8939 GB, free: 63.51 MB / 442.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 7.093e-06/2.099, allocations: 11.89 kB / 0.8939 GB, free: 63.5 MB / 442.7 MB Notification: Performance of postOpt detectJacobianSparsePattern (simulation): time 0.004217/2.103, allocations: 2.635 MB / 0.8965 GB, free: 60.76 MB / 442.7 MB Notification: Performance of postOpt generateSymbolicLinearization (simulation): time 0.005749/2.109, allocations: 3.82 MB / 0.9002 GB, free: 56.83 MB / 442.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.001317/2.11, allocations: 418.4 kB / 0.9006 GB, free: 56.4 MB / 442.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0007398/2.111, allocations: 32 kB / 0.9006 GB, free: 56.37 MB / 442.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001552/2.113, allocations: 135.1 kB / 0.9007 GB, free: 56.24 MB / 442.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0004835/2.113, allocations: 252.6 kB / 0.901 GB, free: 56 MB / 442.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001714/2.113, allocations: 63.95 kB / 0.901 GB, free: 55.93 MB / 442.7 MB Notification: Performance of sort global known variables: time 0.002037/2.115, allocations: 0.9308 MB / 0.902 GB, free: 54.98 MB / 442.7 MB Notification: Performance of remove unused functions: time 0.003462/2.119, allocations: 451.9 kB / 0.9024 GB, free: 54.54 MB / 442.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 8 * Number of states: 6 (chassis.body.s,chassis.dragForces.v_rel,engine.end_1.zeroTorque1D.phi,engine.flywheel.w,motor1.inductor.i,motor2.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 (119): * Single equations (assignments): 117 * 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.0005087/2.119, allocations: 167 kB / 0.9025 GB, free: 54.37 MB / 442.7 MB Notification: Performance of simCode: created initialization part: time 0.003397/2.123, allocations: 1.811 MB / 0.9043 GB, free: 52.53 MB / 442.7 MB Notification: Performance of simCode: created event and clocks part: time 5.64e-06/2.123, allocations: 0 / 0.9043 GB, free: 52.53 MB / 442.7 MB Notification: Performance of simCode: created simulation system equations: time 0.001801/2.125, allocations: 0.9449 MB / 0.9052 GB, free: 51.58 MB / 442.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002126/2.127, allocations: 254.6 kB / 0.9055 GB, free: 51.34 MB / 442.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.009924/2.137, allocations: 3.657 MB / 0.909 GB, free: 47.64 MB / 442.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.002282/2.139, allocations: 1.93 MB / 0.9109 GB, free: 45.7 MB / 442.7 MB Notification: Performance of SimCode: time 1.202e-06/2.139, allocations: 0 / 0.9109 GB, free: 45.7 MB / 442.7 MB (rm -f VehicleInterfaces_VehicleInterfaces.Examples.PowerSplitHybrid.pipe ; mkfifo VehicleInterfaces_VehicleInterfaces.Examples.PowerSplitHybrid.pipe ; head -c 1048576 < VehicleInterfaces_VehicleInterfaces.Examples.PowerSplitHybrid.pipe >> ../files/VehicleInterfaces_VehicleInterfaces.Examples.PowerSplitHybrid.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator --tempDir=temp_VehicleInterfaces_VehicleInterfaces_Examples_PowerSplitHybrid_fmu --startTime=0 --stopTime=10 --timeout=50 --tolerance=1e-06 VehicleInterfaces_VehicleInterfaces_Examples_PowerSplitHybrid.fmu > VehicleInterfaces_VehicleInterfaces.Examples.PowerSplitHybrid.pipe 2>&1)