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.0008662/0.0008663, allocations: 97.56 kB / 15.36 MB, free: 0.7344 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.005225/0.005225, allocations: 170.9 kB / 16.27 MB, free: 6.652 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.337/1.337, allocations: 223.3 MB / 240.3 MB, free: 5.336 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/NcDataReader2 2.5.1-master/package.mo): time 0.001722/0.001722, allocations: 277.8 kB / 291.7 MB, free: 1.867 MB / 238.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/BuildingSystems 2.0.0-master/package.mo): time 0.9245/0.9245, allocations: 169.5 MB / 0.5004 GB, free: 14.09 MB / 382.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0004391/0.0004392, allocations: 19.72 kB / 0.5987 GB, free: 28.03 MB / 430.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1609/0.1614, allocations: 88.54 MB / 0.6851 GB, free: 15.06 MB / 494.1 MB Notification: Performance of NFInst.instantiate(BuildingSystems.Fluid.BaseClasses.FlowModels.Validation.BasicFlowFunction_m_flow_DerivativeCheck2): time 0.001418/0.1628, allocations: 1.186 MB / 0.6863 GB, free: 13.87 MB / 494.1 MB Notification: Performance of NFInst.instExpressions: time 0.0009825/0.1638, allocations: 0.6356 MB / 0.6869 GB, free: 13.23 MB / 494.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 2.972e-05/0.1639, allocations: 0 / 0.6869 GB, free: 13.23 MB / 494.1 MB Notification: Performance of NFTyping.typeComponents: time 1.668e-05/0.1639, allocations: 7.922 kB / 0.6869 GB, free: 13.23 MB / 494.1 MB Notification: Performance of NFTyping.typeBindings: time 5.004e-05/0.1639, allocations: 12.48 kB / 0.6869 GB, free: 13.21 MB / 494.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0004402/0.1644, allocations: 130.2 kB / 0.687 GB, free: 13.09 MB / 494.1 MB Notification: Performance of NFFlatten.flatten: time 7.056e-05/0.1645, allocations: 51.89 kB / 0.6871 GB, free: 13.04 MB / 494.1 MB Notification: Performance of NFFlatten.resolveConnections: time 4.155e-05/0.1645, allocations: 4 kB / 0.6871 GB, free: 13.04 MB / 494.1 MB Notification: Performance of NFEvalConstants.evaluate: time 5.352e-05/0.1646, allocations: 21.08 kB / 0.6871 GB, free: 13.02 MB / 494.1 MB Notification: Performance of NFSimplifyModel.simplify: time 5.393e-05/0.1646, allocations: 31.78 kB / 0.6872 GB, free: 12.98 MB / 494.1 MB Notification: Performance of NFPackage.collectConstants: time 1.271e-05/0.1647, allocations: 4 kB / 0.6872 GB, free: 12.98 MB / 494.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0004492/0.1651, allocations: 342.7 kB / 0.6875 GB, free: 12.65 MB / 494.1 MB Notification: Performance of NFScalarize.scalarize: time 1.86e-05/0.1651, allocations: 11.97 kB / 0.6875 GB, free: 12.64 MB / 494.1 MB Notification: Performance of NFVerifyModel.verify: time 4.096e-05/0.1652, allocations: 49.58 kB / 0.6875 GB, free: 12.58 MB / 494.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0002657/0.1655, allocations: 179.7 kB / 0.6877 GB, free: 12.41 MB / 494.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.226e-06/0.1655, allocations: 0 / 0.6877 GB, free: 12.41 MB / 494.1 MB Notification: Performance of FrontEnd: time 1.623e-06/0.1655, allocations: 0 / 0.6877 GB, free: 12.41 MB / 494.1 MB Notification: Performance of Transformations before backend: time 3.256e-06/0.1655, allocations: 0 / 0.6877 GB, free: 12.41 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.0005331/0.166, allocations: 392.5 kB / 0.6881 GB, free: 11.97 MB / 494.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.305e-05/0.1661, allocations: 10.19 kB / 0.6881 GB, free: 11.96 MB / 494.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.327e-05/0.1661, allocations: 8.938 kB / 0.6881 GB, free: 11.96 MB / 494.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001123/0.1662, allocations: 176.2 kB / 0.6883 GB, free: 11.75 MB / 494.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.655e-05/0.1663, allocations: 12.36 kB / 0.6883 GB, free: 11.73 MB / 494.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 2.301e-05/0.1663, allocations: 4.375 kB / 0.6883 GB, free: 11.73 MB / 494.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002339/0.1665, allocations: 87.94 kB / 0.6884 GB, free: 11.64 MB / 494.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.361e-05/0.1665, allocations: 4.172 kB / 0.6884 GB, free: 11.64 MB / 494.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.823e-05/0.1666, allocations: 7.938 kB / 0.6884 GB, free: 11.63 MB / 494.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.815e-06/0.1666, allocations: 4 kB / 0.6884 GB, free: 11.63 MB / 494.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002486/0.1668, allocations: 50.28 kB / 0.6884 GB, free: 11.58 MB / 494.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0005032/0.1674, allocations: 331.1 kB / 0.6888 GB, free: 11.21 MB / 494.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0002913/0.1677, allocations: 88.66 kB / 0.6888 GB, free: 11.12 MB / 494.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001202/0.1678, allocations: 34.69 kB / 0.6889 GB, free: 11.08 MB / 494.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.143e-05/0.1678, allocations: 7.984 kB / 0.6889 GB, free: 11.07 MB / 494.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.244e-05/0.1678, allocations: 31.41 kB / 0.6889 GB, free: 11.04 MB / 494.1 MB Notification: Performance of pre-optimization done (n=7): time 3.016e-06/0.1679, allocations: 7.938 kB / 0.6889 GB, free: 11.03 MB / 494.1 MB Notification: Performance of matching and sorting (n=11): time 0.001611/0.1695, allocations: 0.6735 MB / 0.6896 GB, free: 10.26 MB / 494.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.126e-05/0.1695, allocations: 51.41 kB / 0.6896 GB, free: 10.2 MB / 494.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 7.041e-05/0.1696, allocations: 105.8 kB / 0.6897 GB, free: 10.09 MB / 494.1 MB Notification: Performance of collectPreVariables (initialization): time 1.829e-05/0.1696, allocations: 29.7 kB / 0.6898 GB, free: 10.05 MB / 494.1 MB Notification: Performance of collectInitialEqns (initialization): time 8.257e-05/0.1697, allocations: 88.05 kB / 0.6898 GB, free: 9.961 MB / 494.1 MB Notification: Performance of collectInitialBindings (initialization): time 3.637e-05/0.1698, allocations: 43.39 kB / 0.6899 GB, free: 9.918 MB / 494.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 3.05e-05/0.1698, allocations: 21.66 kB / 0.6899 GB, free: 9.891 MB / 494.1 MB Notification: Performance of setup shared object (initialization): time 0.0001382/0.1699, allocations: 314.8 kB / 0.6902 GB, free: 9.574 MB / 494.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001324/0.1701, allocations: 35.98 kB / 0.6902 GB, free: 9.539 MB / 494.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001301/0.1702, allocations: 43.97 kB / 0.6903 GB, free: 9.496 MB / 494.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002448/0.1705, allocations: 76.77 kB / 0.6903 GB, free: 9.418 MB / 494.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 8.42e-07/0.1705, allocations: 0 / 0.6903 GB, free: 9.418 MB / 494.1 MB Notification: Performance of matching and sorting (n=13) (initialization): time 0.0003122/0.1708, allocations: 133.1 kB / 0.6905 GB, free: 9.285 MB / 494.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.569e-05/0.1708, allocations: 9.719 kB / 0.6905 GB, free: 9.277 MB / 494.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.857e-06/0.1708, allocations: 0 / 0.6905 GB, free: 9.277 MB / 494.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.089e-05/0.1708, allocations: 0 / 0.6905 GB, free: 9.277 MB / 494.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001538/0.171, allocations: 27.98 kB / 0.6905 GB, free: 9.25 MB / 494.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 4.488e-06/0.171, allocations: 0 / 0.6905 GB, free: 9.25 MB / 494.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 7.013e-05/0.1711, allocations: 19.92 kB / 0.6905 GB, free: 9.23 MB / 494.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.018e-05/0.1711, allocations: 4 kB / 0.6905 GB, free: 9.227 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 7.721e-05/0.1712, allocations: 118.4 kB / 0.6906 GB, free: 9.102 MB / 494.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.545e-05/0.1712, allocations: 0 / 0.6906 GB, free: 9.102 MB / 494.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.000371/0.1716, allocations: 141.5 kB / 0.6908 GB, free: 8.957 MB / 494.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.883e-06/0.1716, allocations: 0 / 0.6908 GB, free: 8.957 MB / 494.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.677e-06/0.1716, allocations: 3.938 kB / 0.6908 GB, free: 8.953 MB / 494.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.033e-06/0.1716, allocations: 4.125 kB / 0.6908 GB, free: 8.949 MB / 494.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0005315/0.1722, allocations: 394.5 kB / 0.6912 GB, free: 8.508 MB / 494.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.076e-06/0.1722, allocations: 3.984 kB / 0.6912 GB, free: 8.504 MB / 494.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001412/0.1723, allocations: 31.98 kB / 0.6912 GB, free: 8.473 MB / 494.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.773e-06/0.1723, allocations: 0 / 0.6912 GB, free: 8.473 MB / 494.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.102e-05/0.1723, allocations: 3.938 kB / 0.6912 GB, free: 8.469 MB / 494.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.422e-06/0.1723, allocations: 0 / 0.6912 GB, free: 8.469 MB / 494.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 8.61e-07/0.1724, allocations: 0 / 0.6912 GB, free: 8.469 MB / 494.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0005006/0.1729, allocations: 267.3 kB / 0.6915 GB, free: 8.191 MB / 494.1 MB Notification: Performance of postOpt removeConstants (simulation): time 4.705e-05/0.1729, allocations: 85.05 kB / 0.6915 GB, free: 8.09 MB / 494.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.641e-05/0.1729, allocations: 3.938 kB / 0.6915 GB, free: 8.086 MB / 494.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001217/0.1731, allocations: 19.98 kB / 0.6916 GB, free: 8.066 MB / 494.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 2.086e-05/0.1731, allocations: 7.984 kB / 0.6916 GB, free: 8.059 MB / 494.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 7.334e-06/0.1731, allocations: 4.062 kB / 0.6916 GB, free: 8.055 MB / 494.1 MB Notification: Performance of sorting global known variables: time 3.526e-05/0.1731, allocations: 83.28 kB / 0.6917 GB, free: 7.973 MB / 494.1 MB Notification: Performance of sort global known variables: time 1.11e-07/0.1731, allocations: 0 / 0.6917 GB, free: 7.973 MB / 494.1 MB Notification: Performance of remove unused functions: time 0.0002861/0.1734, allocations: 35.98 kB / 0.6917 GB, free: 7.938 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.0001989/0.1736, allocations: 135.1 kB / 0.6918 GB, free: 7.797 MB / 494.1 MB Notification: Performance of simCode: created initialization part: time 0.0003215/0.174, allocations: 99.83 kB / 0.6919 GB, free: 7.699 MB / 494.1 MB Notification: Performance of simCode: created event and clocks part: time 2.354e-06/0.174, allocations: 0 / 0.6919 GB, free: 7.699 MB / 494.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0001397/0.1741, allocations: 51.91 kB / 0.692 GB, free: 7.648 MB / 494.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002796/0.1744, allocations: 8.656 kB / 0.692 GB, free: 7.641 MB / 494.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0006483/0.1751, allocations: 381.3 kB / 0.6923 GB, free: 7.238 MB / 494.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002526/0.1753, allocations: 0.6965 MB / 0.693 GB, free: 6.516 MB / 494.1 MB Notification: Performance of simCode: alias equations: time 5.387e-05/0.1754, allocations: 12.61 kB / 0.693 GB, free: 6.504 MB / 494.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 2.611e-05/0.1754, allocations: 15.44 kB / 0.693 GB, free: 6.488 MB / 494.1 MB Notification: Performance of SimCode: time 2.4e-07/0.1754, allocations: 0 / 0.693 GB, free: 6.488 MB / 494.1 MB Notification: Performance of Templates: time 0.003369/0.1788, allocations: 1.097 MB / 0.6941 GB, free: 5.438 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)