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.1.0-master/package.mo", uses=false) Using package Buildings with version 11.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 11.1.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: "" <> buildModelFMU(Buildings.Fluid.BaseClasses.FlowModels.Validation.InvertingBasicFlowFunction_dp,fileNamePrefix="Buildings_latest_Buildings_Fluid_BaseClasses_FlowModels_Validation_InvertingBasicFlowFunction_dp",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Buildings.Fluid.BaseClasses.FlowModels.Validation.InvertingBasicFlowFunction_dp,fileNamePrefix="Buildings_latest_Buildings_Fluid_BaseClasses_FlowModels_Validation_InvertingBasicFlowFunction_dp",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.008439/0.008439, allocations: 97.73 kB / 15.73 MB, free: 6.055 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.001954/0.001954, allocations: 200.2 kB / 16.68 MB, free: 5.98 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.376/1.376, allocations: 222.9 MB / 240.4 MB, free: 4.309 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 11.1.0-master/package.mo): time 2.703/2.703, allocations: 469.4 MB / 0.7422 GB, free: 7.645 MB / 0.5919 GB Notification: Performance of FrontEnd - loaded program: time 0.001362/0.001362, allocations: 68.06 kB / 1.064 GB, free: 13.93 MB / 0.8262 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2896/0.291, allocations: 159.1 MB / 1.22 GB, free: 14.68 MB / 0.9825 GB Notification: Performance of NFInst.instantiate(Buildings.Fluid.BaseClasses.FlowModels.Validation.InvertingBasicFlowFunction_dp): time 0.002509/0.2935, allocations: 1.259 MB / 1.221 GB, free: 13.41 MB / 0.9825 GB Notification: Performance of NFInst.instExpressions: time 0.00103/0.2946, allocations: 0.5856 MB / 1.222 GB, free: 12.83 MB / 0.9825 GB Notification: Performance of NFInst.updateImplicitVariability: time 2.582e-05/0.2946, allocations: 0 / 1.222 GB, free: 12.83 MB / 0.9825 GB Notification: Performance of NFTyping.typeComponents: time 1.888e-05/0.2947, allocations: 0 / 1.222 GB, free: 12.83 MB / 0.9825 GB Notification: Performance of NFTyping.typeBindings: time 3.985e-05/0.2947, allocations: 3.938 kB / 1.222 GB, free: 12.82 MB / 0.9825 GB Notification: Performance of NFTyping.typeClassSections: time 0.0006021/0.2954, allocations: 141.8 kB / 1.222 GB, free: 12.69 MB / 0.9825 GB Notification: Performance of NFFlatten.flatten: time 5.784e-05/0.2954, allocations: 19.98 kB / 1.222 GB, free: 12.67 MB / 0.9825 GB Notification: Performance of NFFlatten.resolveConnections: time 4.413e-05/0.2955, allocations: 0 / 1.222 GB, free: 12.67 MB / 0.9825 GB Notification: Performance of NFEvalConstants.evaluate: time 1.966e-05/0.2955, allocations: 4 kB / 1.222 GB, free: 12.66 MB / 0.9825 GB Notification: Performance of NFSimplifyModel.simplify: time 4.5e-05/0.2955, allocations: 11.86 kB / 1.222 GB, free: 12.65 MB / 0.9825 GB Notification: Performance of NFPackage.collectConstants: time 1.25e-05/0.2956, allocations: 0 / 1.222 GB, free: 12.65 MB / 0.9825 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0005177/0.2961, allocations: 339.4 kB / 1.222 GB, free: 12.32 MB / 0.9825 GB Notification: Performance of NFScalarize.scalarize: time 1.114e-05/0.2961, allocations: 0 / 1.222 GB, free: 12.32 MB / 0.9825 GB Notification: Performance of NFVerifyModel.verify: time 2.076e-05/0.2961, allocations: 3.984 kB / 1.222 GB, free: 12.32 MB / 0.9825 GB Notification: Performance of NFConvertDAE.convert: time 0.0002805/0.2964, allocations: 143.5 kB / 1.222 GB, free: 12.18 MB / 0.9825 GB Notification: Performance of FrontEnd - DAE generated: time 4.208e-06/0.2964, allocations: 0 / 1.222 GB, free: 12.18 MB / 0.9825 GB Notification: Performance of FrontEnd: time 1.393e-06/0.2964, allocations: 0 / 1.222 GB, free: 12.18 MB / 0.9825 GB Notification: Performance of Transformations before backend: time 4.739e-06/0.2965, allocations: 4 kB / 1.222 GB, free: 12.17 MB / 0.9825 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.0003862/0.2968, allocations: 355.1 kB / 1.223 GB, free: 11.77 MB / 0.9825 GB Notification: Performance of prepare preOptimizeDAE: time 3.947e-05/0.2969, allocations: 12.03 kB / 1.223 GB, free: 11.76 MB / 0.9825 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 3.502e-05/0.2969, allocations: 30.75 kB / 1.223 GB, free: 11.72 MB / 0.9825 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 2.344e-05/0.297, allocations: 0.9375 kB / 1.223 GB, free: 11.72 MB / 0.9825 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001027/0.2971, allocations: 168.3 kB / 1.223 GB, free: 11.52 MB / 0.9825 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.209e-05/0.2971, allocations: 4.375 kB / 1.223 GB, free: 11.52 MB / 0.9825 GB Notification: Performance of preOpt expandDerOperator (simulation): time 8.466e-06/0.2971, allocations: 384 / 1.223 GB, free: 11.52 MB / 0.9825 GB Notification: Performance of preOpt clockPartitioning (simulation): time 8.71e-05/0.2972, allocations: 42.25 kB / 1.223 GB, free: 11.47 MB / 0.9825 GB Notification: Performance of preOpt findStateOrder (simulation): time 8.526e-06/0.2972, allocations: 3.938 kB / 1.223 GB, free: 11.46 MB / 0.9825 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 7.054e-06/0.2972, allocations: 0 / 1.223 GB, free: 11.46 MB / 0.9825 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.301e-06/0.2972, allocations: 0 / 1.223 GB, free: 11.46 MB / 0.9825 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 2.651e-05/0.2973, allocations: 11.88 kB / 1.223 GB, free: 11.45 MB / 0.9825 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0001433/0.2974, allocations: 149.7 kB / 1.223 GB, free: 11.26 MB / 0.9825 GB Notification: Performance of preOpt comSubExp (simulation): time 5.442e-05/0.2975, allocations: 26.55 kB / 1.223 GB, free: 11.22 MB / 0.9825 GB Notification: Performance of preOpt resolveLoops (simulation): time 1.804e-05/0.2975, allocations: 4.859 kB / 1.223 GB, free: 11.21 MB / 0.9825 GB Notification: Performance of preOpt evalFunc (simulation): time 2.007e-05/0.2975, allocations: 8.062 kB / 1.223 GB, free: 11.21 MB / 0.9825 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.278e-05/0.2976, allocations: 34.56 kB / 1.223 GB, free: 11.16 MB / 0.9825 GB Notification: Performance of pre-optimization done (n=2): time 1.113e-06/0.2976, allocations: 0 / 1.223 GB, free: 11.16 MB / 0.9825 GB Notification: Performance of matching and sorting (n=2): time 0.0001429/0.2977, allocations: 45.58 kB / 1.223 GB, free: 11.11 MB / 0.9825 GB Notification: Performance of inlineWhenForInitialization (initialization): time 3.098e-05/0.2978, allocations: 51.41 kB / 1.223 GB, free: 11.05 MB / 0.9825 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 7.097e-05/0.2978, allocations: 101.8 kB / 1.223 GB, free: 10.94 MB / 0.9825 GB Notification: Performance of collectPreVariables (initialization): time 1.082e-05/0.2978, allocations: 25.95 kB / 1.223 GB, free: 10.91 MB / 0.9825 GB Notification: Performance of collectInitialEqns (initialization): time 2.822e-05/0.2979, allocations: 84.14 kB / 1.223 GB, free: 10.82 MB / 0.9825 GB Notification: Performance of collectInitialBindings (initialization): time 2.149e-05/0.2979, allocations: 4 kB / 1.223 GB, free: 10.82 MB / 0.9825 GB Notification: Performance of simplifyInitialFunctions (initialization): time 2.755e-05/0.2979, allocations: 13.72 kB / 1.223 GB, free: 10.8 MB / 0.9825 GB Notification: Performance of setup shared object (initialization): time 9.824e-05/0.298, allocations: 314.8 kB / 1.224 GB, free: 10.48 MB / 0.9825 GB Notification: Performance of preBalanceInitialSystem (initialization): time 1.381e-05/0.2981, allocations: 4 kB / 1.224 GB, free: 10.48 MB / 0.9825 GB Notification: Performance of partitionIndependentBlocks (initialization): time 8.697e-06/0.2981, allocations: 0 / 1.224 GB, free: 10.48 MB / 0.9825 GB Notification: Performance of analyzeInitialSystem (initialization): time 3.237e-05/0.2981, allocations: 16.86 kB / 1.224 GB, free: 10.46 MB / 0.9825 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.954e-06/0.2981, allocations: 4.062 kB / 1.224 GB, free: 10.46 MB / 0.9825 GB Notification: Performance of matching and sorting (n=2) (initialization): time 6.478e-05/0.2982, allocations: 37.66 kB / 1.224 GB, free: 10.41 MB / 0.9825 GB Notification: Performance of prepare postOptimizeDAE: time 1.52e-05/0.2982, allocations: 11.92 kB / 1.224 GB, free: 10.4 MB / 0.9825 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.013e-06/0.2982, allocations: 0 / 1.224 GB, free: 10.4 MB / 0.9825 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.132e-05/0.2982, allocations: 3.938 kB / 1.224 GB, free: 10.4 MB / 0.9825 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001483/0.2984, allocations: 8 kB / 1.224 GB, free: 10.39 MB / 0.9825 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0003521/0.2988, allocations: 0.5782 MB / 1.224 GB, free: 9.789 MB / 0.9825 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 2.082e-05/0.2988, allocations: 8.156 kB / 1.224 GB, free: 9.781 MB / 0.9825 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 7.725e-06/0.2988, allocations: 7.969 kB / 1.224 GB, free: 9.773 MB / 0.9825 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.082e-05/0.2989, allocations: 113.8 kB / 1.224 GB, free: 9.652 MB / 0.9825 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 8.636e-06/0.2989, allocations: 0 / 1.224 GB, free: 9.652 MB / 0.9825 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001009/0.299, allocations: 52.73 kB / 1.224 GB, free: 9.598 MB / 0.9825 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.804e-06/0.299, allocations: 4 kB / 1.224 GB, free: 9.594 MB / 0.9825 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.007e-06/0.299, allocations: 0 / 1.224 GB, free: 9.594 MB / 0.9825 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.524e-06/0.299, allocations: 4.031 kB / 1.224 GB, free: 9.59 MB / 0.9825 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 9.574e-05/0.2991, allocations: 153.6 kB / 1.225 GB, free: 9.391 MB / 0.9825 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.232e-06/0.2991, allocations: 0 / 1.225 GB, free: 9.391 MB / 0.9825 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 8.54e-05/0.2992, allocations: 11.98 kB / 1.225 GB, free: 9.379 MB / 0.9825 GB Notification: Performance of postOpt tearingSystem (simulation): time 2.334e-06/0.2992, allocations: 3.938 kB / 1.225 GB, free: 9.375 MB / 0.9825 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 8.156e-06/0.2993, allocations: 4 kB / 1.225 GB, free: 9.371 MB / 0.9825 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0002864/0.2996, allocations: 0.5821 MB / 1.225 GB, free: 8.766 MB / 0.9825 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.906e-06/0.2996, allocations: 3.938 kB / 1.225 GB, free: 8.762 MB / 0.9825 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 6.95e-05/0.2996, allocations: 69.19 kB / 1.225 GB, free: 8.676 MB / 0.9825 GB Notification: Performance of postOpt removeConstants (simulation): time 3.715e-05/0.2997, allocations: 81.11 kB / 1.225 GB, free: 8.578 MB / 0.9825 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.002e-05/0.2997, allocations: 3.938 kB / 1.225 GB, free: 8.574 MB / 0.9825 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 1.481e-05/0.2997, allocations: 0 / 1.225 GB, free: 8.574 MB / 0.9825 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 1.634e-05/0.2997, allocations: 7.922 kB / 1.225 GB, free: 8.566 MB / 0.9825 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.425e-06/0.2998, allocations: 0 / 1.225 GB, free: 8.566 MB / 0.9825 GB Notification: Performance of sorting global known variables: time 3.348e-05/0.2998, allocations: 83.31 kB / 1.225 GB, free: 8.484 MB / 0.9825 GB Notification: Performance of sort global known variables: time 1.31e-07/0.2998, allocations: 0 / 1.225 GB, free: 8.484 MB / 0.9825 GB Notification: Performance of remove unused functions: time 0.0002015/0.3, allocations: 11.94 kB / 1.225 GB, free: 8.473 MB / 0.9825 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.0004085/0.3004, allocations: 0.6124 MB / 1.226 GB, free: 7.828 MB / 0.9825 GB Notification: Performance of simCode: created initialization part: time 0.000174/0.3006, allocations: 20.11 kB / 1.226 GB, free: 7.809 MB / 0.9825 GB Notification: Performance of simCode: created event and clocks part: time 2.515e-06/0.3006, allocations: 0 / 1.226 GB, free: 7.809 MB / 0.9825 GB Notification: Performance of simCode: created simulation system equations: time 9.303e-05/0.3007, allocations: 15.98 kB / 1.226 GB, free: 7.793 MB / 0.9825 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001518/0.3009, allocations: 11.72 kB / 1.226 GB, free: 7.785 MB / 0.9825 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0004878/0.3014, allocations: 147.4 kB / 1.226 GB, free: 7.602 MB / 0.9825 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002513/0.3016, allocations: 0.6768 MB / 1.227 GB, free: 6.898 MB / 0.9825 GB Notification: Performance of simCode: alias equations: time 1.672e-05/0.3017, allocations: 4.125 kB / 1.227 GB, free: 6.895 MB / 0.9825 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 2.685e-05/0.3017, allocations: 7.438 kB / 1.227 GB, free: 6.887 MB / 0.9825 GB Notification: Performance of SimCode: time 3.9e-07/0.3017, allocations: 0 / 1.227 GB, free: 6.887 MB / 0.9825 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.03153/0.3332, allocations: 1.375 MB / 1.228 GB, free: 5.734 MB / 0.9825 GB Notification: Performance of buildModelFMU: Generate platform static: time 12.12/12.45, allocations: 11.12 kB / 1.228 GB, free: 5.727 MB / 0.9825 GB (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 & python3 -m fmpy simulate --output-file Buildings_latest_Buildings.Fluid.BaseClasses.FlowModels.Validation.InvertingBasicFlowFunction_dp_res.csv --start-time 0 --stop-time 1 --timeout 50 --relative-tolerance 1e-06 --interface-type ModelExchange --solver CVode --output-interval 0.0004 Buildings_latest_Buildings_Fluid_BaseClasses_FlowModels_Validation_InvertingBasicFlowFunction_dp.fmu > Buildings_latest_Buildings.Fluid.BaseClasses.FlowModels.Validation.InvertingBasicFlowFunction_dp.pipe 2>&1) diffSimulationResults("Buildings_latest_Buildings.Fluid.BaseClasses.FlowModels.Validation.InvertingBasicFlowFunction_dp_res.csv","/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