Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Buildings_9_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 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_dp,fileNamePrefix="Buildings_9_Buildings_Fluid_BaseClasses_FlowModels_Validation_InvertingBasicFlowFunction_dp",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Buildings.Fluid.BaseClasses.FlowModels.Validation.InvertingBasicFlowFunction_dp,fileNamePrefix="Buildings_9_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.005517/0.005517, allocations: 101.7 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.001263/0.001263, allocations: 192.4 kB / 16.68 MB, free: 5.965 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.373/1.373, allocations: 222.9 MB / 240.4 MB, free: 15.16 MB / 206.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.295/2.295, allocations: 390.3 MB / 0.6648 GB, free: 0.6367 MB / 0.5294 GB Notification: Performance of FrontEnd - loaded program: time 0.001392/0.001392, allocations: 72.03 kB / 0.9504 GB, free: 8.152 MB / 0.7325 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.8285/0.8299, allocations: 140.4 MB / 1.087 GB, free: 5.27 MB / 0.8575 GB Notification: Performance of NFInst.instantiate(Buildings.Fluid.BaseClasses.FlowModels.Validation.InvertingBasicFlowFunction_dp): time 0.002143/0.8321, allocations: 1.252 MB / 1.089 GB, free: 4.398 MB / 0.8575 GB Notification: Performance of NFInst.instExpressions: time 0.0008651/0.833, allocations: 0.589 MB / 1.089 GB, free: 3.988 MB / 0.8575 GB Notification: Performance of NFInst.updateImplicitVariability: time 2.445e-05/0.833, allocations: 0 / 1.089 GB, free: 3.988 MB / 0.8575 GB Notification: Performance of NFTyping.typeComponents: time 1.589e-05/0.8331, allocations: 3.938 kB / 1.089 GB, free: 3.984 MB / 0.8575 GB Notification: Performance of NFTyping.typeBindings: time 4.577e-05/0.8331, allocations: 0.75 kB / 1.089 GB, free: 3.984 MB / 0.8575 GB Notification: Performance of NFTyping.typeClassSections: time 0.0005087/0.8337, allocations: 147.3 kB / 1.089 GB, free: 3.914 MB / 0.8575 GB Notification: Performance of NFFlatten.flatten: time 5.179e-05/0.8337, allocations: 13.47 kB / 1.089 GB, free: 3.906 MB / 0.8575 GB Notification: Performance of NFFlatten.resolveConnections: time 4.135e-05/0.8338, allocations: 1.922 kB / 1.089 GB, free: 3.906 MB / 0.8575 GB Notification: Performance of NFEvalConstants.evaluate: time 2.011e-05/0.8338, allocations: 6.984 kB / 1.089 GB, free: 3.902 MB / 0.8575 GB Notification: Performance of NFSimplifyModel.simplify: time 4.301e-05/0.8338, allocations: 3.734 kB / 1.089 GB, free: 3.902 MB / 0.8575 GB Notification: Performance of NFPackage.collectConstants: time 1.074e-05/0.8338, allocations: 0.7188 kB / 1.089 GB, free: 3.902 MB / 0.8575 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0005439/0.8344, allocations: 344.6 kB / 1.09 GB, free: 3.801 MB / 0.8575 GB Notification: Performance of NFScalarize.scalarize: time 1.024e-05/0.8344, allocations: 1.344 kB / 1.09 GB, free: 3.801 MB / 0.8575 GB Notification: Performance of NFVerifyModel.verify: time 2.573e-05/0.8344, allocations: 5.766 kB / 1.09 GB, free: 3.797 MB / 0.8575 GB Notification: Performance of NFConvertDAE.convert: time 0.0002741/0.8347, allocations: 141.8 kB / 1.09 GB, free: 3.754 MB / 0.8575 GB Notification: Performance of FrontEnd - DAE generated: time 4.308e-06/0.8347, allocations: 4 kB / 1.09 GB, free: 3.75 MB / 0.8575 GB Notification: Performance of FrontEnd: time 1.663e-06/0.8347, allocations: 1.062 kB / 1.09 GB, free: 3.75 MB / 0.8575 GB Notification: Performance of Transformations before backend: time 4.879e-06/0.8347, allocations: 0 / 1.09 GB, free: 3.75 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.0003283/0.8351, allocations: 348 kB / 1.09 GB, free: 3.375 MB / 0.8575 GB Notification: Performance of prepare preOptimizeDAE: time 4.131e-05/0.8351, allocations: 10.36 kB / 1.09 GB, free: 3.375 MB / 0.8575 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 2.175e-05/0.8352, allocations: 31.88 kB / 1.09 GB, free: 3.336 MB / 0.8575 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 2.264e-05/0.8352, allocations: 2.094 kB / 1.09 GB, free: 3.336 MB / 0.8575 GB Notification: Performance of preOpt evaluateParameters (simulation): time 7.668e-05/0.8353, allocations: 163.2 kB / 1.09 GB, free: 3.141 MB / 0.8575 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 7.384e-06/0.8353, allocations: 384 / 1.09 GB, free: 3.141 MB / 0.8575 GB Notification: Performance of preOpt expandDerOperator (simulation): time 1.05e-05/0.8353, allocations: 5.406 kB / 1.09 GB, free: 3.137 MB / 0.8575 GB Notification: Performance of preOpt clockPartitioning (simulation): time 7.686e-05/0.8354, allocations: 31.62 kB / 1.09 GB, free: 3.105 MB / 0.8575 GB Notification: Performance of preOpt findStateOrder (simulation): time 7.063e-06/0.8354, allocations: 3.938 kB / 1.09 GB, free: 3.102 MB / 0.8575 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 6.923e-06/0.8354, allocations: 0 / 1.09 GB, free: 3.102 MB / 0.8575 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.031e-06/0.8354, allocations: 1.922 kB / 1.09 GB, free: 3.102 MB / 0.8575 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 2.518e-05/0.8354, allocations: 11.34 kB / 1.09 GB, free: 3.094 MB / 0.8575 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0001077/0.8356, allocations: 151.2 kB / 1.091 GB, free: 2.902 MB / 0.8575 GB Notification: Performance of preOpt comSubExp (simulation): time 4.655e-05/0.8356, allocations: 24.52 kB / 1.091 GB, free: 2.875 MB / 0.8575 GB Notification: Performance of preOpt resolveLoops (simulation): time 1.693e-05/0.8356, allocations: 11.77 kB / 1.091 GB, free: 2.863 MB / 0.8575 GB Notification: Performance of preOpt evalFunc (simulation): time 1.957e-05/0.8357, allocations: 1.219 kB / 1.091 GB, free: 2.863 MB / 0.8575 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.342e-05/0.8357, allocations: 31.36 kB / 1.091 GB, free: 2.824 MB / 0.8575 GB Notification: Performance of pre-optimization done (n=2): time 9.42e-07/0.8357, allocations: 0 / 1.091 GB, free: 2.824 MB / 0.8575 GB Notification: Performance of matching and sorting (n=2): time 0.0001288/0.8358, allocations: 53.59 kB / 1.091 GB, free: 2.777 MB / 0.8575 GB Notification: Performance of inlineWhenForInitialization (initialization): time 2.058e-05/0.8358, allocations: 51.41 kB / 1.091 GB, free: 2.715 MB / 0.8575 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 5.056e-05/0.8359, allocations: 98.98 kB / 1.091 GB, free: 2.613 MB / 0.8575 GB Notification: Performance of collectPreVariables (initialization): time 5.41e-06/0.8359, allocations: 25.7 kB / 1.091 GB, free: 2.582 MB / 0.8575 GB Notification: Performance of collectInitialEqns (initialization): time 1.492e-05/0.8359, allocations: 85.2 kB / 1.091 GB, free: 2.496 MB / 0.8575 GB Notification: Performance of collectInitialBindings (initialization): time 2.038e-05/0.8359, allocations: 9.547 kB / 1.091 GB, free: 2.488 MB / 0.8575 GB Notification: Performance of simplifyInitialFunctions (initialization): time 2.419e-05/0.836, allocations: 12.52 kB / 1.091 GB, free: 2.473 MB / 0.8575 GB Notification: Performance of setup shared object (initialization): time 4.255e-05/0.836, allocations: 312.8 kB / 1.091 GB, free: 2.16 MB / 0.8575 GB Notification: Performance of preBalanceInitialSystem (initialization): time 1.56e-05/0.836, allocations: 14.12 kB / 1.091 GB, free: 2.148 MB / 0.8575 GB Notification: Performance of partitionIndependentBlocks (initialization): time 1.017e-05/0.8361, allocations: 2.953 kB / 1.091 GB, free: 2.148 MB / 0.8575 GB Notification: Performance of analyzeInitialSystem (initialization): time 2.782e-05/0.8361, allocations: 18.11 kB / 1.091 GB, free: 2.133 MB / 0.8575 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.342e-06/0.8361, allocations: 0 / 1.091 GB, free: 2.133 MB / 0.8575 GB Notification: Performance of matching and sorting (n=2) (initialization): time 5.326e-05/0.8362, allocations: 39.91 kB / 1.091 GB, free: 2.098 MB / 0.8575 GB Notification: Performance of prepare postOptimizeDAE: time 1.28e-05/0.8362, allocations: 13.77 kB / 1.091 GB, free: 2.09 MB / 0.8575 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.777e-06/0.8362, allocations: 1.062 kB / 1.091 GB, free: 2.09 MB / 0.8575 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.202e-05/0.8362, allocations: 0 / 1.091 GB, free: 2.09 MB / 0.8575 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001452/0.8363, allocations: 10.72 kB / 1.091 GB, free: 2.09 MB / 0.8575 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0002298/0.8366, allocations: 0.5837 MB / 1.092 GB, free: 1.5 MB / 0.8575 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 1.8e-05/0.8366, allocations: 3.938 kB / 1.092 GB, free: 1.496 MB / 0.8575 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.4e-06/0.8366, allocations: 1.125 kB / 1.092 GB, free: 1.496 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 4.929e-05/0.8367, allocations: 113 kB / 1.092 GB, free: 1.379 MB / 0.8575 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 8.807e-06/0.8367, allocations: 4.688 kB / 1.092 GB, free: 1.375 MB / 0.8575 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 9.335e-05/0.8368, allocations: 44.38 kB / 1.092 GB, free: 1.336 MB / 0.8575 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.543e-06/0.8368, allocations: 128 / 1.092 GB, free: 1.336 MB / 0.8575 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.727e-06/0.8368, allocations: 5.375 kB / 1.092 GB, free: 1.332 MB / 0.8575 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.966e-06/0.8368, allocations: 0.6562 kB / 1.092 GB, free: 1.332 MB / 0.8575 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 5.935e-05/0.8369, allocations: 154.7 kB / 1.092 GB, free: 1.137 MB / 0.8575 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.282e-06/0.8369, allocations: 0.5625 kB / 1.092 GB, free: 1.137 MB / 0.8575 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 7.624e-05/0.837, allocations: 10.91 kB / 1.092 GB, free: 1.137 MB / 0.8575 GB Notification: Performance of postOpt tearingSystem (simulation): time 1.733e-06/0.837, allocations: 0 / 1.092 GB, free: 1.137 MB / 0.8575 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 6.332e-06/0.837, allocations: 1.031 kB / 1.092 GB, free: 1.137 MB / 0.8575 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0002638/0.8373, allocations: 0.5908 MB / 1.093 GB, free: 16.54 MB / 0.8731 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.473e-06/0.8373, allocations: 5.062 kB / 1.093 GB, free: 16.54 MB / 0.8731 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 6.172e-05/0.8373, allocations: 60.56 kB / 1.093 GB, free: 16.47 MB / 0.8731 GB Notification: Performance of postOpt removeConstants (simulation): time 4.313e-05/0.8374, allocations: 79.03 kB / 1.093 GB, free: 16.38 MB / 0.8731 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.071e-05/0.8374, allocations: 0.6094 kB / 1.093 GB, free: 16.38 MB / 0.8731 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 1.488e-05/0.8374, allocations: 5.062 kB / 1.093 GB, free: 16.37 MB / 0.8731 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 1.637e-05/0.8374, allocations: 5.703 kB / 1.093 GB, free: 16.37 MB / 0.8731 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.497e-06/0.8375, allocations: 4.688 kB / 1.093 GB, free: 16.36 MB / 0.8731 GB Notification: Performance of sorting global known variables: time 3.207e-05/0.8375, allocations: 81.88 kB / 1.093 GB, free: 16.29 MB / 0.8731 GB Notification: Performance of sort global known variables: time 1.1e-07/0.8375, allocations: 0 / 1.093 GB, free: 16.29 MB / 0.8731 GB Notification: Performance of remove unused functions: time 0.0001989/0.8377, allocations: 11.84 kB / 1.093 GB, free: 16.28 MB / 0.8731 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.0003689/0.8381, allocations: 0.6057 MB / 1.094 GB, free: 15.68 MB / 0.8731 GB Notification: Performance of simCode: created initialization part: time 0.0001623/0.8382, allocations: 21.56 kB / 1.094 GB, free: 15.68 MB / 0.8731 GB Notification: Performance of simCode: created event and clocks part: time 1.933e-06/0.8383, allocations: 0 / 1.094 GB, free: 15.68 MB / 0.8731 GB Notification: Performance of simCode: created simulation system equations: time 8.811e-05/0.8383, allocations: 17.48 kB / 1.094 GB, free: 15.68 MB / 0.8731 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001384/0.8385, allocations: 10.06 kB / 1.094 GB, free: 15.67 MB / 0.8731 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0004378/0.8389, allocations: 140.5 kB / 1.094 GB, free: 15.52 MB / 0.8731 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002425/0.8392, allocations: 0.6783 MB / 1.095 GB, free: 14.82 MB / 0.8731 GB Notification: Performance of simCode: alias equations: time 1.516e-05/0.8392, allocations: 0.9062 kB / 1.095 GB, free: 14.82 MB / 0.8731 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 2.055e-05/0.8392, allocations: 9.297 kB / 1.095 GB, free: 14.81 MB / 0.8731 GB Notification: Performance of SimCode: time 2.41e-07/0.8392, allocations: 0 / 1.095 GB, free: 14.81 MB / 0.8731 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.01816/0.8574, allocations: 1.374 MB / 1.096 GB, free: 14.44 MB / 0.8731 GB Notification: Performance of buildModelFMU: Generate platform static: time 11.37/12.23, allocations: 7 kB / 1.096 GB, free: 14.44 MB / 0.8731 GB (rm -f Buildings_9_Buildings.Fluid.BaseClasses.FlowModels.Validation.InvertingBasicFlowFunction_dp.pipe ; mkfifo Buildings_9_Buildings.Fluid.BaseClasses.FlowModels.Validation.InvertingBasicFlowFunction_dp.pipe ; head -c 1048576 < Buildings_9_Buildings.Fluid.BaseClasses.FlowModels.Validation.InvertingBasicFlowFunction_dp.pipe >> ../files/Buildings_9_Buildings.Fluid.BaseClasses.FlowModels.Validation.InvertingBasicFlowFunction_dp.sim & python3 -m fmpy simulate --output-file Buildings_9_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_9_Buildings_Fluid_BaseClasses_FlowModels_Validation_InvertingBasicFlowFunction_dp.fmu > Buildings_9_Buildings.Fluid.BaseClasses.FlowModels.Validation.InvertingBasicFlowFunction_dp.pipe 2>&1) diffSimulationResults("Buildings_9_Buildings.Fluid.BaseClasses.FlowModels.Validation.InvertingBasicFlowFunction_dp_res.csv","/mnt/ReferenceFiles/Buildings/csv/maint_9.1.x/Buildings_Fluid_BaseClasses_FlowModels_Validation_InvertingBasicFlowFunction_dp.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Buildings_9_Buildings.Fluid.BaseClasses.FlowModels.Validation.InvertingBasicFlowFunction_dp.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches