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.001409/0.001408, allocations: 108 kB / 15.61 MB, free: 152 kB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.0017/0.0017, allocations: 196.7 kB / 16.53 MB, free: 6.664 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.307/1.307, allocations: 222.9 MB / 240.2 MB, free: 4.379 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/NcDataReader2 2.5.1-master/package.mo): time 0.00199/0.00199, allocations: 275.1 kB / 290.7 MB, free: 1.984 MB / 238.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/BuildingSystems 2.0.0-master/package.mo): time 0.9164/0.9164, allocations: 169.3 MB / 0.4982 GB, free: 13.96 MB / 382.1 MB Notification: Performance of FrontEnd - loaded program: time 0.00279/0.00279, allocations: 95.23 kB / 0.5952 GB, free: 27.72 MB / 430.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1633/0.1661, allocations: 86.99 MB / 0.6802 GB, free: 0.7227 MB / 478.1 MB Notification: Performance of NFInst.instantiate(BuildingSystems.Fluid.BaseClasses.FlowModels.Validation.BasicFlowFunction_m_flow_DerivativeCheck): time 0.002216/0.1684, allocations: 1.265 MB / 0.6814 GB, free: 15.46 MB / 494.1 MB Notification: Performance of NFInst.instExpressions: time 0.0009378/0.1693, allocations: 0.6188 MB / 0.682 GB, free: 14.84 MB / 494.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 2.493e-05/0.1693, allocations: 0 / 0.682 GB, free: 14.84 MB / 494.1 MB Notification: Performance of NFTyping.typeComponents: time 1.778e-05/0.1694, allocations: 7.922 kB / 0.682 GB, free: 14.83 MB / 494.1 MB Notification: Performance of NFTyping.typeBindings: time 3.352e-05/0.1694, allocations: 4 kB / 0.682 GB, free: 14.83 MB / 494.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0004879/0.1699, allocations: 143.4 kB / 0.6822 GB, free: 14.69 MB / 494.1 MB Notification: Performance of NFFlatten.flatten: time 4.561e-05/0.17, allocations: 15.92 kB / 0.6822 GB, free: 14.67 MB / 494.1 MB Notification: Performance of NFFlatten.resolveConnections: time 4.079e-05/0.17, allocations: 7.984 kB / 0.6822 GB, free: 14.66 MB / 494.1 MB Notification: Performance of NFEvalConstants.evaluate: time 3.735e-05/0.1701, allocations: 15.88 kB / 0.6822 GB, free: 14.65 MB / 494.1 MB Notification: Performance of NFSimplifyModel.simplify: time 4.221e-05/0.1701, allocations: 4 kB / 0.6822 GB, free: 14.64 MB / 494.1 MB Notification: Performance of NFPackage.collectConstants: time 1.279e-05/0.1701, allocations: 0 / 0.6822 GB, free: 14.64 MB / 494.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0004854/0.1706, allocations: 351.3 kB / 0.6825 GB, free: 14.3 MB / 494.1 MB Notification: Performance of NFScalarize.scalarize: time 9.748e-06/0.1706, allocations: 0 / 0.6825 GB, free: 14.3 MB / 494.1 MB Notification: Performance of NFVerifyModel.verify: time 2.397e-05/0.1707, allocations: 15.94 kB / 0.6826 GB, free: 14.29 MB / 494.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0002453/0.1709, allocations: 144 kB / 0.6827 GB, free: 14.14 MB / 494.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.547e-06/0.1709, allocations: 0 / 0.6827 GB, free: 14.14 MB / 494.1 MB Notification: Performance of FrontEnd: time 1.303e-06/0.1709, allocations: 0 / 0.6827 GB, free: 14.14 MB / 494.1 MB Notification: Performance of Transformations before backend: time 4.659e-06/0.1709, allocations: 0 / 0.6827 GB, free: 14.14 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.0003865/0.1713, allocations: 363.4 kB / 0.683 GB, free: 13.74 MB / 494.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.349e-05/0.1714, allocations: 12.03 kB / 0.6831 GB, free: 13.73 MB / 494.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.329e-05/0.1714, allocations: 8.844 kB / 0.6831 GB, free: 13.72 MB / 494.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001104/0.1715, allocations: 168.3 kB / 0.6832 GB, free: 13.52 MB / 494.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.301e-05/0.1715, allocations: 4.375 kB / 0.6832 GB, free: 13.51 MB / 494.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 2.261e-05/0.1716, allocations: 4.375 kB / 0.6832 GB, free: 13.51 MB / 494.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 9.832e-05/0.1717, allocations: 38.25 kB / 0.6833 GB, free: 13.46 MB / 494.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 5.801e-06/0.1717, allocations: 192 / 0.6833 GB, free: 13.46 MB / 494.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.117e-05/0.1717, allocations: 7.938 kB / 0.6833 GB, free: 13.46 MB / 494.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.991e-06/0.1717, allocations: 0 / 0.6833 GB, free: 13.46 MB / 494.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 3.665e-05/0.1718, allocations: 11.98 kB / 0.6833 GB, free: 13.45 MB / 494.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0001547/0.1719, allocations: 153.7 kB / 0.6834 GB, free: 13.25 MB / 494.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0001692/0.1721, allocations: 50.55 kB / 0.6835 GB, free: 13.19 MB / 494.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 3.229e-05/0.1721, allocations: 16.86 kB / 0.6835 GB, free: 13.17 MB / 494.1 MB Notification: Performance of preOpt evalFunc (simulation): time 1.7e-05/0.1722, allocations: 96 / 0.6835 GB, free: 13.17 MB / 494.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.88e-05/0.1722, allocations: 38.55 kB / 0.6835 GB, free: 13.12 MB / 494.1 MB Notification: Performance of pre-optimization done (n=4): time 8.02e-07/0.1722, allocations: 0 / 0.6835 GB, free: 13.12 MB / 494.1 MB Notification: Performance of matching and sorting (n=6): time 0.0005699/0.1728, allocations: 314.4 kB / 0.6838 GB, free: 12.76 MB / 494.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 2.739e-05/0.1728, allocations: 55.41 kB / 0.6839 GB, free: 12.7 MB / 494.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 5.964e-05/0.1729, allocations: 97.84 kB / 0.684 GB, free: 12.59 MB / 494.1 MB Notification: Performance of collectPreVariables (initialization): time 1.436e-05/0.1729, allocations: 25.7 kB / 0.684 GB, free: 12.56 MB / 494.1 MB Notification: Performance of collectInitialEqns (initialization): time 2.941e-05/0.1729, allocations: 88.14 kB / 0.6841 GB, free: 12.47 MB / 494.1 MB Notification: Performance of collectInitialBindings (initialization): time 2.382e-05/0.173, allocations: 11.72 kB / 0.6841 GB, free: 12.46 MB / 494.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 4.402e-05/0.173, allocations: 21.72 kB / 0.6841 GB, free: 12.43 MB / 494.1 MB Notification: Performance of setup shared object (initialization): time 0.0001054/0.1731, allocations: 318.8 kB / 0.6844 GB, free: 12.11 MB / 494.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 2.718e-05/0.1732, allocations: 11.94 kB / 0.6844 GB, free: 12.1 MB / 494.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 2.399e-05/0.1732, allocations: 23.95 kB / 0.6845 GB, free: 12.07 MB / 494.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 5.511e-05/0.1732, allocations: 32.86 kB / 0.6845 GB, free: 12.04 MB / 494.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 8.62e-07/0.1733, allocations: 0 / 0.6845 GB, free: 12.04 MB / 494.1 MB Notification: Performance of matching and sorting (n=7) (initialization): time 9.193e-05/0.1734, allocations: 61.69 kB / 0.6846 GB, free: 11.97 MB / 494.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.29e-05/0.1734, allocations: 7.938 kB / 0.6846 GB, free: 11.96 MB / 494.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.717e-06/0.1734, allocations: 0 / 0.6846 GB, free: 11.96 MB / 494.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.236e-05/0.1734, allocations: 0 / 0.6846 GB, free: 11.96 MB / 494.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 6.129e-05/0.1735, allocations: 19.88 kB / 0.6846 GB, free: 11.95 MB / 494.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 4.699e-06/0.1735, allocations: 0 / 0.6846 GB, free: 11.95 MB / 494.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 1.975e-05/0.1735, allocations: 4 kB / 0.6846 GB, free: 11.94 MB / 494.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.002e-06/0.1735, allocations: 8 kB / 0.6846 GB, free: 11.93 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.491e-05/0.1736, allocations: 114.4 kB / 0.6847 GB, free: 11.81 MB / 494.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.516e-05/0.1736, allocations: 11.84 kB / 0.6847 GB, free: 11.8 MB / 494.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001436/0.1737, allocations: 73.59 kB / 0.6848 GB, free: 11.72 MB / 494.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.493e-06/0.1738, allocations: 0 / 0.6848 GB, free: 11.72 MB / 494.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.527e-06/0.1738, allocations: 0 / 0.6848 GB, free: 11.72 MB / 494.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.795e-06/0.1738, allocations: 0 / 0.6848 GB, free: 11.72 MB / 494.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002946/0.1741, allocations: 323.5 kB / 0.6851 GB, free: 11.35 MB / 494.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.106e-06/0.1741, allocations: 4 kB / 0.6851 GB, free: 11.34 MB / 494.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 6.023e-05/0.1742, allocations: 8 kB / 0.6851 GB, free: 11.34 MB / 494.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 4.278e-06/0.1742, allocations: 0 / 0.6851 GB, free: 11.34 MB / 494.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 7.845e-06/0.1742, allocations: 7.938 kB / 0.6851 GB, free: 11.33 MB / 494.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.623e-06/0.1742, allocations: 0 / 0.6851 GB, free: 11.33 MB / 494.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 8.71e-07/0.1742, allocations: 0 / 0.6851 GB, free: 11.33 MB / 494.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001789/0.1744, allocations: 180.4 kB / 0.6853 GB, free: 11.13 MB / 494.1 MB Notification: Performance of postOpt removeConstants (simulation): time 4.521e-05/0.1744, allocations: 89.05 kB / 0.6854 GB, free: 11.03 MB / 494.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.376e-05/0.1744, allocations: 3.984 kB / 0.6854 GB, free: 11.02 MB / 494.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 7.054e-05/0.1745, allocations: 4 kB / 0.6854 GB, free: 11.02 MB / 494.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 1.362e-05/0.1745, allocations: 0 / 0.6854 GB, free: 11.02 MB / 494.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 6.552e-06/0.1746, allocations: 4 kB / 0.6854 GB, free: 11.02 MB / 494.1 MB Notification: Performance of sorting global known variables: time 4.138e-05/0.1746, allocations: 79.28 kB / 0.6855 GB, free: 10.94 MB / 494.1 MB Notification: Performance of sort global known variables: time 3.01e-07/0.1746, allocations: 0 / 0.6855 GB, free: 10.94 MB / 494.1 MB Notification: Performance of remove unused functions: time 0.0002474/0.1749, allocations: 23.98 kB / 0.6855 GB, free: 10.91 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.0001699/0.175, allocations: 135.2 kB / 0.6856 GB, free: 10.77 MB / 494.1 MB Notification: Performance of simCode: created initialization part: time 9.79e-05/0.1751, allocations: 31.98 kB / 0.6856 GB, free: 10.74 MB / 494.1 MB Notification: Performance of simCode: created event and clocks part: time 2.254e-06/0.1751, allocations: 0 / 0.6856 GB, free: 10.74 MB / 494.1 MB Notification: Performance of simCode: created simulation system equations: time 2.828e-05/0.1752, allocations: 19.94 kB / 0.6857 GB, free: 10.72 MB / 494.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.000219/0.1754, allocations: 7.938 kB / 0.6857 GB, free: 10.71 MB / 494.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0003863/0.1758, allocations: 196.6 kB / 0.6859 GB, free: 10.5 MB / 494.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002364/0.176, allocations: 0.6807 MB / 0.6865 GB, free: 9.789 MB / 494.1 MB Notification: Performance of simCode: alias equations: time 3.249e-05/0.1761, allocations: 11.94 kB / 0.6865 GB, free: 9.777 MB / 494.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 1.871e-05/0.1761, allocations: 15.38 kB / 0.6865 GB, free: 9.762 MB / 494.1 MB Notification: Performance of SimCode: time 2.2e-07/0.1761, allocations: 0 / 0.6865 GB, free: 9.762 MB / 494.1 MB Notification: Performance of Templates: time 0.002643/0.1788, allocations: 0.6533 MB / 0.6872 GB, free: 9.152 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)