Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr BuildingSystems_BuildingSystems.Utilities.Math.Examples.Average.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.Utilities.Math.Examples.Average,fileNamePrefix="BuildingSystems_BuildingSystems_Utilities_Math_Examples_Average",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(BuildingSystems.Utilities.Math.Examples.Average,fileNamePrefix="BuildingSystems_BuildingSystems_Utilities_Math_Examples_Average",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.887/0.887, allocations: 143.4 MB / 158.3 MB, free: 5.777 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.001165/0.001165, allocations: 181 kB / 191.5 MB, free: 5.746 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.574/1.574, allocations: 223.1 MB / 447.7 MB, free: 4.812 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.001039/0.001039, allocations: 92.33 kB / 0.5187 GB, free: 1.164 MB / 410.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/NcDataReader2 2.5.1-master/package.mo): time 0.001771/0.001771, allocations: 275.1 kB / 0.6005 GB, free: 48.74 MB / 410.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0004569/0.0004568, allocations: 17.22 kB / 0.6929 GB, free: 59.49 MB / 442.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1923/0.1927, allocations: 82.79 MB / 0.7738 GB, free: 13.75 MB / 458.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.1597/0.3525, allocations: 108.9 MB / 0.8801 GB, free: 0.75 MB / 0.5417 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.000279/0.3529, allocations: 71.97 kB / 0.8801 GB, free: 0.6797 MB / 0.5417 GB Notification: Performance of FrontEnd - DAE generated: time 0.3881/0.741, allocations: 1.126 MB / 0.8812 GB, free: 109.2 MB / 0.5417 GB Notification: Performance of FrontEnd: time 2.766e-06/0.7411, allocations: 0.9062 kB / 0.8812 GB, free: 109.2 MB / 0.5417 GB Notification: Performance of Transformations before backend: time 1.131e-05/0.7411, allocations: 1.25 kB / 0.8813 GB, free: 109.2 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: 9 * Number of variables: 9 Notification: Performance of Generate backend data structure: time 0.000461/0.7415, allocations: 386.9 kB / 0.8816 GB, free: 108.9 MB / 0.5417 GB Notification: Performance of prepare preOptimizeDAE: time 5.024e-05/0.7416, allocations: 9.938 kB / 0.8816 GB, free: 108.9 MB / 0.5417 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 5.781e-05/0.7417, allocations: 36.22 kB / 0.8817 GB, free: 108.8 MB / 0.5417 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.45e-05/0.7417, allocations: 7.875 kB / 0.8817 GB, free: 108.8 MB / 0.5417 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001661/0.7419, allocations: 184.5 kB / 0.8818 GB, free: 108.6 MB / 0.5417 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.653e-05/0.7419, allocations: 9.891 kB / 0.8819 GB, free: 108.6 MB / 0.5417 GB Notification: Performance of preOpt expandDerOperator (simulation): time 1.323e-05/0.7419, allocations: 8.672 kB / 0.8819 GB, free: 108.6 MB / 0.5417 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002835/0.7422, allocations: 94.98 kB / 0.882 GB, free: 108.6 MB / 0.5417 GB Notification: Performance of preOpt findStateOrder (simulation): time 8.917e-06/0.7422, allocations: 0 / 0.882 GB, free: 108.6 MB / 0.5417 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.46e-05/0.7423, allocations: 4.312 kB / 0.882 GB, free: 108.6 MB / 0.5417 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.17e-06/0.7423, allocations: 0.8125 kB / 0.882 GB, free: 108.6 MB / 0.5417 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.000337/0.7426, allocations: 104.1 kB / 0.8821 GB, free: 108.6 MB / 0.5417 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0005117/0.7431, allocations: 342.7 kB / 0.8824 GB, free: 108.3 MB / 0.5417 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0002022/0.7433, allocations: 76.08 kB / 0.8825 GB, free: 108.3 MB / 0.5417 GB Notification: Performance of preOpt evalFunc (simulation): time 3.895e-05/0.7434, allocations: 3.891 kB / 0.8825 GB, free: 108.3 MB / 0.5417 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.841e-05/0.7434, allocations: 34 kB / 0.8825 GB, free: 108.3 MB / 0.5417 GB Notification: Performance of pre-optimization done (n=3): time 9.82e-07/0.7434, allocations: 0 / 0.8825 GB, free: 108.3 MB / 0.5417 GB Notification: Performance of matching and sorting (n=3): time 0.0005486/0.744, allocations: 173.3 kB / 0.8827 GB, free: 108.2 MB / 0.5417 GB Notification: Performance of inlineWhenForInitialization (initialization): time 3.435e-05/0.744, allocations: 58.28 kB / 0.8827 GB, free: 108.2 MB / 0.5417 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 5.981e-05/0.7441, allocations: 101.3 kB / 0.8828 GB, free: 108.1 MB / 0.5417 GB Notification: Performance of collectPreVariables (initialization): time 1.271e-05/0.7441, allocations: 25.7 kB / 0.8828 GB, free: 108 MB / 0.5417 GB Notification: Performance of collectInitialEqns (initialization): time 3.625e-05/0.7442, allocations: 97.78 kB / 0.8829 GB, free: 107.9 MB / 0.5417 GB Notification: Performance of collectInitialBindings (initialization): time 1.632e-05/0.7442, allocations: 8.531 kB / 0.8829 GB, free: 107.9 MB / 0.5417 GB Notification: Performance of simplifyInitialFunctions (initialization): time 3.937e-06/0.7442, allocations: 0 / 0.8829 GB, free: 107.9 MB / 0.5417 GB Notification: Performance of setup shared object (initialization): time 5.361e-05/0.7442, allocations: 324.3 kB / 0.8832 GB, free: 107.6 MB / 0.5417 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001465/0.7444, allocations: 44.19 kB / 0.8833 GB, free: 107.6 MB / 0.5417 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001327/0.7445, allocations: 46.59 kB / 0.8833 GB, free: 107.6 MB / 0.5417 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001392/0.7447, allocations: 45.28 kB / 0.8834 GB, free: 107.6 MB / 0.5417 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.713e-06/0.7447, allocations: 0 / 0.8834 GB, free: 107.6 MB / 0.5417 GB Notification: Performance of matching and sorting (n=3) (initialization): time 0.0003056/0.745, allocations: 127.3 kB / 0.8835 GB, free: 107.6 MB / 0.5417 GB Notification: Performance of prepare postOptimizeDAE: time 1.828e-05/0.745, allocations: 6.469 kB / 0.8835 GB, free: 107.6 MB / 0.5417 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.939e-06/0.745, allocations: 4 kB / 0.8835 GB, free: 107.6 MB / 0.5417 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.61e-05/0.7451, allocations: 2.969 kB / 0.8835 GB, free: 107.6 MB / 0.5417 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001315/0.7452, allocations: 22.7 kB / 0.8835 GB, free: 107.6 MB / 0.5417 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 5.611e-06/0.7452, allocations: 3.938 kB / 0.8835 GB, free: 107.6 MB / 0.5417 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 8.375e-05/0.7453, allocations: 17.41 kB / 0.8836 GB, free: 107.6 MB / 0.5417 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.758e-05/0.7453, allocations: 0 / 0.8836 GB, free: 107.6 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 () * Number of clocked 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.644e-05/0.7454, allocations: 124.4 kB / 0.8837 GB, free: 107.4 MB / 0.5417 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.624e-05/0.7454, allocations: 9.562 kB / 0.8837 GB, free: 107.4 MB / 0.5417 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0003691/0.7458, allocations: 134.7 kB / 0.8838 GB, free: 107.4 MB / 0.5417 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.304e-06/0.7458, allocations: 0 / 0.8838 GB, free: 107.4 MB / 0.5417 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.279e-06/0.7458, allocations: 1.125 kB / 0.8838 GB, free: 107.4 MB / 0.5417 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.444e-06/0.7458, allocations: 2.875 kB / 0.8838 GB, free: 107.4 MB / 0.5417 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001336/0.746, allocations: 180.1 kB / 0.884 GB, free: 107.2 MB / 0.5417 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.886e-06/0.746, allocations: 1.406 kB / 0.884 GB, free: 107.2 MB / 0.5417 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.000102/0.7461, allocations: 28.45 kB / 0.884 GB, free: 107.2 MB / 0.5417 GB Notification: Performance of postOpt tearingSystem (simulation): time 1.633e-06/0.7461, allocations: 0 / 0.884 GB, free: 107.2 MB / 0.5417 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.053e-05/0.7461, allocations: 2.562 kB / 0.884 GB, free: 107.2 MB / 0.5417 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.394e-06/0.7461, allocations: 4.938 kB / 0.884 GB, free: 107.2 MB / 0.5417 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.012e-06/0.7461, allocations: 0 / 0.884 GB, free: 107.2 MB / 0.5417 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0003292/0.7465, allocations: 220.7 kB / 0.8842 GB, free: 107.1 MB / 0.5417 GB Notification: Performance of postOpt removeConstants (simulation): time 2.491e-05/0.7465, allocations: 83.67 kB / 0.8843 GB, free: 107 MB / 0.5417 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.545e-05/0.7465, allocations: 3.938 kB / 0.8843 GB, free: 107 MB / 0.5417 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001097/0.7466, allocations: 27.25 kB / 0.8843 GB, free: 107 MB / 0.5417 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.34e-05/0.7467, allocations: 0 / 0.8843 GB, free: 107 MB / 0.5417 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 6.963e-06/0.7467, allocations: 3 kB / 0.8843 GB, free: 107 MB / 0.5417 GB Notification: Performance of sorting global known variables: time 3.257e-05/0.7467, allocations: 90.97 kB / 0.8844 GB, free: 106.9 MB / 0.5417 GB Notification: Performance of sort global known variables: time 1.3e-07/0.7467, allocations: 0 / 0.8844 GB, free: 106.9 MB / 0.5417 GB Notification: Performance of remove unused functions: time 0.0002125/0.747, allocations: 14.91 kB / 0.8844 GB, free: 106.9 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 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (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 Backend phase and start with SimCode phase: time 0.0005845/0.7476, allocations: 0.7702 MB / 0.8852 GB, free: 106.2 MB / 0.5417 GB Notification: Performance of simCode: created initialization part: time 0.0003278/0.7479, allocations: 98.44 kB / 0.8853 GB, free: 106.2 MB / 0.5417 GB Notification: Performance of simCode: created event and clocks part: time 2.084e-06/0.7479, allocations: 0 / 0.8853 GB, free: 106.2 MB / 0.5417 GB Notification: Performance of simCode: created simulation system equations: time 0.0001499/0.7481, allocations: 51.77 kB / 0.8853 GB, free: 106.2 MB / 0.5417 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001649/0.7482, allocations: 12.41 kB / 0.8854 GB, free: 106.2 MB / 0.5417 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.00103/0.7493, allocations: 0.5688 MB / 0.8859 GB, free: 105.8 MB / 0.5417 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001474/0.7494, allocations: 0.6937 MB / 0.8866 GB, free: 105.1 MB / 0.5417 GB Notification: Performance of simCode: alias equations: time 3.978e-05/0.7495, allocations: 2.719 kB / 0.8866 GB, free: 105.1 MB / 0.5417 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 4.252e-05/0.7495, allocations: 24.16 kB / 0.8866 GB, free: 105.1 MB / 0.5417 GB Notification: Performance of SimCode: time 3.81e-07/0.7495, allocations: 0 / 0.8866 GB, free: 105.1 MB / 0.5417 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.01179/0.7613, allocations: 1.478 MB / 0.8881 GB, free: 105 MB / 0.5417 GB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001364/0.7615, allocations: 174.5 kB / 0.8882 GB, free: 104.7 MB / 0.5417 GB Notification: Performance of buildModelFMU: Generate platform static: time 1.594/2.356, allocations: 0 / 0.8882 GB, free: 104.7 MB / 0.5417 GB (rm -f BuildingSystems_BuildingSystems.Utilities.Math.Examples.Average.pipe ; mkfifo BuildingSystems_BuildingSystems.Utilities.Math.Examples.Average.pipe ; head -c 1048576 < BuildingSystems_BuildingSystems.Utilities.Math.Examples.Average.pipe >> ../files/BuildingSystems_BuildingSystems.Utilities.Math.Examples.Average.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator --tempDir=temp_BuildingSystems_BuildingSystems_Utilities_Math_Examples_Average_fmu --startTime=0 --stopTime=1 --timeout=50 --tolerance=1e-06 BuildingSystems_BuildingSystems_Utilities_Math_Examples_Average.fmu > BuildingSystems_BuildingSystems.Utilities.Math.Examples.Average.pipe 2>&1)