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.0009331/0.0009328, allocations: 98.88 kB / 16.02 MB, free: 76 kB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001025/0.001025, allocations: 185.3 kB / 16.92 MB, free: 6.77 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.358/1.358, allocations: 223.3 MB / 241 MB, free: 5.359 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 11.0.0-master/package.mo): time 2.633/2.633, allocations: 462.6 MB / 0.737 GB, free: 15.62 MB / 0.5919 GB Notification: Performance of FrontEnd - loaded program: time 0.0003329/0.0003331, allocations: 11.06 kB / 0.9034 GB, free: 36.38 MB / 0.7169 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3053/0.3057, allocations: 159.6 MB / 1.059 GB, free: 5.008 MB / 0.8106 GB Notification: Performance of NFInst.instantiate(Buildings.Fluid.BaseClasses.FlowModels.Validation.InvertingBasicFlowFunction_m_flow): time 0.001244/0.307, allocations: 0.9829 MB / 1.06 GB, free: 4.012 MB / 0.8106 GB Notification: Performance of NFInst.instExpressions: time 0.0009473/0.3079, allocations: 0.5918 MB / 1.061 GB, free: 3.418 MB / 0.8106 GB Notification: Performance of NFInst.updateImplicitVariability: time 1.345e-05/0.3079, allocations: 0 / 1.061 GB, free: 3.418 MB / 0.8106 GB Notification: Performance of NFTyping.typeComponents: time 1.854e-05/0.308, allocations: 7.922 kB / 1.061 GB, free: 3.41 MB / 0.8106 GB Notification: Performance of NFTyping.typeBindings: time 3.804e-05/0.308, allocations: 0 / 1.061 GB, free: 3.41 MB / 0.8106 GB Notification: Performance of NFTyping.typeClassSections: time 0.0004177/0.3084, allocations: 115.6 kB / 1.061 GB, free: 3.297 MB / 0.8106 GB Notification: Performance of NFFlatten.flatten: time 3.691e-05/0.3085, allocations: 7.938 kB / 1.061 GB, free: 3.289 MB / 0.8106 GB Notification: Performance of NFFlatten.resolveConnections: time 4.032e-05/0.3085, allocations: 3.984 kB / 1.061 GB, free: 3.285 MB / 0.8106 GB Notification: Performance of NFEvalConstants.evaluate: time 1.799e-05/0.3086, allocations: 4 kB / 1.061 GB, free: 3.281 MB / 0.8106 GB Notification: Performance of NFSimplifyModel.simplify: time 4.358e-05/0.3086, allocations: 15.92 kB / 1.061 GB, free: 3.266 MB / 0.8106 GB Notification: Performance of NFPackage.collectConstants: time 9.207e-06/0.3086, allocations: 0 / 1.061 GB, free: 3.266 MB / 0.8106 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0004527/0.3091, allocations: 339.3 kB / 1.061 GB, free: 2.934 MB / 0.8106 GB Notification: Performance of NFScalarize.scalarize: time 9.237e-06/0.3091, allocations: 0 / 1.061 GB, free: 2.934 MB / 0.8106 GB Notification: Performance of NFVerifyModel.verify: time 2.64e-05/0.3091, allocations: 25.7 kB / 1.061 GB, free: 2.902 MB / 0.8106 GB Notification: Performance of NFConvertDAE.convert: time 0.0001679/0.3093, allocations: 100 kB / 1.061 GB, free: 2.805 MB / 0.8106 GB Notification: Performance of FrontEnd - DAE generated: time 4.198e-06/0.3093, allocations: 4 kB / 1.061 GB, free: 2.801 MB / 0.8106 GB Notification: Performance of FrontEnd: time 1.343e-06/0.3093, allocations: 0 / 1.061 GB, free: 2.801 MB / 0.8106 GB Notification: Performance of Transformations before backend: time 3.347e-06/0.3093, allocations: 0 / 1.061 GB, free: 2.801 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.0003291/0.3097, allocations: 359.4 kB / 1.062 GB, free: 2.398 MB / 0.8106 GB Notification: Performance of prepare preOptimizeDAE: time 3.427e-05/0.3097, allocations: 11.97 kB / 1.062 GB, free: 2.387 MB / 0.8106 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 2.41e-05/0.3097, allocations: 0.9375 kB / 1.062 GB, free: 2.387 MB / 0.8106 GB Notification: Performance of preOpt evaluateParameters (simulation): time 9.626e-05/0.3098, allocations: 160.4 kB / 1.062 GB, free: 2.191 MB / 0.8106 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 9.889e-06/0.3099, allocations: 4.375 kB / 1.062 GB, free: 2.188 MB / 0.8106 GB Notification: Performance of preOpt expandDerOperator (simulation): time 8.977e-06/0.3099, allocations: 384 / 1.062 GB, free: 2.188 MB / 0.8106 GB Notification: Performance of preOpt clockPartitioning (simulation): time 8.195e-05/0.31, allocations: 42.25 kB / 1.062 GB, free: 2.141 MB / 0.8106 GB Notification: Performance of preOpt findStateOrder (simulation): time 6.683e-06/0.31, allocations: 192 / 1.062 GB, free: 2.141 MB / 0.8106 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.034e-05/0.31, allocations: 3.938 kB / 1.062 GB, free: 2.137 MB / 0.8106 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 9.077e-06/0.31, allocations: 0 / 1.062 GB, free: 2.137 MB / 0.8106 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 2.474e-05/0.31, allocations: 7.938 kB / 1.062 GB, free: 2.129 MB / 0.8106 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.000129/0.3102, allocations: 145.7 kB / 1.062 GB, free: 1.938 MB / 0.8106 GB Notification: Performance of preOpt comSubExp (simulation): time 5.528e-05/0.3102, allocations: 34.58 kB / 1.062 GB, free: 1.895 MB / 0.8106 GB Notification: Performance of preOpt resolveLoops (simulation): time 1.743e-05/0.3102, allocations: 8.859 kB / 1.062 GB, free: 1.883 MB / 0.8106 GB Notification: Performance of preOpt evalFunc (simulation): time 2.091e-05/0.3103, allocations: 8 kB / 1.062 GB, free: 1.875 MB / 0.8106 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.09e-05/0.3103, allocations: 38.56 kB / 1.062 GB, free: 1.828 MB / 0.8106 GB Notification: Performance of pre-optimization done (n=2): time 9.51e-07/0.3103, allocations: 0 / 1.062 GB, free: 1.828 MB / 0.8106 GB Notification: Performance of matching and sorting (n=2): time 0.000123/0.3104, allocations: 41.58 kB / 1.062 GB, free: 1.781 MB / 0.8106 GB Notification: Performance of inlineWhenForInitialization (initialization): time 3.056e-05/0.3105, allocations: 55.39 kB / 1.062 GB, free: 1.715 MB / 0.8106 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 6.612e-05/0.3105, allocations: 97.86 kB / 1.062 GB, free: 1.609 MB / 0.8106 GB Notification: Performance of collectPreVariables (initialization): time 1.136e-05/0.3106, allocations: 29.95 kB / 1.062 GB, free: 1.574 MB / 0.8106 GB Notification: Performance of collectInitialEqns (initialization): time 2.504e-05/0.3106, allocations: 80.14 kB / 1.063 GB, free: 1.492 MB / 0.8106 GB Notification: Performance of collectInitialBindings (initialization): time 2.47e-05/0.3106, allocations: 7.906 kB / 1.063 GB, free: 1.484 MB / 0.8106 GB Notification: Performance of simplifyInitialFunctions (initialization): time 1.972e-05/0.3106, allocations: 13.66 kB / 1.063 GB, free: 1.465 MB / 0.8106 GB Notification: Performance of setup shared object (initialization): time 9.533e-05/0.3107, allocations: 314.8 kB / 1.063 GB, free: 1.148 MB / 0.8106 GB Notification: Performance of preBalanceInitialSystem (initialization): time 1.016e-05/0.3108, allocations: 0 / 1.063 GB, free: 1.148 MB / 0.8106 GB Notification: Performance of partitionIndependentBlocks (initialization): time 9.848e-06/0.3108, allocations: 7.984 kB / 1.063 GB, free: 1.141 MB / 0.8106 GB Notification: Performance of analyzeInitialSystem (initialization): time 2.698e-05/0.3108, allocations: 12.8 kB / 1.063 GB, free: 1.125 MB / 0.8106 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.472e-06/0.3108, allocations: 4.062 kB / 1.063 GB, free: 1.121 MB / 0.8106 GB Notification: Performance of matching and sorting (n=2) (initialization): time 5.542e-05/0.3109, allocations: 37.7 kB / 1.063 GB, free: 1.078 MB / 0.8106 GB Notification: Performance of prepare postOptimizeDAE: time 1.439e-05/0.3109, allocations: 9.562 kB / 1.063 GB, free: 1.07 MB / 0.8106 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.571e-06/0.3109, allocations: 3.938 kB / 1.063 GB, free: 1.066 MB / 0.8106 GB Notification: Performance of postOpt tearingSystem (initialization): time 9.788e-06/0.3109, allocations: 0 / 1.063 GB, free: 1.066 MB / 0.8106 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001449/0.3111, allocations: 11.98 kB / 1.063 GB, free: 1.055 MB / 0.8106 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0003244/0.3114, allocations: 0.582 MB / 1.064 GB, free: 460 kB / 0.8106 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 1.66e-05/0.3114, allocations: 8.062 kB / 1.064 GB, free: 452 kB / 0.8106 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.16e-06/0.3114, allocations: 0 / 1.064 GB, free: 452 kB / 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 6.749e-05/0.3115, allocations: 117.8 kB / 1.064 GB, free: 324 kB / 0.8106 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 8.917e-06/0.3115, allocations: 3.984 kB / 1.064 GB, free: 320 kB / 0.8106 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 9.011e-05/0.3116, allocations: 44.81 kB / 1.064 GB, free: 272 kB / 0.8106 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.024e-06/0.3116, allocations: 0 / 1.064 GB, free: 272 kB / 0.8106 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.636e-06/0.3116, allocations: 0 / 1.064 GB, free: 272 kB / 0.8106 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.424e-06/0.3116, allocations: 4.031 kB / 1.064 GB, free: 268 kB / 0.8106 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 9.55e-05/0.3118, allocations: 157.6 kB / 1.064 GB, free: 60 kB / 0.8106 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.062e-06/0.3118, allocations: 0 / 1.064 GB, free: 60 kB / 0.8106 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 7.359e-05/0.3118, allocations: 11.98 kB / 1.064 GB, free: 48 kB / 0.8106 GB Notification: Performance of postOpt tearingSystem (simulation): time 1.994e-06/0.3118, allocations: 0 / 1.064 GB, free: 48 kB / 0.8106 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 5.21e-06/0.3119, allocations: 0 / 1.064 GB, free: 48 kB / 0.8106 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.000281/0.3121, allocations: 0.586 MB / 1.064 GB, free: 15.44 MB / 0.8262 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.574e-06/0.3122, allocations: 3.938 kB / 1.064 GB, free: 15.43 MB / 0.8262 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 7.854e-05/0.3122, allocations: 69.25 kB / 1.064 GB, free: 15.35 MB / 0.8262 GB Notification: Performance of postOpt removeConstants (simulation): time 3.642e-05/0.3123, allocations: 81.02 kB / 1.065 GB, free: 15.25 MB / 0.8262 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.174e-05/0.3123, allocations: 4 kB / 1.065 GB, free: 15.25 MB / 0.8262 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 1.369e-05/0.3123, allocations: 0 / 1.065 GB, free: 15.25 MB / 0.8262 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 1.257e-05/0.3123, allocations: 3.938 kB / 1.065 GB, free: 15.24 MB / 0.8262 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.174e-06/0.3123, allocations: 0 / 1.065 GB, free: 15.24 MB / 0.8262 GB Notification: Performance of sorting global known variables: time 3.298e-05/0.3124, allocations: 95.17 kB / 1.065 GB, free: 15.15 MB / 0.8262 GB Notification: Performance of sort global known variables: time 1.3e-07/0.3124, allocations: 0 / 1.065 GB, free: 15.15 MB / 0.8262 GB Notification: Performance of remove unused functions: time 0.0001923/0.3126, allocations: 4 kB / 1.065 GB, free: 15.14 MB / 0.8262 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.0001456/0.3127, allocations: 111.1 kB / 1.065 GB, free: 15.02 MB / 0.8262 GB Notification: Performance of simCode: created initialization part: time 0.0001452/0.3129, allocations: 23.98 kB / 1.065 GB, free: 15 MB / 0.8262 GB Notification: Performance of simCode: created event and clocks part: time 4.889e-06/0.3129, allocations: 0 / 1.065 GB, free: 15 MB / 0.8262 GB Notification: Performance of simCode: created simulation system equations: time 8.108e-05/0.313, allocations: 12.14 kB / 1.065 GB, free: 14.99 MB / 0.8262 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001348/0.3131, allocations: 8.062 kB / 1.065 GB, free: 14.98 MB / 0.8262 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.00029/0.3134, allocations: 139.3 kB / 1.065 GB, free: 14.82 MB / 0.8262 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002026/0.3136, allocations: 0.6731 MB / 1.066 GB, free: 14.12 MB / 0.8262 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 1.358e-05/0.3137, allocations: 11.44 kB / 1.066 GB, free: 14.11 MB / 0.8262 GB Notification: Performance of SimCode: time 2.6e-07/0.3137, allocations: 0 / 1.066 GB, free: 14.11 MB / 0.8262 GB Notification: Performance of Templates: time 0.00212/0.3158, allocations: 0.6883 MB / 1.066 GB, free: 13.42 MB / 0.8262 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