Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Buildings_11_Buildings.Fluid.BaseClasses.FlowModels.Validation.InverseFlowFunctions.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-maint.11.x/package.mo", uses=false) Using package Buildings with version 11.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 11.1.0-maint.11.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.InverseFlowFunctions,fileNamePrefix="Buildings_11_Buildings_Fluid_BaseClasses_FlowModels_Validation_InverseFlowFunctions",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Buildings.Fluid.BaseClasses.FlowModels.Validation.InverseFlowFunctions,fileNamePrefix="Buildings_11_Buildings_Fluid_BaseClasses_FlowModels_Validation_InverseFlowFunctions",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.004213/0.004213, allocations: 96.7 kB / 15.73 MB, free: 6.051 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.001237/0.001237, allocations: 194.3 kB / 16.67 MB, free: 5.973 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.421/1.421, allocations: 222.9 MB / 240.4 MB, free: 4.332 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 11.1.0-maint.11.x/package.mo): time 2.894/2.894, allocations: 469.8 MB / 0.7425 GB, free: 7.316 MB / 0.5919 GB Notification: Performance of FrontEnd - loaded program: time 0.001981/0.001981, allocations: 64.12 kB / 1.065 GB, free: 13.58 MB / 0.8262 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2684/0.2704, allocations: 159.1 MB / 1.22 GB, free: 14.32 MB / 0.9825 GB Notification: Performance of NFInst.instantiate(Buildings.Fluid.BaseClasses.FlowModels.Validation.InverseFlowFunctions): time 0.002348/0.2728, allocations: 1.29 MB / 1.221 GB, free: 13.01 MB / 0.9825 GB Notification: Performance of NFInst.instExpressions: time 0.0009925/0.2738, allocations: 0.5973 MB / 1.222 GB, free: 12.41 MB / 0.9825 GB Notification: Performance of NFInst.updateImplicitVariability: time 2.085e-05/0.2738, allocations: 0 / 1.222 GB, free: 12.41 MB / 0.9825 GB Notification: Performance of NFTyping.typeComponents: time 1.726e-05/0.2739, allocations: 0 / 1.222 GB, free: 12.41 MB / 0.9825 GB Notification: Performance of NFTyping.typeBindings: time 4.242e-05/0.2739, allocations: 3.938 kB / 1.222 GB, free: 12.41 MB / 0.9825 GB Notification: Performance of NFTyping.typeClassSections: time 0.0005194/0.2744, allocations: 147.4 kB / 1.222 GB, free: 12.27 MB / 0.9825 GB Notification: Performance of NFFlatten.flatten: time 5.248e-05/0.2745, allocations: 19.91 kB / 1.222 GB, free: 12.25 MB / 0.9825 GB Notification: Performance of NFFlatten.resolveConnections: time 3.38e-05/0.2745, allocations: 4 kB / 1.222 GB, free: 12.24 MB / 0.9825 GB Notification: Performance of NFEvalConstants.evaluate: time 2.299e-05/0.2746, allocations: 11.94 kB / 1.222 GB, free: 12.23 MB / 0.9825 GB Notification: Performance of NFSimplifyModel.simplify: time 4.732e-05/0.2746, allocations: 7.984 kB / 1.222 GB, free: 12.22 MB / 0.9825 GB Notification: Performance of NFPackage.collectConstants: time 9.538e-06/0.2746, allocations: 0 / 1.222 GB, free: 12.22 MB / 0.9825 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0005656/0.2752, allocations: 347.3 kB / 1.223 GB, free: 11.88 MB / 0.9825 GB Notification: Performance of NFScalarize.scalarize: time 1.157e-05/0.2752, allocations: 3.938 kB / 1.223 GB, free: 11.88 MB / 0.9825 GB Notification: Performance of NFVerifyModel.verify: time 2.679e-05/0.2753, allocations: 8 kB / 1.223 GB, free: 11.87 MB / 0.9825 GB Notification: Performance of NFConvertDAE.convert: time 0.0002718/0.2755, allocations: 151.5 kB / 1.223 GB, free: 11.72 MB / 0.9825 GB Notification: Performance of FrontEnd - DAE generated: time 2.755e-06/0.2756, allocations: 0 / 1.223 GB, free: 11.72 MB / 0.9825 GB Notification: Performance of FrontEnd: time 1.112e-06/0.2756, allocations: 0 / 1.223 GB, free: 11.72 MB / 0.9825 GB Notification: Performance of Transformations before backend: time 3.777e-06/0.2756, allocations: 4 kB / 1.223 GB, free: 11.72 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: 5 * Number of variables: 5 Notification: Performance of Generate backend data structure: time 0.000436/0.276, allocations: 359 kB / 1.223 GB, free: 11.32 MB / 0.9825 GB Notification: Performance of prepare preOptimizeDAE: time 3.306e-05/0.2761, allocations: 12.03 kB / 1.223 GB, free: 11.3 MB / 0.9825 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 3.332e-05/0.2761, allocations: 34.73 kB / 1.223 GB, free: 11.26 MB / 0.9825 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 1.896e-05/0.2761, allocations: 0.9375 kB / 1.223 GB, free: 11.26 MB / 0.9825 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001416/0.2763, allocations: 168.3 kB / 1.223 GB, free: 11.06 MB / 0.9825 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 9.748e-06/0.2763, allocations: 4.375 kB / 1.223 GB, free: 11.05 MB / 0.9825 GB Notification: Performance of preOpt expandDerOperator (simulation): time 9.157e-06/0.2763, allocations: 384 / 1.223 GB, free: 11.05 MB / 0.9825 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001059/0.2764, allocations: 50.19 kB / 1.223 GB, free: 11 MB / 0.9825 GB Notification: Performance of preOpt findStateOrder (simulation): time 9.117e-06/0.2764, allocations: 7.875 kB / 1.223 GB, free: 10.99 MB / 0.9825 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 6.572e-06/0.2764, allocations: 0 / 1.223 GB, free: 10.99 MB / 0.9825 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 9.268e-06/0.2764, allocations: 4 kB / 1.223 GB, free: 10.99 MB / 0.9825 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 4.506e-05/0.2765, allocations: 11.98 kB / 1.223 GB, free: 10.98 MB / 0.9825 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.000338/0.2768, allocations: 256.9 kB / 1.224 GB, free: 10.68 MB / 0.9825 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0001957/0.2771, allocations: 54.56 kB / 1.224 GB, free: 10.61 MB / 0.9825 GB Notification: Performance of preOpt resolveLoops (simulation): time 3.805e-05/0.2771, allocations: 16.86 kB / 1.224 GB, free: 10.59 MB / 0.9825 GB Notification: Performance of preOpt evalFunc (simulation): time 1.892e-05/0.2771, allocations: 0 / 1.224 GB, free: 10.59 MB / 0.9825 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.447e-05/0.2772, allocations: 38.48 kB / 1.224 GB, free: 10.55 MB / 0.9825 GB Notification: Performance of pre-optimization done (n=4): time 8.92e-07/0.2772, allocations: 0 / 1.224 GB, free: 10.55 MB / 0.9825 GB Notification: Performance of matching and sorting (n=4): time 0.0001684/0.2773, allocations: 57.69 kB / 1.224 GB, free: 10.48 MB / 0.9825 GB Notification: Performance of inlineWhenForInitialization (initialization): time 4.213e-05/0.2774, allocations: 55.41 kB / 1.224 GB, free: 10.42 MB / 0.9825 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 7.855e-05/0.2775, allocations: 97.84 kB / 1.224 GB, free: 10.31 MB / 0.9825 GB Notification: Performance of collectPreVariables (initialization): time 1.661e-05/0.2775, allocations: 25.7 kB / 1.224 GB, free: 10.28 MB / 0.9825 GB Notification: Performance of collectInitialEqns (initialization): time 7.466e-05/0.2776, allocations: 88.09 kB / 1.224 GB, free: 10.19 MB / 0.9825 GB Notification: Performance of collectInitialBindings (initialization): time 1.349e-05/0.2776, allocations: 11.91 kB / 1.224 GB, free: 10.18 MB / 0.9825 GB Notification: Performance of simplifyInitialFunctions (initialization): time 3.811e-05/0.2776, allocations: 21.7 kB / 1.224 GB, free: 10.15 MB / 0.9825 GB Notification: Performance of setup shared object (initialization): time 0.0001539/0.2778, allocations: 310.8 kB / 1.224 GB, free: 9.84 MB / 0.9825 GB Notification: Performance of preBalanceInitialSystem (initialization): time 2.383e-05/0.2778, allocations: 8 kB / 1.224 GB, free: 9.832 MB / 0.9825 GB Notification: Performance of partitionIndependentBlocks (initialization): time 3.482e-05/0.2779, allocations: 29.64 kB / 1.224 GB, free: 9.797 MB / 0.9825 GB Notification: Performance of analyzeInitialSystem (initialization): time 5.29e-05/0.2779, allocations: 25.72 kB / 1.224 GB, free: 9.766 MB / 0.9825 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.466e-06/0.2779, allocations: 3.938 kB / 1.224 GB, free: 9.762 MB / 0.9825 GB Notification: Performance of matching and sorting (n=5) (initialization): time 0.0001037/0.278, allocations: 61.62 kB / 1.224 GB, free: 9.695 MB / 0.9825 GB Notification: Performance of prepare postOptimizeDAE: time 1.251e-05/0.2781, allocations: 5.875 kB / 1.224 GB, free: 9.691 MB / 0.9825 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.216e-06/0.2781, allocations: 0 / 1.224 GB, free: 9.691 MB / 0.9825 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.117e-05/0.2781, allocations: 4 kB / 1.224 GB, free: 9.688 MB / 0.9825 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 4.793e-05/0.2781, allocations: 4 kB / 1.224 GB, free: 9.684 MB / 0.9825 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 6.682e-06/0.2782, allocations: 15.95 kB / 1.224 GB, free: 9.668 MB / 0.9825 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 2.286e-05/0.2782, allocations: 0 / 1.224 GB, free: 9.668 MB / 0.9825 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.869e-06/0.2782, allocations: 0 / 1.224 GB, free: 9.668 MB / 0.9825 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 2 * 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 (5): * Single equations (assignments): 5 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of prepare postOptimizeDAE: time 7.475e-05/0.2783, allocations: 114.3 kB / 1.225 GB, free: 9.547 MB / 0.9825 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.328e-05/0.2783, allocations: 128 / 1.225 GB, free: 9.547 MB / 0.9825 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001456/0.2784, allocations: 73.02 kB / 1.225 GB, free: 9.469 MB / 0.9825 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.586e-06/0.2785, allocations: 4 kB / 1.225 GB, free: 9.465 MB / 0.9825 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.116e-06/0.2785, allocations: 0 / 1.225 GB, free: 9.465 MB / 0.9825 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.247e-06/0.2785, allocations: 7.984 kB / 1.225 GB, free: 9.457 MB / 0.9825 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001745/0.2787, allocations: 161.6 kB / 1.225 GB, free: 9.25 MB / 0.9825 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 8.92e-07/0.2787, allocations: 0 / 1.225 GB, free: 9.25 MB / 0.9825 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 3.567e-05/0.2787, allocations: 4 kB / 1.225 GB, free: 9.246 MB / 0.9825 GB Notification: Performance of postOpt tearingSystem (simulation): time 2.515e-06/0.2787, allocations: 0 / 1.225 GB, free: 9.246 MB / 0.9825 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 6.732e-06/0.2787, allocations: 4 kB / 1.225 GB, free: 9.242 MB / 0.9825 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.272e-06/0.2787, allocations: 0 / 1.225 GB, free: 9.242 MB / 0.9825 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 7.71e-07/0.2788, allocations: 3.938 kB / 1.225 GB, free: 9.238 MB / 0.9825 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001367/0.2789, allocations: 155.4 kB / 1.225 GB, free: 9.07 MB / 0.9825 GB Notification: Performance of postOpt removeConstants (simulation): time 4.57e-05/0.2789, allocations: 77.62 kB / 1.225 GB, free: 8.977 MB / 0.9825 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.072e-05/0.279, allocations: 0 / 1.225 GB, free: 8.977 MB / 0.9825 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 5.104e-05/0.279, allocations: 0 / 1.225 GB, free: 8.977 MB / 0.9825 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 1.979e-05/0.279, allocations: 7.984 kB / 1.225 GB, free: 8.969 MB / 0.9825 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.216e-06/0.2791, allocations: 0 / 1.225 GB, free: 8.969 MB / 0.9825 GB Notification: Performance of sorting global known variables: time 4.377e-05/0.2791, allocations: 87.27 kB / 1.225 GB, free: 8.883 MB / 0.9825 GB Notification: Performance of sort global known variables: time 1.31e-07/0.2791, allocations: 0 / 1.225 GB, free: 8.883 MB / 0.9825 GB Notification: Performance of remove unused functions: time 0.0002513/0.2794, allocations: 15.94 kB / 1.225 GB, free: 8.867 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 (4): * Single equations (assignments): 4 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.0005183/0.2799, allocations: 0.7161 MB / 1.226 GB, free: 8.121 MB / 0.9825 GB Notification: Performance of simCode: created initialization part: time 9.615e-05/0.28, allocations: 23.98 kB / 1.226 GB, free: 8.098 MB / 0.9825 GB Notification: Performance of simCode: created event and clocks part: time 1.443e-06/0.28, allocations: 0 / 1.226 GB, free: 8.098 MB / 0.9825 GB Notification: Performance of simCode: created simulation system equations: time 2.295e-05/0.28, allocations: 12 kB / 1.226 GB, free: 8.086 MB / 0.9825 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002046/0.2802, allocations: 1.125 kB / 1.226 GB, free: 8.086 MB / 0.9825 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0004196/0.2807, allocations: 180 kB / 1.226 GB, free: 7.871 MB / 0.9825 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003016/0.281, allocations: 0.6729 MB / 1.227 GB, free: 7.172 MB / 0.9825 GB Notification: Performance of simCode: alias equations: time 2.978e-05/0.281, allocations: 7.922 kB / 1.227 GB, free: 7.164 MB / 0.9825 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 2.765e-05/0.281, allocations: 15.42 kB / 1.227 GB, free: 7.148 MB / 0.9825 GB Notification: Performance of SimCode: time 2.5e-07/0.2811, allocations: 0 / 1.227 GB, free: 7.148 MB / 0.9825 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02103/0.3021, allocations: 1.399 MB / 1.228 GB, free: 5.891 MB / 0.9825 GB Notification: Performance of buildModelFMU: Generate platform static: time 7.603/7.905, allocations: 6.812 kB / 1.228 GB, free: 5.887 MB / 0.9825 GB (rm -f Buildings_11_Buildings.Fluid.BaseClasses.FlowModels.Validation.InverseFlowFunctions.pipe ; mkfifo Buildings_11_Buildings.Fluid.BaseClasses.FlowModels.Validation.InverseFlowFunctions.pipe ; head -c 1048576 < Buildings_11_Buildings.Fluid.BaseClasses.FlowModels.Validation.InverseFlowFunctions.pipe >> ../files/Buildings_11_Buildings.Fluid.BaseClasses.FlowModels.Validation.InverseFlowFunctions.sim & python3 -m fmpy simulate --output-file Buildings_11_Buildings.Fluid.BaseClasses.FlowModels.Validation.InverseFlowFunctions_res.csv --start-time 0 --stop-time 1 --timeout 400 --relative-tolerance 1e-06 --interface-type ModelExchange --solver CVode --output-interval 0.0004 Buildings_11_Buildings_Fluid_BaseClasses_FlowModels_Validation_InverseFlowFunctions.fmu > Buildings_11_Buildings.Fluid.BaseClasses.FlowModels.Validation.InverseFlowFunctions.pipe 2>&1) diffSimulationResults("Buildings_11_Buildings.Fluid.BaseClasses.FlowModels.Validation.InverseFlowFunctions_res.csv","/mnt/ReferenceFiles/Buildings/csv/maint_11.x/Buildings_Fluid_BaseClasses_FlowModels_Validation_InverseFlowFunctions.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Buildings_11_Buildings.Fluid.BaseClasses.FlowModels.Validation.InverseFlowFunctions.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches