Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_4.0.0_Modelica.Mechanics.Rotational.Examples.HeatLosses.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) 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(Modelica.Mechanics.Rotational.Examples.HeatLosses,fileNamePrefix="Modelica_4_0_0_Modelica_Mechanics_Rotational_Examples_HeatLosses",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Mechanics.Rotational.Examples.HeatLosses,fileNamePrefix="Modelica_4_0_0_Modelica_Mechanics_Rotational_Examples_HeatLosses",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.0009076/0.0009077, allocations: 181.9 kB / 8.135 MB, free: 2.223 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.041/1.041, allocations: 221.4 MB / 229.9 MB, free: 3.027 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.0008387/0.0008387, allocations: 94.28 kB / 280.8 MB, free: 1.266 MB / 218.7 MB Notification: Performance of FrontEnd - loaded program: time 0.08781/0.08867, allocations: 55.82 MB / 336.6 MB, free: 9.426 MB / 282.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1687/0.2574, allocations: 50.39 MB / 387 MB, free: 38.01 MB / 298.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.08268/0.3401, allocations: 88.14 MB / 475.1 MB, free: 14.63 MB / 362.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0001978/0.3403, allocations: 69.09 kB / 475.2 MB, free: 14.57 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: 243 * Number of variables: 243 Notification: Performance of Generate backend data structure: time 0.06537/0.4057, allocations: 24.36 MB / 499.6 MB, free: 6.156 MB / 378.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.535e-05/0.4058, allocations: 12 kB / 499.6 MB, free: 6.145 MB / 378.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0005727/0.4063, allocations: 142.6 kB / 499.7 MB, free: 6.004 MB / 378.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0009206/0.4073, allocations: 0.5373 MB / 0.4885 GB, free: 5.426 MB / 378.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0003163/0.4076, allocations: 167.1 kB / 0.4887 GB, free: 5.242 MB / 378.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001934/0.4078, allocations: 67.89 kB / 0.4887 GB, free: 5.176 MB / 378.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.001924/0.4097, allocations: 1.089 MB / 0.4898 GB, free: 4.086 MB / 378.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001751/0.4115, allocations: 1.017 MB / 0.4908 GB, free: 3.055 MB / 378.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 4.523e-05/0.4116, allocations: 7.906 kB / 0.4908 GB, free: 3.047 MB / 378.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 9.978e-05/0.4117, allocations: 4 kB / 0.4908 GB, free: 3.043 MB / 378.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.433e-05/0.4117, allocations: 20 kB / 0.4908 GB, free: 3.023 MB / 378.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.1038/0.5155, allocations: 3.585 MB / 0.4943 GB, free: 129.6 MB / 378.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001028/0.5166, allocations: 0.694 MB / 0.495 GB, free: 129.6 MB / 378.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0007011/0.5173, allocations: 0.5571 MB / 0.4956 GB, free: 129.6 MB / 378.7 MB Notification: Performance of preOpt evalFunc (simulation): time 9.847e-05/0.5174, allocations: 22.8 kB / 0.4956 GB, free: 129.6 MB / 378.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.901e-05/0.5174, allocations: 46.22 kB / 0.4956 GB, free: 129.5 MB / 378.7 MB Notification: Performance of pre-optimization done (n=135): time 4.999e-06/0.5174, allocations: 3.391 kB / 0.4956 GB, free: 129.5 MB / 378.7 MB Notification: Performance of matching and sorting (n=147): time 0.006668/0.5241, allocations: 3.494 MB / 0.499 GB, free: 128.9 MB / 378.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 2.9e-05/0.5242, allocations: 90.45 kB / 0.4991 GB, free: 128.8 MB / 378.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003622/0.5245, allocations: 411.1 kB / 0.4995 GB, free: 128.6 MB / 378.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0001091/0.5246, allocations: 39.83 kB / 0.4996 GB, free: 128.6 MB / 378.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001102/0.5248, allocations: 268.8 kB / 0.4998 GB, free: 128.5 MB / 378.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.000257/0.525, allocations: 483.6 kB / 0.5003 GB, free: 128.2 MB / 378.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 8.133e-05/0.5251, allocations: 0 / 0.5003 GB, free: 128.2 MB / 378.7 MB Notification: Performance of setup shared object (initialization): time 8.855e-05/0.5252, allocations: 399.8 kB / 0.5007 GB, free: 127.9 MB / 378.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0007217/0.5259, allocations: 0.4906 MB / 0.5011 GB, free: 127.9 MB / 378.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0007852/0.5267, allocations: 0.6116 MB / 0.5017 GB, free: 127.8 MB / 378.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0009568/0.5277, allocations: 463.7 kB / 0.5022 GB, free: 127.8 MB / 378.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.226e-06/0.5277, allocations: 0 / 0.5022 GB, free: 127.8 MB / 378.7 MB Notification: Performance of matching and sorting (n=179) (initialization): time 0.002792/0.5305, allocations: 1.558 MB / 0.5037 GB, free: 127.7 MB / 378.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.332e-05/0.5305, allocations: 3.906 kB / 0.5037 GB, free: 127.7 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.992e-05/0.5305, allocations: 7.5 kB / 0.5037 GB, free: 127.7 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001522/0.5321, allocations: 0.7577 MB / 0.5044 GB, free: 127.6 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001037/0.5331, allocations: 269.3 kB / 0.5047 GB, free: 127.6 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002134/0.5353, allocations: 2.036 MB / 0.5067 GB, free: 126.6 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001175/0.5365, allocations: 199.5 kB / 0.5069 GB, free: 126.6 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001489/0.5366, allocations: 64.5 kB / 0.5069 GB, free: 126.6 MB / 378.7 MB Warning: Iteration variables with default zero start attribute in torn nonlinear equation system: bearingFriction.sa:VARIABLE(unit = "1" ) "Path parameter of friction characteristic tau = f(a_relfric)" type: Real Warning: Iteration variables with default zero start attribute in torn nonlinear equation system: oneWayClutch.sa:VARIABLE(unit = "1" protected = true ) "Path parameter of tau = f(a_rel) Friction characteristic" type: Real lossyGear.sa:VARIABLE(unit = "1" ) "Path parameter for acceleration and torque loss" type: Real clutch.sa:VARIABLE(unit = "1" ) "Path parameter of friction characteristic tau = f(a_relfric)" type: Real brake.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: 7 * Number of states: 0 () * Number of discrete variables: 37 ($PRE.bearingFriction.startForward,bearingFriction.startForward,$PRE.bearingFriction.startBackward,bearingFriction.startBackward,bearingFriction.locked,$PRE.bearingFriction.mode,bearingFriction.mode,lossyGear.tau_aPos,lossyGear.startForward,lossyGear.startBackward,lossyGear.locked,$PRE.lossyGear.mode,lossyGear.mode,clutch.free,$PRE.clutch.startForward,clutch.startForward,$PRE.clutch.startBackward,clutch.startBackward,clutch.locked,$PRE.clutch.mode,clutch.mode,$PRE.oneWayClutch.startForward,oneWayClutch.startForward,oneWayClutch.locked,$PRE.oneWayClutch.stuck,oneWayClutch.stuck,oneWayClutch.free,brake.free,$PRE.brake.startForward,brake.startForward,$PRE.brake.startBackward,brake.startBackward,brake.locked,$PRE.brake.mode,brake.mode,lossyGear.ideal,bearingFriction.free) * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (129): * Single equations (assignments): 123 * 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: 0 * Non-linear torn systems: 2 {4 40,1 7} Notification: Performance of prepare postOptimizeDAE: time 0.000308/0.5369, allocations: 160.8 kB / 0.5071 GB, free: 126.5 MB / 378.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001787/0.5371, allocations: 93.66 kB / 0.5072 GB, free: 126.4 MB / 378.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.002839/0.54, allocations: 1.678 MB / 0.5088 GB, free: 126.3 MB / 378.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.027e-05/0.54, allocations: 16.59 kB / 0.5088 GB, free: 126.3 MB / 378.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.845e-06/0.54, allocations: 1.188 kB / 0.5088 GB, free: 126.3 MB / 378.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.125e-05/0.54, allocations: 6.656 kB / 0.5088 GB, free: 126.3 MB / 378.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.004654/0.5447, allocations: 2.82 MB / 0.5116 GB, free: 125.9 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.22e-06/0.5447, allocations: 3.875 kB / 0.5116 GB, free: 125.9 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001222/0.5459, allocations: 274.8 kB / 0.5119 GB, free: 125.9 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.001371/0.5473, allocations: 0.7156 MB / 0.5126 GB, free: 125.9 MB / 378.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001208/0.5474, allocations: 42.11 kB / 0.5126 GB, free: 125.9 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.002118/0.5496, allocations: 1.941 MB / 0.5145 GB, free: 124.8 MB / 378.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.859e-06/0.5496, allocations: 9.547 kB / 0.5145 GB, free: 124.8 MB / 378.7 MB Notification: Performance of postOpt detectJacobianSparsePattern (simulation): time 0.003694/0.5533, allocations: 2.18 MB / 0.5166 GB, free: 124.1 MB / 378.7 MB Notification: Performance of postOpt generateSymbolicLinearization (simulation): time 0.004785/0.5581, allocations: 3.222 MB / 0.5198 GB, free: 122.5 MB / 378.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0004773/0.5586, allocations: 297.2 kB / 0.5201 GB, free: 122.3 MB / 378.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0002352/0.5588, allocations: 17.06 kB / 0.5201 GB, free: 122.3 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001249/0.5601, allocations: 218.1 kB / 0.5203 GB, free: 122.2 MB / 378.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0004067/0.5605, allocations: 227.3 kB / 0.5205 GB, free: 122.2 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001598/0.5607, allocations: 60.16 kB / 0.5206 GB, free: 122.2 MB / 378.7 MB Notification: Performance of sort global known variables: time 0.0003696/0.561, allocations: 322.2 kB / 0.5209 GB, free: 122.1 MB / 378.7 MB Notification: Performance of remove unused functions: time 0.00159/0.5626, allocations: 275.6 kB / 0.5211 GB, free: 122 MB / 378.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 5 * Number of states: 12 (damper.phi_rel,damper.w_rel,springDamper.phi_rel,springDamper.w_rel,elastoBacklash.phi_rel,elastoBacklash.w_rel,inertia4.w,lossyGear.phi_a,clutch.phi_rel,clutch.w_rel,oneWayClutch.phi_rel,oneWayClutch.w_rel) * Number of discrete variables: 23 (bearingFriction.startForward,bearingFriction.startBackward,bearingFriction.locked,bearingFriction.mode,lossyGear.tau_aPos,lossyGear.startForward,lossyGear.startBackward,lossyGear.locked,lossyGear.mode,clutch.free,clutch.startForward,clutch.startBackward,clutch.locked,clutch.mode,oneWayClutch.startForward,oneWayClutch.locked,oneWayClutch.stuck,oneWayClutch.free,brake.free,brake.startForward,brake.startBackward,brake.locked,brake.mode) * Number of discrete states: 12 (lossyGear.mode,brake.mode,brake.startForward,clutch.mode,clutch.startForward,clutch.startBackward,oneWayClutch.stuck,oneWayClutch.startForward,brake.startBackward,bearingFriction.mode,bearingFriction.startForward,bearingFriction.startBackward) * Top-level inputs: 0 Notification: Strong component statistics for simulation (96): * Single equations (assignments): 94 * 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: 0 * Non-linear torn systems: 2 {1 6,4 38} Notification: Performance of Backend phase and start with SimCode phase: time 0.0004164/0.5631, allocations: 174.2 kB / 0.5213 GB, free: 121.9 MB / 378.7 MB Notification: Performance of simCode: created initialization part: time 0.002408/0.5655, allocations: 1.356 MB / 0.5226 GB, free: 121.4 MB / 378.7 MB Notification: Performance of simCode: created event and clocks part: time 4.048e-06/0.5655, allocations: 1.406 kB / 0.5226 GB, free: 121.4 MB / 378.7 MB Notification: Performance of simCode: created simulation system equations: time 0.001452/0.5669, allocations: 0.7264 MB / 0.5233 GB, free: 121.1 MB / 378.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0008824/0.5678, allocations: 114 kB / 0.5234 GB, free: 121.1 MB / 378.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.007741/0.5756, allocations: 2.829 MB / 0.5262 GB, free: 120.1 MB / 378.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0009024/0.5765, allocations: 1.173 MB / 0.5274 GB, free: 119.4 MB / 378.7 MB Notification: Performance of SimCode: time 4.11e-07/0.5765, allocations: 0 / 0.5274 GB, free: 119.4 MB / 378.7 MB (rm -f Modelica_4.0.0_Modelica.Mechanics.Rotational.Examples.HeatLosses.pipe ; mkfifo Modelica_4.0.0_Modelica.Mechanics.Rotational.Examples.HeatLosses.pipe ; head -c 1048576 < Modelica_4.0.0_Modelica.Mechanics.Rotational.Examples.HeatLosses.pipe >> ../files/Modelica_4.0.0_Modelica.Mechanics.Rotational.Examples.HeatLosses.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=Modelica_4.0.0_Modelica.Mechanics.Rotational.Examples.HeatLosses_res.mat --tempDir=temp_Modelica_4_0_0_Modelica_Mechanics_Rotational_Examples_HeatLosses_fmu --startTime=0 --stopTime=1 --timeout=50 --tolerance=1e-06 Modelica_4_0_0_Modelica_Mechanics_Rotational_Examples_HeatLosses.fmu > Modelica_4.0.0_Modelica.Mechanics.Rotational.Examples.HeatLosses.pipe 2>&1)