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.007636/0.007636, allocations: 100.3 kB / 15.73 MB, free: 6.004 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.001926/0.001926, allocations: 194.5 kB / 16.67 MB, free: 5.926 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.361/1.361, allocations: 222.9 MB / 240.4 MB, free: 15.13 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 11.0.1-master/package.mo): time 2.65/2.65, allocations: 461.9 MB / 0.7348 GB, free: 11.05 MB / 0.6075 GB Notification: Performance of FrontEnd - loaded program: time 0.001331/0.001331, allocations: 63.91 kB / 1.054 GB, free: 7.664 MB / 0.8262 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.8984/0.8998, allocations: 157.4 MB / 1.208 GB, free: 13.61 MB / 0.9356 GB Notification: Performance of NFInst.instantiate(Buildings.Fluid.BaseClasses.FlowModels.Validation.InvertingBasicFlowFunction_m_flow): time 0.002391/0.9022, allocations: 1.251 MB / 1.209 GB, free: 12.36 MB / 0.9356 GB Notification: Performance of NFInst.instExpressions: time 0.0009794/0.9032, allocations: 0.5877 MB / 1.21 GB, free: 11.77 MB / 0.9356 GB Notification: Performance of NFInst.updateImplicitVariability: time 2.51e-05/0.9033, allocations: 0 / 1.21 GB, free: 11.77 MB / 0.9356 GB Notification: Performance of NFTyping.typeComponents: time 2.136e-05/0.9033, allocations: 3.984 kB / 1.21 GB, free: 11.76 MB / 0.9356 GB Notification: Performance of NFTyping.typeBindings: time 4.066e-05/0.9034, allocations: 7.938 kB / 1.21 GB, free: 11.75 MB / 0.9356 GB Notification: Performance of NFTyping.typeClassSections: time 0.0007282/0.9041, allocations: 147.4 kB / 1.21 GB, free: 11.61 MB / 0.9356 GB Notification: Performance of NFFlatten.flatten: time 8.264e-05/0.9042, allocations: 12 kB / 1.21 GB, free: 11.6 MB / 0.9356 GB Notification: Performance of NFFlatten.resolveConnections: time 6.474e-05/0.9043, allocations: 0 / 1.21 GB, free: 11.6 MB / 0.9356 GB Notification: Performance of NFEvalConstants.evaluate: time 2.849e-05/0.9043, allocations: 4 kB / 1.21 GB, free: 11.59 MB / 0.9356 GB Notification: Performance of NFSimplifyModel.simplify: time 6.282e-05/0.9044, allocations: 0 / 1.21 GB, free: 11.59 MB / 0.9356 GB Notification: Performance of NFPackage.collectConstants: time 1.257e-05/0.9044, allocations: 3.938 kB / 1.21 GB, free: 11.59 MB / 0.9356 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0005866/0.905, allocations: 347.3 kB / 1.21 GB, free: 11.25 MB / 0.9356 GB Notification: Performance of NFScalarize.scalarize: time 1.11e-05/0.905, allocations: 0 / 1.21 GB, free: 11.25 MB / 0.9356 GB Notification: Performance of NFVerifyModel.verify: time 2.331e-05/0.905, allocations: 7.984 kB / 1.21 GB, free: 11.24 MB / 0.9356 GB Notification: Performance of NFConvertDAE.convert: time 0.000281/0.9053, allocations: 139.5 kB / 1.21 GB, free: 11.11 MB / 0.9356 GB Notification: Performance of FrontEnd - DAE generated: time 4.749e-06/0.9053, allocations: 0 / 1.21 GB, free: 11.11 MB / 0.9356 GB Notification: Performance of FrontEnd: time 1.663e-06/0.9053, allocations: 0 / 1.21 GB, free: 11.11 MB / 0.9356 GB Notification: Performance of Transformations before backend: time 5.641e-06/0.9054, allocations: 0 / 1.21 GB, free: 11.11 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.0004314/0.9058, allocations: 349.3 kB / 1.21 GB, free: 10.72 MB / 0.9356 GB Notification: Performance of prepare preOptimizeDAE: time 4.053e-05/0.9058, allocations: 12.03 kB / 1.211 GB, free: 10.71 MB / 0.9356 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.723e-05/0.9059, allocations: 0.9375 kB / 1.211 GB, free: 10.71 MB / 0.9356 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001359/0.906, allocations: 168.3 kB / 1.211 GB, free: 10.5 MB / 0.9356 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.236e-05/0.906, allocations: 8.375 kB / 1.211 GB, free: 10.5 MB / 0.9356 GB Notification: Performance of preOpt expandDerOperator (simulation): time 9.999e-06/0.9061, allocations: 4.375 kB / 1.211 GB, free: 10.49 MB / 0.9356 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001026/0.9062, allocations: 34.19 kB / 1.211 GB, free: 10.45 MB / 0.9356 GB Notification: Performance of preOpt findStateOrder (simulation): time 8.916e-06/0.9062, allocations: 8.125 kB / 1.211 GB, free: 10.45 MB / 0.9356 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 9.788e-06/0.9062, allocations: 3.938 kB / 1.211 GB, free: 10.44 MB / 0.9356 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.388e-06/0.9062, allocations: 0 / 1.211 GB, free: 10.44 MB / 0.9356 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 2.759e-05/0.9062, allocations: 4 kB / 1.211 GB, free: 10.44 MB / 0.9356 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0001785/0.9064, allocations: 149.7 kB / 1.211 GB, free: 10.24 MB / 0.9356 GB Notification: Performance of preOpt comSubExp (simulation): time 6.927e-05/0.9065, allocations: 30.61 kB / 1.211 GB, free: 10.2 MB / 0.9356 GB Notification: Performance of preOpt resolveLoops (simulation): time 1.858e-05/0.9065, allocations: 4.859 kB / 1.211 GB, free: 10.2 MB / 0.9356 GB Notification: Performance of preOpt evalFunc (simulation): time 2.493e-05/0.9066, allocations: 3.938 kB / 1.211 GB, free: 10.19 MB / 0.9356 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.477e-05/0.9066, allocations: 34.62 kB / 1.211 GB, free: 10.15 MB / 0.9356 GB Notification: Performance of pre-optimization done (n=2): time 1.022e-06/0.9066, allocations: 0 / 1.211 GB, free: 10.15 MB / 0.9356 GB Notification: Performance of matching and sorting (n=2): time 0.0001539/0.9067, allocations: 45.62 kB / 1.211 GB, free: 10.1 MB / 0.9356 GB Notification: Performance of inlineWhenForInitialization (initialization): time 3.677e-05/0.9068, allocations: 51.53 kB / 1.211 GB, free: 10.04 MB / 0.9356 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 7.112e-05/0.9069, allocations: 97.86 kB / 1.211 GB, free: 9.93 MB / 0.9356 GB Notification: Performance of collectPreVariables (initialization): time 1.29e-05/0.9069, allocations: 33.64 kB / 1.211 GB, free: 9.891 MB / 0.9356 GB Notification: Performance of collectInitialEqns (initialization): time 3.022e-05/0.9069, allocations: 80.14 kB / 1.211 GB, free: 9.809 MB / 0.9356 GB Notification: Performance of collectInitialBindings (initialization): time 2.869e-05/0.907, allocations: 7.844 kB / 1.211 GB, free: 9.801 MB / 0.9356 GB Notification: Performance of simplifyInitialFunctions (initialization): time 2.959e-05/0.907, allocations: 13.72 kB / 1.211 GB, free: 9.781 MB / 0.9356 GB Notification: Performance of setup shared object (initialization): time 0.0001069/0.9071, allocations: 318.8 kB / 1.212 GB, free: 9.461 MB / 0.9356 GB Notification: Performance of preBalanceInitialSystem (initialization): time 1.536e-05/0.9071, allocations: 4 kB / 1.212 GB, free: 9.457 MB / 0.9356 GB Notification: Performance of partitionIndependentBlocks (initialization): time 1.022e-05/0.9071, allocations: 8.062 kB / 1.212 GB, free: 9.449 MB / 0.9356 GB Notification: Performance of analyzeInitialSystem (initialization): time 3.034e-05/0.9072, allocations: 8.859 kB / 1.212 GB, free: 9.438 MB / 0.9356 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.186e-06/0.9072, allocations: 4 kB / 1.212 GB, free: 9.434 MB / 0.9356 GB Notification: Performance of matching and sorting (n=2) (initialization): time 6.773e-05/0.9073, allocations: 37.7 kB / 1.212 GB, free: 9.391 MB / 0.9356 GB Notification: Performance of prepare postOptimizeDAE: time 2.112e-05/0.9073, allocations: 7.984 kB / 1.212 GB, free: 9.383 MB / 0.9356 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.154e-06/0.9073, allocations: 3.938 kB / 1.212 GB, free: 9.379 MB / 0.9356 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.435e-05/0.9073, allocations: 0 / 1.212 GB, free: 9.379 MB / 0.9356 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001611/0.9075, allocations: 8 kB / 1.212 GB, free: 9.371 MB / 0.9356 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0003587/0.9078, allocations: 0.5861 MB / 1.212 GB, free: 8.762 MB / 0.9356 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 2.156e-05/0.9079, allocations: 3.984 kB / 1.212 GB, free: 8.758 MB / 0.9356 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 8.176e-06/0.9079, allocations: 4.031 kB / 1.212 GB, free: 8.754 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 8.229e-05/0.908, allocations: 113.8 kB / 1.212 GB, free: 8.633 MB / 0.9356 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 7.734e-06/0.908, allocations: 0 / 1.212 GB, free: 8.633 MB / 0.9356 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001142/0.9081, allocations: 48.91 kB / 1.212 GB, free: 8.578 MB / 0.9356 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.424e-06/0.9081, allocations: 0 / 1.212 GB, free: 8.578 MB / 0.9356 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.192e-06/0.9081, allocations: 4 kB / 1.212 GB, free: 8.574 MB / 0.9356 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.218e-06/0.9081, allocations: 0 / 1.212 GB, free: 8.574 MB / 0.9356 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001018/0.9082, allocations: 149.6 kB / 1.213 GB, free: 8.379 MB / 0.9356 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.924e-06/0.9083, allocations: 0 / 1.213 GB, free: 8.379 MB / 0.9356 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 7.433e-05/0.9083, allocations: 11.98 kB / 1.213 GB, free: 8.367 MB / 0.9356 GB Notification: Performance of postOpt tearingSystem (simulation): time 2.886e-06/0.9083, allocations: 0 / 1.213 GB, free: 8.367 MB / 0.9356 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 7.073e-06/0.9084, allocations: 4 kB / 1.213 GB, free: 8.363 MB / 0.9356 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0002906/0.9087, allocations: 0.586 MB / 1.213 GB, free: 7.754 MB / 0.9356 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.867e-06/0.9087, allocations: 7.875 kB / 1.213 GB, free: 7.746 MB / 0.9356 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 7.35e-05/0.9088, allocations: 65.09 kB / 1.213 GB, free: 7.664 MB / 0.9356 GB Notification: Performance of postOpt removeConstants (simulation): time 3.608e-05/0.9088, allocations: 81.11 kB / 1.213 GB, free: 7.566 MB / 0.9356 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.387e-05/0.9088, allocations: 8 kB / 1.213 GB, free: 7.559 MB / 0.9356 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 1.39e-05/0.9088, allocations: 0 / 1.213 GB, free: 7.559 MB / 0.9356 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 1.749e-05/0.9089, allocations: 16.03 kB / 1.213 GB, free: 7.543 MB / 0.9356 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.777e-06/0.9089, allocations: 0 / 1.213 GB, free: 7.543 MB / 0.9356 GB Notification: Performance of sorting global known variables: time 3.684e-05/0.9089, allocations: 83.22 kB / 1.213 GB, free: 7.461 MB / 0.9356 GB Notification: Performance of sort global known variables: time 1.1e-07/0.9089, allocations: 0 / 1.213 GB, free: 7.461 MB / 0.9356 GB Notification: Performance of remove unused functions: time 0.0002048/0.9091, allocations: 12 kB / 1.213 GB, free: 7.449 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.0001636/0.9093, allocations: 107.2 kB / 1.213 GB, free: 7.332 MB / 0.9356 GB Notification: Performance of simCode: created initialization part: time 0.0001716/0.9095, allocations: 24.08 kB / 1.213 GB, free: 7.309 MB / 0.9356 GB Notification: Performance of simCode: created event and clocks part: time 2.134e-06/0.9095, allocations: 0 / 1.213 GB, free: 7.309 MB / 0.9356 GB Notification: Performance of simCode: created simulation system equations: time 8.346e-05/0.9096, allocations: 11.94 kB / 1.214 GB, free: 7.297 MB / 0.9356 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001488/0.9097, allocations: 14.42 kB / 1.214 GB, free: 7.285 MB / 0.9356 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0003463/0.9101, allocations: 105.9 kB / 1.214 GB, free: 7.152 MB / 0.9356 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002334/0.9103, allocations: 0.6768 MB / 1.214 GB, free: 6.449 MB / 0.9356 GB Notification: Performance of simCode: alias equations: time 1.808e-05/0.9104, allocations: 4.125 kB / 1.214 GB, free: 6.445 MB / 0.9356 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 1.324e-05/0.9104, allocations: 7.438 kB / 1.214 GB, free: 6.441 MB / 0.9356 GB Notification: Performance of SimCode: time 2.2e-07/0.9104, allocations: 0 / 1.214 GB, free: 6.441 MB / 0.9356 GB Notification: Performance of Templates: time 0.002791/0.9132, allocations: 458 kB / 1.215 GB, free: 6.027 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/jenkins/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