Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Buildings_9_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 9.1.3-maint.9.1.x/package.mo", uses=false) Using package Buildings with version 9.1.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 9.1.3-maint.9.1.x/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: "" <> buildModelFMU(Buildings.Fluid.BaseClasses.FlowModels.Validation.InvertingBasicFlowFunction_m_flow,fileNamePrefix="Buildings_9_Buildings_Fluid_BaseClasses_FlowModels_Validation_InvertingBasicFlowFunction_m_flow",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Buildings.Fluid.BaseClasses.FlowModels.Validation.InvertingBasicFlowFunction_m_flow,fileNamePrefix="Buildings_9_Buildings_Fluid_BaseClasses_FlowModels_Validation_InvertingBasicFlowFunction_m_flow",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.007633/0.007633, allocations: 105 kB / 15.73 MB, free: 6.043 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.001924/0.001924, allocations: 191.1 kB / 16.67 MB, free: 5.977 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.439/1.439, allocations: 222.9 MB / 240.4 MB, free: 4.316 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 9.1.3-maint.9.1.x/package.mo): time 2.509/2.509, allocations: 390.2 MB / 0.6648 GB, free: 208 kB / 0.5137 GB Notification: Performance of FrontEnd - loaded program: time 0.002012/0.002012, allocations: 63.17 kB / 0.9504 GB, free: 6.043 MB / 0.7169 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2828/0.2849, allocations: 140.4 MB / 1.087 GB, free: 2.129 MB / 0.8419 GB Notification: Performance of NFInst.instantiate(Buildings.Fluid.BaseClasses.FlowModels.Validation.InvertingBasicFlowFunction_m_flow): time 0.002418/0.2873, allocations: 1.243 MB / 1.089 GB, free: 0.875 MB / 0.8419 GB Notification: Performance of NFInst.instExpressions: time 0.001007/0.2884, allocations: 0.5894 MB / 1.089 GB, free: 292 kB / 0.8419 GB Notification: Performance of NFInst.updateImplicitVariability: time 2.259e-05/0.2884, allocations: 0 / 1.089 GB, free: 292 kB / 0.8419 GB Notification: Performance of NFTyping.typeComponents: time 1.505e-05/0.2884, allocations: 0 / 1.089 GB, free: 292 kB / 0.8419 GB Notification: Performance of NFTyping.typeBindings: time 5.442e-05/0.2885, allocations: 4 kB / 1.089 GB, free: 288 kB / 0.8419 GB Notification: Performance of NFTyping.typeClassSections: time 0.0006219/0.2891, allocations: 139.4 kB / 1.089 GB, free: 148 kB / 0.8419 GB Notification: Performance of NFFlatten.flatten: time 5.835e-05/0.2892, allocations: 19.92 kB / 1.089 GB, free: 128 kB / 0.8419 GB Notification: Performance of NFFlatten.resolveConnections: time 3.642e-05/0.2893, allocations: 0 / 1.089 GB, free: 128 kB / 0.8419 GB Notification: Performance of NFEvalConstants.evaluate: time 2.01e-05/0.2893, allocations: 11.92 kB / 1.089 GB, free: 116 kB / 0.8419 GB Notification: Performance of NFSimplifyModel.simplify: time 4.078e-05/0.2893, allocations: 3.938 kB / 1.089 GB, free: 112 kB / 0.8419 GB Notification: Performance of NFPackage.collectConstants: time 9.228e-06/0.2893, allocations: 0 / 1.089 GB, free: 112 kB / 0.8419 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0005119/0.2899, allocations: 343.3 kB / 1.09 GB, free: 15.77 MB / 0.8575 GB Notification: Performance of NFScalarize.scalarize: time 1.029e-05/0.2899, allocations: 0 / 1.09 GB, free: 15.77 MB / 0.8575 GB Notification: Performance of NFVerifyModel.verify: time 2.578e-05/0.2899, allocations: 11.98 kB / 1.09 GB, free: 15.76 MB / 0.8575 GB Notification: Performance of NFConvertDAE.convert: time 0.0002625/0.2902, allocations: 131.1 kB / 1.09 GB, free: 15.64 MB / 0.8575 GB Notification: Performance of FrontEnd - DAE generated: time 4.488e-06/0.2902, allocations: 0 / 1.09 GB, free: 15.64 MB / 0.8575 GB Notification: Performance of FrontEnd: time 1.503e-06/0.2902, allocations: 4 kB / 1.09 GB, free: 15.63 MB / 0.8575 GB Notification: Performance of Transformations before backend: time 4.969e-06/0.2902, allocations: 4 kB / 1.09 GB, free: 15.63 MB / 0.8575 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.0004216/0.2906, allocations: 355.7 kB / 1.09 GB, free: 15.23 MB / 0.8575 GB Notification: Performance of prepare preOptimizeDAE: time 4.434e-05/0.2907, allocations: 8.031 kB / 1.09 GB, free: 15.22 MB / 0.8575 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 3.448e-05/0.2907, allocations: 30.75 kB / 1.09 GB, free: 15.18 MB / 0.8575 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 2.77e-05/0.2908, allocations: 0.9375 kB / 1.09 GB, free: 15.18 MB / 0.8575 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001393/0.2909, allocations: 164.4 kB / 1.09 GB, free: 14.98 MB / 0.8575 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 8.967e-06/0.2909, allocations: 384 / 1.09 GB, free: 14.98 MB / 0.8575 GB Notification: Performance of preOpt expandDerOperator (simulation): time 1.079e-05/0.2909, allocations: 384 / 1.09 GB, free: 14.98 MB / 0.8575 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001067/0.291, allocations: 46.19 kB / 1.09 GB, free: 14.93 MB / 0.8575 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.213e-05/0.2911, allocations: 3.938 kB / 1.09 GB, free: 14.93 MB / 0.8575 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 8.336e-06/0.2911, allocations: 3.938 kB / 1.09 GB, free: 14.93 MB / 0.8575 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.919e-06/0.2911, allocations: 0 / 1.09 GB, free: 14.93 MB / 0.8575 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 3.241e-05/0.2911, allocations: 4 kB / 1.09 GB, free: 14.92 MB / 0.8575 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0001607/0.2913, allocations: 153.7 kB / 1.091 GB, free: 14.72 MB / 0.8575 GB Notification: Performance of preOpt comSubExp (simulation): time 5.506e-05/0.2914, allocations: 22.56 kB / 1.091 GB, free: 14.69 MB / 0.8575 GB Notification: Performance of preOpt resolveLoops (simulation): time 2.382e-05/0.2914, allocations: 12.92 kB / 1.091 GB, free: 14.68 MB / 0.8575 GB Notification: Performance of preOpt evalFunc (simulation): time 1.983e-05/0.2914, allocations: 4 kB / 1.091 GB, free: 14.67 MB / 0.8575 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.094e-05/0.2914, allocations: 34.5 kB / 1.091 GB, free: 14.63 MB / 0.8575 GB Notification: Performance of pre-optimization done (n=2): time 9.62e-07/0.2914, allocations: 0 / 1.091 GB, free: 14.63 MB / 0.8575 GB Notification: Performance of matching and sorting (n=2): time 0.0001358/0.2916, allocations: 41.55 kB / 1.091 GB, free: 14.58 MB / 0.8575 GB Notification: Performance of inlineWhenForInitialization (initialization): time 3.882e-05/0.2916, allocations: 59.39 kB / 1.091 GB, free: 14.51 MB / 0.8575 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 6.408e-05/0.2917, allocations: 93.86 kB / 1.091 GB, free: 14.41 MB / 0.8575 GB Notification: Performance of collectPreVariables (initialization): time 1.147e-05/0.2917, allocations: 25.95 kB / 1.091 GB, free: 14.38 MB / 0.8575 GB Notification: Performance of collectInitialEqns (initialization): time 3.626e-05/0.2918, allocations: 84.14 kB / 1.091 GB, free: 14.29 MB / 0.8575 GB Notification: Performance of collectInitialBindings (initialization): time 2.233e-05/0.2918, allocations: 7.906 kB / 1.091 GB, free: 14.29 MB / 0.8575 GB Notification: Performance of simplifyInitialFunctions (initialization): time 2.805e-05/0.2918, allocations: 13.72 kB / 1.091 GB, free: 14.27 MB / 0.8575 GB Notification: Performance of setup shared object (initialization): time 0.0001039/0.2919, allocations: 318.8 kB / 1.091 GB, free: 13.95 MB / 0.8575 GB Notification: Performance of preBalanceInitialSystem (initialization): time 1.163e-05/0.2919, allocations: 0 / 1.091 GB, free: 13.95 MB / 0.8575 GB Notification: Performance of partitionIndependentBlocks (initialization): time 1.128e-05/0.292, allocations: 7.938 kB / 1.091 GB, free: 13.94 MB / 0.8575 GB Notification: Performance of analyzeInitialSystem (initialization): time 3.169e-05/0.292, allocations: 12.86 kB / 1.091 GB, free: 13.92 MB / 0.8575 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.074e-06/0.292, allocations: 4.062 kB / 1.091 GB, free: 13.92 MB / 0.8575 GB Notification: Performance of matching and sorting (n=2) (initialization): time 6.429e-05/0.2921, allocations: 33.7 kB / 1.091 GB, free: 13.88 MB / 0.8575 GB Notification: Performance of prepare postOptimizeDAE: time 1.54e-05/0.2921, allocations: 9.656 kB / 1.091 GB, free: 13.87 MB / 0.8575 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.468e-06/0.2921, allocations: 3.938 kB / 1.091 GB, free: 13.87 MB / 0.8575 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.577e-05/0.2921, allocations: 7.984 kB / 1.091 GB, free: 13.86 MB / 0.8575 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.000159/0.2923, allocations: 8 kB / 1.091 GB, free: 13.85 MB / 0.8575 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0003664/0.2927, allocations: 0.5899 MB / 1.092 GB, free: 13.24 MB / 0.8575 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 1.911e-05/0.2927, allocations: 4.125 kB / 1.092 GB, free: 13.23 MB / 0.8575 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.14e-06/0.2927, allocations: 0 / 1.092 GB, free: 13.23 MB / 0.8575 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.266e-05/0.2928, allocations: 113.8 kB / 1.092 GB, free: 13.11 MB / 0.8575 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 9.638e-06/0.2928, allocations: 4.031 kB / 1.092 GB, free: 13.11 MB / 0.8575 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001056/0.2929, allocations: 40.83 kB / 1.092 GB, free: 13.06 MB / 0.8575 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.763e-06/0.2929, allocations: 0 / 1.092 GB, free: 13.06 MB / 0.8575 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.08e-06/0.2929, allocations: 3.984 kB / 1.092 GB, free: 13.06 MB / 0.8575 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.608e-06/0.2929, allocations: 8.016 kB / 1.092 GB, free: 13.05 MB / 0.8575 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001099/0.2931, allocations: 153.6 kB / 1.092 GB, free: 12.85 MB / 0.8575 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.935e-06/0.2931, allocations: 3.938 kB / 1.092 GB, free: 12.85 MB / 0.8575 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 8.353e-05/0.2932, allocations: 15.92 kB / 1.092 GB, free: 12.83 MB / 0.8575 GB Notification: Performance of postOpt tearingSystem (simulation): time 2.955e-06/0.2932, allocations: 0 / 1.092 GB, free: 12.83 MB / 0.8575 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 5.33e-06/0.2932, allocations: 0 / 1.092 GB, free: 12.83 MB / 0.8575 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0003101/0.2935, allocations: 0.5859 MB / 1.093 GB, free: 12.22 MB / 0.8575 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.138e-06/0.2935, allocations: 3.938 kB / 1.093 GB, free: 12.22 MB / 0.8575 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 9.193e-05/0.2936, allocations: 73.19 kB / 1.093 GB, free: 12.13 MB / 0.8575 GB Notification: Performance of postOpt removeConstants (simulation): time 3.421e-05/0.2937, allocations: 77.11 kB / 1.093 GB, free: 12.04 MB / 0.8575 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.228e-05/0.2937, allocations: 0 / 1.093 GB, free: 12.04 MB / 0.8575 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 1.419e-05/0.2937, allocations: 0 / 1.093 GB, free: 12.04 MB / 0.8575 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 1.636e-05/0.2937, allocations: 3.938 kB / 1.093 GB, free: 12.03 MB / 0.8575 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.998e-06/0.2937, allocations: 4 kB / 1.093 GB, free: 12.03 MB / 0.8575 GB Notification: Performance of sorting global known variables: time 3.711e-05/0.2938, allocations: 83.3 kB / 1.093 GB, free: 11.95 MB / 0.8575 GB Notification: Performance of sort global known variables: time 1.2e-07/0.2938, allocations: 0 / 1.093 GB, free: 11.95 MB / 0.8575 GB Notification: Performance of remove unused functions: time 0.0001996/0.294, allocations: 15.94 kB / 1.093 GB, free: 11.93 MB / 0.8575 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.0003975/0.2944, allocations: 0.6091 MB / 1.094 GB, free: 11.29 MB / 0.8575 GB Notification: Performance of simCode: created initialization part: time 0.0001769/0.2946, allocations: 28.05 kB / 1.094 GB, free: 11.26 MB / 0.8575 GB Notification: Performance of simCode: created event and clocks part: time 2.284e-06/0.2946, allocations: 0 / 1.094 GB, free: 11.26 MB / 0.8575 GB Notification: Performance of simCode: created simulation system equations: time 9.159e-05/0.2947, allocations: 15.98 kB / 1.094 GB, free: 11.25 MB / 0.8575 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001392/0.2948, allocations: 7.938 kB / 1.094 GB, free: 11.24 MB / 0.8575 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0004481/0.2953, allocations: 135.7 kB / 1.094 GB, free: 11.07 MB / 0.8575 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002321/0.2955, allocations: 0.6729 MB / 1.095 GB, free: 10.37 MB / 0.8575 GB Notification: Performance of simCode: alias equations: time 1.589e-05/0.2955, allocations: 8.125 kB / 1.095 GB, free: 10.36 MB / 0.8575 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 2.613e-05/0.2956, allocations: 11.38 kB / 1.095 GB, free: 10.35 MB / 0.8575 GB Notification: Performance of SimCode: time 3.51e-07/0.2956, allocations: 0 / 1.095 GB, free: 10.35 MB / 0.8575 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.01837/0.314, allocations: 1.386 MB / 1.096 GB, free: 9.156 MB / 0.8575 GB Notification: Performance of buildModelFMU: Generate platform static: time 11.18/11.49, allocations: 19.55 kB / 1.096 GB, free: 9.141 MB / 0.8575 GB (rm -f Buildings_9_Buildings.Fluid.BaseClasses.FlowModels.Validation.InvertingBasicFlowFunction_m_flow.pipe ; mkfifo Buildings_9_Buildings.Fluid.BaseClasses.FlowModels.Validation.InvertingBasicFlowFunction_m_flow.pipe ; head -c 1048576 < Buildings_9_Buildings.Fluid.BaseClasses.FlowModels.Validation.InvertingBasicFlowFunction_m_flow.pipe >> ../files/Buildings_9_Buildings.Fluid.BaseClasses.FlowModels.Validation.InvertingBasicFlowFunction_m_flow.sim & python3 -m fmpy simulate --output-file Buildings_9_Buildings.Fluid.BaseClasses.FlowModels.Validation.InvertingBasicFlowFunction_m_flow_res.csv --start-time 0 --stop-time 1 --timeout 50 --relative-tolerance 1e-06 --interface-type ModelExchange --solver CVode --output-interval 0.0004 Buildings_9_Buildings_Fluid_BaseClasses_FlowModels_Validation_InvertingBasicFlowFunction_m_flow.fmu > Buildings_9_Buildings.Fluid.BaseClasses.FlowModels.Validation.InvertingBasicFlowFunction_m_flow.pipe 2>&1) diffSimulationResults("Buildings_9_Buildings.Fluid.BaseClasses.FlowModels.Validation.InvertingBasicFlowFunction_m_flow_res.csv","/mnt/ReferenceFiles/Buildings/csv/maint_9.1.x/Buildings_Fluid_BaseClasses_FlowModels_Validation_InvertingBasicFlowFunction_m_flow.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Buildings_9_Buildings.Fluid.BaseClasses.FlowModels.Validation.InvertingBasicFlowFunction_m_flow.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches