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.001469/0.001468, 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.001856/0.001856, allocations: 196.1 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.492/1.492, allocations: 222.9 MB / 239.8 MB, free: 4.52 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/NcDataReader2 2.5.1-master/package.mo): time 0.002644/0.002644, allocations: 271.2 kB / 290.2 MB, free: 2.125 MB / 238.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/BuildingSystems 2.0.0-master/package.mo): time 1.098/1.098, allocations: 178.6 MB / 0.5068 GB, free: 4.746 MB / 382.1 MB Notification: Performance of FrontEnd - loaded program: time 0.002734/0.002734, allocations: 99.3 kB / 0.6057 GB, free: 24.84 MB / 430.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1718/0.1745, allocations: 89.16 MB / 0.6928 GB, free: 4.812 MB / 494.1 MB Notification: Performance of NFInst.instantiate(BuildingSystems.Fluid.BaseClasses.FlowModels.Validation.BasicFlowFunction_m_flow_DerivativeCheck): time 0.002467/0.177, allocations: 1.335 MB / 0.6941 GB, free: 3.473 MB / 494.1 MB Notification: Performance of NFInst.instExpressions: time 0.001061/0.1781, allocations: 0.6352 MB / 0.6947 GB, free: 2.84 MB / 494.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 1.429e-05/0.1781, allocations: 0 / 0.6947 GB, free: 2.84 MB / 494.1 MB Notification: Performance of NFTyping.typeComponents: time 1.892e-05/0.1781, allocations: 4 kB / 0.6947 GB, free: 2.836 MB / 494.1 MB Notification: Performance of NFTyping.typeBindings: time 3.375e-05/0.1782, allocations: 3.938 kB / 0.6947 GB, free: 2.832 MB / 494.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0004515/0.1786, allocations: 119.6 kB / 0.6948 GB, free: 2.715 MB / 494.1 MB Notification: Performance of NFFlatten.flatten: time 4.995e-05/0.1787, allocations: 27.86 kB / 0.6949 GB, free: 2.688 MB / 494.1 MB Notification: Performance of NFFlatten.resolveConnections: time 3.354e-05/0.1787, allocations: 0 / 0.6949 GB, free: 2.688 MB / 494.1 MB Notification: Performance of NFEvalConstants.evaluate: time 3.108e-05/0.1788, allocations: 4 kB / 0.6949 GB, free: 2.684 MB / 494.1 MB Notification: Performance of NFSimplifyModel.simplify: time 4.258e-05/0.1788, allocations: 11.94 kB / 0.6949 GB, free: 2.672 MB / 494.1 MB Notification: Performance of NFPackage.collectConstants: time 1.033e-05/0.1788, allocations: 0 / 0.6949 GB, free: 2.672 MB / 494.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0005082/0.1794, allocations: 351.3 kB / 0.6952 GB, free: 2.328 MB / 494.1 MB Notification: Performance of NFScalarize.scalarize: time 1.146e-05/0.1794, allocations: 3.984 kB / 0.6952 GB, free: 2.324 MB / 494.1 MB Notification: Performance of NFVerifyModel.verify: time 2.234e-05/0.1794, allocations: 7.938 kB / 0.6952 GB, free: 2.316 MB / 494.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0002651/0.1797, allocations: 147.9 kB / 0.6954 GB, free: 2.172 MB / 494.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.32e-06/0.1797, allocations: 0 / 0.6954 GB, free: 2.172 MB / 494.1 MB Notification: Performance of FrontEnd: time 7.11e-07/0.1797, allocations: 0 / 0.6954 GB, free: 2.172 MB / 494.1 MB Notification: Performance of Transformations before backend: time 3.747e-06/0.1797, allocations: 0 / 0.6954 GB, free: 2.172 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.0004585/0.1802, allocations: 367.4 kB / 0.6957 GB, free: 1.762 MB / 494.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.509e-05/0.1802, allocations: 12.03 kB / 0.6957 GB, free: 1.75 MB / 494.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 4.344e-05/0.1803, allocations: 4.875 kB / 0.6957 GB, free: 1.746 MB / 494.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001263/0.1804, allocations: 164.4 kB / 0.6959 GB, free: 1.547 MB / 494.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.298e-05/0.1804, allocations: 4.375 kB / 0.6959 GB, free: 1.543 MB / 494.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.672e-05/0.1804, allocations: 384 / 0.6959 GB, free: 1.543 MB / 494.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001203/0.1806, allocations: 42.25 kB / 0.6959 GB, free: 1.496 MB / 494.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 9.438e-06/0.1806, allocations: 4.125 kB / 0.6959 GB, free: 1.492 MB / 494.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.229e-05/0.1806, allocations: 3.938 kB / 0.696 GB, free: 1.488 MB / 494.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.278e-06/0.1806, allocations: 0 / 0.696 GB, free: 1.488 MB / 494.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 4.237e-05/0.1806, allocations: 15.98 kB / 0.696 GB, free: 1.473 MB / 494.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0001917/0.1808, allocations: 153.7 kB / 0.6961 GB, free: 1.273 MB / 494.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0001974/0.181, allocations: 42.61 kB / 0.6962 GB, free: 1.223 MB / 494.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 3.771e-05/0.1811, allocations: 20.84 kB / 0.6962 GB, free: 1.199 MB / 494.1 MB Notification: Performance of preOpt evalFunc (simulation): time 1.819e-05/0.1811, allocations: 0 / 0.6962 GB, free: 1.199 MB / 494.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.63e-05/0.1812, allocations: 46.58 kB / 0.6962 GB, free: 1.145 MB / 494.1 MB Notification: Performance of pre-optimization done (n=4): time 8.32e-07/0.1812, allocations: 0 / 0.6962 GB, free: 1.145 MB / 494.1 MB Notification: Performance of matching and sorting (n=6): time 0.0006368/0.1818, allocations: 310.1 kB / 0.6965 GB, free: 0.7891 MB / 494.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.873e-05/0.1819, allocations: 51.41 kB / 0.6966 GB, free: 0.7266 MB / 494.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 7.685e-05/0.1819, allocations: 101.8 kB / 0.6967 GB, free: 0.6172 MB / 494.1 MB Notification: Performance of collectPreVariables (initialization): time 1.782e-05/0.182, allocations: 25.7 kB / 0.6967 GB, free: 0.5859 MB / 494.1 MB Notification: Performance of collectInitialEqns (initialization): time 4.415e-05/0.182, allocations: 80.14 kB / 0.6968 GB, free: 0.5039 MB / 494.1 MB Notification: Performance of collectInitialBindings (initialization): time 2.554e-05/0.182, allocations: 15.81 kB / 0.6968 GB, free: 500 kB / 494.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 4.187e-05/0.1821, allocations: 21.7 kB / 0.6968 GB, free: 472 kB / 494.1 MB Notification: Performance of setup shared object (initialization): time 0.0001403/0.1822, allocations: 318.8 kB / 0.6971 GB, free: 144 kB / 494.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 2.472e-05/0.1823, allocations: 15.94 kB / 0.6971 GB, free: 128 kB / 494.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 2.41e-05/0.1823, allocations: 19.92 kB / 0.6971 GB, free: 108 kB / 494.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 5.786e-05/0.1824, allocations: 28.86 kB / 0.6972 GB, free: 76 kB / 494.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 6.51e-07/0.1824, allocations: 0 / 0.6972 GB, free: 76 kB / 494.1 MB Notification: Performance of matching and sorting (n=7) (initialization): time 0.0001243/0.1825, allocations: 73.58 kB / 0.6972 GB, free: 15.99 MB / 0.4981 GB Notification: Performance of prepare postOptimizeDAE: time 1.417e-05/0.1825, allocations: 7.938 kB / 0.6972 GB, free: 15.98 MB / 0.4981 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.656e-06/0.1825, allocations: 0 / 0.6972 GB, free: 15.98 MB / 0.4981 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.072e-05/0.1825, allocations: 0 / 0.6972 GB, free: 15.98 MB / 0.4981 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 5.532e-05/0.1826, allocations: 12 kB / 0.6973 GB, free: 15.97 MB / 0.4981 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 4.438e-06/0.1826, allocations: 0 / 0.6973 GB, free: 15.97 MB / 0.4981 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 1.775e-05/0.1826, allocations: 4 kB / 0.6973 GB, free: 15.97 MB / 0.4981 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.708e-06/0.1827, allocations: 0 / 0.6973 GB, free: 15.97 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 (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.445e-05/0.1827, allocations: 117.8 kB / 0.6974 GB, free: 15.85 MB / 0.4981 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.29e-05/0.1828, allocations: 3.938 kB / 0.6974 GB, free: 15.84 MB / 0.4981 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001598/0.1829, allocations: 73.72 kB / 0.6974 GB, free: 15.77 MB / 0.4981 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.553e-06/0.1829, allocations: 0 / 0.6974 GB, free: 15.77 MB / 0.4981 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.831e-06/0.1829, allocations: 4 kB / 0.6974 GB, free: 15.76 MB / 0.4981 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.136e-06/0.183, allocations: 0 / 0.6974 GB, free: 15.76 MB / 0.4981 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0003373/0.1833, allocations: 319.3 kB / 0.6978 GB, free: 15.39 MB / 0.4981 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.363e-06/0.1833, allocations: 0 / 0.6978 GB, free: 15.39 MB / 0.4981 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 6.509e-05/0.1834, allocations: 16 kB / 0.6978 GB, free: 15.38 MB / 0.4981 GB Notification: Performance of postOpt tearingSystem (simulation): time 1.894e-06/0.1834, allocations: 0 / 0.6978 GB, free: 15.38 MB / 0.4981 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 6.613e-06/0.1834, allocations: 0 / 0.6978 GB, free: 15.38 MB / 0.4981 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.817e-06/0.1834, allocations: 4 kB / 0.6978 GB, free: 15.37 MB / 0.4981 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 8.02e-07/0.1834, allocations: 0 / 0.6978 GB, free: 15.37 MB / 0.4981 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002004/0.1836, allocations: 192.2 kB / 0.698 GB, free: 15.16 MB / 0.4981 GB Notification: Performance of postOpt removeConstants (simulation): time 6.259e-05/0.1837, allocations: 81.14 kB / 0.698 GB, free: 15.07 MB / 0.4981 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.439e-05/0.1837, allocations: 3.984 kB / 0.698 GB, free: 15.06 MB / 0.4981 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 7.127e-05/0.1838, allocations: 0 / 0.698 GB, free: 15.06 MB / 0.4981 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 2.259e-05/0.1838, allocations: 8 kB / 0.698 GB, free: 15.05 MB / 0.4981 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 6.843e-06/0.1838, allocations: 4 kB / 0.698 GB, free: 15.05 MB / 0.4981 GB Notification: Performance of sorting global known variables: time 4.106e-05/0.1839, allocations: 75.8 kB / 0.6981 GB, free: 14.98 MB / 0.4981 GB Notification: Performance of sort global known variables: time 1.1e-07/0.1839, allocations: 0 / 0.6981 GB, free: 14.98 MB / 0.4981 GB Notification: Performance of remove unused functions: time 0.000248/0.1841, allocations: 35.92 kB / 0.6982 GB, free: 14.94 MB / 0.4981 GB 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.0002052/0.1843, allocations: 123.2 kB / 0.6983 GB, free: 14.81 MB / 0.4981 GB Notification: Performance of simCode: created initialization part: time 0.000104/0.1845, allocations: 36.16 kB / 0.6983 GB, free: 14.78 MB / 0.4981 GB Notification: Performance of simCode: created event and clocks part: time 1.974e-06/0.1845, allocations: 4 kB / 0.6983 GB, free: 14.77 MB / 0.4981 GB Notification: Performance of simCode: created simulation system equations: time 2.663e-05/0.1845, allocations: 8 kB / 0.6983 GB, free: 14.77 MB / 0.4981 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002189/0.1847, allocations: 11.94 kB / 0.6983 GB, free: 14.75 MB / 0.4981 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0004572/0.1852, allocations: 207.7 kB / 0.6985 GB, free: 14.52 MB / 0.4981 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003336/0.1855, allocations: 0.6848 MB / 0.6992 GB, free: 13.81 MB / 0.4981 GB Notification: Performance of simCode: alias equations: time 3.016e-05/0.1856, allocations: 4 kB / 0.6992 GB, free: 13.8 MB / 0.4981 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 1.944e-05/0.1856, allocations: 11.44 kB / 0.6992 GB, free: 13.79 MB / 0.4981 GB Notification: Performance of SimCode: time 2.71e-07/0.1856, allocations: 0 / 0.6992 GB, free: 13.79 MB / 0.4981 GB Notification: Performance of Templates: time 0.003064/0.1887, allocations: 0.6466 MB / 0.6998 GB, free: 13.19 MB / 0.4981 GB 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)