Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr BuildingSystems_BuildingSystems.HAM.HeatConduction.Examples.HeatConduction1D.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.HAM.HeatConduction.Examples.HeatConduction1D,fileNamePrefix="BuildingSystems_BuildingSystems_HAM_HeatConduction_Examples_HeatConduction1D",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(BuildingSystems.HAM.HeatConduction.Examples.HeatConduction1D,fileNamePrefix="BuildingSystems_BuildingSystems_HAM_HeatConduction_Examples_HeatConduction1D",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.7413/0.7413, allocations: 141.8 MB / 149.1 MB, free: 1.316 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.001051/0.001051, allocations: 193.2 kB / 181.9 MB, free: 0.6211 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.356/1.356, allocations: 221.3 MB / 436 MB, free: 5.434 MB / 331 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.0009634/0.0009633, allocations: 100.5 kB / 0.507 GB, free: 2.102 MB / 411 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/NcDataReader2 2.5.1-master/package.mo): time 0.001682/0.001682, allocations: 273.7 kB / 0.5884 GB, free: 47.18 MB / 411 MB Notification: Performance of FrontEnd - loaded program: time 0.3099/0.3116, allocations: 89.63 MB / 0.676 GB, free: 59.47 MB / 443 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1361/0.4477, allocations: 82.78 MB / 0.7568 GB, free: 0.5469 MB / 443 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.1373/0.585, allocations: 110.3 MB / 0.8645 GB, free: 2.047 MB / 0.542 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002197/0.5853, allocations: 77.98 kB / 0.8646 GB, free: 1.973 MB / 0.542 GB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 63 * Number of variables: 63 Notification: Performance of Generate backend data structure: time 0.2616/0.8469, allocations: 6.348 MB / 0.8708 GB, free: 109.2 MB / 0.542 GB Notification: Performance of prepare preOptimizeDAE: time 4.613e-05/0.8469, allocations: 13.09 kB / 0.8708 GB, free: 109.2 MB / 0.542 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001152/0.8471, allocations: 34.38 kB / 0.8709 GB, free: 109.2 MB / 0.542 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002624/0.8473, allocations: 216.4 kB / 0.8711 GB, free: 109 MB / 0.542 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.817e-05/0.8474, allocations: 7.969 kB / 0.8711 GB, free: 109 MB / 0.542 GB Notification: Performance of preOpt expandDerOperator (simulation): time 7.463e-05/0.8475, allocations: 21.69 kB / 0.8711 GB, free: 109 MB / 0.542 GB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.0004572/0.8479, allocations: 173.8 kB / 0.8713 GB, free: 109 MB / 0.542 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0004063/0.8483, allocations: 193 kB / 0.8714 GB, free: 109 MB / 0.542 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.179e-05/0.8484, allocations: 4.625 kB / 0.8714 GB, free: 109 MB / 0.542 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.356e-05/0.8484, allocations: 0 / 0.8714 GB, free: 109 MB / 0.542 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 8.726e-06/0.8484, allocations: 5.719 kB / 0.8715 GB, free: 109 MB / 0.542 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001586/0.85, allocations: 1.027 MB / 0.8725 GB, free: 108.3 MB / 0.542 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0002189/0.8502, allocations: 133.6 kB / 0.8726 GB, free: 108.3 MB / 0.542 GB Notification: Performance of preOpt resolveLoops (simulation): time 8.826e-05/0.8503, allocations: 51.83 kB / 0.8726 GB, free: 108.3 MB / 0.542 GB Notification: Performance of preOpt evalFunc (simulation): time 2.082e-05/0.8504, allocations: 2.641 kB / 0.8726 GB, free: 108.3 MB / 0.542 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.8e-05/0.8504, allocations: 40.19 kB / 0.8727 GB, free: 108.3 MB / 0.542 GB Notification: Performance of pre-optimization done (n=16): time 2.144e-06/0.8504, allocations: 0 / 0.8727 GB, free: 108.3 MB / 0.542 GB Notification: Performance of matching and sorting (n=16): time 0.000547/0.8509, allocations: 220.1 kB / 0.8729 GB, free: 108.2 MB / 0.542 GB Notification: Performance of inlineWhenForInitialization (initialization): time 1.772e-05/0.851, allocations: 53.62 kB / 0.8729 GB, free: 108.1 MB / 0.542 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002656/0.8512, allocations: 240.1 kB / 0.8732 GB, free: 108 MB / 0.542 GB Notification: Performance of collectPreVariables (initialization): time 1.594e-05/0.8513, allocations: 26.77 kB / 0.8732 GB, free: 108 MB / 0.542 GB Notification: Performance of collectInitialEqns (initialization): time 8.42e-05/0.8514, allocations: 205.7 kB / 0.8734 GB, free: 107.8 MB / 0.542 GB Notification: Performance of collectInitialBindings (initialization): time 4.272e-05/0.8514, allocations: 61.44 kB / 0.8734 GB, free: 107.8 MB / 0.542 GB Notification: Performance of simplifyInitialFunctions (initialization): time 1.225e-05/0.8514, allocations: 4 kB / 0.8734 GB, free: 107.8 MB / 0.542 GB Notification: Performance of setup shared object (initialization): time 7.138e-05/0.8515, allocations: 339.8 kB / 0.8738 GB, free: 107.5 MB / 0.542 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001317/0.8516, allocations: 65.97 kB / 0.8738 GB, free: 107.5 MB / 0.542 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002013/0.8518, allocations: 183.1 kB / 0.874 GB, free: 107.3 MB / 0.542 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001989/0.852, allocations: 100.5 kB / 0.8741 GB, free: 107.3 MB / 0.542 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 6.002e-06/0.8521, allocations: 1.062 kB / 0.8741 GB, free: 107.3 MB / 0.542 GB Notification: Performance of matching and sorting (n=46) (initialization): time 0.0006912/0.8528, allocations: 369.2 kB / 0.8745 GB, free: 107.2 MB / 0.542 GB Notification: Performance of prepare postOptimizeDAE: time 1.676e-05/0.8528, allocations: 5.844 kB / 0.8745 GB, free: 107.2 MB / 0.542 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.188e-05/0.8528, allocations: 4.344 kB / 0.8745 GB, free: 107.2 MB / 0.542 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.0003302/0.8531, allocations: 83.64 kB / 0.8745 GB, free: 107.2 MB / 0.542 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003181/0.8535, allocations: 85.05 kB / 0.8746 GB, free: 107.2 MB / 0.542 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002613/0.8561, allocations: 4.925 MB / 0.8794 GB, free: 102.3 MB / 0.542 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002997/0.8564, allocations: 37.31 kB / 0.8795 GB, free: 102.3 MB / 0.542 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.977e-05/0.8564, allocations: 17.61 kB / 0.8795 GB, free: 102.3 MB / 0.542 GB Warning: Assuming fixed start value for the following 5 variables: body5.T:VARIABLE(min = max(0.0, 0.0) start = body5.T_start unit = "K" nominal = 300.0 ) "Temperature of the thermal node" type: Real body4.T:VARIABLE(min = max(0.0, 0.0) start = body4.T_start unit = "K" nominal = 300.0 ) "Temperature of the thermal node" type: Real body3.T:VARIABLE(min = max(0.0, 0.0) start = body3.T_start unit = "K" nominal = 300.0 ) "Temperature of the thermal node" type: Real body2.T:VARIABLE(min = max(0.0, 0.0) start = body2.T_start unit = "K" nominal = 300.0 ) "Temperature of the thermal node" type: Real body1.T:VARIABLE(min = max(0.0, 0.0) start = body1.T_start unit = "K" nominal = 300.0 ) "Temperature of the thermal node" type: Real Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 16 * Number of states: 0 () * Number of discrete variables: 0 () * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (42): * Single equations (assignments): 38 * 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: 4 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 4 {(1,100.0%) 1,(1,100.0%) 1,(1,100.0%) 1,(1,100.0%) 1} * Non-linear torn systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.0001797/0.8566, allocations: 153.8 kB / 0.8796 GB, free: 102.2 MB / 0.542 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 5.581e-05/0.8567, allocations: 24.12 kB / 0.8797 GB, free: 102.2 MB / 0.542 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 4.945e-05/0.8567, allocations: 30.11 kB / 0.8797 GB, free: 102.2 MB / 0.542 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.575e-06/0.8568, allocations: 2.062 kB / 0.8797 GB, free: 102.2 MB / 0.542 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.167e-05/0.8568, allocations: 3.047 kB / 0.8797 GB, free: 102.2 MB / 0.542 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.718e-06/0.8568, allocations: 0.6562 kB / 0.8797 GB, free: 102.2 MB / 0.542 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0003086/0.8571, allocations: 276.8 kB / 0.88 GB, free: 102 MB / 0.542 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.924e-06/0.8571, allocations: 1.031 kB / 0.88 GB, free: 102 MB / 0.542 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002109/0.8573, allocations: 31.59 kB / 0.88 GB, free: 102 MB / 0.542 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.0002373/0.8576, allocations: 81.52 kB / 0.8801 GB, free: 102 MB / 0.542 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.922e-05/0.8576, allocations: 6.547 kB / 0.8801 GB, free: 102 MB / 0.542 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.00241/0.86, allocations: 4.923 MB / 0.8849 GB, free: 97.14 MB / 0.542 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.765e-06/0.86, allocations: 1 kB / 0.8849 GB, free: 97.14 MB / 0.542 GB Notification: Performance of postOpt detectJacobianSparsePattern (simulation): time 0.0005279/0.8606, allocations: 387.5 kB / 0.8853 GB, free: 96.95 MB / 0.542 GB Notification: Performance of postOpt generateSymbolicLinearization (simulation): time 0.0006471/0.8612, allocations: 0.8292 MB / 0.8861 GB, free: 96.38 MB / 0.542 GB Notification: Performance of postOpt removeConstants (simulation): time 6.555e-05/0.8613, allocations: 101.3 kB / 0.8862 GB, free: 96.27 MB / 0.542 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.19e-05/0.8614, allocations: 1.625 kB / 0.8862 GB, free: 96.27 MB / 0.542 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001799/0.8615, allocations: 13.25 kB / 0.8862 GB, free: 96.26 MB / 0.542 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.974e-05/0.8616, allocations: 15.34 kB / 0.8862 GB, free: 96.26 MB / 0.542 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.218e-05/0.8616, allocations: 4.484 kB / 0.8862 GB, free: 96.26 MB / 0.542 GB Notification: Performance of sort global known variables: time 0.0001617/0.8618, allocations: 181.9 kB / 0.8864 GB, free: 96.18 MB / 0.542 GB Notification: Performance of remove unused functions: time 0.001148/0.8629, allocations: 94.28 kB / 0.8865 GB, free: 96.17 MB / 0.542 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 1 * Number of states: 5 (body1.T,body2.T,body3.T,body4.T,body5.T) * Number of discrete variables: 0 () * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (12): * Single equations (assignments): 8 * 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: 4 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 4 {(1,100.0%) 1,(1,100.0%) 1,(1,100.0%) 1,(1,100.0%) 1} * Non-linear torn systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.0001545/0.8631, allocations: 105.9 kB / 0.8866 GB, free: 96.08 MB / 0.542 GB Notification: Performance of simCode: created initialization part: time 0.0007566/0.8639, allocations: 0.6031 MB / 0.8871 GB, free: 95.67 MB / 0.542 GB Notification: Performance of simCode: created event and clocks part: time 2.114e-06/0.8639, allocations: 4.062 kB / 0.8871 GB, free: 95.67 MB / 0.542 GB Notification: Performance of simCode: created simulation system equations: time 0.0004339/0.8643, allocations: 491.9 kB / 0.8876 GB, free: 95.27 MB / 0.542 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003004/0.8646, allocations: 44.09 kB / 0.8877 GB, free: 95.25 MB / 0.542 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001012/0.8657, allocations: 0.6 MB / 0.8882 GB, free: 94.89 MB / 0.542 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002839/0.866, allocations: 0.7968 MB / 0.889 GB, free: 94.19 MB / 0.542 GB Notification: Performance of SimCode: time 4.61e-07/0.866, allocations: 0 / 0.889 GB, free: 94.19 MB / 0.542 GB (rm -f BuildingSystems_BuildingSystems.HAM.HeatConduction.Examples.HeatConduction1D.pipe ; mkfifo BuildingSystems_BuildingSystems.HAM.HeatConduction.Examples.HeatConduction1D.pipe ; head -c 1048576 < BuildingSystems_BuildingSystems.HAM.HeatConduction.Examples.HeatConduction1D.pipe >> ../files/BuildingSystems_BuildingSystems.HAM.HeatConduction.Examples.HeatConduction1D.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator --tempDir=temp_BuildingSystems_BuildingSystems_HAM_HeatConduction_Examples_HeatConduction1D_fmu --startTime=0 --stopTime=172800 --timeout=50 --tolerance=1e-06 BuildingSystems_BuildingSystems_HAM_HeatConduction_Examples_HeatConduction1D.fmu > BuildingSystems_BuildingSystems.HAM.HeatConduction.Examples.HeatConduction1D.pipe 2>&1)