Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr BuildingSystems_BuildingSystems.Fluid.Movers.Validation.SpeedControlled_Nrpm.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/BuildingSystems 2.0.0-master/package.mo", uses=false) 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/NcDataReader2 2.5.1-master/package.mo", uses=false) Using package NcDataReader2 with version 2.5.1 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/NcDataReader2 2.5.1-master/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) Using package BuildingSystems with version 2.0.0-beta (/home/hudson/saved_omc/libraries/.openmodelica/libraries/BuildingSystems 2.0.0-master/package.mo) Running command: translateModel(BuildingSystems.Fluid.Movers.Validation.SpeedControlled_Nrpm,tolerance=1e-08,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="BuildingSystems_BuildingSystems.Fluid.Movers.Validation.SpeedControlled_Nrpm") translateModel(BuildingSystems.Fluid.Movers.Validation.SpeedControlled_Nrpm,tolerance=1e-08,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="BuildingSystems_BuildingSystems.Fluid.Movers.Validation.SpeedControlled_Nrpm") [: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/BuildingSystems 2.0.0-master/package.mo): time 0.779/0.779, allocations: 141.8 MB / 149.1 MB, free: 4.465 MB / 122.9 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001184/0.001184, allocations: 182 kB / 181.9 MB, free: 128 kB / 138.9 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.544/1.544, allocations: 221.3 MB / 436 MB, free: 9.27 MB / 330.9 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001015/0.001015, allocations: 87.03 kB / 0.507 GB, free: 24.32 MB / 394.9 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/NcDataReader2 2.5.1-master/package.mo): time 0.001959/0.001959, allocations: 277.9 kB / 0.5884 GB, free: 12.29 MB / 442.9 MB Notification: Performance of FrontEnd - loaded program: time 1.302e-05/1.305e-05, allocations: 3.938 kB / 0.6759 GB, free: 2.672 MB / 0.5107 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.5937/0.5937, allocations: 82.76 MB / 0.7567 GB, free: 112.9 MB / 0.5263 GB Notification: Performance of FrontEnd - scodeFlatten: time 4.398/4.992, allocations: 1.905 GB / 2.661 GB, free: 161 MB / 0.6982 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002445/4.992, allocations: 88.89 kB / 2.661 GB, free: 160.9 MB / 0.6982 GB Notification: Performance of FrontEnd: time 5.998/10.99, allocations: 1.554 GB / 4.215 GB, free: 76.47 MB / 0.745 GB Notification: Performance of Transformations before backend: time 0.0005257/10.99, allocations: 55.05 kB / 4.215 GB, free: 76.47 MB / 0.745 GB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 349 * Number of variables: 349 Notification: Performance of Generate backend data structure: time 0.01067/11, allocations: 2.582 MB / 4.217 GB, free: 75.49 MB / 0.745 GB Notification: Performance of prepare preOptimizeDAE: time 5.192e-05/11, allocations: 12.09 kB / 4.217 GB, free: 75.49 MB / 0.745 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.007542/11.01, allocations: 0.9005 MB / 4.218 GB, free: 75.35 MB / 0.745 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.01132/11.02, allocations: 3.077 MB / 4.221 GB, free: 74.92 MB / 0.745 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001557/11.02, allocations: 45.78 kB / 4.221 GB, free: 74.91 MB / 0.745 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0007829/11.02, allocations: 93.72 kB / 4.221 GB, free: 74.91 MB / 0.745 GB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.004122/11.03, allocations: 1.337 MB / 4.223 GB, free: 74.91 MB / 0.745 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.004682/11.03, allocations: 1.495 MB / 4.224 GB, free: 74.72 MB / 0.745 GB Notification: Performance of preOpt findStateOrder (simulation): time 6.121e-05/11.03, allocations: 7.391 kB / 4.224 GB, free: 74.72 MB / 0.745 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0003885/11.03, allocations: 3.5 kB / 4.224 GB, free: 74.72 MB / 0.745 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.208e-05/11.03, allocations: 45.2 kB / 4.224 GB, free: 74.72 MB / 0.745 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.01825/11.05, allocations: 7.826 MB / 4.232 GB, free: 70.96 MB / 0.745 GB Notification: Performance of preOpt comSubExp (simulation): time 0.001817/11.05, allocations: 0.9896 MB / 4.233 GB, free: 70.91 MB / 0.745 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.001068/11.05, allocations: 0.6076 MB / 4.234 GB, free: 70.9 MB / 0.745 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0003878/11.05, allocations: 281.7 kB / 4.234 GB, free: 70.62 MB / 0.745 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.285e-05/11.05, allocations: 50.09 kB / 4.234 GB, free: 70.58 MB / 0.745 GB Notification: Performance of pre-optimization done (n=85): time 3.106e-06/11.05, allocations: 2.281 kB / 4.234 GB, free: 70.58 MB / 0.745 GB Notification: Performance of matching and sorting (n=85): time 0.005205/11.06, allocations: 1.391 MB / 4.235 GB, free: 70.41 MB / 0.745 GB Notification: Performance of inlineWhenForInitialization (initialization): time 3.005e-05/11.06, allocations: 60.03 kB / 4.235 GB, free: 70.34 MB / 0.745 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.003693/11.06, allocations: 1.375 MB / 4.237 GB, free: 70.13 MB / 0.745 GB Notification: Performance of collectPreVariables (initialization): time 0.0002228/11.06, allocations: 31.14 kB / 4.237 GB, free: 70.1 MB / 0.745 GB Notification: Performance of collectInitialEqns (initialization): time 0.0006831/11.06, allocations: 0.6293 MB / 4.237 GB, free: 69.84 MB / 0.745 GB Notification: Performance of collectInitialBindings (initialization): time 0.0004531/11.06, allocations: 282.2 kB / 4.238 GB, free: 69.66 MB / 0.745 GB Notification: Performance of simplifyInitialFunctions (initialization): time 9.64e-05/11.06, allocations: 0 / 4.238 GB, free: 69.66 MB / 0.745 GB Notification: Performance of setup shared object (initialization): time 0.000116/11.06, allocations: 351.5 kB / 4.238 GB, free: 69.35 MB / 0.745 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0007966/11.06, allocations: 425.1 kB / 4.238 GB, free: 69.35 MB / 0.745 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0009404/11.06, allocations: 0.8515 MB / 4.239 GB, free: 68.83 MB / 0.745 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.001541/11.07, allocations: 0.5899 MB / 4.24 GB, free: 68.82 MB / 0.745 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.445e-05/11.07, allocations: 2.469 kB / 4.24 GB, free: 68.82 MB / 0.745 GB Notification: Performance of matching and sorting (n=139) (initialization): time 0.004632/11.07, allocations: 1.635 MB / 4.241 GB, free: 68.65 MB / 0.745 GB Notification: Performance of prepare postOptimizeDAE: time 0.0009926/11.07, allocations: 3.857 MB / 4.245 GB, free: 64.66 MB / 0.745 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.283e-05/11.07, allocations: 12.06 kB / 4.245 GB, free: 64.66 MB / 0.745 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.001064/11.07, allocations: 309 kB / 4.245 GB, free: 64.63 MB / 0.745 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001236/11.07, allocations: 252.3 kB / 4.246 GB, free: 64.63 MB / 0.745 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.003816/11.08, allocations: 3.64 MB / 4.249 GB, free: 61.8 MB / 0.745 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.002485/11.08, allocations: 170.3 kB / 4.249 GB, free: 61.75 MB / 0.745 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0002453/11.08, allocations: 80.42 kB / 4.249 GB, free: 61.75 MB / 0.745 GB Notification: Performance of prepare postOptimizeDAE: time 1.301e-05/11.08, allocations: 7.094 kB / 4.249 GB, free: 61.75 MB / 0.745 GB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.004138/11.09, allocations: 1.328 MB / 4.251 GB, free: 61.7 MB / 0.745 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.192e-05/11.09, allocations: 10.28 kB / 4.251 GB, free: 61.7 MB / 0.745 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.001244/11.09, allocations: 318.3 kB / 4.251 GB, free: 61.68 MB / 0.745 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0009745/11.09, allocations: 230 kB / 4.251 GB, free: 61.68 MB / 0.745 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.006707/11.09, allocations: 4.952 MB / 4.256 GB, free: 58.34 MB / 0.745 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.002333/11.1, allocations: 143.2 kB / 4.256 GB, free: 58.3 MB / 0.745 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0002803/11.1, allocations: 73.78 kB / 4.256 GB, free: 58.3 MB / 0.745 GB Warning: Iteration variables with default zero start attribute in torn nonlinear equation system: floMacSta.vol.heaFloSen.Q_flow:VARIABLE(unit = "W" protected = true ) "Heat flow from port_a to port_b as output signal" type: Real Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 42 * Number of states: 0 () * Number of discrete variables: 0 () * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (118): * Single equations (assignments): 112 * Array equations: 2 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 1 * Torn equation systems: 3 * Mixed (continuous/discrete) equation systems: 0 Notification: Equation system details: * Constant Jacobian: 0 * Linear Jacobian (size,density): 0 * Non-linear Jacobian: 1 {1} * Without analytic Jacobian: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 0 * Non-linear torn systems: 3 {1 4,1 8,1 5} Notification: Performance of prepare postOptimizeDAE: time 0.0006207/11.1, allocations: 143.3 kB / 4.256 GB, free: 58.18 MB / 0.745 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0006903/11.1, allocations: 194.8 kB / 4.257 GB, free: 58.08 MB / 0.745 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.004484/11.1, allocations: 1.399 MB / 4.258 GB, free: 57.97 MB / 0.745 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.235e-05/11.1, allocations: 11.16 kB / 4.258 GB, free: 57.96 MB / 0.745 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.34e-06/11.1, allocations: 0 / 4.258 GB, free: 57.96 MB / 0.745 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.002794/11.11, allocations: 1.175 MB / 4.259 GB, free: 57.76 MB / 0.745 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01054/11.12, allocations: 2.902 MB / 4.262 GB, free: 57.29 MB / 0.745 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.243e-05/11.12, allocations: 5.5 kB / 4.262 GB, free: 57.29 MB / 0.745 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001147/11.12, allocations: 194.8 kB / 4.262 GB, free: 57.29 MB / 0.745 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.0007324/11.12, allocations: 221 kB / 4.262 GB, free: 57.27 MB / 0.745 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001132/11.12, allocations: 19.08 kB / 4.262 GB, free: 57.27 MB / 0.745 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.003491/11.12, allocations: 3.484 MB / 4.266 GB, free: 54.44 MB / 0.745 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 6.973e-06/11.12, allocations: 1.531 kB / 4.266 GB, free: 54.44 MB / 0.745 GB Notification: Performance of postOpt detectJacobianSparsePattern (simulation): time 0.004939/11.13, allocations: 2 MB / 4.268 GB, free: 54 MB / 0.745 GB Notification: Performance of postOpt removeConstants (simulation): time 0.001374/11.13, allocations: 361.9 kB / 4.268 GB, free: 53.8 MB / 0.745 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0007179/11.13, allocations: 10.31 kB / 4.268 GB, free: 53.8 MB / 0.745 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.00187/11.13, allocations: 110 kB / 4.268 GB, free: 53.79 MB / 0.745 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001457/11.13, allocations: 47.05 kB / 4.268 GB, free: 53.79 MB / 0.745 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001133/11.13, allocations: 41.66 kB / 4.268 GB, free: 53.79 MB / 0.745 GB Notification: Performance of sort global known variables: time 0.002518/11.13, allocations: 1.034 MB / 4.269 GB, free: 53.64 MB / 0.745 GB Notification: Performance of remove unused functions: time 0.006972/11.14, allocations: 1.443 MB / 4.271 GB, free: 53.44 MB / 0.745 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 5 * Number of states: 3 (floMacDyn.vol.dynBal.U,floMacDyn.vol.dynBal.m,floMacDyn.vol.dynBal.mXi[1]) * Number of discrete variables: 0 () * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (73): * Single equations (assignments): 69 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 1 * Torn equation systems: 3 * Mixed (continuous/discrete) equation systems: 0 Notification: Equation system details: * Constant Jacobian: 0 * Linear Jacobian (size,density): 0 * Non-linear Jacobian: 1 {1} * Without analytic Jacobian: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 0 * Non-linear torn systems: 3 {1 6,1 4,2 7} Notification: Performance of Backend phase and start with SimCode phase: time 0.007814/11.15, allocations: 4.693 MB / 4.275 GB, free: 51.69 MB / 0.745 GB Notification: Performance of simCode: created initialization part: time 0.005308/11.15, allocations: 2.081 MB / 4.277 GB, free: 51.36 MB / 0.745 GB Notification: Performance of simCode: created event and clocks part: time 9.638e-06/11.15, allocations: 0 / 4.277 GB, free: 51.36 MB / 0.745 GB Notification: Performance of simCode: created simulation system equations: time 0.001285/11.16, allocations: 0.5964 MB / 4.278 GB, free: 51.25 MB / 0.745 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.005302/11.16, allocations: 0.8681 MB / 4.279 GB, free: 51.22 MB / 0.745 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.008875/11.17, allocations: 2.9 MB / 4.282 GB, free: 50.48 MB / 0.745 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.00276/11.17, allocations: 1.814 MB / 4.283 GB, free: 49.74 MB / 0.745 GB Notification: Performance of SimCode: time 1.823e-06/11.17, allocations: 0 / 4.283 GB, free: 49.74 MB / 0.745 GB Notification: Performance of Templates: time 0.1165/11.29, allocations: 65.48 MB / 4.347 GB, free: 45.89 MB / 0.745 GB make -j1 -f BuildingSystems_BuildingSystems.Fluid.Movers.Validation.SpeedControlled_Nrpm.makefile (rm -f BuildingSystems_BuildingSystems.Fluid.Movers.Validation.SpeedControlled_Nrpm.pipe ; mkfifo BuildingSystems_BuildingSystems.Fluid.Movers.Validation.SpeedControlled_Nrpm.pipe ; head -c 1048576 < BuildingSystems_BuildingSystems.Fluid.Movers.Validation.SpeedControlled_Nrpm.pipe >> ../files/BuildingSystems_BuildingSystems.Fluid.Movers.Validation.SpeedControlled_Nrpm.sim & ./BuildingSystems_BuildingSystems.Fluid.Movers.Validation.SpeedControlled_Nrpm -abortSlowSimulation -alarm=480 -lv LOG_STATS > BuildingSystems_BuildingSystems.Fluid.Movers.Validation.SpeedControlled_Nrpm.pipe 2>&1)