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/BuildingSystems 2.0.0-master/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/ModelicaServices 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) Using package NcDataReader2 with version 2.5.1 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/NcDataReader2 2.5.1-master/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) 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 BuildingSystems with version 2.0.0-beta (/home/hudson/saved_omc/libraries/.openmodelica/libraries/BuildingSystems 2.0.0-master/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/BuildingSystems 2.0.0-master/package.mo): time 0.842/0.842, allocations: 143.4 MB / 159.2 MB, free: 4.898 MB / 122.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001277/0.001277, allocations: 188.5 kB / 191.9 MB, free: 5.711 MB / 154.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.417/1.417, allocations: 222.9 MB / 447.3 MB, free: 5.836 MB / 330.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.00117/0.00117, allocations: 111.7 kB / 0.517 GB, free: 3.699 MB / 410.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/NcDataReader2 2.5.1-master/package.mo): time 0.001935/0.001935, allocations: 293.6 kB / 0.5973 GB, free: 49.36 MB / 410.7 MB Notification: Performance of FrontEnd - loaded program: time 0.00154/0.00154, allocations: 83.88 kB / 0.6885 GB, free: 3.828 MB / 458.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3763/0.3778, allocations: 81.29 MB / 0.7679 GB, free: 27.66 MB / 458.7 MB Notification: Performance of NFInst.instantiate(BuildingSystems.Fluid.BaseClasses.FlowModels.Validation.InvertingBasicFlowFunction_m_flow): time 0.002606/0.3805, allocations: 1.32 MB / 0.7692 GB, free: 26.33 MB / 458.7 MB Notification: Performance of NFInst.instExpressions: time 0.0009304/0.3814, allocations: 0.5977 MB / 0.7698 GB, free: 25.73 MB / 458.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 1.643e-05/0.3815, allocations: 0 / 0.7698 GB, free: 25.73 MB / 458.7 MB Notification: Performance of NFTyping.typeComponents: time 2.333e-05/0.3815, allocations: 0 / 0.7698 GB, free: 25.73 MB / 458.7 MB Notification: Performance of NFTyping.typeBindings: time 4.914e-05/0.3816, allocations: 3.938 kB / 0.7698 GB, free: 25.73 MB / 458.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.000511/0.3821, allocations: 115.6 kB / 0.7699 GB, free: 25.62 MB / 458.7 MB Notification: Performance of NFFlatten.flatten: time 4.882e-05/0.3822, allocations: 11.92 kB / 0.7699 GB, free: 25.61 MB / 458.7 MB Notification: Performance of NFFlatten.resolveConnections: time 4.462e-05/0.3822, allocations: 4 kB / 0.7699 GB, free: 25.6 MB / 458.7 MB Notification: Performance of NFEvalConstants.evaluate: time 1.833e-05/0.3822, allocations: 7.938 kB / 0.7699 GB, free: 25.59 MB / 458.7 MB Notification: Performance of NFSimplifyModel.simplify: time 3.619e-05/0.3823, allocations: 7.984 kB / 0.7699 GB, free: 25.59 MB / 458.7 MB Notification: Performance of NFPackage.collectConstants: time 1.161e-05/0.3823, allocations: 0 / 0.7699 GB, free: 25.59 MB / 458.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0004081/0.3827, allocations: 343.3 kB / 0.7703 GB, free: 25.25 MB / 458.7 MB Notification: Performance of NFScalarize.scalarize: time 1.048e-05/0.3827, allocations: 4 kB / 0.7703 GB, free: 25.25 MB / 458.7 MB Notification: Performance of NFVerifyModel.verify: time 2.277e-05/0.3828, allocations: 7.938 kB / 0.7703 GB, free: 25.24 MB / 458.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0002237/0.383, allocations: 134.4 kB / 0.7704 GB, free: 25.11 MB / 458.7 MB Notification: Performance of FrontEnd - DAE generated: time 4.689e-06/0.383, allocations: 0 / 0.7704 GB, free: 25.11 MB / 458.7 MB Notification: Performance of FrontEnd: time 1.313e-06/0.383, allocations: 0 / 0.7704 GB, free: 25.11 MB / 458.7 MB Notification: Performance of Transformations before backend: time 4.529e-06/0.383, allocations: 3.938 kB / 0.7704 GB, free: 25.11 MB / 458.7 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.0003407/0.3834, allocations: 362.1 kB / 0.7708 GB, free: 24.7 MB / 458.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.91e-05/0.3834, allocations: 8.031 kB / 0.7708 GB, free: 24.7 MB / 458.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.08e-05/0.3834, allocations: 0.9375 kB / 0.7708 GB, free: 24.7 MB / 458.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 7.892e-05/0.3835, allocations: 164.4 kB / 0.7709 GB, free: 24.5 MB / 458.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.163e-05/0.3836, allocations: 8.375 kB / 0.7709 GB, free: 24.49 MB / 458.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.178e-05/0.3836, allocations: 384 / 0.7709 GB, free: 24.49 MB / 458.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 8.825e-05/0.3837, allocations: 34.2 kB / 0.771 GB, free: 24.45 MB / 458.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 7.835e-06/0.3837, allocations: 192 / 0.771 GB, free: 24.45 MB / 458.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 9.217e-06/0.3837, allocations: 7.938 kB / 0.771 GB, free: 24.44 MB / 458.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.117e-06/0.3837, allocations: 0 / 0.771 GB, free: 24.44 MB / 458.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 2.506e-05/0.3837, allocations: 4 kB / 0.771 GB, free: 24.44 MB / 458.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0001487/0.3839, allocations: 153.6 kB / 0.7711 GB, free: 24.24 MB / 458.7 MB Notification: Performance of preOpt comSubExp (simulation): time 4.52e-05/0.3839, allocations: 26.55 kB / 0.7712 GB, free: 24.2 MB / 458.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 1.682e-05/0.384, allocations: 8.859 kB / 0.7712 GB, free: 24.19 MB / 458.7 MB Notification: Performance of preOpt evalFunc (simulation): time 2.84e-05/0.384, allocations: 3.984 kB / 0.7712 GB, free: 24.19 MB / 458.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.91e-05/0.384, allocations: 38.62 kB / 0.7712 GB, free: 24.14 MB / 458.7 MB Notification: Performance of pre-optimization done (n=2): time 9.22e-07/0.384, allocations: 0 / 0.7712 GB, free: 24.14 MB / 458.7 MB Notification: Performance of matching and sorting (n=2): time 0.0001376/0.3842, allocations: 41.64 kB / 0.7712 GB, free: 24.09 MB / 458.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 2.336e-05/0.3842, allocations: 55.34 kB / 0.7713 GB, free: 24.03 MB / 458.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 5.232e-05/0.3843, allocations: 97.84 kB / 0.7714 GB, free: 23.92 MB / 458.7 MB Notification: Performance of collectPreVariables (initialization): time 6.632e-06/0.3843, allocations: 25.7 kB / 0.7714 GB, free: 23.89 MB / 458.7 MB Notification: Performance of collectInitialEqns (initialization): time 1.402e-05/0.3843, allocations: 80.14 kB / 0.7715 GB, free: 23.81 MB / 458.7 MB Notification: Performance of collectInitialBindings (initialization): time 2.338e-05/0.3843, allocations: 12.09 kB / 0.7715 GB, free: 23.8 MB / 458.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 2.539e-05/0.3844, allocations: 17.72 kB / 0.7715 GB, free: 23.77 MB / 458.7 MB Notification: Performance of setup shared object (initialization): time 4.003e-05/0.3844, allocations: 310.8 kB / 0.7718 GB, free: 23.46 MB / 458.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 1.348e-05/0.3844, allocations: 8 kB / 0.7718 GB, free: 23.45 MB / 458.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 7.665e-06/0.3844, allocations: 0 / 0.7718 GB, free: 23.45 MB / 458.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 2.752e-05/0.3845, allocations: 20.84 kB / 0.7718 GB, free: 23.43 MB / 458.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.663e-06/0.3845, allocations: 0 / 0.7718 GB, free: 23.43 MB / 458.7 MB Notification: Performance of matching and sorting (n=2) (initialization): time 5.458e-05/0.3845, allocations: 45.69 kB / 0.7719 GB, free: 23.38 MB / 458.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.454e-05/0.3845, allocations: 4 kB / 0.7719 GB, free: 23.38 MB / 458.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.491e-06/0.3846, allocations: 3.938 kB / 0.7719 GB, free: 23.37 MB / 458.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.441e-05/0.3846, allocations: 0 / 0.7719 GB, free: 23.37 MB / 458.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001633/0.3847, allocations: 11.98 kB / 0.7719 GB, free: 23.36 MB / 458.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0002436/0.385, allocations: 0.5821 MB / 0.7725 GB, free: 22.75 MB / 458.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 1.795e-05/0.385, allocations: 0 / 0.7725 GB, free: 22.75 MB / 458.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.539e-06/0.385, allocations: 4.156 kB / 0.7725 GB, free: 22.75 MB / 458.7 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 (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 5.227e-05/0.3851, allocations: 113.8 kB / 0.7726 GB, free: 22.63 MB / 458.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 7.814e-06/0.3851, allocations: 0 / 0.7726 GB, free: 22.63 MB / 458.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 8.946e-05/0.3852, allocations: 52.69 kB / 0.7726 GB, free: 22.57 MB / 458.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.964e-06/0.3852, allocations: 4 kB / 0.7726 GB, free: 22.57 MB / 458.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.188e-06/0.3852, allocations: 0 / 0.7726 GB, free: 22.57 MB / 458.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.136e-06/0.3852, allocations: 3.938 kB / 0.7726 GB, free: 22.57 MB / 458.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 6.122e-05/0.3853, allocations: 153.6 kB / 0.7728 GB, free: 22.37 MB / 458.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.733e-06/0.3853, allocations: 8.031 kB / 0.7728 GB, free: 22.36 MB / 458.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 7.484e-05/0.3854, allocations: 7.984 kB / 0.7728 GB, free: 22.35 MB / 458.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 3.025e-06/0.3854, allocations: 4 kB / 0.7728 GB, free: 22.35 MB / 458.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 5.46e-06/0.3854, allocations: 0 / 0.7728 GB, free: 22.35 MB / 458.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0001724/0.3856, allocations: 0.582 MB / 0.7734 GB, free: 21.74 MB / 458.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.414e-06/0.3856, allocations: 7.875 kB / 0.7734 GB, free: 21.73 MB / 458.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001731/0.3858, allocations: 0.6086 MB / 0.774 GB, free: 21.07 MB / 458.7 MB Notification: Performance of postOpt removeConstants (simulation): time 2.001e-05/0.3858, allocations: 81.05 kB / 0.7741 GB, free: 20.97 MB / 458.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.194e-05/0.3858, allocations: 3.984 kB / 0.7741 GB, free: 20.96 MB / 458.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 1.312e-05/0.3858, allocations: 0 / 0.7741 GB, free: 20.96 MB / 458.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 1.426e-05/0.3859, allocations: 4 kB / 0.7741 GB, free: 20.96 MB / 458.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.786e-06/0.3859, allocations: 0 / 0.7741 GB, free: 20.96 MB / 458.7 MB Notification: Performance of sorting global known variables: time 1.707e-05/0.3859, allocations: 79.31 kB / 0.7741 GB, free: 20.88 MB / 458.7 MB Notification: Performance of sort global known variables: time 9e-08/0.3859, allocations: 0 / 0.7741 GB, free: 20.88 MB / 458.7 MB Notification: Performance of remove unused functions: time 0.0003053/0.3862, allocations: 12 kB / 0.7741 GB, free: 20.87 MB / 458.7 MB 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.0001485/0.3864, allocations: 117 kB / 0.7743 GB, free: 20.75 MB / 458.7 MB Notification: Performance of simCode: created initialization part: time 0.0001629/0.3865, allocations: 16.03 kB / 0.7743 GB, free: 20.73 MB / 458.7 MB Notification: Performance of simCode: created event and clocks part: time 2.906e-06/0.3865, allocations: 0 / 0.7743 GB, free: 20.73 MB / 458.7 MB Notification: Performance of simCode: created simulation system equations: time 8.443e-05/0.3866, allocations: 19.98 kB / 0.7743 GB, free: 20.71 MB / 458.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001366/0.3868, allocations: 17.41 kB / 0.7743 GB, free: 20.7 MB / 458.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0003807/0.3872, allocations: 212.3 kB / 0.7745 GB, free: 20.45 MB / 458.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 9.054e-05/0.3873, allocations: 0.6731 MB / 0.7752 GB, free: 19.75 MB / 458.7 MB Notification: Performance of simCode: alias equations: time 1.84e-05/0.3873, allocations: 3.984 kB / 0.7752 GB, free: 19.75 MB / 458.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 1.105e-05/0.3873, allocations: 7.438 kB / 0.7752 GB, free: 19.74 MB / 458.7 MB Notification: Performance of SimCode: time 2.1e-07/0.3873, allocations: 4 kB / 0.7752 GB, free: 19.73 MB / 458.7 MB Notification: Performance of Templates: time 0.002508/0.3898, allocations: 452 kB / 0.7756 GB, free: 19.33 MB / 458.7 MB 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)