Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr BuildingSystems_BuildingSystems.Fluid.BaseClasses.FlowModels.Validation.BasicFlowFunction_m_flow_DerivativeCheck2.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_DerivativeCheck2,tolerance=1e-08,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="BuildingSystems_BuildingSystems.Fluid.BaseClasses.FlowModels.Validation.BasicFlowFunction_m_flow_DerivativeCheck2") translateModel(BuildingSystems.Fluid.BaseClasses.FlowModels.Validation.BasicFlowFunction_m_flow_DerivativeCheck2,tolerance=1e-08,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="BuildingSystems_BuildingSystems.Fluid.BaseClasses.FlowModels.Validation.BasicFlowFunction_m_flow_DerivativeCheck2") 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.001099/0.001099, allocations: 196.4 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.343/1.343, allocations: 222.9 MB / 239.8 MB, free: 4.602 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/NcDataReader2 2.5.1-master/package.mo): time 0.002157/0.002157, allocations: 275 kB / 290.2 MB, free: 2.219 MB / 238.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/BuildingSystems 2.0.0-master/package.mo): time 0.9342/0.9342, allocations: 169.2 MB / 0.4977 GB, free: 14.16 MB / 382.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001585/0.001585, allocations: 94.2 kB / 0.5945 GB, free: 28.36 MB / 430.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1666/0.1682, allocations: 86.99 MB / 0.6795 GB, free: 1.164 MB / 478.1 MB Notification: Performance of NFInst.instantiate(BuildingSystems.Fluid.BaseClasses.FlowModels.Validation.BasicFlowFunction_m_flow_DerivativeCheck2): time 0.00247/0.1707, allocations: 1.524 MB / 0.6809 GB, free: 15.64 MB / 494.1 MB Notification: Performance of NFInst.instExpressions: time 0.001028/0.1717, allocations: 0.6496 MB / 0.6816 GB, free: 14.99 MB / 494.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 2.407e-05/0.1718, allocations: 0.875 kB / 0.6816 GB, free: 14.99 MB / 494.1 MB Notification: Performance of NFTyping.typeComponents: time 3.626e-05/0.1718, allocations: 3.984 kB / 0.6816 GB, free: 14.99 MB / 494.1 MB Notification: Performance of NFTyping.typeBindings: time 4.504e-05/0.1719, allocations: 3.938 kB / 0.6816 GB, free: 14.98 MB / 494.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0004667/0.1724, allocations: 132.4 kB / 0.6817 GB, free: 14.86 MB / 494.1 MB Notification: Performance of NFFlatten.flatten: time 7.226e-05/0.1724, allocations: 51.84 kB / 0.6818 GB, free: 14.81 MB / 494.1 MB Notification: Performance of NFFlatten.resolveConnections: time 4.288e-05/0.1725, allocations: 8.656 kB / 0.6818 GB, free: 14.8 MB / 494.1 MB Notification: Performance of NFEvalConstants.evaluate: time 5.521e-05/0.1726, allocations: 16.61 kB / 0.6818 GB, free: 14.79 MB / 494.1 MB Notification: Performance of NFSimplifyModel.simplify: time 4.663e-05/0.1726, allocations: 31.84 kB / 0.6818 GB, free: 14.75 MB / 494.1 MB Notification: Performance of NFPackage.collectConstants: time 1.508e-05/0.1726, allocations: 8 kB / 0.6818 GB, free: 14.75 MB / 494.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0004376/0.1731, allocations: 347.3 kB / 0.6822 GB, free: 14.41 MB / 494.1 MB Notification: Performance of NFScalarize.scalarize: time 1.877e-05/0.1731, allocations: 7.984 kB / 0.6822 GB, free: 14.4 MB / 494.1 MB Notification: Performance of NFVerifyModel.verify: time 3.231e-05/0.1731, allocations: 23.86 kB / 0.6822 GB, free: 14.38 MB / 494.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0002838/0.1734, allocations: 179.8 kB / 0.6824 GB, free: 14.2 MB / 494.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.278e-06/0.1734, allocations: 3.938 kB / 0.6824 GB, free: 14.2 MB / 494.1 MB Notification: Performance of FrontEnd: time 9.51e-07/0.1735, allocations: 0 / 0.6824 GB, free: 14.2 MB / 494.1 MB Notification: Performance of Transformations before backend: time 3.787e-06/0.1735, allocations: 0 / 0.6824 GB, free: 14.2 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: 13 * Number of variables: 13 Notification: Performance of Generate backend data structure: time 0.000548/0.174, allocations: 395.3 kB / 0.6827 GB, free: 13.76 MB / 494.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.422e-05/0.1741, allocations: 8.031 kB / 0.6827 GB, free: 13.75 MB / 494.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.999e-05/0.1741, allocations: 12.78 kB / 0.6828 GB, free: 13.74 MB / 494.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001131/0.1742, allocations: 168.3 kB / 0.6829 GB, free: 13.54 MB / 494.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.654e-05/0.1742, allocations: 8.375 kB / 0.6829 GB, free: 13.53 MB / 494.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 2.08e-05/0.1743, allocations: 4.375 kB / 0.6829 GB, free: 13.52 MB / 494.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002301/0.1745, allocations: 82.2 kB / 0.683 GB, free: 13.44 MB / 494.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.215e-05/0.1745, allocations: 192 / 0.683 GB, free: 13.44 MB / 494.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.448e-05/0.1746, allocations: 11.88 kB / 0.683 GB, free: 13.43 MB / 494.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.34e-06/0.1746, allocations: 8 kB / 0.683 GB, free: 13.42 MB / 494.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002194/0.1748, allocations: 51.89 kB / 0.6831 GB, free: 13.37 MB / 494.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0005157/0.1753, allocations: 316.7 kB / 0.6834 GB, free: 13.01 MB / 494.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.000258/0.1756, allocations: 86.47 kB / 0.6835 GB, free: 12.91 MB / 494.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001069/0.1757, allocations: 28.84 kB / 0.6835 GB, free: 12.88 MB / 494.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.117e-05/0.1757, allocations: 3.984 kB / 0.6835 GB, free: 12.88 MB / 494.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.433e-05/0.1758, allocations: 30.56 kB / 0.6835 GB, free: 12.84 MB / 494.1 MB Notification: Performance of pre-optimization done (n=7): time 1.182e-06/0.1758, allocations: 0 / 0.6835 GB, free: 12.84 MB / 494.1 MB Notification: Performance of matching and sorting (n=11): time 0.00162/0.1774, allocations: 0.6462 MB / 0.6841 GB, free: 12.1 MB / 494.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.241e-05/0.1774, allocations: 51.41 kB / 0.6842 GB, free: 12.04 MB / 494.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 6.945e-05/0.1775, allocations: 109.8 kB / 0.6843 GB, free: 11.92 MB / 494.1 MB Notification: Performance of collectPreVariables (initialization): time 1.654e-05/0.1775, allocations: 29.7 kB / 0.6843 GB, free: 11.89 MB / 494.1 MB Notification: Performance of collectInitialEqns (initialization): time 3.584e-05/0.1776, allocations: 84.05 kB / 0.6844 GB, free: 11.8 MB / 494.1 MB Notification: Performance of collectInitialBindings (initialization): time 3.495e-05/0.1776, allocations: 43.39 kB / 0.6845 GB, free: 11.76 MB / 494.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 4.747e-05/0.1777, allocations: 33.7 kB / 0.6845 GB, free: 11.72 MB / 494.1 MB Notification: Performance of setup shared object (initialization): time 8.868e-05/0.1778, allocations: 310.8 kB / 0.6848 GB, free: 11.41 MB / 494.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.000128/0.1779, allocations: 35.97 kB / 0.6848 GB, free: 11.37 MB / 494.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001096/0.178, allocations: 31.98 kB / 0.6848 GB, free: 11.34 MB / 494.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002216/0.1782, allocations: 76.02 kB / 0.6849 GB, free: 11.27 MB / 494.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 8.61e-07/0.1782, allocations: 0 / 0.6849 GB, free: 11.27 MB / 494.1 MB Notification: Performance of matching and sorting (n=13) (initialization): time 0.0002921/0.1785, allocations: 117.7 kB / 0.685 GB, free: 11.14 MB / 494.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.345e-05/0.1786, allocations: 8 kB / 0.685 GB, free: 11.14 MB / 494.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.29e-06/0.1786, allocations: 3.984 kB / 0.685 GB, free: 11.13 MB / 494.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.124e-05/0.1786, allocations: 4.078 kB / 0.685 GB, free: 11.13 MB / 494.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001398/0.1787, allocations: 35.86 kB / 0.6851 GB, free: 11.09 MB / 494.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 5.049e-06/0.1788, allocations: 0 / 0.6851 GB, free: 11.09 MB / 494.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 6.317e-05/0.1788, allocations: 11.94 kB / 0.6851 GB, free: 11.08 MB / 494.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 9.498e-06/0.1788, allocations: 4 kB / 0.6851 GB, free: 11.08 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 (13): * Single equations (assignments): 13 * 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 8.123e-05/0.1789, allocations: 118.5 kB / 0.6852 GB, free: 10.95 MB / 494.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.013e-05/0.179, allocations: 4 kB / 0.6852 GB, free: 10.95 MB / 494.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0003422/0.1793, allocations: 125.5 kB / 0.6853 GB, free: 10.82 MB / 494.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.128e-06/0.1793, allocations: 0 / 0.6853 GB, free: 10.82 MB / 494.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.627e-06/0.1793, allocations: 3.938 kB / 0.6853 GB, free: 10.82 MB / 494.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.038e-06/0.1793, allocations: 7.938 kB / 0.6853 GB, free: 10.81 MB / 494.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0005226/0.1799, allocations: 386.4 kB / 0.6857 GB, free: 10.38 MB / 494.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.613e-06/0.1799, allocations: 0 / 0.6857 GB, free: 10.38 MB / 494.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001386/0.18, allocations: 27.98 kB / 0.6857 GB, free: 10.35 MB / 494.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 4.719e-06/0.18, allocations: 4 kB / 0.6857 GB, free: 10.34 MB / 494.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.195e-05/0.1801, allocations: 11.88 kB / 0.6858 GB, free: 10.33 MB / 494.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.645e-06/0.1801, allocations: 3.984 kB / 0.6858 GB, free: 10.33 MB / 494.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 8.61e-07/0.1801, allocations: 0 / 0.6858 GB, free: 10.33 MB / 494.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0004934/0.1806, allocations: 247.8 kB / 0.686 GB, free: 10.07 MB / 494.1 MB Notification: Performance of postOpt removeConstants (simulation): time 3.525e-05/0.1806, allocations: 85.05 kB / 0.6861 GB, free: 9.969 MB / 494.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.76e-05/0.1806, allocations: 7.875 kB / 0.6861 GB, free: 9.961 MB / 494.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001119/0.1808, allocations: 12.06 kB / 0.6861 GB, free: 9.949 MB / 494.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 1.938e-05/0.1808, allocations: 7.984 kB / 0.6861 GB, free: 9.941 MB / 494.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 9.047e-06/0.1808, allocations: 4 kB / 0.6861 GB, free: 9.938 MB / 494.1 MB Notification: Performance of sorting global known variables: time 3.426e-05/0.1808, allocations: 87.45 kB / 0.6862 GB, free: 9.852 MB / 494.1 MB Notification: Performance of sort global known variables: time 1.2e-07/0.1808, allocations: 0 / 0.6862 GB, free: 9.852 MB / 494.1 MB Notification: Performance of remove unused functions: time 0.0002659/0.1811, allocations: 28 kB / 0.6862 GB, free: 9.824 MB / 494.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 1 * Number of states: 2 (dp_comp,der_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 (11): * Single equations (assignments): 11 * 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.0002007/0.1813, allocations: 149.4 kB / 0.6864 GB, free: 9.672 MB / 494.1 MB Notification: Performance of simCode: created initialization part: time 0.0002991/0.1816, allocations: 87.89 kB / 0.6864 GB, free: 9.586 MB / 494.1 MB Notification: Performance of simCode: created event and clocks part: time 2.014e-06/0.1816, allocations: 0 / 0.6864 GB, free: 9.586 MB / 494.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0001302/0.1818, allocations: 47.91 kB / 0.6865 GB, free: 9.539 MB / 494.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002838/0.1821, allocations: 11.98 kB / 0.6865 GB, free: 9.527 MB / 494.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0005973/0.1827, allocations: 339.3 kB / 0.6868 GB, free: 9.164 MB / 494.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002383/0.1829, allocations: 0.6965 MB / 0.6875 GB, free: 8.441 MB / 494.1 MB Notification: Performance of simCode: alias equations: time 5.67e-05/0.183, allocations: 12.67 kB / 0.6875 GB, free: 8.43 MB / 494.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 3.672e-05/0.183, allocations: 15.42 kB / 0.6875 GB, free: 8.414 MB / 494.1 MB Notification: Performance of SimCode: time 3.21e-07/0.183, allocations: 0 / 0.6875 GB, free: 8.414 MB / 494.1 MB Notification: Performance of Templates: time 0.003116/0.1861, allocations: 1.106 MB / 0.6886 GB, free: 7.355 MB / 494.1 MB make -j1 -f BuildingSystems_BuildingSystems.Fluid.BaseClasses.FlowModels.Validation.BasicFlowFunction_m_flow_DerivativeCheck2.makefile (rm -f BuildingSystems_BuildingSystems.Fluid.BaseClasses.FlowModels.Validation.BasicFlowFunction_m_flow_DerivativeCheck2.pipe ; mkfifo BuildingSystems_BuildingSystems.Fluid.BaseClasses.FlowModels.Validation.BasicFlowFunction_m_flow_DerivativeCheck2.pipe ; head -c 1048576 < BuildingSystems_BuildingSystems.Fluid.BaseClasses.FlowModels.Validation.BasicFlowFunction_m_flow_DerivativeCheck2.pipe >> ../files/BuildingSystems_BuildingSystems.Fluid.BaseClasses.FlowModels.Validation.BasicFlowFunction_m_flow_DerivativeCheck2.sim & ./BuildingSystems_BuildingSystems.Fluid.BaseClasses.FlowModels.Validation.BasicFlowFunction_m_flow_DerivativeCheck2 -abortSlowSimulation -alarm=480 -lv LOG_STATS > BuildingSystems_BuildingSystems.Fluid.BaseClasses.FlowModels.Validation.BasicFlowFunction_m_flow_DerivativeCheck2.pipe 2>&1)