Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr BuildingSystems_BuildingSystems.Fluid.HeatExchangers.Radiators.Examples.RadiatorEN442_2.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.HeatExchangers.Radiators.Examples.RadiatorEN442_2,fileNamePrefix="BuildingSystems_BuildingSystems_Fluid_HeatExchangers_Radiators_Examples_RadiatorEN442_2",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(BuildingSystems.Fluid.HeatExchangers.Radiators.Examples.RadiatorEN442_2,fileNamePrefix="BuildingSystems_BuildingSystems_Fluid_HeatExchangers_Radiators_Examples_RadiatorEN442_2",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.7137/0.7137, allocations: 141.8 MB / 149.1 MB, free: 13.07 MB / 138.9 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001316/0.001316, allocations: 185.6 kB / 181.9 MB, free: 9.773 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.306/1.306, allocations: 221.4 MB / 436 MB, free: 2.215 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.0009655/0.0009653, allocations: 94.34 kB / 0.507 GB, free: 10.98 MB / 394.9 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/NcDataReader2 2.5.1-master/package.mo): time 0.001869/0.001869, allocations: 268.9 kB / 0.5884 GB, free: 7.828 MB / 474.9 MB Notification: Performance of FrontEnd - loaded program: time 0.414/0.4159, allocations: 89.64 MB / 0.676 GB, free: 168.4 MB / 0.5419 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1585/0.5744, allocations: 82.78 MB / 0.7568 GB, free: 119.1 MB / 0.5419 GB Notification: Performance of FrontEnd - scodeFlatten: time 0.7599/1.334, allocations: 379.4 MB / 1.127 GB, free: 4.801 MB / 0.6825 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002924/1.335, allocations: 94.81 kB / 1.127 GB, free: 4.754 MB / 0.6825 GB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 746 * Number of variables: 746 Notification: Performance of Generate backend data structure: time 5.349/6.684, allocations: 1.649 GB / 2.776 GB, free: 1.379 MB / 0.7294 GB Notification: Performance of prepare preOptimizeDAE: time 4.28e-05/6.684, allocations: 13.25 kB / 2.776 GB, free: 1.367 MB / 0.7294 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.004404/6.689, allocations: 0.5216 MB / 2.777 GB, free: 0.8398 MB / 0.7294 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.3496/7.038, allocations: 18.15 MB / 2.795 GB, free: 153.1 MB / 0.7294 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001757/7.038, allocations: 93.12 kB / 2.795 GB, free: 153.1 MB / 0.7294 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.001326/7.04, allocations: 181.5 kB / 2.795 GB, free: 153.1 MB / 0.7294 GB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.00785/7.048, allocations: 3.603 MB / 2.798 GB, free: 153.1 MB / 0.7294 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.008307/7.056, allocations: 3.952 MB / 2.802 GB, free: 152.6 MB / 0.7294 GB Notification: Performance of preOpt findStateOrder (simulation): time 7.846e-05/7.056, allocations: 11.55 kB / 2.802 GB, free: 152.6 MB / 0.7294 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0004137/7.056, allocations: 12.47 kB / 2.802 GB, free: 152.6 MB / 0.7294 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0001178/7.057, allocations: 142.3 kB / 2.802 GB, free: 152.6 MB / 0.7294 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.02463/7.081, allocations: 19.63 MB / 2.822 GB, free: 142.9 MB / 0.7294 GB Notification: Performance of preOpt comSubExp (simulation): time 0.003668/7.085, allocations: 2.611 MB / 2.824 GB, free: 142.8 MB / 0.7294 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.001575/7.087, allocations: 1.358 MB / 2.825 GB, free: 142.8 MB / 0.7294 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0004953/7.087, allocations: 0.5425 MB / 2.826 GB, free: 142.3 MB / 0.7294 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.622e-05/7.087, allocations: 58.34 kB / 2.826 GB, free: 142.2 MB / 0.7294 GB Notification: Performance of pre-optimization done (n=184): time 4.067e-06/7.087, allocations: 0 / 2.826 GB, free: 142.2 MB / 0.7294 GB Notification: Performance of matching and sorting (n=184): time 0.006808/7.094, allocations: 3.084 MB / 2.829 GB, free: 141.9 MB / 0.7294 GB Notification: Performance of inlineWhenForInitialization (initialization): time 4.412e-05/7.094, allocations: 71.34 kB / 2.829 GB, free: 141.9 MB / 0.7294 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.004898/7.099, allocations: 2.922 MB / 2.832 GB, free: 141.6 MB / 0.7294 GB Notification: Performance of collectPreVariables (initialization): time 0.00071/7.1, allocations: 28.95 kB / 2.832 GB, free: 141.6 MB / 0.7294 GB Notification: Performance of collectInitialEqns (initialization): time 0.0008951/7.101, allocations: 1.192 MB / 2.833 GB, free: 141.1 MB / 0.7294 GB Notification: Performance of collectInitialBindings (initialization): time 0.0009845/7.102, allocations: 0.6099 MB / 2.834 GB, free: 140.8 MB / 0.7294 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001475/7.102, allocations: 0 / 2.834 GB, free: 140.8 MB / 0.7294 GB Notification: Performance of setup shared object (initialization): time 0.0001262/7.102, allocations: 407.1 kB / 2.834 GB, free: 140.5 MB / 0.7294 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001649/7.103, allocations: 1.259 MB / 2.835 GB, free: 140.5 MB / 0.7294 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001896/7.105, allocations: 1.919 MB / 2.837 GB, free: 139.7 MB / 0.7294 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.002838/7.108, allocations: 1.681 MB / 2.839 GB, free: 139.7 MB / 0.7294 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.144e-05/7.108, allocations: 7.594 kB / 2.839 GB, free: 139.7 MB / 0.7294 GB Notification: Performance of matching and sorting (n=311) (initialization): time 0.007652/7.116, allocations: 4.033 MB / 2.843 GB, free: 139.4 MB / 0.7294 GB Notification: Performance of prepare postOptimizeDAE: time 0.001449/7.117, allocations: 7.237 MB / 2.85 GB, free: 131.9 MB / 0.7294 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.313e-05/7.117, allocations: 14.97 kB / 2.85 GB, free: 131.9 MB / 0.7294 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.003147/7.121, allocations: 1.043 MB / 2.851 GB, free: 131.9 MB / 0.7294 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.002389/7.123, allocations: 0.4895 MB / 2.851 GB, free: 131.9 MB / 0.7294 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.005334/7.128, allocations: 4.952 MB / 2.856 GB, free: 129.1 MB / 0.7294 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.004751/7.133, allocations: 368.5 kB / 2.857 GB, free: 129 MB / 0.7294 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0005816/7.134, allocations: 124.3 kB / 2.857 GB, free: 129 MB / 0.7294 GB Notification: Performance of prepare postOptimizeDAE: time 1.516e-05/7.134, allocations: 3.438 kB / 2.857 GB, free: 129 MB / 0.7294 GB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.006452/7.14, allocations: 3.461 MB / 2.86 GB, free: 128.9 MB / 0.7294 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.628e-05/7.14, allocations: 18.88 kB / 2.86 GB, free: 128.9 MB / 0.7294 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.004089/7.144, allocations: 1.117 MB / 2.861 GB, free: 128.9 MB / 0.7294 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.002189/7.147, allocations: 484.7 kB / 2.862 GB, free: 128.9 MB / 0.7294 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.004545/7.151, allocations: 3.586 MB / 2.865 GB, free: 127.3 MB / 0.7294 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.00391/7.155, allocations: 302 kB / 2.865 GB, free: 127.2 MB / 0.7294 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0005793/7.156, allocations: 116.4 kB / 2.866 GB, free: 127.2 MB / 0.7294 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 76 * Number of states: 0 () * Number of discrete variables: 0 () * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (247): * Single equations (assignments): 242 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 2 * 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: 2 {1,1} * Without analytic Jacobian: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 0 * Non-linear torn systems: 3 {5 6,5 40,5 6} Notification: Performance of prepare postOptimizeDAE: time 0.001191/7.157, allocations: 171.6 kB / 2.866 GB, free: 127.1 MB / 0.7294 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.001809/7.159, allocations: 326.7 kB / 2.866 GB, free: 126.9 MB / 0.7294 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.00666/7.165, allocations: 3.184 MB / 2.869 GB, free: 126.8 MB / 0.7294 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.247e-05/7.165, allocations: 21.56 kB / 2.869 GB, free: 126.8 MB / 0.7294 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.668e-05/7.165, allocations: 2.219 kB / 2.869 GB, free: 126.8 MB / 0.7294 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.003745/7.169, allocations: 2.59 MB / 2.872 GB, free: 126.6 MB / 0.7294 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01399/7.183, allocations: 6.633 MB / 2.878 GB, free: 126 MB / 0.7294 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 9.508e-06/7.183, allocations: 3 kB / 2.878 GB, free: 126 MB / 0.7294 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001367/7.185, allocations: 275.8 kB / 2.878 GB, free: 126 MB / 0.7294 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.003087/7.188, allocations: 0.9803 MB / 2.879 GB, free: 125.9 MB / 0.7294 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001632/7.188, allocations: 27.3 kB / 2.879 GB, free: 125.9 MB / 0.7294 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.006265/7.194, allocations: 9.711 MB / 2.889 GB, free: 118.3 MB / 0.7294 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.827e-06/7.194, allocations: 3.188 kB / 2.889 GB, free: 118.3 MB / 0.7294 GB Notification: Performance of postOpt detectJacobianSparsePattern (simulation): time 0.006992/7.201, allocations: 4.709 MB / 2.894 GB, free: 117.7 MB / 0.7294 GB Notification: Performance of postOpt generateSymbolicLinearization (simulation): time 0.008771/7.21, allocations: 6.764 MB / 2.9 GB, free: 116.8 MB / 0.7294 GB Notification: Performance of postOpt removeConstants (simulation): time 0.002567/7.213, allocations: 0.8224 MB / 2.901 GB, free: 116.5 MB / 0.7294 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.001089/7.214, allocations: 7.406 kB / 2.901 GB, free: 116.5 MB / 0.7294 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.002904/7.217, allocations: 187 kB / 2.901 GB, free: 116.5 MB / 0.7294 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002388/7.217, allocations: 105.1 kB / 2.901 GB, free: 116.5 MB / 0.7294 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.00032/7.217, allocations: 85.58 kB / 2.901 GB, free: 116.5 MB / 0.7294 GB Notification: Performance of sort global known variables: time 0.00477/7.222, allocations: 2.229 MB / 2.903 GB, free: 116.4 MB / 0.7294 GB Notification: Performance of remove unused functions: time 0.01145/7.233, allocations: 2.329 MB / 2.906 GB, free: 116.1 MB / 0.7294 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 4 * Number of states: 5 (rad1.vol[1].dynBal.U,rad1.vol[2].dynBal.U,rad1.vol[3].dynBal.U,rad1.vol[4].dynBal.U,rad1.vol[5].dynBal.U) * Number of discrete variables: 0 () * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (142): * Single equations (assignments): 132 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 2 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 2 * Torn equation systems: 6 * Mixed (continuous/discrete) equation systems: 0 Notification: Equation system details: * Constant Jacobian: 0 * Linear Jacobian (size,density): 0 * Non-linear Jacobian: 2 {1,1} * Without analytic Jacobian: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 5 {(1,100.0%) 1,(1,100.0%) 1,(1,100.0%) 1,(1,100.0%) 1,(1,100.0%) 1} * Non-linear torn systems: 1 {5 45} Notification: Performance of Backend phase and start with SimCode phase: time 0.001849/7.235, allocations: 0.6726 MB / 2.906 GB, free: 115.9 MB / 0.7294 GB Notification: Performance of simCode: created initialization part: time 0.009914/7.245, allocations: 4.876 MB / 2.911 GB, free: 115.9 MB / 0.7294 GB Notification: Performance of simCode: created event and clocks part: time 7.203e-06/7.245, allocations: 2.094 kB / 2.911 GB, free: 115.9 MB / 0.7294 GB Notification: Performance of simCode: created simulation system equations: time 0.002507/7.248, allocations: 1.779 MB / 2.913 GB, free: 115.4 MB / 0.7294 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.008536/7.256, allocations: 1.638 MB / 2.915 GB, free: 115.3 MB / 0.7294 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01438/7.271, allocations: 6.574 MB / 2.921 GB, free: 114.1 MB / 0.7294 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.004498/7.275, allocations: 3.299 MB / 2.924 GB, free: 113.3 MB / 0.7294 GB Notification: Performance of SimCode: time 9.62e-07/7.275, allocations: 0 / 2.924 GB, free: 113.3 MB / 0.7294 GB (rm -f BuildingSystems_BuildingSystems.Fluid.HeatExchangers.Radiators.Examples.RadiatorEN442_2.pipe ; mkfifo BuildingSystems_BuildingSystems.Fluid.HeatExchangers.Radiators.Examples.RadiatorEN442_2.pipe ; head -c 1048576 < BuildingSystems_BuildingSystems.Fluid.HeatExchangers.Radiators.Examples.RadiatorEN442_2.pipe >> ../files/BuildingSystems_BuildingSystems.Fluid.HeatExchangers.Radiators.Examples.RadiatorEN442_2.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator --tempDir=temp_BuildingSystems_BuildingSystems_Fluid_HeatExchangers_Radiators_Examples_RadiatorEN442_2_fmu --startTime=0 --stopTime=10800 --timeout=50 --tolerance=1e-06 BuildingSystems_BuildingSystems_Fluid_HeatExchangers_Radiators_Examples_RadiatorEN442_2.fmu > BuildingSystems_BuildingSystems.Fluid.HeatExchangers.Radiators.Examples.RadiatorEN442_2.pipe 2>&1)