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.001419/0.001419, allocations: 111.3 kB / 15.23 MB, free: 0.6406 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.001692/0.001692, allocations: 199.2 kB / 16.14 MB, free: 6.715 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.367/1.367, allocations: 222.9 MB / 239.8 MB, free: 4.617 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/NcDataReader2 2.5.1-master/package.mo): time 0.002157/0.002157, allocations: 290.8 kB / 290.2 MB, free: 2.207 MB / 238.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/BuildingSystems 2.0.0-master/package.mo): time 0.962/0.962, allocations: 169.2 MB / 0.4977 GB, free: 14.16 MB / 382.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001612/0.001612, allocations: 94.67 kB / 0.5945 GB, free: 28.34 MB / 430.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.16/0.1616, allocations: 86.98 MB / 0.6794 GB, free: 1.188 MB / 478.1 MB Notification: Performance of NFInst.instantiate(BuildingSystems.Fluid.BaseClasses.FlowModels.Validation.BasicFlowFunction_m_flow_DerivativeCheck): time 0.002374/0.164, allocations: 1.33 MB / 0.6807 GB, free: 15.86 MB / 494.1 MB Notification: Performance of NFInst.instExpressions: time 0.001009/0.1651, allocations: 0.6297 MB / 0.6814 GB, free: 15.23 MB / 494.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 1.379e-05/0.1651, allocations: 4 kB / 0.6814 GB, free: 15.22 MB / 494.1 MB Notification: Performance of NFTyping.typeComponents: time 2.194e-05/0.1651, allocations: 7.922 kB / 0.6814 GB, free: 15.21 MB / 494.1 MB Notification: Performance of NFTyping.typeBindings: time 3.505e-05/0.1652, allocations: 0 / 0.6814 GB, free: 15.21 MB / 494.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.000446/0.1656, allocations: 122.2 kB / 0.6815 GB, free: 15.1 MB / 494.1 MB Notification: Performance of NFFlatten.flatten: time 4.449e-05/0.1657, allocations: 23.86 kB / 0.6815 GB, free: 15.07 MB / 494.1 MB Notification: Performance of NFFlatten.resolveConnections: time 4.032e-05/0.1657, allocations: 4 kB / 0.6815 GB, free: 15.07 MB / 494.1 MB Notification: Performance of NFEvalConstants.evaluate: time 3.225e-05/0.1658, allocations: 11.94 kB / 0.6815 GB, free: 15.06 MB / 494.1 MB Notification: Performance of NFSimplifyModel.simplify: time 4.864e-05/0.1658, allocations: 15.92 kB / 0.6815 GB, free: 15.04 MB / 494.1 MB Notification: Performance of NFPackage.collectConstants: time 1.152e-05/0.1658, allocations: 0 / 0.6815 GB, free: 15.04 MB / 494.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0004647/0.1663, allocations: 339.4 kB / 0.6819 GB, free: 14.71 MB / 494.1 MB Notification: Performance of NFScalarize.scalarize: time 9.217e-06/0.1663, allocations: 0 / 0.6819 GB, free: 14.71 MB / 494.1 MB Notification: Performance of NFVerifyModel.verify: time 2.476e-05/0.1664, allocations: 11.94 kB / 0.6819 GB, free: 14.7 MB / 494.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0002432/0.1666, allocations: 151.9 kB / 0.682 GB, free: 14.55 MB / 494.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.078e-06/0.1666, allocations: 0 / 0.682 GB, free: 14.55 MB / 494.1 MB Notification: Performance of FrontEnd: time 8.82e-07/0.1666, allocations: 3.938 kB / 0.682 GB, free: 14.55 MB / 494.1 MB Notification: Performance of Transformations before backend: time 3.417e-06/0.1666, allocations: 0 / 0.682 GB, free: 14.55 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.0004165/0.1671, allocations: 363.5 kB / 0.6824 GB, free: 14.14 MB / 494.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.505e-05/0.1671, allocations: 8.031 kB / 0.6824 GB, free: 14.13 MB / 494.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.609e-05/0.1671, allocations: 12.83 kB / 0.6824 GB, free: 14.12 MB / 494.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001257/0.1673, allocations: 164.3 kB / 0.6825 GB, free: 13.92 MB / 494.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 8.196e-06/0.1673, allocations: 384 / 0.6825 GB, free: 13.92 MB / 494.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 2.118e-05/0.1673, allocations: 4.375 kB / 0.6826 GB, free: 13.92 MB / 494.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001003/0.1674, allocations: 38.25 kB / 0.6826 GB, free: 13.88 MB / 494.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 7.214e-06/0.1674, allocations: 192 / 0.6826 GB, free: 13.88 MB / 494.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.107e-05/0.1674, allocations: 3.938 kB / 0.6826 GB, free: 13.87 MB / 494.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.35e-06/0.1675, allocations: 8 kB / 0.6826 GB, free: 13.86 MB / 494.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 3.679e-05/0.1675, allocations: 8 kB / 0.6826 GB, free: 13.86 MB / 494.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.00017/0.1677, allocations: 153.7 kB / 0.6828 GB, free: 13.66 MB / 494.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0001775/0.1679, allocations: 46.55 kB / 0.6828 GB, free: 13.6 MB / 494.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 3.862e-05/0.1679, allocations: 20.94 kB / 0.6828 GB, free: 13.58 MB / 494.1 MB Notification: Performance of preOpt evalFunc (simulation): time 1.736e-05/0.1679, allocations: 4 kB / 0.6828 GB, free: 13.57 MB / 494.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.028e-05/0.168, allocations: 34.56 kB / 0.6829 GB, free: 13.53 MB / 494.1 MB Notification: Performance of pre-optimization done (n=4): time 1.172e-06/0.168, allocations: 0 / 0.6829 GB, free: 13.53 MB / 494.1 MB Notification: Performance of matching and sorting (n=6): time 0.0005794/0.1686, allocations: 306.2 kB / 0.6831 GB, free: 13.18 MB / 494.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.442e-05/0.1686, allocations: 59.39 kB / 0.6832 GB, free: 13.11 MB / 494.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 7.204e-05/0.1687, allocations: 98.19 kB / 0.6833 GB, free: 13 MB / 494.1 MB Notification: Performance of collectPreVariables (initialization): time 1.646e-05/0.1687, allocations: 25.7 kB / 0.6833 GB, free: 12.97 MB / 494.1 MB Notification: Performance of collectInitialEqns (initialization): time 3.146e-05/0.1687, allocations: 80.14 kB / 0.6834 GB, free: 12.89 MB / 494.1 MB Notification: Performance of collectInitialBindings (initialization): time 3.697e-05/0.1688, allocations: 39.56 kB / 0.6834 GB, free: 12.85 MB / 494.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 3.196e-05/0.1688, allocations: 17.72 kB / 0.6835 GB, free: 12.83 MB / 494.1 MB Notification: Performance of setup shared object (initialization): time 9.982e-05/0.1689, allocations: 310.8 kB / 0.6837 GB, free: 12.52 MB / 494.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 2.754e-05/0.169, allocations: 19.92 kB / 0.6838 GB, free: 12.5 MB / 494.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 2.049e-05/0.169, allocations: 12 kB / 0.6838 GB, free: 12.48 MB / 494.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 5.609e-05/0.169, allocations: 28.92 kB / 0.6838 GB, free: 12.45 MB / 494.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 6.51e-07/0.1691, allocations: 0 / 0.6838 GB, free: 12.45 MB / 494.1 MB Notification: Performance of matching and sorting (n=7) (initialization): time 9.393e-05/0.1692, allocations: 65.88 kB / 0.6839 GB, free: 12.38 MB / 494.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.055e-05/0.1692, allocations: 7.938 kB / 0.6839 GB, free: 12.38 MB / 494.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.521e-06/0.1692, allocations: 8 kB / 0.6839 GB, free: 12.37 MB / 494.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 9.798e-06/0.1692, allocations: 0 / 0.6839 GB, free: 12.37 MB / 494.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 5.374e-05/0.1693, allocations: 19.91 kB / 0.6839 GB, free: 12.35 MB / 494.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 4.829e-06/0.1693, allocations: 0 / 0.6839 GB, free: 12.35 MB / 494.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 1.706e-05/0.1693, allocations: 0 / 0.6839 GB, free: 12.35 MB / 494.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 7.635e-06/0.1693, allocations: 4 kB / 0.6839 GB, free: 12.34 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 6.544e-05/0.1694, allocations: 114.4 kB / 0.684 GB, free: 12.22 MB / 494.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.477e-05/0.1694, allocations: 11.84 kB / 0.684 GB, free: 12.21 MB / 494.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001344/0.1695, allocations: 69.64 kB / 0.6841 GB, free: 12.14 MB / 494.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.783e-06/0.1696, allocations: 4 kB / 0.6841 GB, free: 12.13 MB / 494.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.537e-06/0.1696, allocations: 0 / 0.6841 GB, free: 12.13 MB / 494.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.715e-06/0.1696, allocations: 4 kB / 0.6841 GB, free: 12.13 MB / 494.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0003083/0.1699, allocations: 319.3 kB / 0.6844 GB, free: 11.76 MB / 494.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.363e-06/0.1699, allocations: 0 / 0.6844 GB, free: 11.76 MB / 494.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 6.297e-05/0.17, allocations: 11.98 kB / 0.6844 GB, free: 11.75 MB / 494.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 3.456e-06/0.17, allocations: 7.938 kB / 0.6844 GB, free: 11.74 MB / 494.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 7.184e-06/0.17, allocations: 0 / 0.6844 GB, free: 11.74 MB / 494.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.663e-06/0.17, allocations: 0 / 0.6844 GB, free: 11.74 MB / 494.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 9.12e-07/0.17, allocations: 4.031 kB / 0.6844 GB, free: 11.73 MB / 494.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001828/0.1702, allocations: 176.3 kB / 0.6846 GB, free: 11.54 MB / 494.1 MB Notification: Performance of postOpt removeConstants (simulation): time 4.861e-05/0.1702, allocations: 85 kB / 0.6847 GB, free: 11.44 MB / 494.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.639e-05/0.1703, allocations: 4.219 kB / 0.6847 GB, free: 11.44 MB / 494.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 8.683e-05/0.1704, allocations: 8 kB / 0.6847 GB, free: 11.43 MB / 494.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 1.858e-05/0.1704, allocations: 11.92 kB / 0.6847 GB, free: 11.42 MB / 494.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.441e-06/0.1704, allocations: 4.062 kB / 0.6847 GB, free: 11.41 MB / 494.1 MB Notification: Performance of sorting global known variables: time 3.757e-05/0.1704, allocations: 79.28 kB / 0.6848 GB, free: 11.34 MB / 494.1 MB Notification: Performance of sort global known variables: time 1.903e-06/0.1704, allocations: 0 / 0.6848 GB, free: 11.34 MB / 494.1 MB Notification: Performance of remove unused functions: time 0.0002492/0.1707, allocations: 27.94 kB / 0.6848 GB, free: 11.31 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.0001834/0.1709, allocations: 123.1 kB / 0.6849 GB, free: 11.18 MB / 494.1 MB Notification: Performance of simCode: created initialization part: time 9.119e-05/0.171, allocations: 31.98 kB / 0.685 GB, free: 11.15 MB / 494.1 MB Notification: Performance of simCode: created event and clocks part: time 2.314e-06/0.171, allocations: 0 / 0.685 GB, free: 11.15 MB / 494.1 MB Notification: Performance of simCode: created simulation system equations: time 3.187e-05/0.171, allocations: 23.98 kB / 0.685 GB, free: 11.12 MB / 494.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.000237/0.1713, allocations: 14.61 kB / 0.685 GB, free: 11.11 MB / 494.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0004149/0.1717, allocations: 189.9 kB / 0.6852 GB, free: 10.9 MB / 494.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002565/0.172, allocations: 0.6809 MB / 0.6858 GB, free: 10.19 MB / 494.1 MB Notification: Performance of simCode: alias equations: time 3.297e-05/0.172, allocations: 11.92 kB / 0.6859 GB, free: 10.18 MB / 494.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 1.719e-05/0.172, allocations: 7.438 kB / 0.6859 GB, free: 10.17 MB / 494.1 MB Notification: Performance of SimCode: time 3.41e-07/0.172, allocations: 0 / 0.6859 GB, free: 10.17 MB / 494.1 MB Notification: Performance of Templates: time 0.002687/0.1747, allocations: 0.634 MB / 0.6865 GB, free: 9.578 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 -lv LOG_STATS > BuildingSystems_BuildingSystems.Fluid.BaseClasses.FlowModels.Validation.BasicFlowFunction_m_flow_DerivativeCheck.pipe 2>&1)