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.001817/0.001817, allocations: 115.3 kB / 15.34 MB, free: 0.5156 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.002002/0.002002, allocations: 192.8 kB / 16.25 MB, free: 6.645 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.512/1.512, allocations: 222.9 MB / 239.9 MB, free: 4.555 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/NcDataReader2 2.5.1-master/package.mo): time 0.002493/0.002493, allocations: 294.7 kB / 290.4 MB, free: 2.16 MB / 238.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/BuildingSystems 2.0.0-master/package.mo): time 1.077/1.077, allocations: 178.6 MB / 0.507 GB, free: 4.758 MB / 382.1 MB Notification: Performance of FrontEnd - loaded program: time 0.002786/0.002786, allocations: 106.9 kB / 0.6059 GB, free: 25.18 MB / 430.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1597/0.1625, allocations: 89.15 MB / 0.693 GB, free: 4.703 MB / 494.1 MB Notification: Performance of NFInst.instantiate(BuildingSystems.Fluid.BaseClasses.FlowModels.Validation.BasicFlowFunction_dp_DerivativeCheck2): time 0.002518/0.1651, allocations: 1.332 MB / 0.6943 GB, free: 3.367 MB / 494.1 MB Notification: Performance of NFInst.instExpressions: time 0.001098/0.1662, allocations: 0.6199 MB / 0.6949 GB, free: 2.75 MB / 494.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 2.011e-05/0.1662, allocations: 0.7812 kB / 0.6949 GB, free: 2.75 MB / 494.1 MB Notification: Performance of NFTyping.typeComponents: time 2.231e-05/0.1662, allocations: 0 / 0.6949 GB, free: 2.75 MB / 494.1 MB Notification: Performance of NFTyping.typeBindings: time 4.366e-05/0.1663, allocations: 9.656 kB / 0.6949 GB, free: 2.742 MB / 494.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0005566/0.1669, allocations: 130 kB / 0.695 GB, free: 2.617 MB / 494.1 MB Notification: Performance of NFFlatten.flatten: time 6.473e-05/0.1669, allocations: 28.58 kB / 0.6951 GB, free: 2.59 MB / 494.1 MB Notification: Performance of NFFlatten.resolveConnections: time 4.084e-05/0.167, allocations: 4 kB / 0.6951 GB, free: 2.586 MB / 494.1 MB Notification: Performance of NFEvalConstants.evaluate: time 2.802e-05/0.167, allocations: 15.94 kB / 0.6951 GB, free: 2.57 MB / 494.1 MB Notification: Performance of NFSimplifyModel.simplify: time 5.545e-05/0.1671, allocations: 15.92 kB / 0.6951 GB, free: 2.555 MB / 494.1 MB Notification: Performance of NFPackage.collectConstants: time 1.16e-05/0.1671, allocations: 3.938 kB / 0.6951 GB, free: 2.551 MB / 494.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0005202/0.1676, allocations: 347.3 kB / 0.6954 GB, free: 2.211 MB / 494.1 MB Notification: Performance of NFScalarize.scalarize: time 1.473e-05/0.1677, allocations: 3.984 kB / 0.6954 GB, free: 2.207 MB / 494.1 MB Notification: Performance of NFVerifyModel.verify: time 4.271e-05/0.1677, allocations: 19.92 kB / 0.6955 GB, free: 2.188 MB / 494.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0002755/0.168, allocations: 151.8 kB / 0.6956 GB, free: 2.039 MB / 494.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.068e-06/0.168, allocations: 0 / 0.6956 GB, free: 2.039 MB / 494.1 MB Notification: Performance of FrontEnd: time 1.653e-06/0.168, allocations: 4 kB / 0.6956 GB, free: 2.035 MB / 494.1 MB Notification: Performance of Transformations before backend: time 5.941e-06/0.168, allocations: 0 / 0.6956 GB, free: 2.035 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: 7 * Number of variables: 7 Notification: Performance of Generate backend data structure: time 0.0004729/0.1685, allocations: 367.4 kB / 0.696 GB, free: 1.625 MB / 494.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.863e-05/0.1685, allocations: 12.03 kB / 0.696 GB, free: 1.613 MB / 494.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.452e-05/0.1686, allocations: 0.9375 kB / 0.696 GB, free: 1.613 MB / 494.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001467/0.1687, allocations: 168.3 kB / 0.6961 GB, free: 1.41 MB / 494.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.148e-05/0.1688, allocations: 4.312 kB / 0.6961 GB, free: 1.406 MB / 494.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 2.432e-05/0.1688, allocations: 8.375 kB / 0.6961 GB, free: 1.398 MB / 494.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001206/0.1689, allocations: 50.23 kB / 0.6962 GB, free: 1.344 MB / 494.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.263e-05/0.1689, allocations: 192 / 0.6962 GB, free: 1.344 MB / 494.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.474e-05/0.1689, allocations: 11.88 kB / 0.6962 GB, free: 1.332 MB / 494.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.098e-06/0.169, allocations: 4 kB / 0.6962 GB, free: 1.328 MB / 494.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 5.668e-05/0.169, allocations: 23.97 kB / 0.6962 GB, free: 1.305 MB / 494.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0001996/0.1692, allocations: 165.6 kB / 0.6964 GB, free: 1.094 MB / 494.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0001158/0.1693, allocations: 62.5 kB / 0.6964 GB, free: 1.023 MB / 494.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 5.29e-05/0.1694, allocations: 24.84 kB / 0.6965 GB, free: 0.9961 MB / 494.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.029e-05/0.1694, allocations: 4 kB / 0.6965 GB, free: 0.9922 MB / 494.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.242e-05/0.1695, allocations: 38.56 kB / 0.6965 GB, free: 0.9453 MB / 494.1 MB Notification: Performance of pre-optimization done (n=7): time 1.102e-06/0.1695, allocations: 0 / 0.6965 GB, free: 0.9453 MB / 494.1 MB Notification: Performance of matching and sorting (n=11): time 0.001229/0.1707, allocations: 0.5916 MB / 0.6971 GB, free: 268 kB / 494.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.314e-05/0.1708, allocations: 51.41 kB / 0.6971 GB, free: 204 kB / 494.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 6.81e-05/0.1708, allocations: 97.86 kB / 0.6972 GB, free: 96 kB / 494.1 MB Notification: Performance of collectPreVariables (initialization): time 3.957e-05/0.1709, allocations: 25.7 kB / 0.6972 GB, free: 64 kB / 494.1 MB Notification: Performance of collectInitialEqns (initialization): time 6.256e-05/0.171, allocations: 92.12 kB / 0.6973 GB, free: 15.97 MB / 0.4981 GB Notification: Performance of collectInitialBindings (initialization): time 3.96e-05/0.171, allocations: 31.47 kB / 0.6974 GB, free: 15.94 MB / 0.4981 GB Notification: Performance of simplifyInitialFunctions (initialization): time 5.015e-05/0.1711, allocations: 29.7 kB / 0.6974 GB, free: 15.9 MB / 0.4981 GB Notification: Performance of setup shared object (initialization): time 0.0001486/0.1712, allocations: 310.8 kB / 0.6977 GB, free: 15.59 MB / 0.4981 GB Notification: Performance of preBalanceInitialSystem (initialization): time 4.682e-05/0.1713, allocations: 23.98 kB / 0.6977 GB, free: 15.57 MB / 0.4981 GB Notification: Performance of partitionIndependentBlocks (initialization): time 3.998e-05/0.1713, allocations: 19.98 kB / 0.6977 GB, free: 15.55 MB / 0.4981 GB Notification: Performance of analyzeInitialSystem (initialization): time 9.147e-05/0.1714, allocations: 67.39 kB / 0.6978 GB, free: 15.48 MB / 0.4981 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 8.12e-07/0.1714, allocations: 3.938 kB / 0.6978 GB, free: 15.48 MB / 0.4981 GB Notification: Performance of matching and sorting (n=13) (initialization): time 0.0001666/0.1716, allocations: 109.5 kB / 0.6979 GB, free: 15.36 MB / 0.4981 GB Notification: Performance of prepare postOptimizeDAE: time 1.363e-05/0.1716, allocations: 4 kB / 0.6979 GB, free: 15.36 MB / 0.4981 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.937e-06/0.1716, allocations: 0 / 0.6979 GB, free: 15.36 MB / 0.4981 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.356e-05/0.1716, allocations: 4 kB / 0.6979 GB, free: 15.36 MB / 0.4981 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001024/0.1717, allocations: 19.94 kB / 0.6979 GB, free: 15.34 MB / 0.4981 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 5.501e-06/0.1718, allocations: 0 / 0.6979 GB, free: 15.34 MB / 0.4981 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 2.674e-05/0.1718, allocations: 3.984 kB / 0.6979 GB, free: 15.33 MB / 0.4981 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.132e-05/0.1718, allocations: 8 kB / 0.6979 GB, free: 15.32 MB / 0.4981 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 9.034e-05/0.1719, allocations: 117.8 kB / 0.6981 GB, free: 15.2 MB / 0.4981 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.711e-05/0.1719, allocations: 7.938 kB / 0.6981 GB, free: 15.19 MB / 0.4981 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0002101/0.1721, allocations: 97.58 kB / 0.6982 GB, free: 15.09 MB / 0.4981 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.164e-06/0.1722, allocations: 3.938 kB / 0.6982 GB, free: 15.09 MB / 0.4981 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.928e-06/0.1722, allocations: 0 / 0.6982 GB, free: 15.09 MB / 0.4981 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.624e-06/0.1722, allocations: 7.984 kB / 0.6982 GB, free: 15.08 MB / 0.4981 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0004317/0.1726, allocations: 342.5 kB / 0.6985 GB, free: 14.69 MB / 0.4981 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.153e-05/0.1726, allocations: 7.984 kB / 0.6985 GB, free: 14.68 MB / 0.4981 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001106/0.1728, allocations: 27.94 kB / 0.6985 GB, free: 14.65 MB / 0.4981 GB Notification: Performance of postOpt tearingSystem (simulation): time 1.874e-06/0.1728, allocations: 3.938 kB / 0.6985 GB, free: 14.65 MB / 0.4981 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 9.077e-06/0.1728, allocations: 0 / 0.6985 GB, free: 14.65 MB / 0.4981 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.262e-06/0.1728, allocations: 0 / 0.6985 GB, free: 14.65 MB / 0.4981 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 6.81e-07/0.1728, allocations: 0 / 0.6985 GB, free: 14.65 MB / 0.4981 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002709/0.1731, allocations: 219.4 kB / 0.6987 GB, free: 14.42 MB / 0.4981 GB Notification: Performance of postOpt removeConstants (simulation): time 4.606e-05/0.1731, allocations: 81.02 kB / 0.6988 GB, free: 14.32 MB / 0.4981 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.92e-05/0.1731, allocations: 12.09 kB / 0.6988 GB, free: 14.31 MB / 0.4981 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 9.179e-05/0.1732, allocations: 4 kB / 0.6988 GB, free: 14.3 MB / 0.4981 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 2.072e-05/0.1733, allocations: 7.984 kB / 0.6988 GB, free: 14.3 MB / 0.4981 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 8.606e-06/0.1733, allocations: 7.938 kB / 0.6988 GB, free: 14.29 MB / 0.4981 GB Notification: Performance of sorting global known variables: time 4.036e-05/0.1733, allocations: 75.28 kB / 0.6989 GB, free: 14.21 MB / 0.4981 GB Notification: Performance of sort global known variables: time 1.2e-07/0.1733, allocations: 3.938 kB / 0.6989 GB, free: 14.21 MB / 0.4981 GB Notification: Performance of remove unused functions: time 0.0002879/0.1736, allocations: 39.98 kB / 0.699 GB, free: 14.17 MB / 0.4981 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.0002106/0.1738, allocations: 135.2 kB / 0.6991 GB, free: 14.03 MB / 0.4981 GB Notification: Performance of simCode: created initialization part: time 0.0001659/0.174, allocations: 67.91 kB / 0.6992 GB, free: 13.96 MB / 0.4981 GB Notification: Performance of simCode: created event and clocks part: time 2.545e-06/0.174, allocations: 3.938 kB / 0.6992 GB, free: 13.96 MB / 0.4981 GB Notification: Performance of simCode: created simulation system equations: time 5.184e-05/0.1741, allocations: 31.98 kB / 0.6992 GB, free: 13.93 MB / 0.4981 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002154/0.1743, allocations: 11 kB / 0.6992 GB, free: 13.92 MB / 0.4981 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.000577/0.1749, allocations: 305 kB / 0.6995 GB, free: 13.6 MB / 0.4981 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003186/0.1752, allocations: 0.6846 MB / 0.7002 GB, free: 12.89 MB / 0.4981 GB Notification: Performance of simCode: alias equations: time 4.569e-05/0.1753, allocations: 7.984 kB / 0.7002 GB, free: 12.88 MB / 0.4981 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 2.653e-05/0.1753, allocations: 15.44 kB / 0.7002 GB, free: 12.86 MB / 0.4981 GB Notification: Performance of SimCode: time 2.5e-07/0.1753, allocations: 0 / 0.7002 GB, free: 12.86 MB / 0.4981 GB Notification: Performance of Templates: time 0.003746/0.1791, allocations: 0.9475 MB / 0.7011 GB, free: 11.95 MB / 0.4981 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)