Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr BuildingSystems_BuildingSystems.Fluid.BaseClasses.FlowModels.Validation.BasicFlowFunction_dp_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_dp_DerivativeCheck2,tolerance=1e-08,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="BuildingSystems_BuildingSystems.Fluid.BaseClasses.FlowModels.Validation.BasicFlowFunction_dp_DerivativeCheck2") translateModel(BuildingSystems.Fluid.BaseClasses.FlowModels.Validation.BasicFlowFunction_dp_DerivativeCheck2,tolerance=1e-08,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="BuildingSystems_BuildingSystems.Fluid.BaseClasses.FlowModels.Validation.BasicFlowFunction_dp_DerivativeCheck2") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001137/0.001137, allocations: 104.4 kB / 15.98 MB, free: 6.355 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.001184/0.001184, allocations: 199.1 kB / 16.91 MB, free: 6.191 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.229/1.229, allocations: 222.9 MB / 240.6 MB, free: 13.73 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/NcDataReader2 2.5.1-master/package.mo): time 0.001921/0.001921, allocations: 297.6 kB / 291 MB, free: 14.49 MB / 238.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/BuildingSystems 2.0.0-master/package.mo): time 0.8512/0.8512, allocations: 169.2 MB / 0.4985 GB, free: 4.652 MB / 382.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001536/0.001536, allocations: 89.83 kB / 0.5953 GB, free: 4.441 MB / 446.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1487/0.1502, allocations: 86.98 MB / 0.6803 GB, free: 13.46 MB / 0.5294 GB Notification: Performance of NFInst.instantiate(BuildingSystems.Fluid.BaseClasses.FlowModels.Validation.BasicFlowFunction_dp_DerivativeCheck2): time 0.002208/0.1525, allocations: 1.337 MB / 0.6816 GB, free: 12.11 MB / 0.5294 GB Notification: Performance of NFInst.instExpressions: time 0.0008914/0.1534, allocations: 0.612 MB / 0.6822 GB, free: 11.5 MB / 0.5294 GB Notification: Performance of NFInst.updateImplicitVariability: time 1.852e-05/0.1534, allocations: 0 / 0.6822 GB, free: 11.5 MB / 0.5294 GB Notification: Performance of NFTyping.typeComponents: time 2.097e-05/0.1535, allocations: 3.938 kB / 0.6822 GB, free: 11.49 MB / 0.5294 GB Notification: Performance of NFTyping.typeBindings: time 3.579e-05/0.1535, allocations: 7.969 kB / 0.6822 GB, free: 11.48 MB / 0.5294 GB Notification: Performance of NFTyping.typeClassSections: time 0.0004715/0.154, allocations: 131.4 kB / 0.6823 GB, free: 11.36 MB / 0.5294 GB Notification: Performance of NFFlatten.flatten: time 5.559e-05/0.1541, allocations: 27.86 kB / 0.6823 GB, free: 11.33 MB / 0.5294 GB Notification: Performance of NFFlatten.resolveConnections: time 3.888e-05/0.1541, allocations: 15.91 kB / 0.6824 GB, free: 11.32 MB / 0.5294 GB Notification: Performance of NFEvalConstants.evaluate: time 2.002e-05/0.1541, allocations: 8 kB / 0.6824 GB, free: 11.31 MB / 0.5294 GB Notification: Performance of NFSimplifyModel.simplify: time 4.821e-05/0.1542, allocations: 19.92 kB / 0.6824 GB, free: 11.29 MB / 0.5294 GB Notification: Performance of NFPackage.collectConstants: time 1.055e-05/0.1542, allocations: 0 / 0.6824 GB, free: 11.29 MB / 0.5294 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0004122/0.1546, allocations: 347.3 kB / 0.6827 GB, free: 10.95 MB / 0.5294 GB Notification: Performance of NFScalarize.scalarize: time 1.225e-05/0.1546, allocations: 0 / 0.6827 GB, free: 10.95 MB / 0.5294 GB Notification: Performance of NFVerifyModel.verify: time 2.563e-05/0.1547, allocations: 27.86 kB / 0.6827 GB, free: 10.92 MB / 0.5294 GB Notification: Performance of NFConvertDAE.convert: time 0.0001596/0.1548, allocations: 96.05 kB / 0.6828 GB, free: 10.83 MB / 0.5294 GB Notification: Performance of FrontEnd - DAE generated: time 4.819e-06/0.1548, allocations: 4 kB / 0.6828 GB, free: 10.82 MB / 0.5294 GB Notification: Performance of FrontEnd: time 1.563e-06/0.1548, allocations: 0 / 0.6828 GB, free: 10.82 MB / 0.5294 GB Notification: Performance of Transformations before backend: time 5.119e-06/0.1549, allocations: 0 / 0.6828 GB, free: 10.82 MB / 0.5294 GB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 7 * Number of variables: 7 Notification: Performance of Generate backend data structure: time 0.0004269/0.1553, allocations: 367.3 kB / 0.6832 GB, free: 10.41 MB / 0.5294 GB Notification: Performance of prepare preOptimizeDAE: time 3.403e-05/0.1553, allocations: 12.03 kB / 0.6832 GB, free: 10.4 MB / 0.5294 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.586e-05/0.1554, allocations: 4.922 kB / 0.6832 GB, free: 10.4 MB / 0.5294 GB Notification: Performance of preOpt evaluateParameters (simulation): time 9.858e-05/0.1555, allocations: 168.3 kB / 0.6834 GB, free: 10.2 MB / 0.5294 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.214e-05/0.1555, allocations: 8.375 kB / 0.6834 GB, free: 10.19 MB / 0.5294 GB Notification: Performance of preOpt expandDerOperator (simulation): time 2.263e-05/0.1555, allocations: 8.281 kB / 0.6834 GB, free: 10.18 MB / 0.5294 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001035/0.1556, allocations: 46.25 kB / 0.6834 GB, free: 10.13 MB / 0.5294 GB Notification: Performance of preOpt findStateOrder (simulation): time 9.057e-06/0.1556, allocations: 192 / 0.6834 GB, free: 10.13 MB / 0.5294 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.374e-05/0.1557, allocations: 7.938 kB / 0.6834 GB, free: 10.12 MB / 0.5294 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.587e-06/0.1557, allocations: 0 / 0.6834 GB, free: 10.12 MB / 0.5294 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 4.829e-05/0.1557, allocations: 23.92 kB / 0.6835 GB, free: 10.1 MB / 0.5294 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0001697/0.1559, allocations: 169.6 kB / 0.6836 GB, free: 9.883 MB / 0.5294 GB Notification: Performance of preOpt comSubExp (simulation): time 9.705e-05/0.156, allocations: 62.56 kB / 0.6837 GB, free: 9.812 MB / 0.5294 GB Notification: Performance of preOpt resolveLoops (simulation): time 4.192e-05/0.156, allocations: 32.84 kB / 0.6837 GB, free: 9.777 MB / 0.5294 GB Notification: Performance of preOpt evalFunc (simulation): time 1.832e-05/0.1561, allocations: 0 / 0.6837 GB, free: 9.777 MB / 0.5294 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.692e-05/0.1561, allocations: 30.56 kB / 0.6837 GB, free: 9.738 MB / 0.5294 GB Notification: Performance of pre-optimization done (n=7): time 8.71e-07/0.1561, allocations: 0 / 0.6837 GB, free: 9.738 MB / 0.5294 GB Notification: Performance of matching and sorting (n=11): time 0.001008/0.1571, allocations: 0.5956 MB / 0.6843 GB, free: 9.051 MB / 0.5294 GB Notification: Performance of inlineWhenForInitialization (initialization): time 3.63e-05/0.1572, allocations: 51.41 kB / 0.6844 GB, free: 8.988 MB / 0.5294 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 5.476e-05/0.1572, allocations: 93.86 kB / 0.6845 GB, free: 8.887 MB / 0.5294 GB Notification: Performance of collectPreVariables (initialization): time 1.5e-05/0.1572, allocations: 29.7 kB / 0.6845 GB, free: 8.852 MB / 0.5294 GB Notification: Performance of collectInitialEqns (initialization): time 3.497e-05/0.1573, allocations: 84.14 kB / 0.6846 GB, free: 8.766 MB / 0.5294 GB Notification: Performance of collectInitialBindings (initialization): time 3.459e-05/0.1573, allocations: 35.45 kB / 0.6846 GB, free: 8.73 MB / 0.5294 GB Notification: Performance of simplifyInitialFunctions (initialization): time 3.891e-05/0.1574, allocations: 33.83 kB / 0.6846 GB, free: 8.691 MB / 0.5294 GB Notification: Performance of setup shared object (initialization): time 9.278e-05/0.1575, allocations: 314.8 kB / 0.6849 GB, free: 8.375 MB / 0.5294 GB Notification: Performance of preBalanceInitialSystem (initialization): time 3.613e-05/0.1575, allocations: 19.98 kB / 0.685 GB, free: 8.355 MB / 0.5294 GB Notification: Performance of partitionIndependentBlocks (initialization): time 3.256e-05/0.1575, allocations: 16 kB / 0.685 GB, free: 8.34 MB / 0.5294 GB Notification: Performance of analyzeInitialSystem (initialization): time 9.175e-05/0.1576, allocations: 60.84 kB / 0.685 GB, free: 8.277 MB / 0.5294 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 6.61e-07/0.1576, allocations: 96 / 0.685 GB, free: 8.277 MB / 0.5294 GB Notification: Performance of matching and sorting (n=13) (initialization): time 0.0001302/0.1578, allocations: 109.4 kB / 0.6851 GB, free: 8.164 MB / 0.5294 GB Notification: Performance of prepare postOptimizeDAE: time 1.099e-05/0.1578, allocations: 4 kB / 0.6851 GB, free: 8.16 MB / 0.5294 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.908e-06/0.1578, allocations: 0 / 0.6851 GB, free: 8.16 MB / 0.5294 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.203e-05/0.1578, allocations: 11.98 kB / 0.6852 GB, free: 8.148 MB / 0.5294 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 9.706e-05/0.1579, allocations: 19.98 kB / 0.6852 GB, free: 8.129 MB / 0.5294 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 4.658e-06/0.1579, allocations: 3.938 kB / 0.6852 GB, free: 8.125 MB / 0.5294 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 2.248e-05/0.158, allocations: 0 / 0.6852 GB, free: 8.125 MB / 0.5294 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 9.047e-06/0.158, allocations: 8 kB / 0.6852 GB, free: 8.117 MB / 0.5294 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 (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 7.303e-05/0.1581, allocations: 116.2 kB / 0.6853 GB, free: 7.996 MB / 0.5294 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.831e-05/0.1581, allocations: 11.92 kB / 0.6853 GB, free: 7.984 MB / 0.5294 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001662/0.1583, allocations: 101.5 kB / 0.6854 GB, free: 7.879 MB / 0.5294 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.713e-06/0.1583, allocations: 4 kB / 0.6854 GB, free: 7.875 MB / 0.5294 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.196e-06/0.1583, allocations: 0 / 0.6854 GB, free: 7.875 MB / 0.5294 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.796e-06/0.1583, allocations: 4 kB / 0.6854 GB, free: 7.871 MB / 0.5294 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0003421/0.1586, allocations: 362.5 kB / 0.6858 GB, free: 7.461 MB / 0.5294 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.343e-06/0.1586, allocations: 0 / 0.6858 GB, free: 7.461 MB / 0.5294 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 9.891e-05/0.1587, allocations: 23.98 kB / 0.6858 GB, free: 7.438 MB / 0.5294 GB Notification: Performance of postOpt tearingSystem (simulation): time 1.834e-06/0.1588, allocations: 0 / 0.6858 GB, free: 7.438 MB / 0.5294 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 7.684e-06/0.1588, allocations: 0 / 0.6858 GB, free: 7.438 MB / 0.5294 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.232e-06/0.1588, allocations: 0 / 0.6858 GB, free: 7.438 MB / 0.5294 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 6.41e-07/0.1588, allocations: 0 / 0.6858 GB, free: 7.438 MB / 0.5294 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002152/0.159, allocations: 227.3 kB / 0.686 GB, free: 7.199 MB / 0.5294 GB Notification: Performance of postOpt removeConstants (simulation): time 3.804e-05/0.159, allocations: 81.02 kB / 0.6861 GB, free: 7.102 MB / 0.5294 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.49e-05/0.1591, allocations: 4.031 kB / 0.6861 GB, free: 7.098 MB / 0.5294 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 9.072e-05/0.1592, allocations: 8 kB / 0.6861 GB, free: 7.09 MB / 0.5294 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 1.735e-05/0.1592, allocations: 7.984 kB / 0.6861 GB, free: 7.082 MB / 0.5294 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 7.434e-06/0.1592, allocations: 4 kB / 0.6861 GB, free: 7.078 MB / 0.5294 GB Notification: Performance of sorting global known variables: time 2.769e-05/0.1592, allocations: 83.28 kB / 0.6862 GB, free: 6.996 MB / 0.5294 GB Notification: Performance of sort global known variables: time 1e-07/0.1592, allocations: 0 / 0.6862 GB, free: 6.996 MB / 0.5294 GB Notification: Performance of remove unused functions: time 0.0002424/0.1595, allocations: 32 kB / 0.6862 GB, free: 6.965 MB / 0.5294 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 1 * Number of states: 2 (m_flow_comp,der_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 (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.0001803/0.1597, allocations: 139.2 kB / 0.6863 GB, free: 6.82 MB / 0.5294 GB Notification: Performance of simCode: created initialization part: time 0.0001344/0.1598, allocations: 67.84 kB / 0.6864 GB, free: 6.754 MB / 0.5294 GB Notification: Performance of simCode: created event and clocks part: time 1.993e-06/0.1598, allocations: 0 / 0.6864 GB, free: 6.754 MB / 0.5294 GB Notification: Performance of simCode: created simulation system equations: time 4.482e-05/0.1599, allocations: 35.88 kB / 0.6864 GB, free: 6.719 MB / 0.5294 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002014/0.1601, allocations: 8 kB / 0.6864 GB, free: 6.711 MB / 0.5294 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0004856/0.1606, allocations: 330.6 kB / 0.6868 GB, free: 6.355 MB / 0.5294 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002193/0.1608, allocations: 0.6923 MB / 0.6874 GB, free: 5.637 MB / 0.5294 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 2.852e-05/0.1608, allocations: 15.44 kB / 0.6874 GB, free: 5.621 MB / 0.5294 GB Notification: Performance of SimCode: time 2.01e-07/0.1608, allocations: 0 / 0.6874 GB, free: 5.621 MB / 0.5294 GB Notification: Performance of Templates: time 0.00227/0.1631, allocations: 1.124 MB / 0.6885 GB, free: 4.508 MB / 0.5294 GB make -j1 -f BuildingSystems_BuildingSystems.Fluid.BaseClasses.FlowModels.Validation.BasicFlowFunction_dp_DerivativeCheck2.makefile (rm -f BuildingSystems_BuildingSystems.Fluid.BaseClasses.FlowModels.Validation.BasicFlowFunction_dp_DerivativeCheck2.pipe ; mkfifo BuildingSystems_BuildingSystems.Fluid.BaseClasses.FlowModels.Validation.BasicFlowFunction_dp_DerivativeCheck2.pipe ; head -c 1048576 < BuildingSystems_BuildingSystems.Fluid.BaseClasses.FlowModels.Validation.BasicFlowFunction_dp_DerivativeCheck2.pipe >> ../files/BuildingSystems_BuildingSystems.Fluid.BaseClasses.FlowModels.Validation.BasicFlowFunction_dp_DerivativeCheck2.sim & ./BuildingSystems_BuildingSystems.Fluid.BaseClasses.FlowModels.Validation.BasicFlowFunction_dp_DerivativeCheck2 -abortSlowSimulation -alarm=480 -lv LOG_STATS > BuildingSystems_BuildingSystems.Fluid.BaseClasses.FlowModels.Validation.BasicFlowFunction_dp_DerivativeCheck2.pipe 2>&1)