Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Buildings_9_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 9.1.3-maint.9.1.x/package.mo", uses=false) Using package Buildings with version 9.1.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 9.1.3-maint.9.1.x/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_9_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_9_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.008061/0.008061, allocations: 100.4 kB / 15.73 MB, free: 5.98 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.001824/0.001824, allocations: 192.2 kB / 16.67 MB, free: 5.918 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.431/1.431, allocations: 222.9 MB / 240.4 MB, free: 4.324 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 9.1.3-maint.9.1.x/package.mo): time 2.518/2.518, allocations: 390.2 MB / 0.6648 GB, free: 176 kB / 0.5137 GB Notification: Performance of FrontEnd - loaded program: time 0.001223/0.001223, allocations: 70.3 kB / 0.9509 GB, free: 5.547 MB / 0.7169 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2789/0.2802, allocations: 140.4 MB / 1.088 GB, free: 1.543 MB / 0.8419 GB Notification: Performance of NFInst.instantiate(Buildings.Fluid.BaseClasses.FlowModels.Validation.InvertingBasicFlowFunction_m_flow): time 0.002339/0.2826, allocations: 1.261 MB / 1.089 GB, free: 280 kB / 0.8419 GB Notification: Performance of NFInst.instExpressions: time 0.0009968/0.2836, allocations: 0.5894 MB / 1.09 GB, free: 15.68 MB / 0.8575 GB Notification: Performance of NFInst.updateImplicitVariability: time 2.124e-05/0.2836, allocations: 0 / 1.09 GB, free: 15.68 MB / 0.8575 GB Notification: Performance of NFTyping.typeComponents: time 1.53e-05/0.2836, allocations: 0 / 1.09 GB, free: 15.68 MB / 0.8575 GB Notification: Performance of NFTyping.typeBindings: time 4.519e-05/0.2837, allocations: 3.984 kB / 1.09 GB, free: 15.68 MB / 0.8575 GB Notification: Performance of NFTyping.typeClassSections: time 0.0004837/0.2842, allocations: 143.4 kB / 1.09 GB, free: 15.54 MB / 0.8575 GB Notification: Performance of NFFlatten.flatten: time 5.537e-05/0.2842, allocations: 11.92 kB / 1.09 GB, free: 15.53 MB / 0.8575 GB Notification: Performance of NFFlatten.resolveConnections: time 5.158e-05/0.2843, allocations: 4 kB / 1.09 GB, free: 15.52 MB / 0.8575 GB Notification: Performance of NFEvalConstants.evaluate: time 1.698e-05/0.2843, allocations: 0 / 1.09 GB, free: 15.52 MB / 0.8575 GB Notification: Performance of NFSimplifyModel.simplify: time 5.189e-05/0.2844, allocations: 7.938 kB / 1.09 GB, free: 15.52 MB / 0.8575 GB Notification: Performance of NFPackage.collectConstants: time 1.232e-05/0.2844, allocations: 0 / 1.09 GB, free: 15.52 MB / 0.8575 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0004969/0.2849, allocations: 343.3 kB / 1.09 GB, free: 15.18 MB / 0.8575 GB Notification: Performance of NFScalarize.scalarize: time 1.458e-05/0.2849, allocations: 8 kB / 1.09 GB, free: 15.17 MB / 0.8575 GB Notification: Performance of NFVerifyModel.verify: time 1.75e-05/0.2849, allocations: 0 / 1.09 GB, free: 15.17 MB / 0.8575 GB Notification: Performance of NFConvertDAE.convert: time 0.0002534/0.2852, allocations: 139.6 kB / 1.09 GB, free: 15.04 MB / 0.8575 GB Notification: Performance of FrontEnd - DAE generated: time 7.464e-06/0.2852, allocations: 7.984 kB / 1.09 GB, free: 15.03 MB / 0.8575 GB Notification: Performance of FrontEnd: time 1.533e-06/0.2852, allocations: 0 / 1.09 GB, free: 15.03 MB / 0.8575 GB Notification: Performance of Transformations before backend: time 5.029e-06/0.2852, allocations: 0 / 1.09 GB, free: 15.03 MB / 0.8575 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.0004197/0.2857, allocations: 347.5 kB / 1.091 GB, free: 14.64 MB / 0.8575 GB Notification: Performance of prepare preOptimizeDAE: time 3.987e-05/0.2857, allocations: 8.031 kB / 1.091 GB, free: 14.63 MB / 0.8575 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 2.698e-05/0.2858, allocations: 4.938 kB / 1.091 GB, free: 14.62 MB / 0.8575 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001065/0.2859, allocations: 160.4 kB / 1.091 GB, free: 14.43 MB / 0.8575 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.595e-05/0.2859, allocations: 4.375 kB / 1.091 GB, free: 14.43 MB / 0.8575 GB Notification: Performance of preOpt expandDerOperator (simulation): time 1.038e-05/0.2859, allocations: 384 / 1.091 GB, free: 14.43 MB / 0.8575 GB Notification: Performance of preOpt clockPartitioning (simulation): time 9.707e-05/0.286, allocations: 38.25 kB / 1.091 GB, free: 14.38 MB / 0.8575 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.041e-05/0.286, allocations: 4.125 kB / 1.091 GB, free: 14.38 MB / 0.8575 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.116e-05/0.286, allocations: 3.938 kB / 1.091 GB, free: 14.38 MB / 0.8575 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.217e-06/0.286, allocations: 0 / 1.091 GB, free: 14.38 MB / 0.8575 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 2.787e-05/0.2861, allocations: 4 kB / 1.091 GB, free: 14.37 MB / 0.8575 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0001579/0.2862, allocations: 157.6 kB / 1.091 GB, free: 14.17 MB / 0.8575 GB Notification: Performance of preOpt comSubExp (simulation): time 6.272e-05/0.2863, allocations: 18.61 kB / 1.091 GB, free: 14.14 MB / 0.8575 GB Notification: Performance of preOpt resolveLoops (simulation): time 1.927e-05/0.2863, allocations: 16.92 kB / 1.091 GB, free: 14.12 MB / 0.8575 GB Notification: Performance of preOpt evalFunc (simulation): time 1.993e-05/0.2864, allocations: 0 / 1.091 GB, free: 14.12 MB / 0.8575 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.498e-05/0.2864, allocations: 30.56 kB / 1.091 GB, free: 14.08 MB / 0.8575 GB Notification: Performance of pre-optimization done (n=2): time 1.202e-06/0.2864, allocations: 0 / 1.091 GB, free: 14.08 MB / 0.8575 GB Notification: Performance of matching and sorting (n=2): time 0.0001426/0.2865, allocations: 61.41 kB / 1.091 GB, free: 14.02 MB / 0.8575 GB Notification: Performance of inlineWhenForInitialization (initialization): time 3.25e-05/0.2866, allocations: 51.41 kB / 1.091 GB, free: 13.95 MB / 0.8575 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 8.263e-05/0.2867, allocations: 97.98 kB / 1.091 GB, free: 13.85 MB / 0.8575 GB Notification: Performance of collectPreVariables (initialization): time 1.341e-05/0.2867, allocations: 25.7 kB / 1.091 GB, free: 13.82 MB / 0.8575 GB Notification: Performance of collectInitialEqns (initialization): time 3.087e-05/0.2867, allocations: 80.14 kB / 1.091 GB, free: 13.73 MB / 0.8575 GB Notification: Performance of collectInitialBindings (initialization): time 2.995e-05/0.2868, allocations: 3.984 kB / 1.091 GB, free: 13.73 MB / 0.8575 GB Notification: Performance of simplifyInitialFunctions (initialization): time 3.138e-05/0.2868, allocations: 17.72 kB / 1.091 GB, free: 13.71 MB / 0.8575 GB Notification: Performance of setup shared object (initialization): time 0.0001523/0.287, allocations: 314.8 kB / 1.092 GB, free: 13.39 MB / 0.8575 GB Notification: Performance of preBalanceInitialSystem (initialization): time 1.345e-05/0.287, allocations: 0 / 1.092 GB, free: 13.39 MB / 0.8575 GB Notification: Performance of partitionIndependentBlocks (initialization): time 9.057e-06/0.287, allocations: 4 kB / 1.092 GB, free: 13.39 MB / 0.8575 GB Notification: Performance of analyzeInitialSystem (initialization): time 3.203e-05/0.287, allocations: 20.98 kB / 1.092 GB, free: 13.36 MB / 0.8575 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.074e-06/0.287, allocations: 0 / 1.092 GB, free: 13.36 MB / 0.8575 GB Notification: Performance of matching and sorting (n=2) (initialization): time 5.73e-05/0.2871, allocations: 37.61 kB / 1.092 GB, free: 13.32 MB / 0.8575 GB Notification: Performance of prepare postOptimizeDAE: time 1.473e-05/0.2871, allocations: 8 kB / 1.092 GB, free: 13.31 MB / 0.8575 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.586e-06/0.2871, allocations: 7.922 kB / 1.092 GB, free: 13.3 MB / 0.8575 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.325e-05/0.2871, allocations: 0 / 1.092 GB, free: 13.3 MB / 0.8575 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.000148/0.2873, allocations: 8 kB / 1.092 GB, free: 13.3 MB / 0.8575 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0003665/0.2877, allocations: 0.5899 MB / 1.092 GB, free: 12.68 MB / 0.8575 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 1.795e-05/0.2877, allocations: 0 / 1.092 GB, free: 12.68 MB / 0.8575 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.28e-06/0.2877, allocations: 0 / 1.092 GB, free: 12.68 MB / 0.8575 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.747e-05/0.2878, allocations: 119.2 kB / 1.093 GB, free: 12.56 MB / 0.8575 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 7.093e-06/0.2878, allocations: 0 / 1.093 GB, free: 12.56 MB / 0.8575 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.000106/0.2879, allocations: 48.8 kB / 1.093 GB, free: 12.5 MB / 0.8575 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.553e-06/0.2879, allocations: 0 / 1.093 GB, free: 12.5 MB / 0.8575 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.718e-06/0.2879, allocations: 4.125 kB / 1.093 GB, free: 12.5 MB / 0.8575 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.284e-06/0.2879, allocations: 0 / 1.093 GB, free: 12.5 MB / 0.8575 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001085/0.2881, allocations: 153.6 kB / 1.093 GB, free: 12.3 MB / 0.8575 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 8.81e-07/0.2881, allocations: 0 / 1.093 GB, free: 12.3 MB / 0.8575 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 7.003e-05/0.2881, allocations: 11.98 kB / 1.093 GB, free: 12.29 MB / 0.8575 GB Notification: Performance of postOpt tearingSystem (simulation): time 4.017e-06/0.2881, allocations: 0 / 1.093 GB, free: 12.29 MB / 0.8575 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 7.294e-06/0.2882, allocations: 7.938 kB / 1.093 GB, free: 12.28 MB / 0.8575 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0003073/0.2885, allocations: 0.5898 MB / 1.093 GB, free: 11.67 MB / 0.8575 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.445e-06/0.2885, allocations: 8.031 kB / 1.093 GB, free: 11.66 MB / 0.8575 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 7.206e-05/0.2886, allocations: 65.12 kB / 1.093 GB, free: 11.58 MB / 0.8575 GB Notification: Performance of postOpt removeConstants (simulation): time 4.738e-05/0.2886, allocations: 77.11 kB / 1.093 GB, free: 11.48 MB / 0.8575 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.113e-05/0.2886, allocations: 0 / 1.093 GB, free: 11.48 MB / 0.8575 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 1.443e-05/0.2887, allocations: 0 / 1.093 GB, free: 11.48 MB / 0.8575 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 2.109e-05/0.2887, allocations: 15.86 kB / 1.093 GB, free: 11.47 MB / 0.8575 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.415e-06/0.2887, allocations: 0 / 1.093 GB, free: 11.47 MB / 0.8575 GB Notification: Performance of sorting global known variables: time 3.081e-05/0.2887, allocations: 83.31 kB / 1.094 GB, free: 11.39 MB / 0.8575 GB Notification: Performance of sort global known variables: time 1.2e-07/0.2887, allocations: 0 / 1.094 GB, free: 11.39 MB / 0.8575 GB Notification: Performance of remove unused functions: time 0.0001917/0.2889, allocations: 15.94 kB / 1.094 GB, free: 11.37 MB / 0.8575 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.0001711/0.2891, allocations: 113.7 kB / 1.094 GB, free: 11.25 MB / 0.8575 GB Notification: Performance of simCode: created initialization part: time 0.0001614/0.2893, allocations: 19.98 kB / 1.094 GB, free: 11.23 MB / 0.8575 GB Notification: Performance of simCode: created event and clocks part: time 2.334e-06/0.2893, allocations: 0 / 1.094 GB, free: 11.23 MB / 0.8575 GB Notification: Performance of simCode: created simulation system equations: time 7.814e-05/0.2894, allocations: 12.16 kB / 1.094 GB, free: 11.22 MB / 0.8575 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001412/0.2895, allocations: 8 kB / 1.094 GB, free: 11.21 MB / 0.8575 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0003093/0.2898, allocations: 102.1 kB / 1.094 GB, free: 11.09 MB / 0.8575 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002629/0.2901, allocations: 0.6768 MB / 1.094 GB, free: 10.38 MB / 0.8575 GB Notification: Performance of simCode: alias equations: time 1.459e-05/0.2901, allocations: 0 / 1.094 GB, free: 10.38 MB / 0.8575 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 1.645e-05/0.2902, allocations: 7.438 kB / 1.094 GB, free: 10.38 MB / 0.8575 GB Notification: Performance of SimCode: time 2.3e-07/0.2902, allocations: 4.062 kB / 1.094 GB, free: 10.37 MB / 0.8575 GB Notification: Performance of Templates: time 0.002592/0.2928, allocations: 474.1 kB / 1.095 GB, free: 9.918 MB / 0.8575 GB make -j1 -f Buildings_9_Buildings.Fluid.BaseClasses.FlowModels.Validation.InvertingBasicFlowFunction_m_flow.makefile (rm -f Buildings_9_Buildings.Fluid.BaseClasses.FlowModels.Validation.InvertingBasicFlowFunction_m_flow.pipe ; mkfifo Buildings_9_Buildings.Fluid.BaseClasses.FlowModels.Validation.InvertingBasicFlowFunction_m_flow.pipe ; head -c 1048576 < Buildings_9_Buildings.Fluid.BaseClasses.FlowModels.Validation.InvertingBasicFlowFunction_m_flow.pipe >> ../files/Buildings_9_Buildings.Fluid.BaseClasses.FlowModels.Validation.InvertingBasicFlowFunction_m_flow.sim & ./Buildings_9_Buildings.Fluid.BaseClasses.FlowModels.Validation.InvertingBasicFlowFunction_m_flow -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Buildings_9_Buildings.Fluid.BaseClasses.FlowModels.Validation.InvertingBasicFlowFunction_m_flow.pipe 2>&1) diffSimulationResults("Buildings_9_Buildings.Fluid.BaseClasses.FlowModels.Validation.InvertingBasicFlowFunction_m_flow_res.mat","/mnt/ReferenceFiles/Buildings/csv/maint_9.1.x/Buildings_Fluid_BaseClasses_FlowModels_Validation_InvertingBasicFlowFunction_m_flow.csv","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Buildings_9_Buildings.Fluid.BaseClasses.FlowModels.Validation.InvertingBasicFlowFunction_m_flow.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches