Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr BuildingSystems_BuildingSystems.Fluid.Sources.Examples.MassFlowSource_WeatherData.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: "" <> buildModelFMU(BuildingSystems.Fluid.Sources.Examples.MassFlowSource_WeatherData,fileNamePrefix="BuildingSystems_BuildingSystems_Fluid_Sources_Examples_MassFlowSource_WeatherData",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(BuildingSystems.Fluid.Sources.Examples.MassFlowSource_WeatherData,fileNamePrefix="BuildingSystems_BuildingSystems_Fluid_Sources_Examples_MassFlowSource_WeatherData",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/BuildingSystems 2.0.0-master/package.mo): time 0.7327/0.7327, allocations: 141.8 MB / 149.1 MB, free: 4.199 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.001087/0.001087, allocations: 195.4 kB / 181.9 MB, free: 15.89 MB / 154.9 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.217/1.217, allocations: 221.3 MB / 436 MB, free: 9.125 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.0009402/0.0009401, allocations: 99.94 kB / 0.507 GB, free: 24.19 MB / 394.9 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/NcDataReader2 2.5.1-master/package.mo): time 0.001873/0.001873, allocations: 282.3 kB / 0.5884 GB, free: 12.1 MB / 442.9 MB Notification: Performance of FrontEnd - loaded program: time 0.1718/0.1737, allocations: 89.63 MB / 0.676 GB, free: 2.395 MB / 0.5107 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3571/0.5309, allocations: 82.77 MB / 0.7568 GB, free: 111.6 MB / 0.5263 GB Notification: Performance of FrontEnd - scodeFlatten: time 3.285/3.816, allocations: 1.866 GB / 2.623 GB, free: 202.7 MB / 0.6982 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002774/3.817, allocations: 90.84 kB / 2.623 GB, free: 202.6 MB / 0.6982 GB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 333 * Number of variables: 333 Notification: Performance of Generate backend data structure: time 1.121/4.937, allocations: 412 MB / 3.026 GB, free: 61.41 MB / 0.6982 GB Notification: Performance of prepare preOptimizeDAE: time 4.239e-05/4.937, allocations: 16.94 kB / 3.026 GB, free: 61.4 MB / 0.6982 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.003255/4.94, allocations: 413.6 kB / 3.026 GB, free: 60.99 MB / 0.6982 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.003896/4.944, allocations: 1.177 MB / 3.027 GB, free: 59.78 MB / 0.6982 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 8.748e-05/4.945, allocations: 48 kB / 3.027 GB, free: 59.73 MB / 0.6982 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0004135/4.945, allocations: 72 kB / 3.027 GB, free: 59.66 MB / 0.6982 GB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.002716/4.948, allocations: 1.402 MB / 3.029 GB, free: 58.25 MB / 0.6982 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.002383/4.95, allocations: 1.22 MB / 3.03 GB, free: 56.96 MB / 0.6982 GB Notification: Performance of preOpt findStateOrder (simulation): time 3.196e-05/4.95, allocations: 2.516 kB / 3.03 GB, free: 56.96 MB / 0.6982 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001745/4.95, allocations: 4 kB / 3.03 GB, free: 56.96 MB / 0.6982 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.401e-05/4.95, allocations: 32 kB / 3.03 GB, free: 56.93 MB / 0.6982 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.007126/4.957, allocations: 4.684 MB / 3.034 GB, free: 52.03 MB / 0.6982 GB Notification: Performance of preOpt comSubExp (simulation): time 0.001391/4.959, allocations: 1.158 MB / 3.035 GB, free: 50.83 MB / 0.6982 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0005204/4.959, allocations: 426.9 kB / 3.036 GB, free: 50.41 MB / 0.6982 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0006826/4.96, allocations: 0.5021 MB / 3.036 GB, free: 49.82 MB / 0.6982 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0008016/4.961, allocations: 0.5972 MB / 3.037 GB, free: 49.2 MB / 0.6982 GB Notification: Performance of pre-optimization done (n=98): time 4.308e-06/4.961, allocations: 0 / 3.037 GB, free: 49.2 MB / 0.6982 GB Notification: Performance of matching and sorting (n=98): time 0.003238/4.964, allocations: 1.138 MB / 3.038 GB, free: 48.05 MB / 0.6982 GB Notification: Performance of inlineWhenForInitialization (initialization): time 7.797e-05/4.964, allocations: 240.1 kB / 3.038 GB, free: 47.76 MB / 0.6982 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001172/4.966, allocations: 0.6214 MB / 3.039 GB, free: 47.13 MB / 0.6982 GB Notification: Performance of collectPreVariables (initialization): time 0.000139/4.966, allocations: 25.7 kB / 3.039 GB, free: 47.1 MB / 0.6982 GB Notification: Performance of collectInitialEqns (initialization): time 0.0003646/4.966, allocations: 475.2 kB / 3.039 GB, free: 46.62 MB / 0.6982 GB Notification: Performance of collectInitialBindings (initialization): time 0.0002433/4.966, allocations: 319.3 kB / 3.04 GB, free: 46.31 MB / 0.6982 GB Notification: Performance of simplifyInitialFunctions (initialization): time 5.085e-05/4.966, allocations: 0 / 3.04 GB, free: 46.31 MB / 0.6982 GB Notification: Performance of setup shared object (initialization): time 6.923e-05/4.966, allocations: 334 kB / 3.04 GB, free: 45.98 MB / 0.6982 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0004653/4.967, allocations: 337.9 kB / 3.04 GB, free: 45.65 MB / 0.6982 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0005727/4.968, allocations: 0.5052 MB / 3.041 GB, free: 45.07 MB / 0.6982 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.001172/4.969, allocations: 0.5131 MB / 3.041 GB, free: 44.56 MB / 0.6982 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 6.612e-06/4.969, allocations: 4 kB / 3.041 GB, free: 44.56 MB / 0.6982 GB Notification: Performance of matching and sorting (n=112) (initialization): time 0.002603/4.971, allocations: 1.135 MB / 3.042 GB, free: 43.41 MB / 0.6982 GB Notification: Performance of prepare postOptimizeDAE: time 1.723e-05/4.971, allocations: 7.188 kB / 3.042 GB, free: 43.41 MB / 0.6982 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.191e-05/4.971, allocations: 12 kB / 3.042 GB, free: 43.4 MB / 0.6982 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.0006226/4.972, allocations: 84.78 kB / 3.043 GB, free: 43.31 MB / 0.6982 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.00111/4.973, allocations: 231.7 kB / 3.043 GB, free: 43.09 MB / 0.6982 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.00169/4.975, allocations: 1.465 MB / 3.044 GB, free: 41.5 MB / 0.6982 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001085/4.976, allocations: 110.1 kB / 3.044 GB, free: 41.39 MB / 0.6982 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001163/4.976, allocations: 47.95 kB / 3.044 GB, free: 41.34 MB / 0.6982 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 13 * Number of states: 0 () * Number of discrete variables: 6 ($whenCondition2,$whenCondition1,$PRE.weaDat.conTimMin.tNext,weaDat.conTimMin.tNext,$PRE.weaDat.conTim.tNext,weaDat.conTim.tNext) * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (110): * Single equations (assignments): 109 * 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: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 0 * Non-linear torn systems: 1 {1 2} Notification: Performance of prepare postOptimizeDAE: time 0.0002427/4.976, allocations: 125.3 kB / 3.044 GB, free: 41.21 MB / 0.6982 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002653/4.977, allocations: 102.9 kB / 3.045 GB, free: 41.11 MB / 0.6982 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.003188/4.98, allocations: 1.401 MB / 3.046 GB, free: 39.7 MB / 0.6982 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.013e-05/4.98, allocations: 19.98 kB / 3.046 GB, free: 39.68 MB / 0.6982 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.394e-06/4.98, allocations: 7.984 kB / 3.046 GB, free: 39.67 MB / 0.6982 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.111e-05/4.98, allocations: 3.984 kB / 3.046 GB, free: 39.67 MB / 0.6982 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.004815/4.985, allocations: 2.568 MB / 3.048 GB, free: 37.05 MB / 0.6982 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.308e-06/4.985, allocations: 0 / 3.048 GB, free: 37.05 MB / 0.6982 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001069/4.986, allocations: 223.6 kB / 3.049 GB, free: 36.83 MB / 0.6982 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.00053/4.986, allocations: 83.62 kB / 3.049 GB, free: 36.75 MB / 0.6982 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 8.568e-05/4.986, allocations: 19.97 kB / 3.049 GB, free: 36.73 MB / 0.6982 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001618/4.988, allocations: 1.485 MB / 3.05 GB, free: 35.13 MB / 0.6982 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.38e-06/4.988, allocations: 0 / 3.05 GB, free: 35.13 MB / 0.6982 GB Notification: Performance of postOpt detectJacobianSparsePattern (simulation): time 0.00302/4.991, allocations: 1.263 MB / 3.051 GB, free: 33.85 MB / 0.6982 GB Notification: Performance of postOpt generateSymbolicLinearization (simulation): time 0.00313/4.994, allocations: 1.74 MB / 3.053 GB, free: 32.08 MB / 0.6982 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0006471/4.995, allocations: 355.3 kB / 3.053 GB, free: 31.71 MB / 0.6982 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0002517/4.995, allocations: 7.984 kB / 3.054 GB, free: 31.71 MB / 0.6982 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001067/4.996, allocations: 91.83 kB / 3.054 GB, free: 31.62 MB / 0.6982 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001335/4.996, allocations: 53.05 kB / 3.054 GB, free: 31.57 MB / 0.6982 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001169/4.996, allocations: 55.95 kB / 3.054 GB, free: 31.51 MB / 0.6982 GB Notification: Performance of sort global known variables: time 0.0006172/4.997, allocations: 491.1 kB / 3.054 GB, free: 31.04 MB / 0.6982 GB Notification: Performance of remove unused functions: time 0.002614/5, allocations: 0.768 MB / 3.055 GB, free: 30.27 MB / 0.6982 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 1 * Number of states: 0 () * Number of discrete variables: 4 ($whenCondition2,$whenCondition1,weaDat.conTimMin.tNext,weaDat.conTim.tNext) * Number of discrete states: 2 (weaDat.conTim.tNext,weaDat.conTimMin.tNext) * Top-level inputs: 0 Notification: Strong component statistics for simulation (109): * Single equations (assignments): 106 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 2 * If-equations: 0 * Equation systems (linear and non-linear blocks): 0 * Torn equation systems: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 0 * Non-linear torn systems: 1 {1 3} Notification: Performance of Backend phase and start with SimCode phase: time 0.002925/5.003, allocations: 1.988 MB / 3.057 GB, free: 28.32 MB / 0.6982 GB Notification: Performance of simCode: created initialization part: time 0.001602/5.004, allocations: 0.9796 MB / 3.058 GB, free: 27.33 MB / 0.6982 GB Notification: Performance of simCode: created event and clocks part: time 6.953e-06/5.004, allocations: 8 kB / 3.058 GB, free: 27.32 MB / 0.6982 GB Notification: Performance of simCode: created simulation system equations: time 0.0009354/5.005, allocations: 0.6067 MB / 3.058 GB, free: 26.71 MB / 0.6982 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001839/5.007, allocations: 338.7 kB / 3.059 GB, free: 26.39 MB / 0.6982 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.005399/5.013, allocations: 1.887 MB / 3.061 GB, free: 24.46 MB / 0.6982 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001407/5.014, allocations: 1.36 MB / 3.062 GB, free: 23.07 MB / 0.6982 GB Notification: Performance of SimCode: time 7.31e-07/5.014, allocations: 0 / 3.062 GB, free: 23.07 MB / 0.6982 GB (rm -f BuildingSystems_BuildingSystems.Fluid.Sources.Examples.MassFlowSource_WeatherData.pipe ; mkfifo BuildingSystems_BuildingSystems.Fluid.Sources.Examples.MassFlowSource_WeatherData.pipe ; head -c 1048576 < BuildingSystems_BuildingSystems.Fluid.Sources.Examples.MassFlowSource_WeatherData.pipe >> ../files/BuildingSystems_BuildingSystems.Fluid.Sources.Examples.MassFlowSource_WeatherData.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator --tempDir=temp_BuildingSystems_BuildingSystems_Fluid_Sources_Examples_MassFlowSource_WeatherData_fmu --startTime=0 --stopTime=3.1536e+07 --timeout=50 --tolerance=1e-06 BuildingSystems_BuildingSystems_Fluid_Sources_Examples_MassFlowSource_WeatherData.fmu > BuildingSystems_BuildingSystems.Fluid.Sources.Examples.MassFlowSource_WeatherData.pipe 2>&1)