Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Buildings_latest_Buildings.Fluid.BaseClasses.FlowModels.Validation.InvertingBasicFlowFunction_dp.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_dp,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|m_flow|m_flow_nominal|dp",fileNamePrefix="Buildings_latest_Buildings.Fluid.BaseClasses.FlowModels.Validation.InvertingBasicFlowFunction_dp") translateModel(Buildings.Fluid.BaseClasses.FlowModels.Validation.InvertingBasicFlowFunction_dp,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|m_flow|m_flow_nominal|dp",fileNamePrefix="Buildings_latest_Buildings.Fluid.BaseClasses.FlowModels.Validation.InvertingBasicFlowFunction_dp") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.007094/0.007093, allocations: 100.8 kB / 15.87 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.00177/0.00177, allocations: 195.8 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.387/1.387, allocations: 222.9 MB / 240.5 MB, free: 4.57 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 11.0.0-master/package.mo): time 2.65/2.65, allocations: 461.8 MB / 0.7348 GB, free: 14.16 MB / 0.5919 GB Notification: Performance of FrontEnd - loaded program: time 0.001236/0.001236, allocations: 63.14 kB / 0.899 GB, free: 37.05 MB / 0.7169 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2674/0.2686, allocations: 157.4 MB / 1.053 GB, free: 8.293 MB / 0.8106 GB Notification: Performance of NFInst.instantiate(Buildings.Fluid.BaseClasses.FlowModels.Validation.InvertingBasicFlowFunction_dp): time 0.00225/0.2709, allocations: 1.32 MB / 1.054 GB, free: 6.957 MB / 0.8106 GB Notification: Performance of NFInst.instExpressions: time 0.0009683/0.2719, allocations: 0.6034 MB / 1.055 GB, free: 6.352 MB / 0.8106 GB Notification: Performance of NFInst.updateImplicitVariability: time 1.578e-05/0.2719, allocations: 0 / 1.055 GB, free: 6.352 MB / 0.8106 GB Notification: Performance of NFTyping.typeComponents: time 1.893e-05/0.272, allocations: 0 / 1.055 GB, free: 6.352 MB / 0.8106 GB Notification: Performance of NFTyping.typeBindings: time 3.746e-05/0.272, allocations: 0 / 1.055 GB, free: 6.352 MB / 0.8106 GB Notification: Performance of NFTyping.typeClassSections: time 0.0004931/0.2725, allocations: 118.7 kB / 1.055 GB, free: 6.238 MB / 0.8106 GB Notification: Performance of NFFlatten.flatten: time 4.13e-05/0.2726, allocations: 15.92 kB / 1.055 GB, free: 6.223 MB / 0.8106 GB Notification: Performance of NFFlatten.resolveConnections: time 3.608e-05/0.2726, allocations: 4 kB / 1.055 GB, free: 6.219 MB / 0.8106 GB Notification: Performance of NFEvalConstants.evaluate: time 1.992e-05/0.2726, allocations: 7.938 kB / 1.055 GB, free: 6.211 MB / 0.8106 GB Notification: Performance of NFSimplifyModel.simplify: time 3.336e-05/0.2727, allocations: 0 / 1.055 GB, free: 6.211 MB / 0.8106 GB Notification: Performance of NFPackage.collectConstants: time 9.438e-06/0.2727, allocations: 3.938 kB / 1.055 GB, free: 6.207 MB / 0.8106 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0004771/0.2732, allocations: 347.3 kB / 1.055 GB, free: 5.867 MB / 0.8106 GB Notification: Performance of NFScalarize.scalarize: time 8.946e-06/0.2732, allocations: 0 / 1.055 GB, free: 5.867 MB / 0.8106 GB Notification: Performance of NFVerifyModel.verify: time 1.949e-05/0.2732, allocations: 3.938 kB / 1.055 GB, free: 5.863 MB / 0.8106 GB Notification: Performance of NFConvertDAE.convert: time 0.0001802/0.2734, allocations: 104.1 kB / 1.055 GB, free: 5.762 MB / 0.8106 GB Notification: Performance of FrontEnd - DAE generated: time 4.599e-06/0.2734, allocations: 0 / 1.055 GB, free: 5.762 MB / 0.8106 GB Notification: Performance of FrontEnd: time 1.172e-06/0.2734, allocations: 0 / 1.055 GB, free: 5.762 MB / 0.8106 GB Notification: Performance of Transformations before backend: time 4.969e-06/0.2734, allocations: 0 / 1.055 GB, free: 5.762 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.0004159/0.2738, allocations: 355.4 kB / 1.056 GB, free: 5.363 MB / 0.8106 GB Notification: Performance of prepare preOptimizeDAE: time 3.687e-05/0.2739, allocations: 8.031 kB / 1.056 GB, free: 5.355 MB / 0.8106 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.485e-05/0.2739, allocations: 4.938 kB / 1.056 GB, free: 5.352 MB / 0.8106 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001021/0.274, allocations: 164.4 kB / 1.056 GB, free: 5.152 MB / 0.8106 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.169e-05/0.2741, allocations: 4.312 kB / 1.056 GB, free: 5.148 MB / 0.8106 GB Notification: Performance of preOpt expandDerOperator (simulation): time 9.157e-06/0.2741, allocations: 4.359 kB / 1.056 GB, free: 5.145 MB / 0.8106 GB Notification: Performance of preOpt clockPartitioning (simulation): time 8.595e-05/0.2742, allocations: 34.25 kB / 1.056 GB, free: 5.105 MB / 0.8106 GB Notification: Performance of preOpt findStateOrder (simulation): time 6.673e-06/0.2742, allocations: 192 / 1.056 GB, free: 5.105 MB / 0.8106 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 9.578e-06/0.2742, allocations: 7.938 kB / 1.056 GB, free: 5.098 MB / 0.8106 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.178e-06/0.2742, allocations: 0 / 1.056 GB, free: 5.098 MB / 0.8106 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 2.598e-05/0.2742, allocations: 4 kB / 1.056 GB, free: 5.094 MB / 0.8106 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0001488/0.2744, allocations: 153.7 kB / 1.056 GB, free: 4.895 MB / 0.8106 GB Notification: Performance of preOpt comSubExp (simulation): time 4.884e-05/0.2744, allocations: 26.52 kB / 1.056 GB, free: 4.859 MB / 0.8106 GB Notification: Performance of preOpt resolveLoops (simulation): time 2.067e-05/0.2745, allocations: 8.922 kB / 1.056 GB, free: 4.848 MB / 0.8106 GB Notification: Performance of preOpt evalFunc (simulation): time 1.863e-05/0.2745, allocations: 3.938 kB / 1.056 GB, free: 4.844 MB / 0.8106 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.208e-05/0.2745, allocations: 34.56 kB / 1.056 GB, free: 4.801 MB / 0.8106 GB Notification: Performance of pre-optimization done (n=2): time 9.62e-07/0.2745, allocations: 0 / 1.056 GB, free: 4.801 MB / 0.8106 GB Notification: Performance of matching and sorting (n=2): time 0.0001388/0.2747, allocations: 45.62 kB / 1.056 GB, free: 4.75 MB / 0.8106 GB Notification: Performance of inlineWhenForInitialization (initialization): time 3.747e-05/0.2747, allocations: 55.41 kB / 1.056 GB, free: 4.684 MB / 0.8106 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 6.443e-05/0.2748, allocations: 89.86 kB / 1.056 GB, free: 4.586 MB / 0.8106 GB Notification: Performance of collectPreVariables (initialization): time 1.219e-05/0.2748, allocations: 25.7 kB / 1.056 GB, free: 4.555 MB / 0.8106 GB Notification: Performance of collectInitialEqns (initialization): time 2.997e-05/0.2748, allocations: 84.14 kB / 1.056 GB, free: 4.469 MB / 0.8106 GB Notification: Performance of collectInitialBindings (initialization): time 2.469e-05/0.2749, allocations: 8.156 kB / 1.056 GB, free: 4.461 MB / 0.8106 GB Notification: Performance of simplifyInitialFunctions (initialization): time 2.929e-05/0.2749, allocations: 17.7 kB / 1.056 GB, free: 4.438 MB / 0.8106 GB Notification: Performance of setup shared object (initialization): time 9.026e-05/0.275, allocations: 318.8 kB / 1.057 GB, free: 4.117 MB / 0.8106 GB Notification: Performance of preBalanceInitialSystem (initialization): time 1.244e-05/0.275, allocations: 0 / 1.057 GB, free: 4.117 MB / 0.8106 GB Notification: Performance of partitionIndependentBlocks (initialization): time 1.154e-05/0.275, allocations: 8 kB / 1.057 GB, free: 4.109 MB / 0.8106 GB Notification: Performance of analyzeInitialSystem (initialization): time 2.704e-05/0.2751, allocations: 8.859 kB / 1.057 GB, free: 4.098 MB / 0.8106 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.563e-06/0.2751, allocations: 0 / 1.057 GB, free: 4.098 MB / 0.8106 GB Notification: Performance of matching and sorting (n=2) (initialization): time 6.356e-05/0.2751, allocations: 41.69 kB / 1.057 GB, free: 4.051 MB / 0.8106 GB Notification: Performance of prepare postOptimizeDAE: time 1.295e-05/0.2752, allocations: 8.094 kB / 1.057 GB, free: 4.043 MB / 0.8106 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.302e-06/0.2752, allocations: 7.938 kB / 1.057 GB, free: 4.035 MB / 0.8106 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.061e-05/0.2752, allocations: 0 / 1.057 GB, free: 4.035 MB / 0.8106 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001499/0.2753, allocations: 8 kB / 1.057 GB, free: 4.027 MB / 0.8106 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0003482/0.2757, allocations: 0.5936 MB / 1.057 GB, free: 3.41 MB / 0.8106 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 1.871e-05/0.2757, allocations: 0 / 1.057 GB, free: 3.41 MB / 0.8106 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.3e-06/0.2757, allocations: 0 / 1.057 GB, free: 3.41 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 6.461e-05/0.2758, allocations: 113.9 kB / 1.057 GB, free: 3.289 MB / 0.8106 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 7.634e-06/0.2758, allocations: 4.031 kB / 1.057 GB, free: 3.285 MB / 0.8106 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 9.999e-05/0.2759, allocations: 48.75 kB / 1.057 GB, free: 3.234 MB / 0.8106 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.204e-06/0.2759, allocations: 0 / 1.057 GB, free: 3.234 MB / 0.8106 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.376e-06/0.2759, allocations: 0 / 1.057 GB, free: 3.234 MB / 0.8106 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.994e-06/0.2759, allocations: 0 / 1.057 GB, free: 3.234 MB / 0.8106 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 9.289e-05/0.276, allocations: 157.6 kB / 1.058 GB, free: 3.031 MB / 0.8106 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.765e-06/0.2761, allocations: 4 kB / 1.058 GB, free: 3.027 MB / 0.8106 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 7.353e-05/0.2761, allocations: 12.03 kB / 1.058 GB, free: 3.016 MB / 0.8106 GB Notification: Performance of postOpt tearingSystem (simulation): time 2.074e-06/0.2761, allocations: 0 / 1.058 GB, free: 3.016 MB / 0.8106 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 6.231e-06/0.2762, allocations: 0 / 1.058 GB, free: 3.016 MB / 0.8106 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0002832/0.2764, allocations: 0.5782 MB / 1.058 GB, free: 2.414 MB / 0.8106 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 7.594e-06/0.2765, allocations: 7.922 kB / 1.058 GB, free: 2.406 MB / 0.8106 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 7.309e-05/0.2765, allocations: 81.05 kB / 1.058 GB, free: 2.309 MB / 0.8106 GB Notification: Performance of postOpt removeConstants (simulation): time 2.991e-05/0.2766, allocations: 77.11 kB / 1.058 GB, free: 2.215 MB / 0.8106 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.036e-05/0.2766, allocations: 0 / 1.058 GB, free: 2.215 MB / 0.8106 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 1.614e-05/0.2766, allocations: 3.984 kB / 1.058 GB, free: 2.211 MB / 0.8106 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 1.219e-05/0.2766, allocations: 3.938 kB / 1.058 GB, free: 2.207 MB / 0.8106 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.886e-06/0.2766, allocations: 4 kB / 1.058 GB, free: 2.203 MB / 0.8106 GB Notification: Performance of sorting global known variables: time 2.924e-05/0.2767, allocations: 79.28 kB / 1.058 GB, free: 2.125 MB / 0.8106 GB Notification: Performance of sort global known variables: time 1e-07/0.2767, allocations: 0 / 1.058 GB, free: 2.125 MB / 0.8106 GB Notification: Performance of remove unused functions: time 0.0001923/0.2769, allocations: 8.125 kB / 1.058 GB, free: 2.117 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.0001472/0.277, allocations: 115.2 kB / 1.059 GB, free: 1.992 MB / 0.8106 GB Notification: Performance of simCode: created initialization part: time 0.0001502/0.2772, allocations: 15.98 kB / 1.059 GB, free: 1.977 MB / 0.8106 GB Notification: Performance of simCode: created event and clocks part: time 2.064e-06/0.2772, allocations: 0 / 1.059 GB, free: 1.977 MB / 0.8106 GB Notification: Performance of simCode: created simulation system equations: time 8.803e-05/0.2773, allocations: 23.92 kB / 1.059 GB, free: 1.953 MB / 0.8106 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.000138/0.2774, allocations: 0 / 1.059 GB, free: 1.953 MB / 0.8106 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0003191/0.2778, allocations: 134.2 kB / 1.059 GB, free: 1.789 MB / 0.8106 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002031/0.278, allocations: 0.677 MB / 1.059 GB, free: 1.086 MB / 0.8106 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 1.425e-05/0.278, allocations: 7.438 kB / 1.059 GB, free: 1.078 MB / 0.8106 GB Notification: Performance of SimCode: time 2.7e-07/0.278, allocations: 0 / 1.059 GB, free: 1.078 MB / 0.8106 GB Notification: Performance of Templates: time 0.002091/0.2801, allocations: 0.6841 MB / 1.06 GB, free: 404 kB / 0.8106 GB make -j1 -f Buildings_latest_Buildings.Fluid.BaseClasses.FlowModels.Validation.InvertingBasicFlowFunction_dp.makefile (rm -f Buildings_latest_Buildings.Fluid.BaseClasses.FlowModels.Validation.InvertingBasicFlowFunction_dp.pipe ; mkfifo Buildings_latest_Buildings.Fluid.BaseClasses.FlowModels.Validation.InvertingBasicFlowFunction_dp.pipe ; head -c 1048576 < Buildings_latest_Buildings.Fluid.BaseClasses.FlowModels.Validation.InvertingBasicFlowFunction_dp.pipe >> ../files/Buildings_latest_Buildings.Fluid.BaseClasses.FlowModels.Validation.InvertingBasicFlowFunction_dp.sim & ./Buildings_latest_Buildings.Fluid.BaseClasses.FlowModels.Validation.InvertingBasicFlowFunction_dp -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Buildings_latest_Buildings.Fluid.BaseClasses.FlowModels.Validation.InvertingBasicFlowFunction_dp.pipe 2>&1) diffSimulationResults("Buildings_latest_Buildings.Fluid.BaseClasses.FlowModels.Validation.InvertingBasicFlowFunction_dp_res.mat","/mnt/ReferenceFiles/Buildings/csv/master/Buildings_Fluid_BaseClasses_FlowModels_Validation_InvertingBasicFlowFunction_dp.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Buildings_latest_Buildings.Fluid.BaseClasses.FlowModels.Validation.InvertingBasicFlowFunction_dp.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches