Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr BuildingSystems_BuildingSystems.HAM.Examples.GasGapClosed.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.Examples.GasGapClosed,fileNamePrefix="BuildingSystems_BuildingSystems_HAM_Examples_GasGapClosed",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(BuildingSystems.HAM.Examples.GasGapClosed,fileNamePrefix="BuildingSystems_BuildingSystems_HAM_Examples_GasGapClosed",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.6931/0.6931, allocations: 141.8 MB / 149.1 MB, free: 4.555 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.001037/0.001037, allocations: 193 kB / 181.9 MB, free: 208 kB / 138.9 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.259/1.259, allocations: 221.3 MB / 436 MB, free: 9.34 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.0009464/0.0009464, allocations: 96.19 kB / 0.507 GB, free: 24.27 MB / 394.9 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/NcDataReader2 2.5.1-master/package.mo): time 0.001783/0.001783, allocations: 284.9 kB / 0.5884 GB, free: 12.39 MB / 442.9 MB Notification: Performance of FrontEnd - loaded program: time 0.1703/0.1721, allocations: 89.64 MB / 0.676 GB, free: 2.664 MB / 0.5107 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3662/0.5384, allocations: 82.76 MB / 0.7568 GB, free: 112.9 MB / 0.5263 GB Notification: Performance of FrontEnd - scodeFlatten: time 0.1075/0.646, allocations: 110.7 MB / 0.8649 GB, free: 2.043 MB / 0.5263 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002275/0.6463, allocations: 72.7 kB / 0.865 GB, free: 1.977 MB / 0.5263 GB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 11 * Number of variables: 11 Notification: Performance of Generate backend data structure: time 0.01229/0.6586, allocations: 4.296 MB / 0.8692 GB, free: 13.67 MB / 0.5419 GB Notification: Performance of prepare preOptimizeDAE: time 4.267e-05/0.6586, allocations: 8 kB / 0.8692 GB, free: 13.66 MB / 0.5419 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 5.011e-05/0.6587, allocations: 15.89 kB / 0.8692 GB, free: 13.64 MB / 0.5419 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002225/0.6589, allocations: 185.7 kB / 0.8694 GB, free: 13.43 MB / 0.5419 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.217e-05/0.6589, allocations: 4 kB / 0.8694 GB, free: 13.42 MB / 0.5419 GB Notification: Performance of preOpt expandDerOperator (simulation): time 1.44e-05/0.6589, allocations: 0 / 0.8694 GB, free: 13.42 MB / 0.5419 GB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.0001087/0.6591, allocations: 38.53 kB / 0.8695 GB, free: 13.39 MB / 0.5419 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001177/0.6592, allocations: 65.61 kB / 0.8695 GB, free: 13.32 MB / 0.5419 GB Notification: Performance of preOpt findStateOrder (simulation): time 9.768e-06/0.6592, allocations: 3.984 kB / 0.8695 GB, free: 13.31 MB / 0.5419 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.09e-05/0.6592, allocations: 0 / 0.8695 GB, free: 13.31 MB / 0.5419 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.153e-06/0.6592, allocations: 4 kB / 0.8695 GB, free: 13.31 MB / 0.5419 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.000531/0.6598, allocations: 372.5 kB / 0.8699 GB, free: 12.89 MB / 0.5419 GB Notification: Performance of preOpt comSubExp (simulation): time 8.935e-05/0.6599, allocations: 38.52 kB / 0.8699 GB, free: 12.85 MB / 0.5419 GB Notification: Performance of preOpt resolveLoops (simulation): time 3.759e-05/0.6599, allocations: 20.86 kB / 0.8699 GB, free: 12.82 MB / 0.5419 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0001128/0.66, allocations: 85.19 kB / 0.87 GB, free: 12.72 MB / 0.5419 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.095e-05/0.6601, allocations: 30.56 kB / 0.87 GB, free: 12.68 MB / 0.5419 GB Notification: Performance of pre-optimization done (n=3): time 1.513e-06/0.6601, allocations: 0 / 0.87 GB, free: 12.68 MB / 0.5419 GB Notification: Performance of matching and sorting (n=3): time 0.009525/0.6696, allocations: 449.2 kB / 0.8705 GB, free: 12.24 MB / 0.5419 GB Notification: Performance of inlineWhenForInitialization (initialization): time 3.481e-05/0.6697, allocations: 55.39 kB / 0.8705 GB, free: 12.17 MB / 0.5419 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 9.004e-05/0.6698, allocations: 109.2 kB / 0.8706 GB, free: 12.05 MB / 0.5419 GB Notification: Performance of collectPreVariables (initialization): time 1.305e-05/0.6698, allocations: 29.7 kB / 0.8707 GB, free: 12.02 MB / 0.5419 GB Notification: Performance of collectInitialEqns (initialization): time 4.285e-05/0.6698, allocations: 96.03 kB / 0.8707 GB, free: 11.92 MB / 0.5419 GB Notification: Performance of collectInitialBindings (initialization): time 2.104e-05/0.6699, allocations: 7.812 kB / 0.8708 GB, free: 11.91 MB / 0.5419 GB Notification: Performance of simplifyInitialFunctions (initialization): time 4.198e-06/0.6699, allocations: 0 / 0.8708 GB, free: 11.91 MB / 0.5419 GB Notification: Performance of setup shared object (initialization): time 0.0001079/0.67, allocations: 322.8 kB / 0.8711 GB, free: 11.59 MB / 0.5419 GB Notification: Performance of preBalanceInitialSystem (initialization): time 2.579e-05/0.67, allocations: 8 kB / 0.8711 GB, free: 11.58 MB / 0.5419 GB Notification: Performance of partitionIndependentBlocks (initialization): time 2.107e-05/0.67, allocations: 15.94 kB / 0.8711 GB, free: 11.57 MB / 0.5419 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.009191/0.6792, allocations: 399.5 kB / 0.8715 GB, free: 11.18 MB / 0.5419 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.314e-06/0.6792, allocations: 4 kB / 0.8715 GB, free: 11.17 MB / 0.5419 GB Notification: Performance of matching and sorting (n=3) (initialization): time 0.009198/0.6885, allocations: 449.2 kB / 0.8719 GB, free: 10.73 MB / 0.5419 GB Notification: Performance of prepare postOptimizeDAE: time 1.901e-05/0.6885, allocations: 7.984 kB / 0.8719 GB, free: 10.72 MB / 0.5419 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.223e-06/0.6885, allocations: 0 / 0.8719 GB, free: 10.72 MB / 0.5419 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.62e-05/0.6885, allocations: 0 / 0.8719 GB, free: 10.72 MB / 0.5419 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001154/0.6886, allocations: 8 kB / 0.8719 GB, free: 10.71 MB / 0.5419 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 6.442e-06/0.6887, allocations: 5.234 kB / 0.8719 GB, free: 10.71 MB / 0.5419 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 6.15e-05/0.6887, allocations: 11.92 kB / 0.8719 GB, free: 10.7 MB / 0.5419 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 9.799e-06/0.6887, allocations: 8 kB / 0.8719 GB, free: 10.69 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 (3): * Single equations (assignments): 3 * 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 6.546e-05/0.6888, allocations: 104.9 kB / 0.872 GB, free: 10.58 MB / 0.5419 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.222e-05/0.6889, allocations: 7.906 kB / 0.872 GB, free: 10.57 MB / 0.5419 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.009288/0.6981, allocations: 465.3 kB / 0.8725 GB, free: 10.11 MB / 0.5419 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.583e-06/0.6982, allocations: 4 kB / 0.8725 GB, free: 10.11 MB / 0.5419 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.979e-06/0.6982, allocations: 0 / 0.8725 GB, free: 10.11 MB / 0.5419 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.228e-06/0.6982, allocations: 0 / 0.8725 GB, free: 10.11 MB / 0.5419 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.000198/0.6984, allocations: 158.2 kB / 0.8726 GB, free: 9.914 MB / 0.5419 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.475e-06/0.6984, allocations: 0 / 0.8726 GB, free: 9.914 MB / 0.5419 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 9.876e-05/0.6985, allocations: 19.89 kB / 0.8727 GB, free: 9.895 MB / 0.5419 GB Notification: Performance of postOpt tearingSystem (simulation): time 6.432e-06/0.6985, allocations: 352 / 0.8727 GB, free: 9.895 MB / 0.5419 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.122e-05/0.6986, allocations: 3.938 kB / 0.8727 GB, free: 9.891 MB / 0.5419 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.625e-06/0.6986, allocations: 0 / 0.8727 GB, free: 9.891 MB / 0.5419 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 6.071e-06/0.6986, allocations: 4 kB / 0.8727 GB, free: 9.887 MB / 0.5419 GB Notification: Performance of postOpt detectJacobianSparsePattern (simulation): time 0.009391/0.708, allocations: 0.5497 MB / 0.8732 GB, free: 9.32 MB / 0.5419 GB Notification: Performance of postOpt generateSymbolicLinearization (simulation): time 0.009409/0.7174, allocations: 0.9118 MB / 0.8741 GB, free: 8.391 MB / 0.5419 GB Notification: Performance of postOpt removeConstants (simulation): time 4.225e-05/0.7175, allocations: 81.02 kB / 0.8742 GB, free: 8.293 MB / 0.5419 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.141e-05/0.7175, allocations: 7.906 kB / 0.8742 GB, free: 8.285 MB / 0.5419 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 8.273e-05/0.7176, allocations: 0 / 0.8742 GB, free: 8.285 MB / 0.5419 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 2.705e-05/0.7176, allocations: 11.98 kB / 0.8742 GB, free: 8.273 MB / 0.5419 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.51e-06/0.7176, allocations: 0 / 0.8742 GB, free: 8.273 MB / 0.5419 GB Notification: Performance of sort global known variables: time 5.994e-05/0.7177, allocations: 98.25 kB / 0.8743 GB, free: 8.18 MB / 0.5419 GB Notification: Performance of remove unused functions: time 0.0009093/0.7186, allocations: 75.83 kB / 0.8744 GB, free: 8.105 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 (4): * Single equations (assignments): 4 * 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.0003226/0.7189, allocations: 163.1 kB / 0.8745 GB, free: 7.938 MB / 0.5419 GB Notification: Performance of simCode: created initialization part: time 0.0001111/0.7191, allocations: 31.94 kB / 0.8745 GB, free: 7.906 MB / 0.5419 GB Notification: Performance of simCode: created event and clocks part: time 2.004e-06/0.7191, allocations: 0 / 0.8745 GB, free: 7.906 MB / 0.5419 GB Notification: Performance of simCode: created simulation system equations: time 3.515e-05/0.7191, allocations: 15.98 kB / 0.8746 GB, free: 7.891 MB / 0.5419 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002046/0.7193, allocations: 10.44 kB / 0.8746 GB, free: 7.883 MB / 0.5419 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0002989/0.7196, allocations: 98.52 kB / 0.8747 GB, free: 7.766 MB / 0.5419 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002572/0.7199, allocations: 0.7149 MB / 0.8754 GB, free: 7.027 MB / 0.5419 GB Notification: Performance of SimCode: time 4.1e-07/0.7199, allocations: 0 / 0.8754 GB, free: 7.027 MB / 0.5419 GB (rm -f BuildingSystems_BuildingSystems.HAM.Examples.GasGapClosed.pipe ; mkfifo BuildingSystems_BuildingSystems.HAM.Examples.GasGapClosed.pipe ; head -c 1048576 < BuildingSystems_BuildingSystems.HAM.Examples.GasGapClosed.pipe >> ../files/BuildingSystems_BuildingSystems.HAM.Examples.GasGapClosed.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator --tempDir=temp_BuildingSystems_BuildingSystems_HAM_Examples_GasGapClosed_fmu --startTime=0 --stopTime=7200 --timeout=50 --tolerance=1e-06 BuildingSystems_BuildingSystems_HAM_Examples_GasGapClosed.fmu > BuildingSystems_BuildingSystems.HAM.Examples.GasGapClosed.pipe 2>&1)