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.001772/0.001772, allocations: 103.4 kB / 15.34 MB, free: 0.5039 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.002074/0.002075, allocations: 195.8 kB / 16.25 MB, free: 6.633 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.473/1.473, allocations: 222.9 MB / 239.9 MB, free: 4.516 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/NcDataReader2 2.5.1-master/package.mo): time 0.002587/0.002587, allocations: 279.2 kB / 290.4 MB, free: 2.129 MB / 238.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/BuildingSystems 2.0.0-master/package.mo): time 1.055/1.055, allocations: 178.6 MB / 0.5069 GB, free: 4.711 MB / 382.1 MB Notification: Performance of FrontEnd - loaded program: time 0.002663/0.002663, allocations: 97.45 kB / 0.6059 GB, free: 25.11 MB / 430.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1632/0.1658, allocations: 89.14 MB / 0.693 GB, free: 4.676 MB / 494.1 MB Notification: Performance of NFInst.instantiate(BuildingSystems.Fluid.BaseClasses.FlowModels.Validation.BasicFlowFunction_m_flow_DerivativeCheck2): time 0.002898/0.1688, allocations: 1.532 MB / 0.6945 GB, free: 3.145 MB / 494.1 MB Notification: Performance of NFInst.instExpressions: time 0.001134/0.1699, allocations: 0.6343 MB / 0.6951 GB, free: 2.512 MB / 494.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 3.711e-05/0.17, allocations: 5.969 kB / 0.6951 GB, free: 2.508 MB / 494.1 MB Notification: Performance of NFTyping.typeComponents: time 3.456e-05/0.17, allocations: 3.938 kB / 0.6951 GB, free: 2.504 MB / 494.1 MB Notification: Performance of NFTyping.typeBindings: time 5.209e-05/0.1701, allocations: 3.984 kB / 0.6951 GB, free: 2.5 MB / 494.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0005428/0.1706, allocations: 148.9 kB / 0.6952 GB, free: 2.359 MB / 494.1 MB Notification: Performance of NFFlatten.flatten: time 7.839e-05/0.1707, allocations: 47.86 kB / 0.6953 GB, free: 2.312 MB / 494.1 MB Notification: Performance of NFFlatten.resolveConnections: time 4.158e-05/0.1708, allocations: 3.984 kB / 0.6953 GB, free: 2.309 MB / 494.1 MB Notification: Performance of NFEvalConstants.evaluate: time 5.419e-05/0.1708, allocations: 23.92 kB / 0.6953 GB, free: 2.285 MB / 494.1 MB Notification: Performance of NFSimplifyModel.simplify: time 5.321e-05/0.1709, allocations: 31.84 kB / 0.6953 GB, free: 2.254 MB / 494.1 MB Notification: Performance of NFPackage.collectConstants: time 1.393e-05/0.1709, allocations: 4 kB / 0.6954 GB, free: 2.25 MB / 494.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0005824/0.1715, allocations: 349.4 kB / 0.6957 GB, free: 1.91 MB / 494.1 MB Notification: Performance of NFScalarize.scalarize: time 1.897e-05/0.1715, allocations: 11.98 kB / 0.6957 GB, free: 1.898 MB / 494.1 MB Notification: Performance of NFVerifyModel.verify: time 3.861e-05/0.1716, allocations: 23.88 kB / 0.6957 GB, free: 1.875 MB / 494.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0002775/0.1719, allocations: 179.7 kB / 0.6959 GB, free: 1.699 MB / 494.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.088e-06/0.1719, allocations: 0 / 0.6959 GB, free: 1.699 MB / 494.1 MB Notification: Performance of FrontEnd: time 1.352e-06/0.1719, allocations: 0.5938 kB / 0.6959 GB, free: 1.699 MB / 494.1 MB Notification: Performance of Transformations before backend: time 4.799e-06/0.1719, allocations: 0 / 0.6959 GB, free: 1.699 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.0006307/0.1725, allocations: 401 kB / 0.6963 GB, free: 1.258 MB / 494.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.403e-05/0.1726, allocations: 8.031 kB / 0.6963 GB, free: 1.25 MB / 494.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.92e-05/0.1726, allocations: 12.84 kB / 0.6963 GB, free: 1.238 MB / 494.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001589/0.1728, allocations: 164.4 kB / 0.6964 GB, free: 1.039 MB / 494.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.269e-05/0.1728, allocations: 384 / 0.6964 GB, free: 1.039 MB / 494.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 2.599e-05/0.1728, allocations: 8.375 kB / 0.6965 GB, free: 1.031 MB / 494.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002477/0.1731, allocations: 86.09 kB / 0.6965 GB, free: 0.9414 MB / 494.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.238e-05/0.1731, allocations: 192 / 0.6965 GB, free: 0.9414 MB / 494.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.645e-05/0.1731, allocations: 7.938 kB / 0.6965 GB, free: 0.9336 MB / 494.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.524e-06/0.1731, allocations: 3.984 kB / 0.6966 GB, free: 0.9297 MB / 494.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002442/0.1734, allocations: 51.97 kB / 0.6966 GB, free: 0.8789 MB / 494.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0005673/0.174, allocations: 328.6 kB / 0.6969 GB, free: 0.5078 MB / 494.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0002867/0.1743, allocations: 82.53 kB / 0.697 GB, free: 428 kB / 494.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001154/0.1744, allocations: 32.83 kB / 0.697 GB, free: 392 kB / 494.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.164e-05/0.1744, allocations: 4 kB / 0.697 GB, free: 388 kB / 494.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.696e-05/0.1745, allocations: 34.5 kB / 0.6971 GB, free: 344 kB / 494.1 MB Notification: Performance of pre-optimization done (n=7): time 1.162e-06/0.1745, allocations: 0 / 0.6971 GB, free: 344 kB / 494.1 MB Notification: Performance of matching and sorting (n=11): time 0.00167/0.1761, allocations: 0.6463 MB / 0.6977 GB, free: 15.59 MB / 0.4981 GB Notification: Performance of inlineWhenForInitialization (initialization): time 3.753e-05/0.1762, allocations: 55.34 kB / 0.6977 GB, free: 15.53 MB / 0.4981 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 8.352e-05/0.1763, allocations: 109.8 kB / 0.6978 GB, free: 15.41 MB / 0.4981 GB Notification: Performance of collectPreVariables (initialization): time 2.987e-05/0.1763, allocations: 37.7 kB / 0.6979 GB, free: 15.37 MB / 0.4981 GB Notification: Performance of collectInitialEqns (initialization): time 5.219e-05/0.1764, allocations: 84.05 kB / 0.698 GB, free: 15.28 MB / 0.4981 GB Notification: Performance of collectInitialBindings (initialization): time 4.057e-05/0.1764, allocations: 39.39 kB / 0.698 GB, free: 15.24 MB / 0.4981 GB Notification: Performance of simplifyInitialFunctions (initialization): time 5.291e-05/0.1765, allocations: 33.7 kB / 0.698 GB, free: 15.2 MB / 0.4981 GB Notification: Performance of setup shared object (initialization): time 0.0001355/0.1766, allocations: 318.8 kB / 0.6983 GB, free: 14.88 MB / 0.4981 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001379/0.1768, allocations: 31.97 kB / 0.6984 GB, free: 14.85 MB / 0.4981 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001221/0.1769, allocations: 27.98 kB / 0.6984 GB, free: 14.82 MB / 0.4981 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002487/0.1771, allocations: 78.7 kB / 0.6985 GB, free: 14.75 MB / 0.4981 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 8.62e-07/0.1772, allocations: 0 / 0.6985 GB, free: 14.75 MB / 0.4981 GB Notification: Performance of matching and sorting (n=13) (initialization): time 0.0003274/0.1775, allocations: 124.6 kB / 0.6986 GB, free: 14.62 MB / 0.4981 GB Notification: Performance of prepare postOptimizeDAE: time 1.363e-05/0.1775, allocations: 4 kB / 0.6986 GB, free: 14.62 MB / 0.4981 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.967e-06/0.1775, allocations: 4 kB / 0.6986 GB, free: 14.61 MB / 0.4981 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.092e-05/0.1775, allocations: 0 / 0.6986 GB, free: 14.61 MB / 0.4981 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001505/0.1777, allocations: 27.97 kB / 0.6986 GB, free: 14.59 MB / 0.4981 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 4.909e-06/0.1777, allocations: 4 kB / 0.6986 GB, free: 14.58 MB / 0.4981 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 6.799e-05/0.1778, allocations: 11.94 kB / 0.6986 GB, free: 14.57 MB / 0.4981 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 9.859e-06/0.1778, allocations: 4 kB / 0.6986 GB, free: 14.57 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.63e-05/0.1779, allocations: 113.8 kB / 0.6988 GB, free: 14.45 MB / 0.4981 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.175e-05/0.1779, allocations: 3.906 kB / 0.6988 GB, free: 14.44 MB / 0.4981 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0003895/0.1783, allocations: 141.4 kB / 0.6989 GB, free: 14.3 MB / 0.4981 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.124e-06/0.1783, allocations: 0 / 0.6989 GB, free: 14.3 MB / 0.4981 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.478e-06/0.1783, allocations: 4 kB / 0.6989 GB, free: 14.29 MB / 0.4981 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.139e-06/0.1784, allocations: 3.938 kB / 0.6989 GB, free: 14.29 MB / 0.4981 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0005934/0.179, allocations: 382.4 kB / 0.6993 GB, free: 13.86 MB / 0.4981 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.844e-06/0.179, allocations: 0 / 0.6993 GB, free: 13.86 MB / 0.4981 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001481/0.1791, allocations: 23.98 kB / 0.6993 GB, free: 13.84 MB / 0.4981 GB Notification: Performance of postOpt tearingSystem (simulation): time 1.994e-06/0.1791, allocations: 0 / 0.6993 GB, free: 13.84 MB / 0.4981 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.602e-05/0.1792, allocations: 11.94 kB / 0.6993 GB, free: 13.83 MB / 0.4981 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.413e-06/0.1792, allocations: 0 / 0.6993 GB, free: 13.83 MB / 0.4981 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.876e-06/0.1792, allocations: 4 kB / 0.6993 GB, free: 13.82 MB / 0.4981 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0005102/0.1797, allocations: 251.3 kB / 0.6995 GB, free: 13.56 MB / 0.4981 GB Notification: Performance of postOpt removeConstants (simulation): time 4.77e-05/0.1797, allocations: 85.12 kB / 0.6996 GB, free: 13.46 MB / 0.4981 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.035e-05/0.1798, allocations: 3.938 kB / 0.6996 GB, free: 13.46 MB / 0.4981 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.000117/0.1799, allocations: 4 kB / 0.6996 GB, free: 13.45 MB / 0.4981 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 2.308e-05/0.1799, allocations: 16.05 kB / 0.6996 GB, free: 13.44 MB / 0.4981 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.22e-05/0.1799, allocations: 8 kB / 0.6997 GB, free: 13.43 MB / 0.4981 GB Notification: Performance of sorting global known variables: time 4.082e-05/0.18, allocations: 75.28 kB / 0.6997 GB, free: 13.36 MB / 0.4981 GB Notification: Performance of sort global known variables: time 1.2e-07/0.18, allocations: 4 kB / 0.6997 GB, free: 13.35 MB / 0.4981 GB Notification: Performance of remove unused functions: time 0.0002744/0.1803, allocations: 35.98 kB / 0.6998 GB, free: 13.32 MB / 0.4981 GB 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.000222/0.1805, allocations: 143.1 kB / 0.6999 GB, free: 13.17 MB / 0.4981 GB Notification: Performance of simCode: created initialization part: time 0.0003374/0.1808, allocations: 87.88 kB / 0.7 GB, free: 13.08 MB / 0.4981 GB Notification: Performance of simCode: created event and clocks part: time 2.294e-06/0.1809, allocations: 4 kB / 0.7 GB, free: 13.08 MB / 0.4981 GB Notification: Performance of simCode: created simulation system equations: time 0.0001409/0.181, allocations: 43.92 kB / 0.7 GB, free: 13.04 MB / 0.4981 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003225/0.1813, allocations: 12.64 kB / 0.7 GB, free: 13.02 MB / 0.4981 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0006877/0.182, allocations: 338 kB / 0.7004 GB, free: 12.66 MB / 0.4981 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.000401/0.1824, allocations: 0.6962 MB / 0.701 GB, free: 11.94 MB / 0.4981 GB Notification: Performance of simCode: alias equations: time 6.014e-05/0.1825, allocations: 16.61 kB / 0.7011 GB, free: 11.92 MB / 0.4981 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 2.878e-05/0.1825, allocations: 11.44 kB / 0.7011 GB, free: 11.91 MB / 0.4981 GB Notification: Performance of SimCode: time 2.3e-07/0.1825, allocations: 0 / 0.7011 GB, free: 11.91 MB / 0.4981 GB Notification: Performance of Templates: time 0.003867/0.1864, allocations: 1.133 MB / 0.7022 GB, free: 10.82 MB / 0.4981 GB 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)