Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr BuildingSystems_BuildingSystems.HAM.ConvectiveHeatTransfer.Examples.AlphaGap.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.ConvectiveHeatTransfer.Examples.AlphaGap,fileNamePrefix="BuildingSystems_BuildingSystems_HAM_ConvectiveHeatTransfer_Examples_AlphaGap",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(BuildingSystems.HAM.ConvectiveHeatTransfer.Examples.AlphaGap,fileNamePrefix="BuildingSystems_BuildingSystems_HAM_ConvectiveHeatTransfer_Examples_AlphaGap",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/BuildingSystems 2.0.0-master/package.mo): time 0.8471/0.8471, allocations: 141.8 MB / 149.3 MB, free: 9.215 MB / 122.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001087/0.001087, allocations: 180.5 kB / 182.2 MB, free: 9.449 MB / 154.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.392/1.392, allocations: 221.5 MB / 436.4 MB, free: 13.37 MB / 330.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001008/0.001008, allocations: 103.8 kB / 0.5074 GB, free: 10.18 MB / 410.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/NcDataReader2 2.5.1-master/package.mo): time 0.001892/0.001892, allocations: 279.2 kB / 0.5889 GB, free: 54.69 MB / 410.7 MB Notification: Performance of FrontEnd - loaded program: time 1.777e-05/1.779e-05, allocations: 4 kB / 0.6766 GB, free: 12.77 MB / 458.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3841/0.3841, allocations: 82.78 MB / 0.7575 GB, free: 31.94 MB / 458.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.1389/0.5231, allocations: 109.5 MB / 0.8644 GB, free: 2.309 MB / 0.5261 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002365/0.5234, allocations: 75.95 kB / 0.8645 GB, free: 2.234 MB / 0.5261 GB Notification: Performance of FrontEnd - DAE generated: time 0.01018/0.5336, allocations: 3.146 MB / 0.8675 GB, free: 15.09 MB / 0.5417 GB Notification: Performance of FrontEnd: time 1.423e-06/0.5336, allocations: 0 / 0.8675 GB, free: 15.09 MB / 0.5417 GB Notification: Performance of Transformations before backend: time 6.342e-06/0.5337, allocations: 0 / 0.8675 GB, free: 15.09 MB / 0.5417 GB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 5 * Number of variables: 5 Notification: Performance of Generate backend data structure: time 0.0003594/0.534, allocations: 358.4 kB / 0.8679 GB, free: 14.69 MB / 0.5417 GB Notification: Performance of prepare preOptimizeDAE: time 4.562e-05/0.5341, allocations: 12.03 kB / 0.8679 GB, free: 14.68 MB / 0.5417 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.403e-05/0.5341, allocations: 0 / 0.8679 GB, free: 14.68 MB / 0.5417 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.000129/0.5343, allocations: 174.9 kB / 0.868 GB, free: 14.47 MB / 0.5417 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.239e-05/0.5343, allocations: 4 kB / 0.868 GB, free: 14.46 MB / 0.5417 GB Notification: Performance of preOpt expandDerOperator (simulation): time 1.068e-05/0.5343, allocations: 4 kB / 0.8681 GB, free: 14.46 MB / 0.5417 GB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 9.234e-05/0.5344, allocations: 23.98 kB / 0.8681 GB, free: 14.44 MB / 0.5417 GB Notification: Performance of preOpt clockPartitioning (simulation): time 7.464e-05/0.5345, allocations: 41.69 kB / 0.8681 GB, free: 14.39 MB / 0.5417 GB Notification: Performance of preOpt findStateOrder (simulation): time 7.614e-06/0.5345, allocations: 0 / 0.8681 GB, free: 14.39 MB / 0.5417 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 8.946e-06/0.5345, allocations: 0 / 0.8681 GB, free: 14.39 MB / 0.5417 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.328e-06/0.5345, allocations: 0 / 0.8681 GB, free: 14.39 MB / 0.5417 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0001561/0.5347, allocations: 130.3 kB / 0.8682 GB, free: 14.23 MB / 0.5417 GB Notification: Performance of preOpt comSubExp (simulation): time 7.133e-05/0.5348, allocations: 42.52 kB / 0.8683 GB, free: 14.18 MB / 0.5417 GB Notification: Performance of preOpt resolveLoops (simulation): time 2.791e-05/0.5348, allocations: 16.81 kB / 0.8683 GB, free: 14.16 MB / 0.5417 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0001309/0.535, allocations: 89.09 kB / 0.8684 GB, free: 14.05 MB / 0.5417 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.835e-05/0.535, allocations: 34.69 kB / 0.8684 GB, free: 14.01 MB / 0.5417 GB Notification: Performance of pre-optimization done (n=5): time 1.393e-06/0.535, allocations: 0 / 0.8684 GB, free: 14.01 MB / 0.5417 GB Notification: Performance of matching and sorting (n=5): time 0.03448/0.5695, allocations: 1.484 MB / 0.8699 GB, free: 12.52 MB / 0.5417 GB Notification: Performance of inlineWhenForInitialization (initialization): time 3.534e-05/0.5696, allocations: 51.41 kB / 0.8699 GB, free: 12.45 MB / 0.5417 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 8.45e-05/0.5697, allocations: 92.98 kB / 0.87 GB, free: 12.36 MB / 0.5417 GB Notification: Performance of collectPreVariables (initialization): time 1.657e-05/0.5697, allocations: 29.64 kB / 0.87 GB, free: 12.32 MB / 0.5417 GB Notification: Performance of collectInitialEqns (initialization): time 3.332e-05/0.5697, allocations: 84.27 kB / 0.8701 GB, free: 12.23 MB / 0.5417 GB Notification: Performance of collectInitialBindings (initialization): time 3.94e-05/0.5698, allocations: 15.81 kB / 0.8701 GB, free: 12.22 MB / 0.5417 GB Notification: Performance of simplifyInitialFunctions (initialization): time 7.063e-06/0.5698, allocations: 0 / 0.8701 GB, free: 12.22 MB / 0.5417 GB Notification: Performance of setup shared object (initialization): time 0.0001098/0.5699, allocations: 314.8 kB / 0.8704 GB, free: 11.9 MB / 0.5417 GB Notification: Performance of preBalanceInitialSystem (initialization): time 2.291e-05/0.5699, allocations: 8 kB / 0.8704 GB, free: 11.89 MB / 0.5417 GB Notification: Performance of partitionIndependentBlocks (initialization): time 1.743e-05/0.57, allocations: 4 kB / 0.8704 GB, free: 11.89 MB / 0.5417 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.03414/0.6041, allocations: 1.456 MB / 0.8719 GB, free: 10.43 MB / 0.5417 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 8.987e-06/0.6042, allocations: 0 / 0.8719 GB, free: 10.43 MB / 0.5417 GB Notification: Performance of matching and sorting (n=5) (initialization): time 0.034/0.6382, allocations: 1.488 MB / 0.8733 GB, free: 8.938 MB / 0.5417 GB Notification: Performance of prepare postOptimizeDAE: time 2.699e-05/0.6383, allocations: 7.953 kB / 0.8733 GB, free: 8.93 MB / 0.5417 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.326e-06/0.6383, allocations: 4 kB / 0.8733 GB, free: 8.926 MB / 0.5417 GB Notification: Performance of postOpt tearingSystem (initialization): time 2.068e-05/0.6383, allocations: 0 / 0.8733 GB, free: 8.926 MB / 0.5417 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 8.924e-05/0.6384, allocations: 11.94 kB / 0.8733 GB, free: 8.914 MB / 0.5417 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 8.716e-06/0.6384, allocations: 4 kB / 0.8733 GB, free: 8.91 MB / 0.5417 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 3.666e-05/0.6385, allocations: 11.84 kB / 0.8733 GB, free: 8.898 MB / 0.5417 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 7.875e-06/0.6385, allocations: 0 / 0.8733 GB, free: 8.898 MB / 0.5417 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 (5): * Single equations (assignments): 5 * 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.69e-05/0.6386, allocations: 104.9 kB / 0.8734 GB, free: 8.789 MB / 0.5417 GB Notification: Performance of postOpt createAliasVarsForOutputStates (simulation): time 0.03435/0.6729, allocations: 1.492 MB / 0.8749 GB, free: 7.289 MB / 0.5417 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.614e-05/0.673, allocations: 7.938 kB / 0.8749 GB, free: 7.281 MB / 0.5417 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.03398/0.707, allocations: 1.516 MB / 0.8764 GB, free: 5.762 MB / 0.5417 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.094e-05/0.707, allocations: 4 kB / 0.8764 GB, free: 5.758 MB / 0.5417 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 8.025e-06/0.707, allocations: 0 / 0.8764 GB, free: 5.758 MB / 0.5417 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.602e-06/0.7071, allocations: 3.984 kB / 0.8764 GB, free: 5.754 MB / 0.5417 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.000133/0.7072, allocations: 130.2 kB / 0.8765 GB, free: 5.59 MB / 0.5417 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.518e-06/0.7072, allocations: 4 kB / 0.8765 GB, free: 5.586 MB / 0.5417 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 6.927e-05/0.7073, allocations: 15.92 kB / 0.8765 GB, free: 5.57 MB / 0.5417 GB Notification: Performance of postOpt tearingSystem (simulation): time 6.702e-06/0.7073, allocations: 0 / 0.8765 GB, free: 5.57 MB / 0.5417 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.228e-05/0.7073, allocations: 7.953 kB / 0.8766 GB, free: 5.562 MB / 0.5417 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.815e-06/0.7073, allocations: 0 / 0.8766 GB, free: 5.562 MB / 0.5417 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.296e-06/0.7073, allocations: 0 / 0.8766 GB, free: 5.562 MB / 0.5417 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.03389/0.7412, allocations: 1.523 MB / 0.878 GB, free: 4.02 MB / 0.5417 GB Notification: Performance of postOpt removeConstants (simulation): time 3.862e-05/0.7413, allocations: 81.02 kB / 0.8781 GB, free: 3.922 MB / 0.5417 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.639e-05/0.7413, allocations: 0 / 0.8781 GB, free: 3.922 MB / 0.5417 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 2.762e-05/0.7414, allocations: 3.953 kB / 0.8781 GB, free: 3.918 MB / 0.5417 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 2.37e-05/0.7414, allocations: 4 kB / 0.8781 GB, free: 3.914 MB / 0.5417 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 7.595e-06/0.7414, allocations: 3.984 kB / 0.8781 GB, free: 3.91 MB / 0.5417 GB Notification: Performance of sorting global known variables: time 4.143e-05/0.7415, allocations: 87.28 kB / 0.8782 GB, free: 3.824 MB / 0.5417 GB Notification: Performance of sort global known variables: time 1.3e-07/0.7415, allocations: 0 / 0.8782 GB, free: 3.824 MB / 0.5417 GB Notification: Performance of remove unused functions: time 0.0003154/0.7418, allocations: 47.94 kB / 0.8783 GB, free: 3.777 MB / 0.5417 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 (6): * Single equations (assignments): 6 * 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.03413/0.7759, allocations: 2.115 MB / 0.8803 GB, free: 1.633 MB / 0.5417 GB Notification: Performance of simCode: created initialization part: time 0.0001041/0.7761, allocations: 23.94 kB / 0.8803 GB, free: 1.609 MB / 0.5417 GB Notification: Performance of simCode: created event and clocks part: time 2.575e-06/0.7761, allocations: 7.938 kB / 0.8804 GB, free: 1.602 MB / 0.5417 GB Notification: Performance of simCode: created simulation system equations: time 2.455e-05/0.7761, allocations: 16 kB / 0.8804 GB, free: 1.586 MB / 0.5417 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001245/0.7763, allocations: 3.953 kB / 0.8804 GB, free: 1.582 MB / 0.5417 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0003416/0.7766, allocations: 117.5 kB / 0.8805 GB, free: 1.43 MB / 0.5417 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002122/0.7768, allocations: 0.6807 MB / 0.8811 GB, free: 0.7227 MB / 0.5417 GB Notification: Performance of simCode: alias equations: time 6.143e-05/0.7769, allocations: 15.36 kB / 0.8812 GB, free: 0.7109 MB / 0.5417 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 3.338e-05/0.7769, allocations: 15.44 kB / 0.8812 GB, free: 0.6953 MB / 0.5417 GB Notification: Performance of SimCode: time 3.4e-07/0.7769, allocations: 0 / 0.8812 GB, free: 0.6953 MB / 0.5417 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.01894/0.7959, allocations: 1.531 MB / 0.8827 GB, free: 15.18 MB / 0.5573 GB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0002077/0.7961, allocations: 163.1 kB / 0.8828 GB, free: 14.98 MB / 0.5573 GB Notification: Performance of buildModelFMU: Generate platform static: time 1.6/2.396, allocations: 0 / 0.8828 GB, free: 14.98 MB / 0.5573 GB (rm -f BuildingSystems_BuildingSystems.HAM.ConvectiveHeatTransfer.Examples.AlphaGap.pipe ; mkfifo BuildingSystems_BuildingSystems.HAM.ConvectiveHeatTransfer.Examples.AlphaGap.pipe ; head -c 1048576 < BuildingSystems_BuildingSystems.HAM.ConvectiveHeatTransfer.Examples.AlphaGap.pipe >> ../files/BuildingSystems_BuildingSystems.HAM.ConvectiveHeatTransfer.Examples.AlphaGap.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator --tempDir=temp_BuildingSystems_BuildingSystems_HAM_ConvectiveHeatTransfer_Examples_AlphaGap_fmu --startTime=0 --stopTime=3600 --timeout=50 --tolerance=1e-06 BuildingSystems_BuildingSystems_HAM_ConvectiveHeatTransfer_Examples_AlphaGap.fmu > BuildingSystems_BuildingSystems.HAM.ConvectiveHeatTransfer.Examples.AlphaGap.pipe 2>&1)