Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr BuildingSystems_BuildingSystems.Fluid.BaseClasses.FlowModels.Validation.BasicFlowFunction_dp_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_dp_DerivativeCheck,tolerance=1e-08,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="BuildingSystems_BuildingSystems.Fluid.BaseClasses.FlowModels.Validation.BasicFlowFunction_dp_DerivativeCheck") translateModel(BuildingSystems.Fluid.BaseClasses.FlowModels.Validation.BasicFlowFunction_dp_DerivativeCheck,tolerance=1e-08,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="BuildingSystems_BuildingSystems.Fluid.BaseClasses.FlowModels.Validation.BasicFlowFunction_dp_DerivativeCheck") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001046/0.001046, allocations: 111.3 kB / 15.23 MB, free: 0.6406 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.001057/0.001057, allocations: 190.8 kB / 16.14 MB, free: 6.707 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.295/1.295, allocations: 222.9 MB / 239.8 MB, free: 4.598 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/NcDataReader2 2.5.1-master/package.mo): time 0.002009/0.002009, allocations: 294.7 kB / 290.2 MB, free: 2.199 MB / 238.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/BuildingSystems 2.0.0-master/package.mo): time 0.9725/0.9725, allocations: 169.2 MB / 0.4977 GB, free: 14.13 MB / 382.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001671/0.001671, allocations: 94.28 kB / 0.5945 GB, free: 28.17 MB / 430.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1706/0.1723, allocations: 86.98 MB / 0.6794 GB, free: 1.145 MB / 478.1 MB Notification: Performance of NFInst.instantiate(BuildingSystems.Fluid.BaseClasses.FlowModels.Validation.BasicFlowFunction_dp_DerivativeCheck): time 0.002343/0.1746, allocations: 1.325 MB / 0.6807 GB, free: 15.82 MB / 494.1 MB Notification: Performance of NFInst.instExpressions: time 0.001034/0.1757, allocations: 0.6299 MB / 0.6814 GB, free: 15.19 MB / 494.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 1.594e-05/0.1757, allocations: 0 / 0.6814 GB, free: 15.19 MB / 494.1 MB Notification: Performance of NFTyping.typeComponents: time 1.845e-05/0.1757, allocations: 1.719 kB / 0.6814 GB, free: 15.19 MB / 494.1 MB Notification: Performance of NFTyping.typeBindings: time 4.875e-05/0.1758, allocations: 4 kB / 0.6814 GB, free: 15.19 MB / 494.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0004488/0.1763, allocations: 124.2 kB / 0.6815 GB, free: 15.07 MB / 494.1 MB Notification: Performance of NFFlatten.flatten: time 4.472e-05/0.1763, allocations: 15.88 kB / 0.6815 GB, free: 15.05 MB / 494.1 MB Notification: Performance of NFFlatten.resolveConnections: time 4.418e-05/0.1764, allocations: 4.672 kB / 0.6815 GB, free: 15.05 MB / 494.1 MB Notification: Performance of NFEvalConstants.evaluate: time 3.81e-05/0.1764, allocations: 11.98 kB / 0.6815 GB, free: 15.04 MB / 494.1 MB Notification: Performance of NFSimplifyModel.simplify: time 4.608e-05/0.1765, allocations: 8.812 kB / 0.6815 GB, free: 15.03 MB / 494.1 MB Notification: Performance of NFPackage.collectConstants: time 1.195e-05/0.1765, allocations: 0 / 0.6815 GB, free: 15.03 MB / 494.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.000494/0.177, allocations: 347.9 kB / 0.6818 GB, free: 14.69 MB / 494.1 MB Notification: Performance of NFScalarize.scalarize: time 1.228e-05/0.177, allocations: 5.234 kB / 0.6819 GB, free: 14.68 MB / 494.1 MB Notification: Performance of NFVerifyModel.verify: time 2.89e-05/0.177, allocations: 11.94 kB / 0.6819 GB, free: 14.67 MB / 494.1 MB Notification: Performance of NFConvertDAE.convert: time 0.000256/0.1773, allocations: 140 kB / 0.682 GB, free: 14.54 MB / 494.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.328e-06/0.1773, allocations: 3.938 kB / 0.682 GB, free: 14.53 MB / 494.1 MB Notification: Performance of FrontEnd: time 7.92e-07/0.1773, allocations: 0.8125 kB / 0.682 GB, free: 14.53 MB / 494.1 MB Notification: Performance of Transformations before backend: time 4.328e-06/0.1773, allocations: 0 / 0.682 GB, free: 14.53 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.0004028/0.1777, allocations: 363.5 kB / 0.6823 GB, free: 14.12 MB / 494.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.801e-05/0.1778, allocations: 12.03 kB / 0.6824 GB, free: 14.11 MB / 494.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.524e-05/0.1778, allocations: 4.844 kB / 0.6824 GB, free: 14.11 MB / 494.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001125/0.1779, allocations: 160.4 kB / 0.6825 GB, free: 13.91 MB / 494.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 8.997e-06/0.178, allocations: 4.375 kB / 0.6825 GB, free: 13.91 MB / 494.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 2.021e-05/0.178, allocations: 4.375 kB / 0.6825 GB, free: 13.91 MB / 494.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.000104/0.1781, allocations: 42.23 kB / 0.6826 GB, free: 13.86 MB / 494.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 6.893e-06/0.1781, allocations: 192 / 0.6826 GB, free: 13.86 MB / 494.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.289e-05/0.1781, allocations: 7.938 kB / 0.6826 GB, free: 13.85 MB / 494.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.759e-06/0.1781, allocations: 4 kB / 0.6826 GB, free: 13.85 MB / 494.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 4.077e-05/0.1782, allocations: 15.92 kB / 0.6826 GB, free: 13.83 MB / 494.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0001579/0.1783, allocations: 161.7 kB / 0.6827 GB, free: 13.62 MB / 494.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0001806/0.1785, allocations: 46.5 kB / 0.6828 GB, free: 13.57 MB / 494.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 3.27e-05/0.1786, allocations: 16.86 kB / 0.6828 GB, free: 13.55 MB / 494.1 MB Notification: Performance of preOpt evalFunc (simulation): time 1.691e-05/0.1786, allocations: 0 / 0.6828 GB, free: 13.55 MB / 494.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.12e-05/0.1786, allocations: 38.56 kB / 0.6828 GB, free: 13.5 MB / 494.1 MB Notification: Performance of pre-optimization done (n=4): time 9.42e-07/0.1786, allocations: 0 / 0.6828 GB, free: 13.5 MB / 494.1 MB Notification: Performance of matching and sorting (n=6): time 0.0006304/0.1793, allocations: 310.2 kB / 0.6831 GB, free: 13.15 MB / 494.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.048e-05/0.1793, allocations: 55.34 kB / 0.6832 GB, free: 13.08 MB / 494.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 7.262e-05/0.1794, allocations: 93.86 kB / 0.6833 GB, free: 12.98 MB / 494.1 MB Notification: Performance of collectPreVariables (initialization): time 1.808e-05/0.1794, allocations: 29.7 kB / 0.6833 GB, free: 12.95 MB / 494.1 MB Notification: Performance of collectInitialEqns (initialization): time 4.286e-05/0.1795, allocations: 84.12 kB / 0.6834 GB, free: 12.86 MB / 494.1 MB Notification: Performance of collectInitialBindings (initialization): time 3.136e-05/0.1795, allocations: 23.72 kB / 0.6834 GB, free: 12.84 MB / 494.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 3.581e-05/0.1795, allocations: 21.66 kB / 0.6834 GB, free: 12.81 MB / 494.1 MB Notification: Performance of setup shared object (initialization): time 0.0001212/0.1797, allocations: 318.8 kB / 0.6837 GB, free: 12.49 MB / 494.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 2.622e-05/0.1797, allocations: 8 kB / 0.6837 GB, free: 12.48 MB / 494.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 2.195e-05/0.1797, allocations: 11.98 kB / 0.6838 GB, free: 12.47 MB / 494.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 6.151e-05/0.1798, allocations: 36.84 kB / 0.6838 GB, free: 12.43 MB / 494.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 8.82e-07/0.1798, allocations: 0 / 0.6838 GB, free: 12.43 MB / 494.1 MB Notification: Performance of matching and sorting (n=7) (initialization): time 0.0001055/0.1799, allocations: 69.61 kB / 0.6839 GB, free: 12.36 MB / 494.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.415e-05/0.1799, allocations: 11.94 kB / 0.6839 GB, free: 12.34 MB / 494.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.747e-06/0.1799, allocations: 0 / 0.6839 GB, free: 12.34 MB / 494.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.113e-05/0.18, allocations: 0 / 0.6839 GB, free: 12.34 MB / 494.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 5.286e-05/0.18, allocations: 16 kB / 0.6839 GB, free: 12.33 MB / 494.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 5.239e-06/0.18, allocations: 0 / 0.6839 GB, free: 12.33 MB / 494.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 1.742e-05/0.18, allocations: 0 / 0.6839 GB, free: 12.33 MB / 494.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.621e-06/0.1801, allocations: 3.938 kB / 0.6839 GB, free: 12.32 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 7.883e-05/0.1801, allocations: 118.4 kB / 0.684 GB, free: 12.2 MB / 494.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.363e-05/0.1802, allocations: 7.844 kB / 0.684 GB, free: 12.19 MB / 494.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001467/0.1803, allocations: 81.58 kB / 0.6841 GB, free: 12.11 MB / 494.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.924e-06/0.1803, allocations: 0 / 0.6841 GB, free: 12.11 MB / 494.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.831e-06/0.1803, allocations: 0 / 0.6841 GB, free: 12.11 MB / 494.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.906e-06/0.1803, allocations: 0.5156 kB / 0.6841 GB, free: 12.11 MB / 494.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0003231/0.1807, allocations: 307.4 kB / 0.6844 GB, free: 11.75 MB / 494.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.135e-06/0.1807, allocations: 7.922 kB / 0.6844 GB, free: 11.74 MB / 494.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 5.99e-05/0.1807, allocations: 12 kB / 0.6844 GB, free: 11.73 MB / 494.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.763e-06/0.1808, allocations: 0 / 0.6844 GB, free: 11.73 MB / 494.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 7.063e-06/0.1808, allocations: 192 / 0.6844 GB, free: 11.73 MB / 494.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 6.823e-06/0.1808, allocations: 12.03 kB / 0.6844 GB, free: 11.71 MB / 494.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.303e-06/0.1808, allocations: 0 / 0.6844 GB, free: 11.71 MB / 494.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001895/0.181, allocations: 180.3 kB / 0.6846 GB, free: 11.52 MB / 494.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001318/0.1811, allocations: 89.05 kB / 0.6847 GB, free: 11.41 MB / 494.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.14e-05/0.1811, allocations: 0 / 0.6847 GB, free: 11.41 MB / 494.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 7.422e-05/0.1812, allocations: 3.984 kB / 0.6847 GB, free: 11.41 MB / 494.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 1.844e-05/0.1812, allocations: 12 kB / 0.6847 GB, free: 11.4 MB / 494.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 6.221e-06/0.1813, allocations: 4 kB / 0.6847 GB, free: 11.39 MB / 494.1 MB Notification: Performance of sorting global known variables: time 3.638e-05/0.1813, allocations: 79.28 kB / 0.6848 GB, free: 11.32 MB / 494.1 MB Notification: Performance of sort global known variables: time 1.1e-07/0.1813, allocations: 0 / 0.6848 GB, free: 11.32 MB / 494.1 MB Notification: Performance of remove unused functions: time 0.0002458/0.1815, allocations: 20 kB / 0.6848 GB, free: 11.3 MB / 494.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 2 * Number of states: 1 (m_flow_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.0001789/0.1817, allocations: 127.1 kB / 0.6849 GB, free: 11.16 MB / 494.1 MB Notification: Performance of simCode: created initialization part: time 0.000104/0.1818, allocations: 31.98 kB / 0.6849 GB, free: 11.13 MB / 494.1 MB Notification: Performance of simCode: created event and clocks part: time 1.763e-06/0.1819, allocations: 4 kB / 0.6849 GB, free: 11.13 MB / 494.1 MB Notification: Performance of simCode: created simulation system equations: time 2.582e-05/0.1819, allocations: 19.94 kB / 0.685 GB, free: 11.11 MB / 494.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002191/0.1821, allocations: 11.94 kB / 0.685 GB, free: 11.1 MB / 494.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0003723/0.1825, allocations: 202.1 kB / 0.6852 GB, free: 10.87 MB / 494.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003638/0.1829, allocations: 0.6809 MB / 0.6858 GB, free: 10.16 MB / 494.1 MB Notification: Performance of simCode: alias equations: time 3.236e-05/0.1829, allocations: 7.938 kB / 0.6858 GB, free: 10.16 MB / 494.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 2.164e-05/0.1829, allocations: 11.44 kB / 0.6858 GB, free: 10.14 MB / 494.1 MB Notification: Performance of SimCode: time 3.2e-07/0.1829, allocations: 0 / 0.6858 GB, free: 10.14 MB / 494.1 MB Notification: Performance of Templates: time 0.002742/0.1857, allocations: 0.6116 MB / 0.6864 GB, free: 9.566 MB / 494.1 MB make -j1 -f BuildingSystems_BuildingSystems.Fluid.BaseClasses.FlowModels.Validation.BasicFlowFunction_dp_DerivativeCheck.makefile (rm -f BuildingSystems_BuildingSystems.Fluid.BaseClasses.FlowModels.Validation.BasicFlowFunction_dp_DerivativeCheck.pipe ; mkfifo BuildingSystems_BuildingSystems.Fluid.BaseClasses.FlowModels.Validation.BasicFlowFunction_dp_DerivativeCheck.pipe ; head -c 1048576 < BuildingSystems_BuildingSystems.Fluid.BaseClasses.FlowModels.Validation.BasicFlowFunction_dp_DerivativeCheck.pipe >> ../files/BuildingSystems_BuildingSystems.Fluid.BaseClasses.FlowModels.Validation.BasicFlowFunction_dp_DerivativeCheck.sim & ./BuildingSystems_BuildingSystems.Fluid.BaseClasses.FlowModels.Validation.BasicFlowFunction_dp_DerivativeCheck -abortSlowSimulation -alarm=480 -lv LOG_STATS > BuildingSystems_BuildingSystems.Fluid.BaseClasses.FlowModels.Validation.BasicFlowFunction_dp_DerivativeCheck.pipe 2>&1)