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.007354/0.007354, allocations: 101.8 kB / 15.73 MB, free: 6.031 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.001725/0.001725, allocations: 186.6 kB / 16.67 MB, free: 5.965 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.369/1.369, allocations: 222.9 MB / 240.4 MB, free: 4.32 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/NcDataReader2 2.5.1-master/package.mo): time 0.002175/0.002175, allocations: 294.3 kB / 290.8 MB, free: 1.91 MB / 238.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/BuildingSystems 2.0.0-master/package.mo): time 0.9669/0.9669, allocations: 169.3 MB / 0.4983 GB, free: 13.79 MB / 382.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001584/0.001584, allocations: 99.86 kB / 0.6814 GB, free: 15.47 MB / 494.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1804/0.182, allocations: 86.97 MB / 0.7664 GB, free: 8.414 MB / 0.5606 GB Notification: Performance of NFInst.instantiate(BuildingSystems.Fluid.BaseClasses.FlowModels.Validation.InvertingBasicFlowFunction_m_flow): time 0.001923/0.184, allocations: 1.249 MB / 0.7676 GB, free: 7.156 MB / 0.5606 GB Notification: Performance of NFInst.instExpressions: time 0.0008654/0.1849, allocations: 0.5838 MB / 0.7682 GB, free: 6.57 MB / 0.5606 GB Notification: Performance of NFInst.updateImplicitVariability: time 1.943e-05/0.1849, allocations: 4 kB / 0.7682 GB, free: 6.566 MB / 0.5606 GB Notification: Performance of NFTyping.typeComponents: time 1.285e-05/0.1849, allocations: 0 / 0.7682 GB, free: 6.566 MB / 0.5606 GB Notification: Performance of NFTyping.typeBindings: time 4.057e-05/0.185, allocations: 3.938 kB / 0.7682 GB, free: 6.562 MB / 0.5606 GB Notification: Performance of NFTyping.typeClassSections: time 0.0005612/0.1855, allocations: 135.5 kB / 0.7683 GB, free: 6.43 MB / 0.5606 GB Notification: Performance of NFFlatten.flatten: time 5.459e-05/0.1856, allocations: 15.92 kB / 0.7683 GB, free: 6.414 MB / 0.5606 GB Notification: Performance of NFFlatten.resolveConnections: time 4.067e-05/0.1856, allocations: 3.984 kB / 0.7683 GB, free: 6.41 MB / 0.5606 GB Notification: Performance of NFEvalConstants.evaluate: time 1.781e-05/0.1857, allocations: 7.938 kB / 0.7683 GB, free: 6.402 MB / 0.5606 GB Notification: Performance of NFSimplifyModel.simplify: time 4.697e-05/0.1857, allocations: 4 kB / 0.7683 GB, free: 6.398 MB / 0.5606 GB Notification: Performance of NFPackage.collectConstants: time 1.128e-05/0.1857, allocations: 7.938 kB / 0.7683 GB, free: 6.391 MB / 0.5606 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0005784/0.1863, allocations: 339.3 kB / 0.7687 GB, free: 6.059 MB / 0.5606 GB Notification: Performance of NFScalarize.scalarize: time 1.224e-05/0.1864, allocations: 3.984 kB / 0.7687 GB, free: 6.055 MB / 0.5606 GB Notification: Performance of NFVerifyModel.verify: time 2.035e-05/0.1864, allocations: 4 kB / 0.7687 GB, free: 6.051 MB / 0.5606 GB Notification: Performance of NFConvertDAE.convert: time 0.0002365/0.1866, allocations: 143.6 kB / 0.7688 GB, free: 5.91 MB / 0.5606 GB Notification: Performance of FrontEnd - DAE generated: time 4.108e-06/0.1866, allocations: 0 / 0.7688 GB, free: 5.91 MB / 0.5606 GB Notification: Performance of FrontEnd: time 1.302e-06/0.1866, allocations: 0 / 0.7688 GB, free: 5.91 MB / 0.5606 GB Notification: Performance of Transformations before backend: time 4.338e-06/0.1866, allocations: 0 / 0.7688 GB, free: 5.91 MB / 0.5606 GB 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.0003596/0.187, allocations: 351.4 kB / 0.7691 GB, free: 5.516 MB / 0.5606 GB Notification: Performance of prepare preOptimizeDAE: time 3.169e-05/0.187, allocations: 8.031 kB / 0.7692 GB, free: 5.508 MB / 0.5606 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 2.88e-05/0.1871, allocations: 16.92 kB / 0.7692 GB, free: 5.492 MB / 0.5606 GB Notification: Performance of preOpt evaluateParameters (simulation): time 9.688e-05/0.1872, allocations: 160.4 kB / 0.7693 GB, free: 5.297 MB / 0.5606 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 9.769e-06/0.1872, allocations: 384 / 0.7693 GB, free: 5.297 MB / 0.5606 GB Notification: Performance of preOpt expandDerOperator (simulation): time 6.112e-06/0.1872, allocations: 384 / 0.7693 GB, free: 5.297 MB / 0.5606 GB Notification: Performance of preOpt clockPartitioning (simulation): time 8.929e-05/0.1873, allocations: 34.2 kB / 0.7694 GB, free: 5.258 MB / 0.5606 GB Notification: Performance of preOpt findStateOrder (simulation): time 6.392e-06/0.1873, allocations: 192 / 0.7694 GB, free: 5.258 MB / 0.5606 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 8.666e-06/0.1873, allocations: 3.938 kB / 0.7694 GB, free: 5.254 MB / 0.5606 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.757e-06/0.1873, allocations: 0 / 0.7694 GB, free: 5.254 MB / 0.5606 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 2.601e-05/0.1874, allocations: 11.98 kB / 0.7694 GB, free: 5.242 MB / 0.5606 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0001415/0.1875, allocations: 149.7 kB / 0.7695 GB, free: 5.047 MB / 0.5606 GB Notification: Performance of preOpt comSubExp (simulation): time 4.403e-05/0.1876, allocations: 22.61 kB / 0.7695 GB, free: 5.016 MB / 0.5606 GB Notification: Performance of preOpt resolveLoops (simulation): time 1.912e-05/0.1876, allocations: 12.91 kB / 0.7695 GB, free: 5 MB / 0.5606 GB Notification: Performance of preOpt evalFunc (simulation): time 1.682e-05/0.1876, allocations: 0 / 0.7695 GB, free: 5 MB / 0.5606 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.186e-05/0.1876, allocations: 34.5 kB / 0.7696 GB, free: 4.957 MB / 0.5606 GB Notification: Performance of pre-optimization done (n=2): time 7.21e-07/0.1876, allocations: 0 / 0.7696 GB, free: 4.957 MB / 0.5606 GB Notification: Performance of matching and sorting (n=2): time 0.0001278/0.1878, allocations: 49.64 kB / 0.7696 GB, free: 4.902 MB / 0.5606 GB Notification: Performance of inlineWhenForInitialization (initialization): time 2.921e-05/0.1878, allocations: 51.41 kB / 0.7697 GB, free: 4.84 MB / 0.5606 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 6.546e-05/0.1879, allocations: 97.84 kB / 0.7698 GB, free: 4.734 MB / 0.5606 GB Notification: Performance of collectPreVariables (initialization): time 1.097e-05/0.1879, allocations: 29.64 kB / 0.7698 GB, free: 4.699 MB / 0.5606 GB Notification: Performance of collectInitialEqns (initialization): time 2.513e-05/0.1879, allocations: 84.14 kB / 0.7699 GB, free: 4.613 MB / 0.5606 GB Notification: Performance of collectInitialBindings (initialization): time 2.516e-05/0.188, allocations: 3.906 kB / 0.7699 GB, free: 4.609 MB / 0.5606 GB Notification: Performance of simplifyInitialFunctions (initialization): time 2.713e-05/0.188, allocations: 13.72 kB / 0.7699 GB, free: 4.59 MB / 0.5606 GB Notification: Performance of setup shared object (initialization): time 0.0001271/0.1881, allocations: 319.1 kB / 0.7702 GB, free: 4.27 MB / 0.5606 GB Notification: Performance of preBalanceInitialSystem (initialization): time 1.177e-05/0.1881, allocations: 0 / 0.7702 GB, free: 4.27 MB / 0.5606 GB Notification: Performance of partitionIndependentBlocks (initialization): time 8.877e-06/0.1882, allocations: 4 kB / 0.7702 GB, free: 4.266 MB / 0.5606 GB Notification: Performance of analyzeInitialSystem (initialization): time 2.869e-05/0.1882, allocations: 16.78 kB / 0.7702 GB, free: 4.246 MB / 0.5606 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.084e-06/0.1882, allocations: 0 / 0.7702 GB, free: 4.246 MB / 0.5606 GB Notification: Performance of matching and sorting (n=2) (initialization): time 5.724e-05/0.1883, allocations: 37.7 kB / 0.7703 GB, free: 4.203 MB / 0.5606 GB Notification: Performance of prepare postOptimizeDAE: time 1.184e-05/0.1883, allocations: 8 kB / 0.7703 GB, free: 4.195 MB / 0.5606 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.959e-06/0.1883, allocations: 3.938 kB / 0.7703 GB, free: 4.191 MB / 0.5606 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.092e-05/0.1883, allocations: 3.938 kB / 0.7703 GB, free: 4.188 MB / 0.5606 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001384/0.1884, allocations: 16.08 kB / 0.7703 GB, free: 4.172 MB / 0.5606 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0003412/0.1888, allocations: 0.5821 MB / 0.7709 GB, free: 3.566 MB / 0.5606 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 1.835e-05/0.1888, allocations: 3.906 kB / 0.7709 GB, free: 3.562 MB / 0.5606 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.809e-06/0.1888, allocations: 0 / 0.7709 GB, free: 3.562 MB / 0.5606 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 6.516e-05/0.1889, allocations: 117.8 kB / 0.771 GB, free: 3.438 MB / 0.5606 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 8.295e-06/0.1889, allocations: 8.078 kB / 0.771 GB, free: 3.43 MB / 0.5606 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 9.103e-05/0.189, allocations: 44.81 kB / 0.771 GB, free: 3.383 MB / 0.5606 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.352e-06/0.189, allocations: 0 / 0.771 GB, free: 3.383 MB / 0.5606 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.016e-06/0.189, allocations: 0 / 0.771 GB, free: 3.383 MB / 0.5606 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.924e-06/0.189, allocations: 0 / 0.771 GB, free: 3.383 MB / 0.5606 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 9.387e-05/0.1891, allocations: 153.6 kB / 0.7712 GB, free: 3.184 MB / 0.5606 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 8.72e-07/0.1891, allocations: 0 / 0.7712 GB, free: 3.184 MB / 0.5606 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 7.692e-05/0.1892, allocations: 15.92 kB / 0.7712 GB, free: 3.168 MB / 0.5606 GB Notification: Performance of postOpt tearingSystem (simulation): time 1.603e-06/0.1892, allocations: 0 / 0.7712 GB, free: 3.168 MB / 0.5606 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.719e-06/0.1892, allocations: 0 / 0.7712 GB, free: 3.168 MB / 0.5606 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0002919/0.1895, allocations: 0.5822 MB / 0.7718 GB, free: 2.562 MB / 0.5606 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.625e-06/0.1896, allocations: 3.938 kB / 0.7718 GB, free: 2.559 MB / 0.5606 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 6.403e-05/0.1896, allocations: 73.67 kB / 0.7718 GB, free: 2.469 MB / 0.5606 GB Notification: Performance of postOpt removeConstants (simulation): time 4.347e-05/0.1897, allocations: 81.05 kB / 0.7719 GB, free: 2.371 MB / 0.5606 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 9.108e-06/0.1897, allocations: 8.062 kB / 0.7719 GB, free: 2.363 MB / 0.5606 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 1.42e-05/0.1897, allocations: 0 / 0.7719 GB, free: 2.363 MB / 0.5606 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 1.346e-05/0.1897, allocations: 7.938 kB / 0.7719 GB, free: 2.355 MB / 0.5606 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.476e-06/0.1897, allocations: 0 / 0.7719 GB, free: 2.355 MB / 0.5606 GB Notification: Performance of sorting global known variables: time 2.701e-05/0.1898, allocations: 79.22 kB / 0.772 GB, free: 2.277 MB / 0.5606 GB Notification: Performance of sort global known variables: time 1.1e-07/0.1898, allocations: 0 / 0.772 GB, free: 2.277 MB / 0.5606 GB Notification: Performance of remove unused functions: time 0.0001933/0.19, allocations: 12 kB / 0.772 GB, free: 2.266 MB / 0.5606 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.0001487/0.1901, allocations: 115.2 kB / 0.7721 GB, free: 2.141 MB / 0.5606 GB Notification: Performance of simCode: created initialization part: time 0.0001549/0.1903, allocations: 23.98 kB / 0.7721 GB, free: 2.117 MB / 0.5606 GB Notification: Performance of simCode: created event and clocks part: time 1.943e-06/0.1903, allocations: 0 / 0.7721 GB, free: 2.117 MB / 0.5606 GB Notification: Performance of simCode: created simulation system equations: time 8.501e-05/0.1904, allocations: 15.98 kB / 0.7722 GB, free: 2.102 MB / 0.5606 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001314/0.1905, allocations: 2.031 kB / 0.7722 GB, free: 2.102 MB / 0.5606 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0002996/0.1908, allocations: 110 kB / 0.7723 GB, free: 1.965 MB / 0.5606 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002157/0.1911, allocations: 0.6845 MB / 0.7729 GB, free: 1.254 MB / 0.5606 GB Notification: Performance of simCode: alias equations: time 1.385e-05/0.1911, allocations: 0 / 0.7729 GB, free: 1.254 MB / 0.5606 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 1.286e-05/0.1911, allocations: 11.44 kB / 0.7729 GB, free: 1.242 MB / 0.5606 GB Notification: Performance of SimCode: time 2.4e-07/0.1911, allocations: 0 / 0.7729 GB, free: 1.242 MB / 0.5606 GB Notification: Performance of Templates: time 0.002298/0.1934, allocations: 476.2 kB / 0.7734 GB, free: 0.8164 MB / 0.5606 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)