Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Buildings_latest_Buildings.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/Buildings 11.0.1-master/package.mo", uses=false) Using package Buildings with version 11.0.1 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 11.0.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(Buildings.Fluid.BaseClasses.FlowModels.Validation.InvertingBasicFlowFunction_m_flow,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|m_flow|m_flow_nominal|dp",fileNamePrefix="Buildings_latest_Buildings.Fluid.BaseClasses.FlowModels.Validation.InvertingBasicFlowFunction_m_flow") translateModel(Buildings.Fluid.BaseClasses.FlowModels.Validation.InvertingBasicFlowFunction_m_flow,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|m_flow|m_flow_nominal|dp",fileNamePrefix="Buildings_latest_Buildings.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.001659/0.001659, allocations: 111.3 kB / 15.23 MB, free: 0.6602 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.001926/0.001926, allocations: 193.2 kB / 16.14 MB, free: 6.648 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.407/1.407, allocations: 222.9 MB / 239.8 MB, free: 4.594 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 11.0.1-master/package.mo): time 2.795/2.795, allocations: 461.9 MB / 0.7342 GB, free: 15.08 MB / 0.5919 GB Notification: Performance of FrontEnd - loaded program: time 0.001309/0.001309, allocations: 62.62 kB / 0.8984 GB, free: 37.29 MB / 0.7169 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3752/0.3765, allocations: 157.4 MB / 1.052 GB, free: 8.906 MB / 0.8106 GB Notification: Performance of NFInst.instantiate(Buildings.Fluid.BaseClasses.FlowModels.Validation.InvertingBasicFlowFunction_m_flow): time 0.002571/0.3791, allocations: 1.318 MB / 1.053 GB, free: 7.57 MB / 0.8106 GB Notification: Performance of NFInst.instExpressions: time 0.001082/0.3802, allocations: 0.6151 MB / 1.054 GB, free: 6.953 MB / 0.8106 GB Notification: Performance of NFInst.updateImplicitVariability: time 1.454e-05/0.3803, allocations: 0 / 1.054 GB, free: 6.953 MB / 0.8106 GB Notification: Performance of NFTyping.typeComponents: time 1.985e-05/0.3803, allocations: 0 / 1.054 GB, free: 6.953 MB / 0.8106 GB Notification: Performance of NFTyping.typeBindings: time 4.633e-05/0.3804, allocations: 0 / 1.054 GB, free: 6.953 MB / 0.8106 GB Notification: Performance of NFTyping.typeClassSections: time 0.0004297/0.3808, allocations: 115.6 kB / 1.054 GB, free: 6.84 MB / 0.8106 GB Notification: Performance of NFFlatten.flatten: time 4.846e-05/0.3808, allocations: 15.91 kB / 1.054 GB, free: 6.824 MB / 0.8106 GB Notification: Performance of NFFlatten.resolveConnections: time 5.081e-05/0.3809, allocations: 8 kB / 1.054 GB, free: 6.816 MB / 0.8106 GB Notification: Performance of NFEvalConstants.evaluate: time 1.863e-05/0.3809, allocations: 0 / 1.054 GB, free: 6.816 MB / 0.8106 GB Notification: Performance of NFSimplifyModel.simplify: time 4.624e-05/0.381, allocations: 7.938 kB / 1.054 GB, free: 6.809 MB / 0.8106 GB Notification: Performance of NFPackage.collectConstants: time 1.253e-05/0.381, allocations: 0 / 1.054 GB, free: 6.809 MB / 0.8106 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0005072/0.3815, allocations: 343.3 kB / 1.054 GB, free: 6.473 MB / 0.8106 GB Notification: Performance of NFScalarize.scalarize: time 1.044e-05/0.3815, allocations: 0 / 1.054 GB, free: 6.473 MB / 0.8106 GB Notification: Performance of NFVerifyModel.verify: time 2.274e-05/0.3816, allocations: 4 kB / 1.054 GB, free: 6.469 MB / 0.8106 GB Notification: Performance of NFConvertDAE.convert: time 0.0002541/0.3818, allocations: 147.9 kB / 1.055 GB, free: 6.324 MB / 0.8106 GB Notification: Performance of FrontEnd - DAE generated: time 5.129e-06/0.3818, allocations: 0 / 1.055 GB, free: 6.324 MB / 0.8106 GB Notification: Performance of FrontEnd: time 1.032e-06/0.3818, allocations: 3.938 kB / 1.055 GB, free: 6.32 MB / 0.8106 GB Notification: Performance of Transformations before backend: time 4.339e-06/0.3818, allocations: 0 / 1.055 GB, free: 6.32 MB / 0.8106 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.0004153/0.3823, allocations: 359.4 kB / 1.055 GB, free: 5.918 MB / 0.8106 GB Notification: Performance of prepare preOptimizeDAE: time 4.181e-05/0.3823, allocations: 8.031 kB / 1.055 GB, free: 5.91 MB / 0.8106 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.299e-05/0.3824, allocations: 4.938 kB / 1.055 GB, free: 5.906 MB / 0.8106 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001062/0.3825, allocations: 160.4 kB / 1.055 GB, free: 5.711 MB / 0.8106 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.006e-05/0.3825, allocations: 384 / 1.055 GB, free: 5.711 MB / 0.8106 GB Notification: Performance of preOpt expandDerOperator (simulation): time 1.184e-05/0.3825, allocations: 4.375 kB / 1.055 GB, free: 5.707 MB / 0.8106 GB Notification: Performance of preOpt clockPartitioning (simulation): time 9.631e-05/0.3826, allocations: 34.25 kB / 1.055 GB, free: 5.668 MB / 0.8106 GB Notification: Performance of preOpt findStateOrder (simulation): time 7.925e-06/0.3826, allocations: 192 / 1.055 GB, free: 5.668 MB / 0.8106 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.007e-05/0.3826, allocations: 3.938 kB / 1.055 GB, free: 5.664 MB / 0.8106 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.09e-06/0.3826, allocations: 0 / 1.055 GB, free: 5.664 MB / 0.8106 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 3.239e-05/0.3827, allocations: 11.94 kB / 1.055 GB, free: 5.652 MB / 0.8106 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0001603/0.3828, allocations: 149.7 kB / 1.055 GB, free: 5.457 MB / 0.8106 GB Notification: Performance of preOpt comSubExp (simulation): time 5.496e-05/0.3829, allocations: 30.56 kB / 1.055 GB, free: 5.418 MB / 0.8106 GB Notification: Performance of preOpt resolveLoops (simulation): time 2.17e-05/0.3829, allocations: 8.922 kB / 1.055 GB, free: 5.406 MB / 0.8106 GB Notification: Performance of preOpt evalFunc (simulation): time 2.094e-05/0.383, allocations: 0 / 1.055 GB, free: 5.406 MB / 0.8106 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.245e-05/0.383, allocations: 30.56 kB / 1.055 GB, free: 5.367 MB / 0.8106 GB Notification: Performance of pre-optimization done (n=2): time 8.81e-07/0.383, allocations: 0 / 1.055 GB, free: 5.367 MB / 0.8106 GB Notification: Performance of matching and sorting (n=2): time 0.0001519/0.3831, allocations: 49.56 kB / 1.055 GB, free: 5.312 MB / 0.8106 GB Notification: Performance of inlineWhenForInitialization (initialization): time 3.49e-05/0.3832, allocations: 55.41 kB / 1.055 GB, free: 5.246 MB / 0.8106 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 6.996e-05/0.3833, allocations: 93.98 kB / 1.056 GB, free: 5.145 MB / 0.8106 GB Notification: Performance of collectPreVariables (initialization): time 1.417e-05/0.3833, allocations: 25.7 kB / 1.056 GB, free: 5.113 MB / 0.8106 GB Notification: Performance of collectInitialEqns (initialization): time 3.024e-05/0.3833, allocations: 88.14 kB / 1.056 GB, free: 5.023 MB / 0.8106 GB Notification: Performance of collectInitialBindings (initialization): time 2.568e-05/0.3833, allocations: 3.906 kB / 1.056 GB, free: 5.02 MB / 0.8106 GB Notification: Performance of simplifyInitialFunctions (initialization): time 2.706e-05/0.3834, allocations: 9.719 kB / 1.056 GB, free: 5.004 MB / 0.8106 GB Notification: Performance of setup shared object (initialization): time 9.804e-05/0.3835, allocations: 318.8 kB / 1.056 GB, free: 4.684 MB / 0.8106 GB Notification: Performance of preBalanceInitialSystem (initialization): time 1.442e-05/0.3835, allocations: 4 kB / 1.056 GB, free: 4.68 MB / 0.8106 GB Notification: Performance of partitionIndependentBlocks (initialization): time 9.989e-06/0.3835, allocations: 4 kB / 1.056 GB, free: 4.676 MB / 0.8106 GB Notification: Performance of analyzeInitialSystem (initialization): time 2.995e-05/0.3835, allocations: 13.05 kB / 1.056 GB, free: 4.66 MB / 0.8106 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.512e-06/0.3836, allocations: 0 / 1.056 GB, free: 4.66 MB / 0.8106 GB Notification: Performance of matching and sorting (n=2) (initialization): time 6.103e-05/0.3836, allocations: 41.64 kB / 1.056 GB, free: 4.613 MB / 0.8106 GB Notification: Performance of prepare postOptimizeDAE: time 1.412e-05/0.3836, allocations: 4 kB / 1.056 GB, free: 4.609 MB / 0.8106 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.062e-06/0.3837, allocations: 7.938 kB / 1.056 GB, free: 4.602 MB / 0.8106 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.376e-05/0.3837, allocations: 3.984 kB / 1.056 GB, free: 4.598 MB / 0.8106 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001681/0.3838, allocations: 12 kB / 1.056 GB, free: 4.586 MB / 0.8106 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0003417/0.3842, allocations: 0.586 MB / 1.057 GB, free: 3.977 MB / 0.8106 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 1.801e-05/0.3842, allocations: 0 / 1.057 GB, free: 3.977 MB / 0.8106 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.57e-06/0.3842, allocations: 0 / 1.057 GB, free: 3.977 MB / 0.8106 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 7.532e-05/0.3843, allocations: 117.7 kB / 1.057 GB, free: 3.852 MB / 0.8106 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 8.987e-06/0.3843, allocations: 8.031 kB / 1.057 GB, free: 3.844 MB / 0.8106 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001071/0.3844, allocations: 44.81 kB / 1.057 GB, free: 3.797 MB / 0.8106 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.267e-06/0.3845, allocations: 8.047 kB / 1.057 GB, free: 3.789 MB / 0.8106 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.358e-06/0.3845, allocations: 4 kB / 1.057 GB, free: 3.785 MB / 0.8106 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.495e-06/0.3845, allocations: 0 / 1.057 GB, free: 3.785 MB / 0.8106 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 9.741e-05/0.3846, allocations: 149.6 kB / 1.057 GB, free: 3.59 MB / 0.8106 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 9.42e-07/0.3846, allocations: 0 / 1.057 GB, free: 3.59 MB / 0.8106 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 7.176e-05/0.3847, allocations: 11.98 kB / 1.057 GB, free: 3.578 MB / 0.8106 GB Notification: Performance of postOpt tearingSystem (simulation): time 4.048e-06/0.3847, allocations: 0 / 1.057 GB, free: 3.578 MB / 0.8106 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 6.161e-06/0.3847, allocations: 3.938 kB / 1.057 GB, free: 3.574 MB / 0.8106 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0002809/0.385, allocations: 0.586 MB / 1.058 GB, free: 2.965 MB / 0.8106 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.936e-06/0.385, allocations: 3.938 kB / 1.058 GB, free: 2.961 MB / 0.8106 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 7.424e-05/0.3851, allocations: 69.06 kB / 1.058 GB, free: 2.875 MB / 0.8106 GB Notification: Performance of postOpt removeConstants (simulation): time 3.384e-05/0.3851, allocations: 77.11 kB / 1.058 GB, free: 2.781 MB / 0.8106 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.357e-05/0.3851, allocations: 4 kB / 1.058 GB, free: 2.777 MB / 0.8106 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 1.459e-05/0.3851, allocations: 0 / 1.058 GB, free: 2.777 MB / 0.8106 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 1.639e-05/0.3852, allocations: 7.938 kB / 1.058 GB, free: 2.77 MB / 0.8106 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.767e-06/0.3852, allocations: 8.109 kB / 1.058 GB, free: 2.762 MB / 0.8106 GB Notification: Performance of sorting global known variables: time 3.319e-05/0.3852, allocations: 75.28 kB / 1.058 GB, free: 2.688 MB / 0.8106 GB Notification: Performance of sort global known variables: time 1e-07/0.3852, allocations: 0 / 1.058 GB, free: 2.688 MB / 0.8106 GB Notification: Performance of remove unused functions: time 0.0001972/0.3854, allocations: 8 kB / 1.058 GB, free: 2.68 MB / 0.8106 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.0001822/0.3856, allocations: 123.1 kB / 1.058 GB, free: 2.547 MB / 0.8106 GB Notification: Performance of simCode: created initialization part: time 0.0001642/0.3858, allocations: 19.98 kB / 1.058 GB, free: 2.527 MB / 0.8106 GB Notification: Performance of simCode: created event and clocks part: time 2.505e-06/0.3858, allocations: 160 / 1.058 GB, free: 2.527 MB / 0.8106 GB Notification: Performance of simCode: created simulation system equations: time 8.394e-05/0.3859, allocations: 16 kB / 1.058 GB, free: 2.512 MB / 0.8106 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001479/0.386, allocations: 0 / 1.058 GB, free: 2.512 MB / 0.8106 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0003835/0.3864, allocations: 108.4 kB / 1.058 GB, free: 2.379 MB / 0.8106 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002226/0.3867, allocations: 0.677 MB / 1.059 GB, free: 1.676 MB / 0.8106 GB Notification: Performance of simCode: alias equations: time 1.916e-05/0.3867, allocations: 3.938 kB / 1.059 GB, free: 1.672 MB / 0.8106 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 1.429e-05/0.3867, allocations: 11.5 kB / 1.059 GB, free: 1.66 MB / 0.8106 GB Notification: Performance of SimCode: time 4.31e-07/0.3867, allocations: 0 / 1.059 GB, free: 1.66 MB / 0.8106 GB Notification: Performance of Templates: time 0.002584/0.3893, allocations: 440.8 kB / 1.059 GB, free: 1.262 MB / 0.8106 GB make -j1 -f Buildings_latest_Buildings.Fluid.BaseClasses.FlowModels.Validation.InvertingBasicFlowFunction_m_flow.makefile (rm -f Buildings_latest_Buildings.Fluid.BaseClasses.FlowModels.Validation.InvertingBasicFlowFunction_m_flow.pipe ; mkfifo Buildings_latest_Buildings.Fluid.BaseClasses.FlowModels.Validation.InvertingBasicFlowFunction_m_flow.pipe ; head -c 1048576 < Buildings_latest_Buildings.Fluid.BaseClasses.FlowModels.Validation.InvertingBasicFlowFunction_m_flow.pipe >> ../files/Buildings_latest_Buildings.Fluid.BaseClasses.FlowModels.Validation.InvertingBasicFlowFunction_m_flow.sim & ./Buildings_latest_Buildings.Fluid.BaseClasses.FlowModels.Validation.InvertingBasicFlowFunction_m_flow -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Buildings_latest_Buildings.Fluid.BaseClasses.FlowModels.Validation.InvertingBasicFlowFunction_m_flow.pipe 2>&1) diffSimulationResults("Buildings_latest_Buildings.Fluid.BaseClasses.FlowModels.Validation.InvertingBasicFlowFunction_m_flow_res.mat","/mnt/ReferenceFiles/Buildings/csv/master/Buildings_Fluid_BaseClasses_FlowModels_Validation_InvertingBasicFlowFunction_m_flow.csv","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Buildings_latest_Buildings.Fluid.BaseClasses.FlowModels.Validation.InvertingBasicFlowFunction_m_flow.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches