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.001093/0.001094, allocations: 103 kB / 16.36 MB, free: 6.336 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.00115/0.00115, allocations: 198.3 kB / 17.3 MB, free: 5.883 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.246/1.246, allocations: 222.9 MB / 241 MB, free: 15.17 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/NcDataReader2 2.5.1-master/package.mo): time 0.002086/0.002086, allocations: 286.2 kB / 291.4 MB, free: 14.48 MB / 238.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/BuildingSystems 2.0.0-master/package.mo): time 0.8994/0.8994, allocations: 169.2 MB / 0.4989 GB, free: 4.457 MB / 382.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001654/0.001654, allocations: 107.5 kB / 0.5967 GB, free: 14.45 MB / 414.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1576/0.1593, allocations: 86.96 MB / 0.6816 GB, free: 7.473 MB / 494.1 MB Notification: Performance of NFInst.instantiate(BuildingSystems.Fluid.BaseClasses.FlowModels.Validation.BasicFlowFunction_m_flow_DerivativeCheck): time 0.003273/0.1626, allocations: 1.277 MB / 0.6828 GB, free: 6.188 MB / 494.1 MB Notification: Performance of NFInst.instExpressions: time 0.001246/0.1638, allocations: 0.6111 MB / 0.6834 GB, free: 5.574 MB / 494.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 3.03e-05/0.1639, allocations: 0 / 0.6834 GB, free: 5.574 MB / 494.1 MB Notification: Performance of NFTyping.typeComponents: time 2.256e-05/0.1639, allocations: 3.984 kB / 0.6834 GB, free: 5.57 MB / 494.1 MB Notification: Performance of NFTyping.typeBindings: time 4.291e-05/0.164, allocations: 7.922 kB / 0.6835 GB, free: 5.562 MB / 494.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0006953/0.1647, allocations: 147.4 kB / 0.6836 GB, free: 5.418 MB / 494.1 MB Notification: Performance of NFFlatten.flatten: time 8.09e-05/0.1648, allocations: 19.92 kB / 0.6836 GB, free: 5.398 MB / 494.1 MB Notification: Performance of NFFlatten.resolveConnections: time 4.693e-05/0.1649, allocations: 11.92 kB / 0.6836 GB, free: 5.387 MB / 494.1 MB Notification: Performance of NFEvalConstants.evaluate: time 4.162e-05/0.1649, allocations: 7.938 kB / 0.6836 GB, free: 5.379 MB / 494.1 MB Notification: Performance of NFSimplifyModel.simplify: time 5.712e-05/0.165, allocations: 8 kB / 0.6836 GB, free: 5.371 MB / 494.1 MB Notification: Performance of NFPackage.collectConstants: time 1.22e-05/0.165, allocations: 3.938 kB / 0.6836 GB, free: 5.367 MB / 494.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.000726/0.1657, allocations: 339.4 kB / 0.684 GB, free: 5.035 MB / 494.1 MB Notification: Performance of NFScalarize.scalarize: time 1.463e-05/0.1658, allocations: 11.92 kB / 0.684 GB, free: 5.023 MB / 494.1 MB Notification: Performance of NFVerifyModel.verify: time 2.224e-05/0.1658, allocations: 4 kB / 0.684 GB, free: 5.02 MB / 494.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0003331/0.1661, allocations: 143.6 kB / 0.6841 GB, free: 4.879 MB / 494.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.176e-06/0.1661, allocations: 0 / 0.6841 GB, free: 4.879 MB / 494.1 MB Notification: Performance of FrontEnd: time 1.062e-06/0.1662, allocations: 4 kB / 0.6841 GB, free: 4.875 MB / 494.1 MB Notification: Performance of Transformations before backend: time 4.669e-06/0.1662, allocations: 0 / 0.6841 GB, free: 4.875 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.0004589/0.1666, allocations: 367.4 kB / 0.6845 GB, free: 4.465 MB / 494.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.33e-05/0.1667, allocations: 12.03 kB / 0.6845 GB, free: 4.453 MB / 494.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.747e-05/0.1667, allocations: 0.9375 kB / 0.6845 GB, free: 4.453 MB / 494.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001345/0.1669, allocations: 176.2 kB / 0.6847 GB, free: 4.242 MB / 494.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.193e-05/0.1669, allocations: 4.375 kB / 0.6847 GB, free: 4.238 MB / 494.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 2.225e-05/0.1669, allocations: 384 / 0.6847 GB, free: 4.238 MB / 494.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001271/0.1671, allocations: 42.25 kB / 0.6847 GB, free: 4.191 MB / 494.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 8.416e-06/0.1671, allocations: 4.188 kB / 0.6847 GB, free: 4.188 MB / 494.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.255e-05/0.1671, allocations: 3.938 kB / 0.6847 GB, free: 4.184 MB / 494.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.674e-06/0.1671, allocations: 0 / 0.6847 GB, free: 4.184 MB / 494.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 5.157e-05/0.1672, allocations: 15.98 kB / 0.6847 GB, free: 4.168 MB / 494.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0001964/0.1674, allocations: 153.7 kB / 0.6849 GB, free: 3.969 MB / 494.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.000216/0.1676, allocations: 42.5 kB / 0.6849 GB, free: 3.918 MB / 494.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 4.375e-05/0.1677, allocations: 16.86 kB / 0.6849 GB, free: 3.898 MB / 494.1 MB Notification: Performance of preOpt evalFunc (simulation): time 1.983e-05/0.1677, allocations: 4 kB / 0.6849 GB, free: 3.895 MB / 494.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.182e-05/0.1678, allocations: 38.64 kB / 0.685 GB, free: 3.848 MB / 494.1 MB Notification: Performance of pre-optimization done (n=4): time 1.783e-06/0.1678, allocations: 4 kB / 0.685 GB, free: 3.844 MB / 494.1 MB Notification: Performance of matching and sorting (n=6): time 0.0007507/0.1685, allocations: 314.1 kB / 0.6853 GB, free: 3.484 MB / 494.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.6e-05/0.1686, allocations: 51.41 kB / 0.6853 GB, free: 3.422 MB / 494.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 7.913e-05/0.1687, allocations: 97.86 kB / 0.6854 GB, free: 3.316 MB / 494.1 MB Notification: Performance of collectPreVariables (initialization): time 1.807e-05/0.1687, allocations: 33.69 kB / 0.6854 GB, free: 3.277 MB / 494.1 MB Notification: Performance of collectInitialEqns (initialization): time 4.13e-05/0.1687, allocations: 80.14 kB / 0.6855 GB, free: 3.195 MB / 494.1 MB Notification: Performance of collectInitialBindings (initialization): time 3.402e-05/0.1688, allocations: 19.72 kB / 0.6855 GB, free: 3.176 MB / 494.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 5.52e-05/0.1689, allocations: 17.72 kB / 0.6856 GB, free: 3.152 MB / 494.1 MB Notification: Performance of setup shared object (initialization): time 0.0001209/0.169, allocations: 318.8 kB / 0.6859 GB, free: 2.832 MB / 494.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 3.737e-05/0.169, allocations: 8 kB / 0.6859 GB, free: 2.824 MB / 494.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 3.183e-05/0.1691, allocations: 15.94 kB / 0.6859 GB, free: 2.809 MB / 494.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 8.335e-05/0.1692, allocations: 32.84 kB / 0.6859 GB, free: 2.773 MB / 494.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.332e-06/0.1692, allocations: 4 kB / 0.6859 GB, free: 2.77 MB / 494.1 MB Notification: Performance of matching and sorting (n=7) (initialization): time 0.0001668/0.1694, allocations: 69.67 kB / 0.686 GB, free: 2.695 MB / 494.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.357e-05/0.1694, allocations: 7.938 kB / 0.686 GB, free: 2.688 MB / 494.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.639e-06/0.1694, allocations: 0 / 0.686 GB, free: 2.688 MB / 494.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.434e-05/0.1694, allocations: 0 / 0.686 GB, free: 2.688 MB / 494.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 8.276e-05/0.1695, allocations: 12 kB / 0.686 GB, free: 2.676 MB / 494.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 7.924e-06/0.1695, allocations: 3.938 kB / 0.686 GB, free: 2.672 MB / 494.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 2.866e-05/0.1696, allocations: 3.938 kB / 0.686 GB, free: 2.668 MB / 494.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 7.334e-06/0.1696, allocations: 0 / 0.686 GB, free: 2.668 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 8.793e-05/0.1697, allocations: 121.8 kB / 0.6861 GB, free: 2.539 MB / 494.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.241e-05/0.1697, allocations: 11.83 kB / 0.6861 GB, free: 2.527 MB / 494.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001804/0.1699, allocations: 69.66 kB / 0.6862 GB, free: 2.449 MB / 494.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.415e-06/0.1699, allocations: 0 / 0.6862 GB, free: 2.449 MB / 494.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.228e-06/0.1699, allocations: 0 / 0.6862 GB, free: 2.449 MB / 494.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.216e-06/0.1699, allocations: 0 / 0.6862 GB, free: 2.449 MB / 494.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0003879/0.1703, allocations: 319.5 kB / 0.6865 GB, free: 2.078 MB / 494.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.569e-06/0.1703, allocations: 4 kB / 0.6865 GB, free: 2.074 MB / 494.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 9.588e-05/0.1704, allocations: 15.94 kB / 0.6865 GB, free: 2.059 MB / 494.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 3.697e-06/0.1705, allocations: 4.031 kB / 0.6865 GB, free: 2.055 MB / 494.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 9.768e-06/0.1705, allocations: 0 / 0.6865 GB, free: 2.055 MB / 494.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 8.125e-06/0.1705, allocations: 7.938 kB / 0.6865 GB, free: 2.047 MB / 494.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.633e-06/0.1705, allocations: 0 / 0.6865 GB, free: 2.047 MB / 494.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.000237/0.1708, allocations: 176.3 kB / 0.6867 GB, free: 1.855 MB / 494.1 MB Notification: Performance of postOpt removeConstants (simulation): time 6.007e-05/0.1708, allocations: 85.05 kB / 0.6868 GB, free: 1.754 MB / 494.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.663e-05/0.1709, allocations: 0 / 0.6868 GB, free: 1.754 MB / 494.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.000121/0.171, allocations: 12.05 kB / 0.6868 GB, free: 1.742 MB / 494.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 1.816e-05/0.171, allocations: 4 kB / 0.6868 GB, free: 1.738 MB / 494.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 9.658e-06/0.171, allocations: 4 kB / 0.6868 GB, free: 1.734 MB / 494.1 MB Notification: Performance of sorting global known variables: time 4.252e-05/0.1711, allocations: 75.28 kB / 0.6869 GB, free: 1.66 MB / 494.1 MB Notification: Performance of sort global known variables: time 1.9e-07/0.1711, allocations: 0 / 0.6869 GB, free: 1.66 MB / 494.1 MB Notification: Performance of remove unused functions: time 0.0004376/0.1716, allocations: 27.98 kB / 0.6869 GB, free: 1.633 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.0002104/0.1718, allocations: 119.2 kB / 0.687 GB, free: 1.508 MB / 494.1 MB Notification: Performance of simCode: created initialization part: time 0.000142/0.1719, allocations: 39.98 kB / 0.6871 GB, free: 1.469 MB / 494.1 MB Notification: Performance of simCode: created event and clocks part: time 2.615e-06/0.172, allocations: 4 kB / 0.6871 GB, free: 1.465 MB / 494.1 MB Notification: Performance of simCode: created simulation system equations: time 4.299e-05/0.172, allocations: 15.94 kB / 0.6871 GB, free: 1.449 MB / 494.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003638/0.1724, allocations: 8.953 kB / 0.6871 GB, free: 1.441 MB / 494.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0004789/0.1729, allocations: 189 kB / 0.6873 GB, free: 1.23 MB / 494.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002064/0.1731, allocations: 0.6807 MB / 0.6879 GB, free: 0.5234 MB / 494.1 MB Notification: Performance of simCode: alias equations: time 2.862e-05/0.1731, allocations: 4 kB / 0.6879 GB, free: 0.5195 MB / 494.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 1.676e-05/0.1731, allocations: 11.38 kB / 0.6879 GB, free: 0.5117 MB / 494.1 MB Notification: Performance of SimCode: time 1.353e-06/0.1732, allocations: 0 / 0.6879 GB, free: 0.5117 MB / 494.1 MB Notification: Performance of Templates: time 0.2323/0.4054, allocations: 0.6626 MB / 0.6886 GB, free: 17.59 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 -s cvode -lv LOG_STATS > BuildingSystems_BuildingSystems.Fluid.BaseClasses.FlowModels.Validation.BasicFlowFunction_m_flow_DerivativeCheck.pipe 2>&1)