Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr BuildingSystems_BuildingSystems.Fluid.BaseClasses.FlowModels.Validation.BasicFlowFunction_m_flow_DerivativeCheck.conf.json 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/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/NcDataReader2 2.5.1-master/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/BuildingSystems 2.0.0-master/package.mo", uses=false) Using package BuildingSystems with version 2.0.0-beta (/home/hudson/saved_omc/libraries/.openmodelica/libraries/BuildingSystems 2.0.0-master/package.mo) Using package NcDataReader2 with version 2.5.1 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/NcDataReader2 2.5.1-master/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 ModelicaServices with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo) Running command: translateModel(BuildingSystems.Fluid.BaseClasses.FlowModels.Validation.BasicFlowFunction_m_flow_DerivativeCheck,tolerance=1e-08,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="BuildingSystems_BuildingSystems.Fluid.BaseClasses.FlowModels.Validation.BasicFlowFunction_m_flow_DerivativeCheck") translateModel(BuildingSystems.Fluid.BaseClasses.FlowModels.Validation.BasicFlowFunction_m_flow_DerivativeCheck,tolerance=1e-08,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="BuildingSystems_BuildingSystems.Fluid.BaseClasses.FlowModels.Validation.BasicFlowFunction_m_flow_DerivativeCheck") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001591/0.001591, allocations: 115.3 kB / 15.34 MB, free: 0.5156 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001937/0.001937, allocations: 190.3 kB / 16.25 MB, free: 6.637 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.352/1.352, allocations: 222.9 MB / 239.9 MB, free: 4.531 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/NcDataReader2 2.5.1-master/package.mo): time 0.001966/0.001966, allocations: 283 kB / 290.4 MB, free: 2.141 MB / 238.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/BuildingSystems 2.0.0-master/package.mo): time 0.9261/0.9261, allocations: 169.2 MB / 0.4978 GB, free: 14.09 MB / 382.1 MB Notification: Performance of FrontEnd - loaded program: time 0.002676/0.002676, allocations: 90.83 kB / 0.5947 GB, free: 28.34 MB / 430.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1684/0.1711, allocations: 86.99 MB / 0.6796 GB, free: 1.055 MB / 478.1 MB Notification: Performance of NFInst.instantiate(BuildingSystems.Fluid.BaseClasses.FlowModels.Validation.BasicFlowFunction_m_flow_DerivativeCheck): time 0.002292/0.1734, allocations: 1.333 MB / 0.6809 GB, free: 15.72 MB / 494.1 MB Notification: Performance of NFInst.instExpressions: time 0.0009622/0.1744, allocations: 0.6187 MB / 0.6815 GB, free: 15.11 MB / 494.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 1.917e-05/0.1744, allocations: 1.5 kB / 0.6815 GB, free: 15.11 MB / 494.1 MB Notification: Performance of NFTyping.typeComponents: time 1.785e-05/0.1744, allocations: 0 / 0.6815 GB, free: 15.11 MB / 494.1 MB Notification: Performance of NFTyping.typeBindings: time 3.402e-05/0.1745, allocations: 3.984 kB / 0.6815 GB, free: 15.1 MB / 494.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0004832/0.175, allocations: 135.3 kB / 0.6817 GB, free: 14.97 MB / 494.1 MB Notification: Performance of NFFlatten.flatten: time 4.329e-05/0.175, allocations: 15.94 kB / 0.6817 GB, free: 14.96 MB / 494.1 MB Notification: Performance of NFFlatten.resolveConnections: time 3.512e-05/0.1751, allocations: 8 kB / 0.6817 GB, free: 14.95 MB / 494.1 MB Notification: Performance of NFEvalConstants.evaluate: time 3.227e-05/0.1751, allocations: 15.91 kB / 0.6817 GB, free: 14.93 MB / 494.1 MB Notification: Performance of NFSimplifyModel.simplify: time 3.814e-05/0.1751, allocations: 8 kB / 0.6817 GB, free: 14.93 MB / 494.1 MB Notification: Performance of NFPackage.collectConstants: time 9.458e-06/0.1752, allocations: 0 / 0.6817 GB, free: 14.93 MB / 494.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.000472/0.1756, allocations: 339.3 kB / 0.682 GB, free: 14.59 MB / 494.1 MB Notification: Performance of NFScalarize.scalarize: time 1.338e-05/0.1757, allocations: 11.92 kB / 0.6821 GB, free: 14.58 MB / 494.1 MB Notification: Performance of NFVerifyModel.verify: time 2.357e-05/0.1757, allocations: 11.98 kB / 0.6821 GB, free: 14.57 MB / 494.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0002198/0.1759, allocations: 143.9 kB / 0.6822 GB, free: 14.43 MB / 494.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.206e-06/0.1759, allocations: 0 / 0.6822 GB, free: 14.43 MB / 494.1 MB Notification: Performance of FrontEnd: time 9.11e-07/0.1759, allocations: 0 / 0.6822 GB, free: 14.43 MB / 494.1 MB Notification: Performance of Transformations before backend: time 4.779e-06/0.1759, allocations: 0 / 0.6822 GB, free: 14.43 MB / 494.1 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 4 * Number of variables: 4 Notification: Performance of Generate backend data structure: time 0.0004042/0.1764, allocations: 367.4 kB / 0.6826 GB, free: 14.02 MB / 494.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.38e-05/0.1764, allocations: 12.03 kB / 0.6826 GB, free: 14.01 MB / 494.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.217e-05/0.1764, allocations: 4.844 kB / 0.6826 GB, free: 14 MB / 494.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001003/0.1765, allocations: 160.4 kB / 0.6827 GB, free: 13.81 MB / 494.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.11e-05/0.1766, allocations: 4.375 kB / 0.6827 GB, free: 13.8 MB / 494.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.718e-05/0.1766, allocations: 384 / 0.6827 GB, free: 13.8 MB / 494.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 9.682e-05/0.1767, allocations: 42.25 kB / 0.6828 GB, free: 13.76 MB / 494.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 7.444e-06/0.1767, allocations: 192 / 0.6828 GB, free: 13.76 MB / 494.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.035e-05/0.1767, allocations: 7.938 kB / 0.6828 GB, free: 13.75 MB / 494.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.607e-06/0.1767, allocations: 0 / 0.6828 GB, free: 13.75 MB / 494.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 3.714e-05/0.1768, allocations: 15.92 kB / 0.6828 GB, free: 13.73 MB / 494.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0001884/0.177, allocations: 157.7 kB / 0.6829 GB, free: 13.53 MB / 494.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0002188/0.1772, allocations: 42.56 kB / 0.683 GB, free: 13.48 MB / 494.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 4.215e-05/0.1772, allocations: 16.86 kB / 0.683 GB, free: 13.46 MB / 494.1 MB Notification: Performance of preOpt evalFunc (simulation): time 1.75e-05/0.1773, allocations: 0 / 0.683 GB, free: 13.46 MB / 494.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.801e-05/0.1773, allocations: 38.55 kB / 0.683 GB, free: 13.41 MB / 494.1 MB Notification: Performance of pre-optimization done (n=4): time 1.093e-06/0.1773, allocations: 4 kB / 0.683 GB, free: 13.41 MB / 494.1 MB Notification: Performance of matching and sorting (n=6): time 0.0005929/0.1779, allocations: 318.1 kB / 0.6833 GB, free: 13.05 MB / 494.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.234e-05/0.178, allocations: 55.41 kB / 0.6834 GB, free: 12.98 MB / 494.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 6.35e-05/0.178, allocations: 93.86 kB / 0.6835 GB, free: 12.88 MB / 494.1 MB Notification: Performance of collectPreVariables (initialization): time 1.352e-05/0.178, allocations: 25.7 kB / 0.6835 GB, free: 12.85 MB / 494.1 MB Notification: Performance of collectInitialEqns (initialization): time 2.996e-05/0.1781, allocations: 84.14 kB / 0.6836 GB, free: 12.76 MB / 494.1 MB Notification: Performance of collectInitialBindings (initialization): time 2.686e-05/0.1781, allocations: 23.7 kB / 0.6836 GB, free: 12.74 MB / 494.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 4.065e-05/0.1782, allocations: 17.72 kB / 0.6836 GB, free: 12.71 MB / 494.1 MB Notification: Performance of setup shared object (initialization): time 9.732e-05/0.1783, allocations: 318.8 kB / 0.6839 GB, free: 12.39 MB / 494.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 2.314e-05/0.1783, allocations: 7.984 kB / 0.6839 GB, free: 12.39 MB / 494.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 2.164e-05/0.1783, allocations: 12 kB / 0.6839 GB, free: 12.38 MB / 494.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 5.346e-05/0.1784, allocations: 32.86 kB / 0.684 GB, free: 12.34 MB / 494.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 7.02e-07/0.1784, allocations: 0 / 0.684 GB, free: 12.34 MB / 494.1 MB Notification: Performance of matching and sorting (n=7) (initialization): time 9.425e-05/0.1785, allocations: 69.61 kB / 0.684 GB, free: 12.27 MB / 494.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.096e-05/0.1785, allocations: 14.12 kB / 0.6841 GB, free: 12.25 MB / 494.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.747e-06/0.1785, allocations: 0 / 0.6841 GB, free: 12.25 MB / 494.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.077e-05/0.1785, allocations: 0 / 0.6841 GB, free: 12.25 MB / 494.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 5.015e-05/0.1786, allocations: 11.98 kB / 0.6841 GB, free: 12.24 MB / 494.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 5.37e-06/0.1786, allocations: 4.234 kB / 0.6841 GB, free: 12.24 MB / 494.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 1.708e-05/0.1786, allocations: 3.938 kB / 0.6841 GB, free: 12.23 MB / 494.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.041e-06/0.1786, allocations: 4 kB / 0.6841 GB, free: 12.23 MB / 494.1 MB 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 (7): * Single equations (assignments): 7 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of prepare postOptimizeDAE: time 6.209e-05/0.1787, allocations: 114.4 kB / 0.6842 GB, free: 12.11 MB / 494.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.421e-05/0.1787, allocations: 7.844 kB / 0.6842 GB, free: 12.1 MB / 494.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.00014/0.1789, allocations: 85.52 kB / 0.6843 GB, free: 12.01 MB / 494.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.603e-06/0.1789, allocations: 4 kB / 0.6843 GB, free: 12.01 MB / 494.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.276e-06/0.1789, allocations: 128 / 0.6843 GB, free: 12.01 MB / 494.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.978e-06/0.1789, allocations: 4 kB / 0.6843 GB, free: 12 MB / 494.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002801/0.1792, allocations: 311.4 kB / 0.6846 GB, free: 11.64 MB / 494.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.282e-06/0.1792, allocations: 0 / 0.6846 GB, free: 11.64 MB / 494.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 6.134e-05/0.1793, allocations: 15.98 kB / 0.6846 GB, free: 11.62 MB / 494.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.974e-06/0.1793, allocations: 0 / 0.6846 GB, free: 11.62 MB / 494.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 6.432e-06/0.1793, allocations: 32 / 0.6846 GB, free: 11.62 MB / 494.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.066e-06/0.1793, allocations: 7.984 kB / 0.6846 GB, free: 11.62 MB / 494.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 8.22e-07/0.1793, allocations: 4 kB / 0.6846 GB, free: 11.61 MB / 494.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.000171/0.1795, allocations: 172.3 kB / 0.6848 GB, free: 11.43 MB / 494.1 MB Notification: Performance of postOpt removeConstants (simulation): time 6.18e-05/0.1796, allocations: 92.97 kB / 0.6849 GB, free: 11.32 MB / 494.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.018e-05/0.1796, allocations: 4 kB / 0.6849 GB, free: 11.31 MB / 494.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 8.947e-05/0.1797, allocations: 0 / 0.6849 GB, free: 11.31 MB / 494.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 1.502e-05/0.1797, allocations: 12.05 kB / 0.6849 GB, free: 11.3 MB / 494.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.789e-06/0.1797, allocations: 0 / 0.6849 GB, free: 11.3 MB / 494.1 MB Notification: Performance of sorting global known variables: time 3.087e-05/0.1798, allocations: 79.28 kB / 0.685 GB, free: 11.22 MB / 494.1 MB Notification: Performance of sort global known variables: time 1e-07/0.1798, allocations: 0 / 0.685 GB, free: 11.22 MB / 494.1 MB Notification: Performance of remove unused functions: time 0.0002425/0.18, allocations: 24 kB / 0.685 GB, free: 11.2 MB / 494.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 2 * Number of states: 1 (dp_comp) * 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 (6): * Single equations (assignments): 6 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.0001698/0.1802, allocations: 119.2 kB / 0.6851 GB, free: 11.07 MB / 494.1 MB Notification: Performance of simCode: created initialization part: time 0.0001073/0.1803, allocations: 35.92 kB / 0.6851 GB, free: 11.04 MB / 494.1 MB Notification: Performance of simCode: created event and clocks part: time 1.894e-06/0.1803, allocations: 4 kB / 0.6851 GB, free: 11.04 MB / 494.1 MB Notification: Performance of simCode: created simulation system equations: time 2.626e-05/0.1804, allocations: 19.98 kB / 0.6851 GB, free: 11.02 MB / 494.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.000215/0.1806, allocations: 9.562 kB / 0.6852 GB, free: 11.01 MB / 494.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0003855/0.181, allocations: 209 kB / 0.6854 GB, free: 10.78 MB / 494.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.000228/0.1812, allocations: 0.6807 MB / 0.686 GB, free: 10.07 MB / 494.1 MB Notification: Performance of simCode: alias equations: time 3.033e-05/0.1813, allocations: 7.938 kB / 0.686 GB, free: 10.06 MB / 494.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 1.956e-05/0.1813, allocations: 11.44 kB / 0.686 GB, free: 10.05 MB / 494.1 MB Notification: Performance of SimCode: time 2.344e-06/0.1813, allocations: 0 / 0.686 GB, free: 10.05 MB / 494.1 MB Notification: Performance of Templates: time 0.002625/0.1839, allocations: 0.6568 MB / 0.6867 GB, free: 9.441 MB / 494.1 MB make -j1 -f BuildingSystems_BuildingSystems.Fluid.BaseClasses.FlowModels.Validation.BasicFlowFunction_m_flow_DerivativeCheck.makefile (rm -f BuildingSystems_BuildingSystems.Fluid.BaseClasses.FlowModels.Validation.BasicFlowFunction_m_flow_DerivativeCheck.pipe ; mkfifo BuildingSystems_BuildingSystems.Fluid.BaseClasses.FlowModels.Validation.BasicFlowFunction_m_flow_DerivativeCheck.pipe ; head -c 1048576 < BuildingSystems_BuildingSystems.Fluid.BaseClasses.FlowModels.Validation.BasicFlowFunction_m_flow_DerivativeCheck.pipe >> ../files/BuildingSystems_BuildingSystems.Fluid.BaseClasses.FlowModels.Validation.BasicFlowFunction_m_flow_DerivativeCheck.sim & ./BuildingSystems_BuildingSystems.Fluid.BaseClasses.FlowModels.Validation.BasicFlowFunction_m_flow_DerivativeCheck -abortSlowSimulation -alarm=480 -lv LOG_STATS > BuildingSystems_BuildingSystems.Fluid.BaseClasses.FlowModels.Validation.BasicFlowFunction_m_flow_DerivativeCheck.pipe 2>&1)