Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr BuildingSystems_BuildingSystems.Fluid.Interfaces.Examples.FourPortHeatMassExchanger.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.Interfaces.Examples.FourPortHeatMassExchanger,fileNamePrefix="BuildingSystems_BuildingSystems_Fluid_Interfaces_Examples_FourPortHeatMassExchanger",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(BuildingSystems.Fluid.Interfaces.Examples.FourPortHeatMassExchanger,fileNamePrefix="BuildingSystems_BuildingSystems_Fluid_Interfaces_Examples_FourPortHeatMassExchanger",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.7242/0.7242, allocations: 141.8 MB / 149.1 MB, free: 13.27 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.001058/0.001058, allocations: 183.8 kB / 182 MB, free: 9.93 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.214/1.214, allocations: 221.3 MB / 436 MB, free: 2.426 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.0009322/0.0009323, allocations: 96.73 kB / 0.507 GB, free: 17.75 MB / 378.9 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/NcDataReader2 2.5.1-master/package.mo): time 0.001794/0.001794, allocations: 272 kB / 0.5885 GB, free: 3.93 MB / 442.9 MB Notification: Performance of FrontEnd - loaded program: time 0.3629/0.3647, allocations: 89.64 MB / 0.676 GB, free: 136.7 MB / 0.5107 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.139/0.5038, allocations: 82.77 MB / 0.7568 GB, free: 83.39 MB / 0.5107 GB Notification: Performance of FrontEnd - scodeFlatten: time 0.573/1.077, allocations: 378.4 MB / 1.126 GB, free: 2.352 MB / 0.6825 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002408/1.077, allocations: 96.67 kB / 1.126 GB, free: 2.305 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: 174 * Number of variables: 174 Notification: Performance of Generate backend data structure: time 1.308/2.385, allocations: 443.9 MB / 1.56 GB, free: 93.83 MB / 0.6982 GB Notification: Performance of prepare preOptimizeDAE: time 4.465e-05/2.385, allocations: 8.812 kB / 1.56 GB, free: 93.83 MB / 0.6982 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0003365/2.385, allocations: 136.9 kB / 1.56 GB, free: 93.76 MB / 0.6982 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.02608/2.411, allocations: 12.99 MB / 1.573 GB, free: 86.09 MB / 0.6982 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.574e-05/2.411, allocations: 26.22 kB / 1.573 GB, free: 86.09 MB / 0.6982 GB Notification: Performance of preOpt expandDerOperator (simulation): time 8.544e-05/2.411, allocations: 44.69 kB / 1.573 GB, free: 86.09 MB / 0.6982 GB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.0007561/2.412, allocations: 457.2 kB / 1.573 GB, free: 85.88 MB / 0.6982 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0008719/2.413, allocations: 0.6312 MB / 1.574 GB, free: 85.49 MB / 0.6982 GB Notification: Performance of preOpt findStateOrder (simulation): time 2.211e-05/2.413, allocations: 3.562 kB / 1.574 GB, free: 85.49 MB / 0.6982 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 5.25e-05/2.413, allocations: 0 / 1.574 GB, free: 85.49 MB / 0.6982 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.377e-05/2.413, allocations: 18.16 kB / 1.574 GB, free: 85.49 MB / 0.6982 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.003167/2.416, allocations: 3.546 MB / 1.577 GB, free: 82.48 MB / 0.6982 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0003262/2.417, allocations: 198 kB / 1.578 GB, free: 82.39 MB / 0.6982 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001778/2.417, allocations: 155.5 kB / 1.578 GB, free: 82.31 MB / 0.6982 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0003535/2.417, allocations: 0.6674 MB / 1.578 GB, free: 81.54 MB / 0.6982 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.649e-05/2.417, allocations: 42.41 kB / 1.578 GB, free: 81.49 MB / 0.6982 GB Notification: Performance of pre-optimization done (n=31): time 1.473e-06/2.417, allocations: 0 / 1.578 GB, free: 81.49 MB / 0.6982 GB Notification: Performance of matching and sorting (n=31): time 0.0006776/2.418, allocations: 351.9 kB / 1.579 GB, free: 81.32 MB / 0.6982 GB Notification: Performance of inlineWhenForInitialization (initialization): time 2.327e-05/2.418, allocations: 57.06 kB / 1.579 GB, free: 81.25 MB / 0.6982 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0006335/2.418, allocations: 0.6373 MB / 1.579 GB, free: 80.9 MB / 0.6982 GB Notification: Performance of collectPreVariables (initialization): time 3.394e-05/2.418, allocations: 25.7 kB / 1.579 GB, free: 80.87 MB / 0.6982 GB Notification: Performance of collectInitialEqns (initialization): time 0.0001562/2.419, allocations: 377.1 kB / 1.58 GB, free: 80.55 MB / 0.6982 GB Notification: Performance of collectInitialBindings (initialization): time 7.614e-05/2.419, allocations: 109.9 kB / 1.58 GB, free: 80.45 MB / 0.6982 GB Notification: Performance of simplifyInitialFunctions (initialization): time 1.638e-05/2.419, allocations: 0 / 1.58 GB, free: 80.45 MB / 0.6982 GB Notification: Performance of setup shared object (initialization): time 4.548e-05/2.419, allocations: 329.2 kB / 1.58 GB, free: 80.13 MB / 0.6982 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001566/2.419, allocations: 114.8 kB / 1.58 GB, free: 80.08 MB / 0.6982 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002259/2.419, allocations: 332.2 kB / 1.581 GB, free: 79.75 MB / 0.6982 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003457/2.42, allocations: 201.8 kB / 1.581 GB, free: 79.65 MB / 0.6982 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.955e-06/2.42, allocations: 0 / 1.581 GB, free: 79.65 MB / 0.6982 GB Notification: Performance of matching and sorting (n=57) (initialization): time 0.0006945/2.42, allocations: 484.8 kB / 1.581 GB, free: 79.42 MB / 0.6982 GB Notification: Performance of prepare postOptimizeDAE: time 1.182e-05/2.42, allocations: 7.812 kB / 1.581 GB, free: 79.42 MB / 0.6982 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.196e-06/2.42, allocations: 3.906 kB / 1.581 GB, free: 79.42 MB / 0.6982 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.609e-05/2.42, allocations: 13.12 kB / 1.581 GB, free: 79.42 MB / 0.6982 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003998/2.421, allocations: 124.7 kB / 1.581 GB, free: 79.39 MB / 0.6982 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 9.007e-06/2.421, allocations: 15.73 kB / 1.581 GB, free: 79.38 MB / 0.6982 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0006243/2.421, allocations: 77.83 kB / 1.582 GB, free: 79.34 MB / 0.6982 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.36e-05/2.421, allocations: 27.5 kB / 1.582 GB, free: 79.34 MB / 0.6982 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 23 * Number of states: 0 () * Number of discrete variables: 0 () * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (57): * Single equations (assignments): 57 * 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: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of prepare postOptimizeDAE: time 8.435e-05/2.422, allocations: 123.6 kB / 1.582 GB, free: 79.22 MB / 0.6982 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001031/2.422, allocations: 89.94 kB / 1.582 GB, free: 79.17 MB / 0.6982 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0007263/2.422, allocations: 433.5 kB / 1.582 GB, free: 78.93 MB / 0.6982 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 8.095e-06/2.422, allocations: 11.77 kB / 1.582 GB, free: 78.92 MB / 0.6982 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.038e-06/2.422, allocations: 0 / 1.582 GB, free: 78.92 MB / 0.6982 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.0004665/2.423, allocations: 397.5 kB / 1.583 GB, free: 78.65 MB / 0.6982 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001478/2.424, allocations: 1.239 MB / 1.584 GB, free: 77.74 MB / 0.6982 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.427e-06/2.424, allocations: 3.906 kB / 1.584 GB, free: 77.74 MB / 0.6982 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0003744/2.425, allocations: 81.17 kB / 1.584 GB, free: 77.73 MB / 0.6982 GB Notification: Performance of postOpt tearingSystem (simulation): time 4.418e-06/2.425, allocations: 3.906 kB / 1.584 GB, free: 77.73 MB / 0.6982 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.365e-05/2.425, allocations: 3.906 kB / 1.584 GB, free: 77.73 MB / 0.6982 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.324e-06/2.425, allocations: 0 / 1.584 GB, free: 77.73 MB / 0.6982 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.048e-06/2.425, allocations: 11.83 kB / 1.584 GB, free: 77.72 MB / 0.6982 GB Notification: Performance of postOpt detectJacobianSparsePattern (simulation): time 0.0008814/2.426, allocations: 0.7543 MB / 1.585 GB, free: 77.2 MB / 0.6982 GB Notification: Performance of postOpt generateSymbolicLinearization (simulation): time 0.001107/2.427, allocations: 1.362 MB / 1.586 GB, free: 76.16 MB / 0.6982 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0002558/2.427, allocations: 227.5 kB / 1.586 GB, free: 75.96 MB / 0.6982 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001143/2.427, allocations: 3.719 kB / 1.586 GB, free: 75.96 MB / 0.6982 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0005172/2.428, allocations: 53.05 kB / 1.586 GB, free: 75.95 MB / 0.6982 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.674e-05/2.428, allocations: 30.7 kB / 1.586 GB, free: 75.93 MB / 0.6982 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.474e-05/2.428, allocations: 18.67 kB / 1.586 GB, free: 75.92 MB / 0.6982 GB Notification: Performance of sort global known variables: time 0.0004605/2.428, allocations: 0.4905 MB / 1.587 GB, free: 75.65 MB / 0.6982 GB Notification: Performance of remove unused functions: time 0.001692/2.43, allocations: 442 kB / 1.587 GB, free: 75.47 MB / 0.6982 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 6 * Number of states: 2 (fouPor.vol1.dynBal.U,fouPor.vol2.dynBal.U) * Number of discrete variables: 0 () * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (34): * Single equations (assignments): 31 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 3 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.0009177/2.431, allocations: 0.5519 MB / 1.588 GB, free: 75.26 MB / 0.6982 GB Notification: Performance of simCode: created initialization part: time 0.0005588/2.431, allocations: 334.5 kB / 1.588 GB, free: 75.13 MB / 0.6982 GB Notification: Performance of simCode: created event and clocks part: time 3.346e-06/2.432, allocations: 0.75 kB / 1.588 GB, free: 75.13 MB / 0.6982 GB Notification: Performance of simCode: created simulation system equations: time 0.0002443/2.432, allocations: 166.2 kB / 1.588 GB, free: 75.06 MB / 0.6982 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002064/2.434, allocations: 460.4 kB / 1.589 GB, free: 74.87 MB / 0.6982 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002126/2.436, allocations: 1.184 MB / 1.59 GB, free: 74.24 MB / 0.6982 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0007106/2.437, allocations: 1.135 MB / 1.591 GB, free: 73.36 MB / 0.6982 GB Notification: Performance of SimCode: time 3.11e-07/2.437, allocations: 3.938 kB / 1.591 GB, free: 73.36 MB / 0.6982 GB (rm -f BuildingSystems_BuildingSystems.Fluid.Interfaces.Examples.FourPortHeatMassExchanger.pipe ; mkfifo BuildingSystems_BuildingSystems.Fluid.Interfaces.Examples.FourPortHeatMassExchanger.pipe ; head -c 1048576 < BuildingSystems_BuildingSystems.Fluid.Interfaces.Examples.FourPortHeatMassExchanger.pipe >> ../files/BuildingSystems_BuildingSystems.Fluid.Interfaces.Examples.FourPortHeatMassExchanger.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator --tempDir=temp_BuildingSystems_BuildingSystems_Fluid_Interfaces_Examples_FourPortHeatMassExchanger_fmu --startTime=0 --stopTime=5 --timeout=50 --tolerance=1e-06 BuildingSystems_BuildingSystems_Fluid_Interfaces_Examples_FourPortHeatMassExchanger.fmu > BuildingSystems_BuildingSystems.Fluid.Interfaces.Examples.FourPortHeatMassExchanger.pipe 2>&1)