Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr BuildingSystems_BuildingSystems.Fluid.BaseClasses.FlowModels.Validation.InvertingBasicFlowFunction_m_flow.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.InvertingBasicFlowFunction_m_flow,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="BuildingSystems_BuildingSystems.Fluid.BaseClasses.FlowModels.Validation.InvertingBasicFlowFunction_m_flow") translateModel(BuildingSystems.Fluid.BaseClasses.FlowModels.Validation.InvertingBasicFlowFunction_m_flow,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="BuildingSystems_BuildingSystems.Fluid.BaseClasses.FlowModels.Validation.InvertingBasicFlowFunction_m_flow") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.00173/0.00173, 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.001967/0.001967, allocations: 188.4 kB / 16.25 MB, free: 6.641 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.43/1.43, allocations: 222.9 MB / 239.9 MB, free: 4.449 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/NcDataReader2 2.5.1-master/package.mo): time 0.002453/0.002453, allocations: 287 kB / 290.4 MB, free: 2.062 MB / 238.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/BuildingSystems 2.0.0-master/package.mo): time 1.084/1.084, allocations: 178.6 MB / 0.507 GB, free: 4.707 MB / 382.1 MB Notification: Performance of FrontEnd - loaded program: time 0.002808/0.002808, allocations: 99.28 kB / 0.6059 GB, free: 25.09 MB / 430.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1733/0.1762, allocations: 89.14 MB / 0.693 GB, free: 4.656 MB / 494.1 MB Notification: Performance of NFInst.instantiate(BuildingSystems.Fluid.BaseClasses.FlowModels.Validation.InvertingBasicFlowFunction_m_flow): time 0.002532/0.1788, allocations: 1.309 MB / 0.6943 GB, free: 3.344 MB / 494.1 MB Notification: Performance of NFInst.instExpressions: time 0.001062/0.1798, allocations: 0.5961 MB / 0.6948 GB, free: 2.75 MB / 494.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 2.244e-05/0.1799, allocations: 0 / 0.6948 GB, free: 2.75 MB / 494.1 MB Notification: Performance of NFTyping.typeComponents: time 1.694e-05/0.1799, allocations: 3 kB / 0.6948 GB, free: 2.75 MB / 494.1 MB Notification: Performance of NFTyping.typeBindings: time 4.923e-05/0.18, allocations: 0 / 0.6948 GB, free: 2.75 MB / 494.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0005121/0.1805, allocations: 129.9 kB / 0.695 GB, free: 2.625 MB / 494.1 MB Notification: Performance of NFFlatten.flatten: time 4.849e-05/0.1805, allocations: 11.98 kB / 0.695 GB, free: 2.613 MB / 494.1 MB Notification: Performance of NFFlatten.resolveConnections: time 4.212e-05/0.1806, allocations: 4 kB / 0.695 GB, free: 2.609 MB / 494.1 MB Notification: Performance of NFEvalConstants.evaluate: time 2.198e-05/0.1806, allocations: 4.781 kB / 0.695 GB, free: 2.605 MB / 494.1 MB Notification: Performance of NFSimplifyModel.simplify: time 4.247e-05/0.1807, allocations: 7.922 kB / 0.695 GB, free: 2.598 MB / 494.1 MB Notification: Performance of NFPackage.collectConstants: time 1.052e-05/0.1807, allocations: 1.719 kB / 0.695 GB, free: 2.598 MB / 494.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.000536/0.1812, allocations: 347.3 kB / 0.6953 GB, free: 2.258 MB / 494.1 MB Notification: Performance of NFScalarize.scalarize: time 1.166e-05/0.1812, allocations: 0 / 0.6953 GB, free: 2.258 MB / 494.1 MB Notification: Performance of NFVerifyModel.verify: time 2.025e-05/0.1813, allocations: 0 / 0.6953 GB, free: 2.258 MB / 494.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0002604/0.1815, allocations: 139.9 kB / 0.6955 GB, free: 2.121 MB / 494.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.128e-06/0.1815, allocations: 4 kB / 0.6955 GB, free: 2.117 MB / 494.1 MB Notification: Performance of FrontEnd: time 1.953e-06/0.1815, allocations: 0 / 0.6955 GB, free: 2.117 MB / 494.1 MB Notification: Performance of Transformations before backend: time 6.082e-06/0.1816, allocations: 0 / 0.6955 GB, free: 2.117 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: 2 * Number of variables: 2 Notification: Performance of Generate backend data structure: time 0.0004788/0.182, allocations: 355.5 kB / 0.6958 GB, free: 1.719 MB / 494.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.965e-05/0.1821, allocations: 8.031 kB / 0.6958 GB, free: 1.711 MB / 494.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 2.671e-05/0.1821, allocations: 0.9375 kB / 0.6958 GB, free: 1.711 MB / 494.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001491/0.1823, allocations: 168.3 kB / 0.696 GB, free: 1.508 MB / 494.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.563e-05/0.1823, allocations: 4.375 kB / 0.696 GB, free: 1.504 MB / 494.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.166e-05/0.1823, allocations: 384 / 0.696 GB, free: 1.504 MB / 494.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 9.243e-05/0.1824, allocations: 42.14 kB / 0.696 GB, free: 1.457 MB / 494.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 7.424e-06/0.1824, allocations: 192 / 0.696 GB, free: 1.457 MB / 494.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.186e-05/0.1825, allocations: 3.938 kB / 0.696 GB, free: 1.453 MB / 494.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.819e-06/0.1825, allocations: 0 / 0.696 GB, free: 1.453 MB / 494.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 3.183e-05/0.1825, allocations: 8 kB / 0.696 GB, free: 1.445 MB / 494.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0001834/0.1827, allocations: 145.7 kB / 0.6962 GB, free: 1.254 MB / 494.1 MB Notification: Performance of preOpt comSubExp (simulation): time 5.947e-05/0.1828, allocations: 26.61 kB / 0.6962 GB, free: 1.219 MB / 494.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 1.966e-05/0.1828, allocations: 8.859 kB / 0.6962 GB, free: 1.207 MB / 494.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.514e-05/0.1828, allocations: 0 / 0.6962 GB, free: 1.207 MB / 494.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.904e-05/0.1829, allocations: 46.48 kB / 0.6962 GB, free: 1.152 MB / 494.1 MB Notification: Performance of pre-optimization done (n=2): time 1.042e-06/0.1829, allocations: 0 / 0.6962 GB, free: 1.152 MB / 494.1 MB Notification: Performance of matching and sorting (n=2): time 0.0001396/0.183, allocations: 41.64 kB / 0.6963 GB, free: 1.105 MB / 494.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.894e-05/0.1831, allocations: 51.41 kB / 0.6963 GB, free: 1.043 MB / 494.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 7.84e-05/0.1831, allocations: 94.08 kB / 0.6964 GB, free: 0.9414 MB / 494.1 MB Notification: Performance of collectPreVariables (initialization): time 2.523e-05/0.1832, allocations: 29.73 kB / 0.6964 GB, free: 0.9062 MB / 494.1 MB Notification: Performance of collectInitialEqns (initialization): time 4.285e-05/0.1832, allocations: 88.12 kB / 0.6965 GB, free: 0.8164 MB / 494.1 MB Notification: Performance of collectInitialBindings (initialization): time 2.493e-05/0.1832, allocations: 3.906 kB / 0.6965 GB, free: 0.8125 MB / 494.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 3.108e-05/0.1833, allocations: 13.72 kB / 0.6965 GB, free: 0.793 MB / 494.1 MB Notification: Performance of setup shared object (initialization): time 0.0001458/0.1834, allocations: 310.8 kB / 0.6968 GB, free: 492 kB / 494.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 1.793e-05/0.1835, allocations: 8 kB / 0.6969 GB, free: 484 kB / 494.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 9.948e-06/0.1835, allocations: 3.938 kB / 0.6969 GB, free: 480 kB / 494.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 3.476e-05/0.1835, allocations: 16.92 kB / 0.6969 GB, free: 460 kB / 494.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.613e-06/0.1835, allocations: 0 / 0.6969 GB, free: 460 kB / 494.1 MB Notification: Performance of matching and sorting (n=2) (initialization): time 7.187e-05/0.1836, allocations: 41.69 kB / 0.6969 GB, free: 412 kB / 494.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.308e-05/0.1836, allocations: 4 kB / 0.6969 GB, free: 408 kB / 494.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.472e-06/0.1836, allocations: 3.938 kB / 0.6969 GB, free: 404 kB / 494.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.1e-05/0.1836, allocations: 0 / 0.6969 GB, free: 404 kB / 494.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001611/0.1838, allocations: 15.98 kB / 0.6969 GB, free: 388 kB / 494.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0004307/0.1842, allocations: 0.586 MB / 0.6975 GB, free: 15.77 MB / 0.4981 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 1.876e-05/0.1843, allocations: 0 / 0.6975 GB, free: 15.77 MB / 0.4981 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.669e-06/0.1843, allocations: 4.031 kB / 0.6975 GB, free: 15.77 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 (2): * Single equations (assignments): 1 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 1 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Equation system details (not torn): * Constant Jacobian (size): 0 systems * Linear Jacobian (size,density): 0 systems * Non-linear Jacobian (size): 1 system {1} * Without analytic Jacobian (size): 0 systems Notification: Performance of prepare postOptimizeDAE: time 9.112e-05/0.1844, allocations: 110.4 kB / 0.6976 GB, free: 15.65 MB / 0.4981 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 7.134e-06/0.1844, allocations: 0 / 0.6976 GB, free: 15.65 MB / 0.4981 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001009/0.1845, allocations: 48.81 kB / 0.6977 GB, free: 15.6 MB / 0.4981 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.596e-06/0.1845, allocations: 4 kB / 0.6977 GB, free: 15.59 MB / 0.4981 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.947e-06/0.1845, allocations: 128 / 0.6977 GB, free: 15.59 MB / 0.4981 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.485e-06/0.1845, allocations: 4 kB / 0.6977 GB, free: 15.59 MB / 0.4981 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001333/0.1847, allocations: 161.4 kB / 0.6978 GB, free: 15.38 MB / 0.4981 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.056e-06/0.1847, allocations: 7.938 kB / 0.6978 GB, free: 15.38 MB / 0.4981 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 6.991e-05/0.1848, allocations: 4 kB / 0.6978 GB, free: 15.37 MB / 0.4981 GB Notification: Performance of postOpt tearingSystem (simulation): time 6.462e-06/0.1848, allocations: 7.984 kB / 0.6978 GB, free: 15.36 MB / 0.4981 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 6.202e-06/0.1848, allocations: 0 / 0.6978 GB, free: 15.36 MB / 0.4981 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0003735/0.1852, allocations: 0.5782 MB / 0.6984 GB, free: 14.76 MB / 0.4981 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.125e-06/0.1852, allocations: 8.031 kB / 0.6984 GB, free: 14.75 MB / 0.4981 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 8.056e-05/0.1853, allocations: 65.09 kB / 0.6985 GB, free: 14.67 MB / 0.4981 GB Notification: Performance of postOpt removeConstants (simulation): time 4.979e-05/0.1853, allocations: 89.03 kB / 0.6986 GB, free: 14.57 MB / 0.4981 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.136e-05/0.1853, allocations: 4 kB / 0.6986 GB, free: 14.56 MB / 0.4981 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 1.411e-05/0.1854, allocations: 0 / 0.6986 GB, free: 14.56 MB / 0.4981 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 1.504e-05/0.1854, allocations: 3.938 kB / 0.6986 GB, free: 14.56 MB / 0.4981 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.244e-06/0.1854, allocations: 0 / 0.6986 GB, free: 14.56 MB / 0.4981 GB Notification: Performance of sorting global known variables: time 4.759e-05/0.1854, allocations: 83.31 kB / 0.6987 GB, free: 14.48 MB / 0.4981 GB Notification: Performance of sort global known variables: time 1.4e-07/0.1854, allocations: 0 / 0.6987 GB, free: 14.48 MB / 0.4981 GB Notification: Performance of remove unused functions: time 0.0001976/0.1856, allocations: 15.94 kB / 0.6987 GB, free: 14.46 MB / 0.4981 GB Notification: Model statistics after passing the back-end for simulation: * 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 simulation (2): * Single equations (assignments): 1 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 1 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Equation system details (not torn): * Constant Jacobian (size): 0 systems * Linear Jacobian (size,density): 0 systems * Non-linear Jacobian (size): 1 system {1} * Without analytic Jacobian (size): 0 systems Notification: Performance of Backend phase and start with SimCode phase: time 0.0001643/0.1858, allocations: 107.2 kB / 0.6988 GB, free: 14.34 MB / 0.4981 GB Notification: Performance of simCode: created initialization part: time 0.0001608/0.186, allocations: 19.98 kB / 0.6988 GB, free: 14.32 MB / 0.4981 GB Notification: Performance of simCode: created event and clocks part: time 2.475e-06/0.186, allocations: 0 / 0.6988 GB, free: 14.32 MB / 0.4981 GB Notification: Performance of simCode: created simulation system equations: time 9.734e-05/0.1861, allocations: 24.08 kB / 0.6988 GB, free: 14.3 MB / 0.4981 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001395/0.1862, allocations: 3 kB / 0.6988 GB, free: 14.3 MB / 0.4981 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0003825/0.1866, allocations: 106.1 kB / 0.6989 GB, free: 14.17 MB / 0.4981 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003333/0.187, allocations: 0.6766 MB / 0.6996 GB, free: 13.46 MB / 0.4981 GB Notification: Performance of simCode: alias equations: time 1.677e-05/0.187, allocations: 0 / 0.6996 GB, free: 13.46 MB / 0.4981 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 2.015e-05/0.187, allocations: 7.438 kB / 0.6996 GB, free: 13.46 MB / 0.4981 GB Notification: Performance of SimCode: time 4.31e-07/0.187, allocations: 4.062 kB / 0.6996 GB, free: 13.45 MB / 0.4981 GB Notification: Performance of Templates: time 0.002856/0.1899, allocations: 453.2 kB / 0.7 GB, free: 13.05 MB / 0.4981 GB make -j1 -f BuildingSystems_BuildingSystems.Fluid.BaseClasses.FlowModels.Validation.InvertingBasicFlowFunction_m_flow.makefile (rm -f BuildingSystems_BuildingSystems.Fluid.BaseClasses.FlowModels.Validation.InvertingBasicFlowFunction_m_flow.pipe ; mkfifo BuildingSystems_BuildingSystems.Fluid.BaseClasses.FlowModels.Validation.InvertingBasicFlowFunction_m_flow.pipe ; head -c 1048576 < BuildingSystems_BuildingSystems.Fluid.BaseClasses.FlowModels.Validation.InvertingBasicFlowFunction_m_flow.pipe >> ../files/BuildingSystems_BuildingSystems.Fluid.BaseClasses.FlowModels.Validation.InvertingBasicFlowFunction_m_flow.sim & ./BuildingSystems_BuildingSystems.Fluid.BaseClasses.FlowModels.Validation.InvertingBasicFlowFunction_m_flow -abortSlowSimulation -alarm=480 -lv LOG_STATS > BuildingSystems_BuildingSystems.Fluid.BaseClasses.FlowModels.Validation.InvertingBasicFlowFunction_m_flow.pipe 2>&1)