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.0-master/package.mo", uses=false) Using package Buildings with version 11.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 11.0.0-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.007454/0.007454, allocations: 101.2 kB / 15.88 MB, free: 5.867 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.00181/0.00181, allocations: 194.5 kB / 16.79 MB, free: 5.809 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.385/1.385, allocations: 222.9 MB / 240.5 MB, free: 4.562 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 11.0.0-master/package.mo): time 2.724/2.724, allocations: 461.9 MB / 0.7348 GB, free: 14.19 MB / 0.5919 GB Notification: Performance of FrontEnd - loaded program: time 0.001281/0.001281, allocations: 64.55 kB / 0.899 GB, free: 37.08 MB / 0.7169 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2776/0.2789, allocations: 157.4 MB / 1.053 GB, free: 8.281 MB / 0.8106 GB Notification: Performance of NFInst.instantiate(Buildings.Fluid.BaseClasses.FlowModels.Validation.InvertingBasicFlowFunction_m_flow): time 0.002422/0.2814, allocations: 1.316 MB / 1.054 GB, free: 6.949 MB / 0.8106 GB Notification: Performance of NFInst.instExpressions: time 0.0009484/0.2823, allocations: 0.6112 MB / 1.055 GB, free: 6.336 MB / 0.8106 GB Notification: Performance of NFInst.updateImplicitVariability: time 1.352e-05/0.2824, allocations: 0 / 1.055 GB, free: 6.336 MB / 0.8106 GB Notification: Performance of NFTyping.typeComponents: time 1.896e-05/0.2824, allocations: 0 / 1.055 GB, free: 6.336 MB / 0.8106 GB Notification: Performance of NFTyping.typeBindings: time 3.598e-05/0.2824, allocations: 0 / 1.055 GB, free: 6.336 MB / 0.8106 GB Notification: Performance of NFTyping.typeClassSections: time 0.0004819/0.2829, allocations: 111.6 kB / 1.055 GB, free: 6.227 MB / 0.8106 GB Notification: Performance of NFFlatten.flatten: time 3.807e-05/0.283, allocations: 11.94 kB / 1.055 GB, free: 6.215 MB / 0.8106 GB Notification: Performance of NFFlatten.resolveConnections: time 4.299e-05/0.283, allocations: 3.984 kB / 1.055 GB, free: 6.211 MB / 0.8106 GB Notification: Performance of NFEvalConstants.evaluate: time 2.215e-05/0.2831, allocations: 11.94 kB / 1.055 GB, free: 6.199 MB / 0.8106 GB Notification: Performance of NFSimplifyModel.simplify: time 4.166e-05/0.2831, allocations: 3.984 kB / 1.055 GB, free: 6.195 MB / 0.8106 GB Notification: Performance of NFPackage.collectConstants: time 1.129e-05/0.2831, allocations: 0 / 1.055 GB, free: 6.195 MB / 0.8106 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0004929/0.2836, allocations: 343.3 kB / 1.055 GB, free: 5.859 MB / 0.8106 GB Notification: Performance of NFScalarize.scalarize: time 1.046e-05/0.2836, allocations: 0 / 1.055 GB, free: 5.859 MB / 0.8106 GB Notification: Performance of NFVerifyModel.verify: time 2.549e-05/0.2837, allocations: 7.922 kB / 1.055 GB, free: 5.852 MB / 0.8106 GB Notification: Performance of NFConvertDAE.convert: time 0.000193/0.2839, allocations: 96.12 kB / 1.055 GB, free: 5.758 MB / 0.8106 GB Notification: Performance of FrontEnd - DAE generated: time 6.302e-06/0.2839, allocations: 3.984 kB / 1.055 GB, free: 5.754 MB / 0.8106 GB Notification: Performance of FrontEnd: time 7.11e-07/0.2839, allocations: 0 / 1.055 GB, free: 5.754 MB / 0.8106 GB Notification: Performance of Transformations before backend: time 3.516e-06/0.2839, allocations: 4 kB / 1.055 GB, free: 5.75 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.0004043/0.2843, allocations: 351.4 kB / 1.056 GB, free: 5.355 MB / 0.8106 GB Notification: Performance of prepare preOptimizeDAE: time 4.167e-05/0.2844, allocations: 11.97 kB / 1.056 GB, free: 5.344 MB / 0.8106 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.202e-05/0.2844, allocations: 0.9375 kB / 1.056 GB, free: 5.344 MB / 0.8106 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001061/0.2845, allocations: 164.4 kB / 1.056 GB, free: 5.145 MB / 0.8106 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.239e-05/0.2845, allocations: 4.375 kB / 1.056 GB, free: 5.141 MB / 0.8106 GB Notification: Performance of preOpt expandDerOperator (simulation): time 9.969e-06/0.2845, allocations: 384 / 1.056 GB, free: 5.141 MB / 0.8106 GB Notification: Performance of preOpt clockPartitioning (simulation): time 8.625e-05/0.2846, allocations: 38.19 kB / 1.056 GB, free: 5.098 MB / 0.8106 GB Notification: Performance of preOpt findStateOrder (simulation): time 8.035e-06/0.2846, allocations: 4.188 kB / 1.056 GB, free: 5.094 MB / 0.8106 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 9.708e-06/0.2847, allocations: 3.938 kB / 1.056 GB, free: 5.09 MB / 0.8106 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.569e-06/0.2847, allocations: 0 / 1.056 GB, free: 5.09 MB / 0.8106 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 2.727e-05/0.2847, allocations: 4 kB / 1.056 GB, free: 5.086 MB / 0.8106 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0001623/0.2849, allocations: 153.7 kB / 1.056 GB, free: 4.887 MB / 0.8106 GB Notification: Performance of preOpt comSubExp (simulation): time 5.001e-05/0.2849, allocations: 22.52 kB / 1.056 GB, free: 4.855 MB / 0.8106 GB Notification: Performance of preOpt resolveLoops (simulation): time 2.416e-05/0.285, allocations: 16.86 kB / 1.056 GB, free: 4.836 MB / 0.8106 GB Notification: Performance of preOpt evalFunc (simulation): time 2.048e-05/0.285, allocations: 4 kB / 1.056 GB, free: 4.832 MB / 0.8106 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.178e-05/0.285, allocations: 30.56 kB / 1.056 GB, free: 4.793 MB / 0.8106 GB Notification: Performance of pre-optimization done (n=2): time 8.21e-07/0.285, allocations: 0 / 1.056 GB, free: 4.793 MB / 0.8106 GB Notification: Performance of matching and sorting (n=2): time 0.0001457/0.2852, allocations: 45.62 kB / 1.056 GB, free: 4.742 MB / 0.8106 GB Notification: Performance of inlineWhenForInitialization (initialization): time 3.05e-05/0.2852, allocations: 55.41 kB / 1.056 GB, free: 4.676 MB / 0.8106 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 6.737e-05/0.2853, allocations: 89.86 kB / 1.056 GB, free: 4.578 MB / 0.8106 GB Notification: Performance of collectPreVariables (initialization): time 1.473e-05/0.2853, allocations: 29.64 kB / 1.056 GB, free: 4.543 MB / 0.8106 GB Notification: Performance of collectInitialEqns (initialization): time 3.103e-05/0.2853, allocations: 88.39 kB / 1.056 GB, free: 4.453 MB / 0.8106 GB Notification: Performance of collectInitialBindings (initialization): time 2.468e-05/0.2854, allocations: 3.906 kB / 1.056 GB, free: 4.449 MB / 0.8106 GB Notification: Performance of simplifyInitialFunctions (initialization): time 2.665e-05/0.2854, allocations: 13.72 kB / 1.056 GB, free: 4.43 MB / 0.8106 GB Notification: Performance of setup shared object (initialization): time 0.0001/0.2855, allocations: 318.8 kB / 1.057 GB, free: 4.109 MB / 0.8106 GB Notification: Performance of preBalanceInitialSystem (initialization): time 1.412e-05/0.2855, allocations: 3.938 kB / 1.057 GB, free: 4.105 MB / 0.8106 GB Notification: Performance of partitionIndependentBlocks (initialization): time 1.029e-05/0.2855, allocations: 4 kB / 1.057 GB, free: 4.102 MB / 0.8106 GB Notification: Performance of analyzeInitialSystem (initialization): time 2.81e-05/0.2856, allocations: 12.86 kB / 1.057 GB, free: 4.086 MB / 0.8106 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.813e-06/0.2856, allocations: 0 / 1.057 GB, free: 4.086 MB / 0.8106 GB Notification: Performance of matching and sorting (n=2) (initialization): time 6.499e-05/0.2856, allocations: 37.77 kB / 1.057 GB, free: 4.043 MB / 0.8106 GB Notification: Performance of prepare postOptimizeDAE: time 1.406e-05/0.2857, allocations: 4 kB / 1.057 GB, free: 4.039 MB / 0.8106 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.544e-06/0.2857, allocations: 11.92 kB / 1.057 GB, free: 4.027 MB / 0.8106 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.131e-05/0.2857, allocations: 0 / 1.057 GB, free: 4.027 MB / 0.8106 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001486/0.2858, allocations: 12 kB / 1.057 GB, free: 4.016 MB / 0.8106 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0003402/0.2862, allocations: 0.5859 MB / 1.057 GB, free: 3.406 MB / 0.8106 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 1.807e-05/0.2862, allocations: 128 / 1.057 GB, free: 3.406 MB / 0.8106 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.45e-06/0.2862, allocations: 4 kB / 1.057 GB, free: 3.402 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.502e-05/0.2863, allocations: 113.8 kB / 1.057 GB, free: 3.281 MB / 0.8106 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 7.835e-06/0.2863, allocations: 4.031 kB / 1.057 GB, free: 3.277 MB / 0.8106 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 9.908e-05/0.2864, allocations: 48.81 kB / 1.057 GB, free: 3.227 MB / 0.8106 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.356e-06/0.2864, allocations: 0 / 1.057 GB, free: 3.227 MB / 0.8106 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.607e-06/0.2864, allocations: 3.938 kB / 1.057 GB, free: 3.223 MB / 0.8106 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.224e-06/0.2865, allocations: 0 / 1.057 GB, free: 3.223 MB / 0.8106 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 9.856e-05/0.2866, allocations: 161.6 kB / 1.058 GB, free: 3.016 MB / 0.8106 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.184e-06/0.2866, allocations: 3.984 kB / 1.058 GB, free: 3.012 MB / 0.8106 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 7.221e-05/0.2866, allocations: 11.98 kB / 1.058 GB, free: 3 MB / 0.8106 GB Notification: Performance of postOpt tearingSystem (simulation): time 2.144e-06/0.2867, allocations: 0 / 1.058 GB, free: 3 MB / 0.8106 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 8.176e-06/0.2867, allocations: 0 / 1.058 GB, free: 3 MB / 0.8106 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0002644/0.2869, allocations: 0.5821 MB / 1.058 GB, free: 2.395 MB / 0.8106 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.885e-06/0.2869, allocations: 3.938 kB / 1.058 GB, free: 2.391 MB / 0.8106 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 7.441e-05/0.287, allocations: 81.09 kB / 1.058 GB, free: 2.293 MB / 0.8106 GB Notification: Performance of postOpt removeConstants (simulation): time 2.782e-05/0.2871, allocations: 77.11 kB / 1.058 GB, free: 2.199 MB / 0.8106 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 9.608e-06/0.2871, allocations: 0 / 1.058 GB, free: 2.199 MB / 0.8106 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 1.398e-05/0.2871, allocations: 0 / 1.058 GB, free: 2.199 MB / 0.8106 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 1.396e-05/0.2871, allocations: 7.922 kB / 1.058 GB, free: 2.191 MB / 0.8106 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.444e-06/0.2871, allocations: 4 kB / 1.058 GB, free: 2.188 MB / 0.8106 GB Notification: Performance of sorting global known variables: time 3.009e-05/0.2872, allocations: 75.28 kB / 1.058 GB, free: 2.113 MB / 0.8106 GB Notification: Performance of sort global known variables: time 1.4e-07/0.2872, allocations: 4.125 kB / 1.058 GB, free: 2.109 MB / 0.8106 GB Notification: Performance of remove unused functions: time 0.0001921/0.2874, allocations: 12 kB / 1.058 GB, free: 2.098 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.0001413/0.2875, allocations: 111.2 kB / 1.059 GB, free: 1.977 MB / 0.8106 GB Notification: Performance of simCode: created initialization part: time 0.0001444/0.2877, allocations: 15.98 kB / 1.059 GB, free: 1.961 MB / 0.8106 GB Notification: Performance of simCode: created event and clocks part: time 1.854e-06/0.2877, allocations: 0 / 1.059 GB, free: 1.961 MB / 0.8106 GB Notification: Performance of simCode: created simulation system equations: time 8.467e-05/0.2878, allocations: 19.88 kB / 1.059 GB, free: 1.941 MB / 0.8106 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001352/0.2879, allocations: 4 kB / 1.059 GB, free: 1.938 MB / 0.8106 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0002969/0.2882, allocations: 134.2 kB / 1.059 GB, free: 1.773 MB / 0.8106 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002082/0.2884, allocations: 0.677 MB / 1.059 GB, free: 1.07 MB / 0.8106 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 1.249e-05/0.2884, allocations: 7.438 kB / 1.059 GB, free: 1.062 MB / 0.8106 GB Notification: Performance of SimCode: time 2.8e-07/0.2884, allocations: 0 / 1.059 GB, free: 1.062 MB / 0.8106 GB Notification: Performance of Templates: time 0.002142/0.2906, allocations: 0.6855 MB / 1.06 GB, free: 392 kB / 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/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Buildings_latest_Buildings.Fluid.BaseClasses.FlowModels.Validation.InvertingBasicFlowFunction_m_flow.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) "" Variables in the reference:time,m_flow,m_flow_nominal,dp Variables in the result:dp,m_flow,m_flow_nominal,time