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.001381/0.001381, allocations: 108.1 kB / 16.41 MB, free: 6.461 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.00145/0.00145, allocations: 187 kB / 17.34 MB, free: 5.719 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: 222.9 MB / 241 MB, free: 14.95 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 11.0.1-master/package.mo): time 2.574/2.574, allocations: 461.9 MB / 0.7355 GB, free: 11.01 MB / 0.6075 GB Notification: Performance of FrontEnd - loaded program: time 0.001398/0.001398, allocations: 71.83 kB / 1.055 GB, free: 7.664 MB / 0.8262 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.8271/0.8285, allocations: 157.4 MB / 1.208 GB, free: 13.56 MB / 0.9356 GB Notification: Performance of NFInst.instantiate(Buildings.Fluid.BaseClasses.FlowModels.Validation.InvertingBasicFlowFunction_m_flow): time 0.002189/0.8307, allocations: 1.253 MB / 1.21 GB, free: 12.3 MB / 0.9356 GB Notification: Performance of NFInst.instExpressions: time 0.0009569/0.8317, allocations: 0.5916 MB / 1.21 GB, free: 11.71 MB / 0.9356 GB Notification: Performance of NFInst.updateImplicitVariability: time 2.034e-05/0.8317, allocations: 0 / 1.21 GB, free: 11.71 MB / 0.9356 GB Notification: Performance of NFTyping.typeComponents: time 1.374e-05/0.8317, allocations: 0 / 1.21 GB, free: 11.71 MB / 0.9356 GB Notification: Performance of NFTyping.typeBindings: time 4.323e-05/0.8318, allocations: 3.938 kB / 1.21 GB, free: 11.71 MB / 0.9356 GB Notification: Performance of NFTyping.typeClassSections: time 0.0005513/0.8324, allocations: 147 kB / 1.21 GB, free: 11.57 MB / 0.9356 GB Notification: Performance of NFFlatten.flatten: time 4.438e-05/0.8324, allocations: 4 kB / 1.21 GB, free: 11.56 MB / 0.9356 GB Notification: Performance of NFFlatten.resolveConnections: time 4.182e-05/0.8325, allocations: 4 kB / 1.21 GB, free: 11.56 MB / 0.9356 GB Notification: Performance of NFEvalConstants.evaluate: time 1.82e-05/0.8325, allocations: 3.938 kB / 1.21 GB, free: 11.55 MB / 0.9356 GB Notification: Performance of NFSimplifyModel.simplify: time 4.383e-05/0.8325, allocations: 11.98 kB / 1.21 GB, free: 11.54 MB / 0.9356 GB Notification: Performance of NFPackage.collectConstants: time 1.148e-05/0.8325, allocations: 0 / 1.21 GB, free: 11.54 MB / 0.9356 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0005109/0.8331, allocations: 347.3 kB / 1.211 GB, free: 11.2 MB / 0.9356 GB Notification: Performance of NFScalarize.scalarize: time 9.337e-06/0.8331, allocations: 0 / 1.211 GB, free: 11.2 MB / 0.9356 GB Notification: Performance of NFVerifyModel.verify: time 1.944e-05/0.8331, allocations: 3.938 kB / 1.211 GB, free: 11.2 MB / 0.9356 GB Notification: Performance of NFConvertDAE.convert: time 0.0002838/0.8334, allocations: 143.5 kB / 1.211 GB, free: 11.06 MB / 0.9356 GB Notification: Performance of FrontEnd - DAE generated: time 4.278e-06/0.8334, allocations: 0 / 1.211 GB, free: 11.06 MB / 0.9356 GB Notification: Performance of FrontEnd: time 1.513e-06/0.8334, allocations: 3.938 kB / 1.211 GB, free: 11.06 MB / 0.9356 GB Notification: Performance of Transformations before backend: time 5.27e-06/0.8334, allocations: 0 / 1.211 GB, free: 11.06 MB / 0.9356 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.0003909/0.8338, allocations: 349.3 kB / 1.211 GB, free: 10.67 MB / 0.9356 GB Notification: Performance of prepare preOptimizeDAE: time 3.949e-05/0.8339, allocations: 12.03 kB / 1.211 GB, free: 10.66 MB / 0.9356 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 2.949e-05/0.8339, allocations: 4.875 kB / 1.211 GB, free: 10.65 MB / 0.9356 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001208/0.834, allocations: 164.3 kB / 1.211 GB, free: 10.45 MB / 0.9356 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.173e-05/0.834, allocations: 4.359 kB / 1.211 GB, free: 10.45 MB / 0.9356 GB Notification: Performance of preOpt expandDerOperator (simulation): time 1.27e-05/0.8341, allocations: 12.31 kB / 1.211 GB, free: 10.44 MB / 0.9356 GB Notification: Performance of preOpt clockPartitioning (simulation): time 8.201e-05/0.8342, allocations: 26.27 kB / 1.211 GB, free: 10.41 MB / 0.9356 GB Notification: Performance of preOpt findStateOrder (simulation): time 6.933e-06/0.8342, allocations: 192 / 1.211 GB, free: 10.41 MB / 0.9356 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.11e-05/0.8342, allocations: 3.938 kB / 1.211 GB, free: 10.4 MB / 0.9356 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.947e-06/0.8342, allocations: 4 kB / 1.211 GB, free: 10.4 MB / 0.9356 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 2.376e-05/0.8342, allocations: 0 / 1.211 GB, free: 10.4 MB / 0.9356 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0001535/0.8344, allocations: 153.7 kB / 1.212 GB, free: 10.2 MB / 0.9356 GB Notification: Performance of preOpt comSubExp (simulation): time 5.255e-05/0.8344, allocations: 26.61 kB / 1.212 GB, free: 10.16 MB / 0.9356 GB Notification: Performance of preOpt resolveLoops (simulation): time 2.128e-05/0.8345, allocations: 12.86 kB / 1.212 GB, free: 10.15 MB / 0.9356 GB Notification: Performance of preOpt evalFunc (simulation): time 1.921e-05/0.8345, allocations: 0 / 1.212 GB, free: 10.15 MB / 0.9356 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.933e-05/0.8345, allocations: 30.56 kB / 1.212 GB, free: 10.11 MB / 0.9356 GB Notification: Performance of pre-optimization done (n=2): time 8.41e-07/0.8345, allocations: 0 / 1.212 GB, free: 10.11 MB / 0.9356 GB Notification: Performance of matching and sorting (n=2): time 0.0001343/0.8347, allocations: 49.62 kB / 1.212 GB, free: 10.05 MB / 0.9356 GB Notification: Performance of inlineWhenForInitialization (initialization): time 3.08e-05/0.8347, allocations: 51.41 kB / 1.212 GB, free: 9.992 MB / 0.9356 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 7.206e-05/0.8348, allocations: 97.98 kB / 1.212 GB, free: 9.887 MB / 0.9356 GB Notification: Performance of collectPreVariables (initialization): time 1.213e-05/0.8348, allocations: 25.7 kB / 1.212 GB, free: 9.855 MB / 0.9356 GB Notification: Performance of collectInitialEqns (initialization): time 2.727e-05/0.8348, allocations: 80.14 kB / 1.212 GB, free: 9.773 MB / 0.9356 GB Notification: Performance of collectInitialBindings (initialization): time 2.974e-05/0.8349, allocations: 15.83 kB / 1.212 GB, free: 9.758 MB / 0.9356 GB Notification: Performance of simplifyInitialFunctions (initialization): time 3.626e-05/0.8349, allocations: 13.72 kB / 1.212 GB, free: 9.738 MB / 0.9356 GB Notification: Performance of setup shared object (initialization): time 0.0001037/0.835, allocations: 310.8 kB / 1.212 GB, free: 9.426 MB / 0.9356 GB Notification: Performance of preBalanceInitialSystem (initialization): time 1.31e-05/0.835, allocations: 3.938 kB / 1.212 GB, free: 9.422 MB / 0.9356 GB Notification: Performance of partitionIndependentBlocks (initialization): time 1.136e-05/0.835, allocations: 8 kB / 1.212 GB, free: 9.414 MB / 0.9356 GB Notification: Performance of analyzeInitialSystem (initialization): time 2.535e-05/0.8351, allocations: 13.05 kB / 1.212 GB, free: 9.398 MB / 0.9356 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.874e-06/0.8351, allocations: 0 / 1.212 GB, free: 9.398 MB / 0.9356 GB Notification: Performance of matching and sorting (n=2) (initialization): time 6.741e-05/0.8352, allocations: 45.69 kB / 1.212 GB, free: 9.348 MB / 0.9356 GB Notification: Performance of prepare postOptimizeDAE: time 1.214e-05/0.8352, allocations: 4 kB / 1.212 GB, free: 9.344 MB / 0.9356 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.811e-06/0.8352, allocations: 3.938 kB / 1.212 GB, free: 9.34 MB / 0.9356 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.306e-05/0.8352, allocations: 0 / 1.212 GB, free: 9.34 MB / 0.9356 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001534/0.8354, allocations: 8 kB / 1.212 GB, free: 9.332 MB / 0.9356 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.000355/0.8357, allocations: 0.5899 MB / 1.213 GB, free: 8.719 MB / 0.9356 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 1.861e-05/0.8358, allocations: 0 / 1.213 GB, free: 8.719 MB / 0.9356 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.139e-06/0.8358, allocations: 0 / 1.213 GB, free: 8.719 MB / 0.9356 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.368e-05/0.8358, allocations: 113.8 kB / 1.213 GB, free: 8.598 MB / 0.9356 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 8.195e-06/0.8359, allocations: 3.938 kB / 1.213 GB, free: 8.594 MB / 0.9356 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 9.98e-05/0.836, allocations: 44.81 kB / 1.213 GB, free: 8.543 MB / 0.9356 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.255e-06/0.836, allocations: 12 kB / 1.213 GB, free: 8.531 MB / 0.9356 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.077e-06/0.836, allocations: 0 / 1.213 GB, free: 8.531 MB / 0.9356 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.941e-06/0.836, allocations: 7.984 kB / 1.213 GB, free: 8.523 MB / 0.9356 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 9.179e-05/0.8361, allocations: 153.6 kB / 1.213 GB, free: 8.324 MB / 0.9356 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.286e-06/0.8361, allocations: 4 kB / 1.213 GB, free: 8.32 MB / 0.9356 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 7.927e-05/0.8362, allocations: 8 kB / 1.213 GB, free: 8.312 MB / 0.9356 GB Notification: Performance of postOpt tearingSystem (simulation): time 2.245e-06/0.8362, allocations: 0 / 1.213 GB, free: 8.312 MB / 0.9356 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 9.287e-06/0.8362, allocations: 4 kB / 1.213 GB, free: 8.309 MB / 0.9356 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0002703/0.8365, allocations: 0.5898 MB / 1.214 GB, free: 7.695 MB / 0.9356 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.766e-06/0.8365, allocations: 3.938 kB / 1.214 GB, free: 7.691 MB / 0.9356 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 6.237e-05/0.8366, allocations: 61.11 kB / 1.214 GB, free: 7.613 MB / 0.9356 GB Notification: Performance of postOpt removeConstants (simulation): time 3.173e-05/0.8366, allocations: 77.11 kB / 1.214 GB, free: 7.52 MB / 0.9356 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.302e-05/0.8366, allocations: 7.984 kB / 1.214 GB, free: 7.512 MB / 0.9356 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 1.48e-05/0.8366, allocations: 0 / 1.214 GB, free: 7.512 MB / 0.9356 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 1.591e-05/0.8367, allocations: 3.938 kB / 1.214 GB, free: 7.508 MB / 0.9356 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.987e-06/0.8367, allocations: 8.125 kB / 1.214 GB, free: 7.5 MB / 0.9356 GB Notification: Performance of sorting global known variables: time 3.043e-05/0.8367, allocations: 79.28 kB / 1.214 GB, free: 7.422 MB / 0.9356 GB Notification: Performance of sort global known variables: time 1.21e-07/0.8367, allocations: 0 / 1.214 GB, free: 7.422 MB / 0.9356 GB Notification: Performance of remove unused functions: time 0.0001995/0.8369, allocations: 8 kB / 1.214 GB, free: 7.414 MB / 0.9356 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.0001489/0.8371, allocations: 107.2 kB / 1.214 GB, free: 7.297 MB / 0.9356 GB Notification: Performance of simCode: created initialization part: time 0.0001639/0.8372, allocations: 19.98 kB / 1.214 GB, free: 7.277 MB / 0.9356 GB Notification: Performance of simCode: created event and clocks part: time 2.224e-06/0.8372, allocations: 4.156 kB / 1.214 GB, free: 7.273 MB / 0.9356 GB Notification: Performance of simCode: created simulation system equations: time 9.018e-05/0.8373, allocations: 19.92 kB / 1.214 GB, free: 7.254 MB / 0.9356 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001387/0.8375, allocations: 7.953 kB / 1.214 GB, free: 7.25 MB / 0.9356 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0003242/0.8378, allocations: 135.6 kB / 1.214 GB, free: 7.082 MB / 0.9356 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.000222/0.8381, allocations: 0.6728 MB / 1.215 GB, free: 6.383 MB / 0.9356 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 1.542e-05/0.8381, allocations: 11.44 kB / 1.215 GB, free: 6.375 MB / 0.9356 GB Notification: Performance of SimCode: time 4.51e-07/0.8381, allocations: 0 / 1.215 GB, free: 6.375 MB / 0.9356 GB Notification: Performance of Templates: time 0.002063/0.8401, allocations: 0.7006 MB / 1.216 GB, free: 5.676 MB / 0.9356 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) Reference file matches