Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr BuildingSystems_BuildingSystems.HAM.HeatAndMoistureTransport.Functions.Examples.myPhiMoist.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.HeatAndMoistureTransport.Functions.Examples.myPhiMoist,fileNamePrefix="BuildingSystems_BuildingSystems_HAM_HeatAndMoistureTransport_Functions_Examples_myPhiMoist",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(BuildingSystems.HAM.HeatAndMoistureTransport.Functions.Examples.myPhiMoist,fileNamePrefix="BuildingSystems_BuildingSystems_HAM_HeatAndMoistureTransport_Functions_Examples_myPhiMoist",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.706/0.706, allocations: 141.8 MB / 149.1 MB, free: 0.75 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.001012/0.001012, allocations: 184 kB / 181.9 MB, free: 12.92 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.25/1.25, allocations: 221.3 MB / 436 MB, free: 5.746 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.0009381/0.0009381, allocations: 108.6 kB / 0.507 GB, free: 19.1 MB / 378.9 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/NcDataReader2 2.5.1-master/package.mo): time 0.0017/0.0017, allocations: 285.6 kB / 0.5884 GB, free: 6.852 MB / 442.9 MB Notification: Performance of FrontEnd - loaded program: time 0.3771/0.3789, allocations: 89.63 MB / 0.676 GB, free: 139.9 MB / 0.5107 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1363/0.5152, allocations: 82.77 MB / 0.7568 GB, free: 88.79 MB / 0.5107 GB Notification: Performance of FrontEnd - scodeFlatten: time 0.1141/0.6294, allocations: 109.7 MB / 0.8639 GB, free: 10.94 MB / 0.5419 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002283/0.6296, allocations: 86.45 kB / 0.864 GB, free: 10.86 MB / 0.5419 GB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 3 * Number of variables: 3 Notification: Performance of Generate backend data structure: time 0.01169/0.6413, allocations: 4.928 MB / 0.8688 GB, free: 5.773 MB / 0.5419 GB Notification: Performance of prepare preOptimizeDAE: time 3.797e-05/0.6414, allocations: 9 kB / 0.8688 GB, free: 5.766 MB / 0.5419 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.767e-05/0.6414, allocations: 19.72 kB / 0.8689 GB, free: 5.746 MB / 0.5419 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001558/0.6416, allocations: 210 kB / 0.8691 GB, free: 5.5 MB / 0.5419 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.288e-05/0.6416, allocations: 0 / 0.8691 GB, free: 5.5 MB / 0.5419 GB Notification: Performance of preOpt expandDerOperator (simulation): time 1.185e-05/0.6416, allocations: 7.938 kB / 0.8691 GB, free: 5.492 MB / 0.5419 GB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 8.63e-05/0.6417, allocations: 19.98 kB / 0.8691 GB, free: 5.473 MB / 0.5419 GB Notification: Performance of preOpt clockPartitioning (simulation): time 7.513e-05/0.6418, allocations: 41.69 kB / 0.8691 GB, free: 5.426 MB / 0.5419 GB Notification: Performance of preOpt findStateOrder (simulation): time 6.111e-06/0.6418, allocations: 0 / 0.8691 GB, free: 5.426 MB / 0.5419 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 9.958e-06/0.6418, allocations: 0 / 0.8691 GB, free: 5.426 MB / 0.5419 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.629e-06/0.6418, allocations: 4 kB / 0.8691 GB, free: 5.422 MB / 0.5419 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0004447/0.6423, allocations: 297.4 kB / 0.8694 GB, free: 5.094 MB / 0.5419 GB Notification: Performance of preOpt comSubExp (simulation): time 5.797e-05/0.6424, allocations: 42.5 kB / 0.8695 GB, free: 5.043 MB / 0.5419 GB Notification: Performance of preOpt resolveLoops (simulation): time 3.001e-05/0.6424, allocations: 12.92 kB / 0.8695 GB, free: 5.027 MB / 0.5419 GB Notification: Performance of preOpt evalFunc (simulation): time 3.783e-05/0.6424, allocations: 4 kB / 0.8695 GB, free: 5.023 MB / 0.5419 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.517e-05/0.6425, allocations: 34.56 kB / 0.8695 GB, free: 4.98 MB / 0.5419 GB Notification: Performance of pre-optimization done (n=2): time 1.082e-06/0.6425, allocations: 0 / 0.8695 GB, free: 4.98 MB / 0.5419 GB Notification: Performance of matching and sorting (n=2): time 0.0002074/0.6427, allocations: 65.41 kB / 0.8696 GB, free: 4.91 MB / 0.5419 GB Notification: Performance of inlineWhenForInitialization (initialization): time 2.94e-05/0.6427, allocations: 55.39 kB / 0.8696 GB, free: 4.844 MB / 0.5419 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002078/0.6429, allocations: 221.1 kB / 0.8698 GB, free: 4.625 MB / 0.5419 GB Notification: Performance of collectPreVariables (initialization): time 1.249e-05/0.643, allocations: 25.7 kB / 0.8699 GB, free: 4.594 MB / 0.5419 GB Notification: Performance of collectInitialEqns (initialization): time 5.221e-05/0.643, allocations: 100.1 kB / 0.87 GB, free: 4.492 MB / 0.5419 GB Notification: Performance of collectInitialBindings (initialization): time 1.532e-05/0.643, allocations: 3.906 kB / 0.87 GB, free: 4.488 MB / 0.5419 GB Notification: Performance of simplifyInitialFunctions (initialization): time 3.987e-06/0.643, allocations: 0 / 0.87 GB, free: 4.488 MB / 0.5419 GB Notification: Performance of setup shared object (initialization): time 0.0001128/0.6432, allocations: 330.8 kB / 0.8703 GB, free: 4.156 MB / 0.5419 GB Notification: Performance of preBalanceInitialSystem (initialization): time 2.672e-05/0.6432, allocations: 15.94 kB / 0.8703 GB, free: 4.141 MB / 0.5419 GB Notification: Performance of partitionIndependentBlocks (initialization): time 1.931e-05/0.6432, allocations: 11.98 kB / 0.8703 GB, free: 4.129 MB / 0.5419 GB Notification: Performance of analyzeInitialSystem (initialization): time 7.536e-05/0.6433, allocations: 12.06 kB / 0.8703 GB, free: 4.117 MB / 0.5419 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.343e-06/0.6433, allocations: 0 / 0.8703 GB, free: 4.117 MB / 0.5419 GB Notification: Performance of matching and sorting (n=2) (initialization): time 0.0001177/0.6434, allocations: 73.41 kB / 0.8704 GB, free: 4.039 MB / 0.5419 GB Notification: Performance of prepare postOptimizeDAE: time 1.048e-05/0.6435, allocations: 4 kB / 0.8704 GB, free: 4.035 MB / 0.5419 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.228e-06/0.6435, allocations: 0 / 0.8704 GB, free: 4.035 MB / 0.5419 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.25e-05/0.6435, allocations: 3.984 kB / 0.8704 GB, free: 4.031 MB / 0.5419 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 9.913e-05/0.6436, allocations: 12 kB / 0.8704 GB, free: 4.02 MB / 0.5419 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 3.867e-06/0.6436, allocations: 4.031 kB / 0.8704 GB, free: 4.016 MB / 0.5419 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 7.771e-05/0.6437, allocations: 15.92 kB / 0.8704 GB, free: 4 MB / 0.5419 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.535e-05/0.6437, allocations: 0 / 0.8704 GB, free: 4 MB / 0.5419 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 1 * Number of states: 0 () * Number of discrete variables: 0 () * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (2): * Single equations (assignments): 2 * 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 5.378e-05/0.6438, allocations: 101 kB / 0.8705 GB, free: 3.895 MB / 0.5419 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.68e-05/0.6438, allocations: 19.72 kB / 0.8705 GB, free: 3.875 MB / 0.5419 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001656/0.644, allocations: 90.56 kB / 0.8706 GB, free: 3.785 MB / 0.5419 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.236e-06/0.644, allocations: 0 / 0.8706 GB, free: 3.785 MB / 0.5419 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.496e-06/0.644, allocations: 3.938 kB / 0.8706 GB, free: 3.781 MB / 0.5419 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.375e-06/0.644, allocations: 0 / 0.8706 GB, free: 3.781 MB / 0.5419 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001742/0.6442, allocations: 190.1 kB / 0.8708 GB, free: 3.559 MB / 0.5419 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 8.22e-07/0.6442, allocations: 0 / 0.8708 GB, free: 3.559 MB / 0.5419 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 7.417e-05/0.6443, allocations: 19.97 kB / 0.8708 GB, free: 3.539 MB / 0.5419 GB Notification: Performance of postOpt tearingSystem (simulation): time 1.643e-06/0.6443, allocations: 0 / 0.8708 GB, free: 3.539 MB / 0.5419 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 6.793e-06/0.6443, allocations: 0 / 0.8708 GB, free: 3.539 MB / 0.5419 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 9.92e-07/0.6443, allocations: 4.031 kB / 0.8708 GB, free: 3.535 MB / 0.5419 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.442e-06/0.6443, allocations: 0 / 0.8708 GB, free: 3.535 MB / 0.5419 GB Notification: Performance of postOpt detectJacobianSparsePattern (simulation): time 0.000146/0.6445, allocations: 171.2 kB / 0.871 GB, free: 3.352 MB / 0.5419 GB Notification: Performance of postOpt generateSymbolicLinearization (simulation): time 0.0002285/0.6447, allocations: 0.5387 MB / 0.8715 GB, free: 2.793 MB / 0.5419 GB Notification: Performance of postOpt removeConstants (simulation): time 4.775e-05/0.6447, allocations: 96.83 kB / 0.8716 GB, free: 2.68 MB / 0.5419 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.553e-05/0.6448, allocations: 0 / 0.8716 GB, free: 2.68 MB / 0.5419 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001102/0.6449, allocations: 7.984 kB / 0.8716 GB, free: 2.672 MB / 0.5419 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.315e-05/0.6449, allocations: 4 kB / 0.8716 GB, free: 2.668 MB / 0.5419 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 6.061e-06/0.6449, allocations: 0 / 0.8716 GB, free: 2.668 MB / 0.5419 GB Notification: Performance of sort global known variables: time 0.0001353/0.6451, allocations: 181.2 kB / 0.8718 GB, free: 2.488 MB / 0.5419 GB Notification: Performance of remove unused functions: time 0.0008061/0.6459, allocations: 39.94 kB / 0.8718 GB, free: 2.449 MB / 0.5419 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 1 * Number of states: 0 () * Number of discrete variables: 0 () * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (2): * Single equations (assignments): 2 * 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 Backend phase and start with SimCode phase: time 0.0002308/0.6461, allocations: 147.2 kB / 0.872 GB, free: 2.297 MB / 0.5419 GB Notification: Performance of simCode: created initialization part: time 8.018e-05/0.6462, allocations: 23.94 kB / 0.872 GB, free: 2.273 MB / 0.5419 GB Notification: Performance of simCode: created event and clocks part: time 1.473e-06/0.6462, allocations: 4.062 kB / 0.872 GB, free: 2.27 MB / 0.5419 GB Notification: Performance of simCode: created simulation system equations: time 2.945e-05/0.6463, allocations: 15.98 kB / 0.872 GB, free: 2.254 MB / 0.5419 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003019/0.6466, allocations: 43.06 kB / 0.8721 GB, free: 2.215 MB / 0.5419 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0004298/0.647, allocations: 196.9 kB / 0.8722 GB, free: 1.996 MB / 0.5419 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0003102/0.6473, allocations: 0.7544 MB / 0.873 GB, free: 1.215 MB / 0.5419 GB Notification: Performance of SimCode: time 2.41e-07/0.6473, allocations: 0 / 0.873 GB, free: 1.215 MB / 0.5419 GB (rm -f BuildingSystems_BuildingSystems.HAM.HeatAndMoistureTransport.Functions.Examples.myPhiMoist.pipe ; mkfifo BuildingSystems_BuildingSystems.HAM.HeatAndMoistureTransport.Functions.Examples.myPhiMoist.pipe ; head -c 1048576 < BuildingSystems_BuildingSystems.HAM.HeatAndMoistureTransport.Functions.Examples.myPhiMoist.pipe >> ../files/BuildingSystems_BuildingSystems.HAM.HeatAndMoistureTransport.Functions.Examples.myPhiMoist.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator --tempDir=temp_BuildingSystems_BuildingSystems_HAM_HeatAndMoistureTransport_Functions_Examples_myPhiMoist_fmu --startTime=0 --stopTime=1.1 --timeout=50 --tolerance=1e-06 BuildingSystems_BuildingSystems_HAM_HeatAndMoistureTransport_Functions_Examples_myPhiMoist.fmu > BuildingSystems_BuildingSystems.HAM.HeatAndMoistureTransport.Functions.Examples.myPhiMoist.pipe 2>&1)