Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Buildings_11_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.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.InvertingBasicFlowFunction_m_flow,fileNamePrefix="Buildings_11_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_11_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.001345/0.001345, allocations: 108 kB / 15.6 MB, free: 132 kB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001257/0.001257, allocations: 193.9 kB / 16.53 MB, free: 6.391 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.47/1.47, allocations: 222.9 MB / 240.2 MB, free: 4.375 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.848/2.848, allocations: 469.8 MB / 0.7424 GB, free: 7.395 MB / 0.5919 GB Notification: Performance of FrontEnd - loaded program: time 0.001997/0.001998, allocations: 66 kB / 0.9087 GB, free: 34.32 MB / 0.7169 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2624/0.2644, allocations: 159.2 MB / 1.064 GB, free: 14.18 MB / 0.8262 GB Notification: Performance of NFInst.instantiate(Buildings.Fluid.BaseClasses.FlowModels.Validation.InvertingBasicFlowFunction_m_flow): time 0.002484/0.2669, allocations: 1.258 MB / 1.065 GB, free: 12.91 MB / 0.8262 GB Notification: Performance of NFInst.instExpressions: time 0.0009965/0.268, allocations: 0.5894 MB / 1.066 GB, free: 12.32 MB / 0.8262 GB Notification: Performance of NFInst.updateImplicitVariability: time 2.341e-05/0.268, allocations: 4 kB / 1.066 GB, free: 12.32 MB / 0.8262 GB Notification: Performance of NFTyping.typeComponents: time 1.541e-05/0.268, allocations: 0 / 1.066 GB, free: 12.32 MB / 0.8262 GB Notification: Performance of NFTyping.typeBindings: time 3.298e-05/0.2681, allocations: 0 / 1.066 GB, free: 12.32 MB / 0.8262 GB Notification: Performance of NFTyping.typeClassSections: time 0.0005082/0.2686, allocations: 140.6 kB / 1.066 GB, free: 12.18 MB / 0.8262 GB Notification: Performance of NFFlatten.flatten: time 4.688e-05/0.2686, allocations: 15.94 kB / 1.066 GB, free: 12.16 MB / 0.8262 GB Notification: Performance of NFFlatten.resolveConnections: time 3.731e-05/0.2687, allocations: 0 / 1.066 GB, free: 12.16 MB / 0.8262 GB Notification: Performance of NFEvalConstants.evaluate: time 1.858e-05/0.2687, allocations: 4 kB / 1.066 GB, free: 12.16 MB / 0.8262 GB Notification: Performance of NFSimplifyModel.simplify: time 3.947e-05/0.2688, allocations: 11.91 kB / 1.066 GB, free: 12.15 MB / 0.8262 GB Notification: Performance of NFPackage.collectConstants: time 9.548e-06/0.2688, allocations: 4 kB / 1.066 GB, free: 12.14 MB / 0.8262 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0005535/0.2693, allocations: 343.3 kB / 1.066 GB, free: 11.81 MB / 0.8262 GB Notification: Performance of NFScalarize.scalarize: time 8.967e-06/0.2694, allocations: 0 / 1.066 GB, free: 11.81 MB / 0.8262 GB Notification: Performance of NFVerifyModel.verify: time 1.867e-05/0.2694, allocations: 0 / 1.066 GB, free: 11.81 MB / 0.8262 GB Notification: Performance of NFConvertDAE.convert: time 0.0002706/0.2697, allocations: 147.9 kB / 1.067 GB, free: 11.66 MB / 0.8262 GB Notification: Performance of FrontEnd - DAE generated: time 3.016e-06/0.2697, allocations: 0 / 1.067 GB, free: 11.66 MB / 0.8262 GB Notification: Performance of FrontEnd: time 1.412e-06/0.2697, allocations: 0 / 1.067 GB, free: 11.66 MB / 0.8262 GB Notification: Performance of Transformations before backend: time 4.058e-06/0.2697, allocations: 0 / 1.067 GB, free: 11.66 MB / 0.8262 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.0004137/0.2701, allocations: 351.5 kB / 1.067 GB, free: 11.27 MB / 0.8262 GB Notification: Performance of prepare preOptimizeDAE: time 3.396e-05/0.2701, allocations: 8.031 kB / 1.067 GB, free: 11.26 MB / 0.8262 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 3.683e-05/0.2702, allocations: 34.75 kB / 1.067 GB, free: 11.22 MB / 0.8262 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 2.063e-05/0.2702, allocations: 0.9375 kB / 1.067 GB, free: 11.22 MB / 0.8262 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001301/0.2703, allocations: 168.4 kB / 1.067 GB, free: 11.02 MB / 0.8262 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 9.929e-06/0.2704, allocations: 384 / 1.067 GB, free: 11.02 MB / 0.8262 GB Notification: Performance of preOpt expandDerOperator (simulation): time 5.29e-06/0.2704, allocations: 384 / 1.067 GB, free: 11.02 MB / 0.8262 GB Notification: Performance of preOpt clockPartitioning (simulation): time 8.707e-05/0.2705, allocations: 38.2 kB / 1.067 GB, free: 10.97 MB / 0.8262 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.16e-05/0.2705, allocations: 7.875 kB / 1.067 GB, free: 10.96 MB / 0.8262 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 6.563e-06/0.2705, allocations: 0 / 1.067 GB, free: 10.96 MB / 0.8262 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.376e-06/0.2705, allocations: 0 / 1.067 GB, free: 10.96 MB / 0.8262 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 2.543e-05/0.2705, allocations: 8 kB / 1.067 GB, free: 10.96 MB / 0.8262 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.000166/0.2707, allocations: 153.6 kB / 1.067 GB, free: 10.76 MB / 0.8262 GB Notification: Performance of preOpt comSubExp (simulation): time 4.971e-05/0.2708, allocations: 26.61 kB / 1.067 GB, free: 10.72 MB / 0.8262 GB Notification: Performance of preOpt resolveLoops (simulation): time 1.757e-05/0.2708, allocations: 4.859 kB / 1.067 GB, free: 10.71 MB / 0.8262 GB Notification: Performance of preOpt evalFunc (simulation): time 2.182e-05/0.2708, allocations: 8.047 kB / 1.067 GB, free: 10.71 MB / 0.8262 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.059e-05/0.2709, allocations: 38.5 kB / 1.067 GB, free: 10.66 MB / 0.8262 GB Notification: Performance of pre-optimization done (n=2): time 4.248e-06/0.2709, allocations: 4 kB / 1.067 GB, free: 10.66 MB / 0.8262 GB Notification: Performance of matching and sorting (n=2): time 0.0001288/0.271, allocations: 37.64 kB / 1.067 GB, free: 10.61 MB / 0.8262 GB Notification: Performance of inlineWhenForInitialization (initialization): time 4.113e-05/0.271, allocations: 51.41 kB / 1.067 GB, free: 10.55 MB / 0.8262 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 7.41e-05/0.2711, allocations: 105.8 kB / 1.068 GB, free: 10.44 MB / 0.8262 GB Notification: Performance of collectPreVariables (initialization): time 1.558e-05/0.2711, allocations: 25.7 kB / 1.068 GB, free: 10.41 MB / 0.8262 GB Notification: Performance of collectInitialEqns (initialization): time 3.876e-05/0.2712, allocations: 80.14 kB / 1.068 GB, free: 10.32 MB / 0.8262 GB Notification: Performance of collectInitialBindings (initialization): time 2.193e-05/0.2712, allocations: 7.906 kB / 1.068 GB, free: 10.32 MB / 0.8262 GB Notification: Performance of simplifyInitialFunctions (initialization): time 3.194e-05/0.2713, allocations: 13.97 kB / 1.068 GB, free: 10.3 MB / 0.8262 GB Notification: Performance of setup shared object (initialization): time 0.0001267/0.2714, allocations: 314.8 kB / 1.068 GB, free: 9.98 MB / 0.8262 GB Notification: Performance of preBalanceInitialSystem (initialization): time 1.114e-05/0.2714, allocations: 4 kB / 1.068 GB, free: 9.977 MB / 0.8262 GB Notification: Performance of partitionIndependentBlocks (initialization): time 1.127e-05/0.2714, allocations: 0 / 1.068 GB, free: 9.977 MB / 0.8262 GB Notification: Performance of analyzeInitialSystem (initialization): time 3.361e-05/0.2715, allocations: 24.78 kB / 1.068 GB, free: 9.949 MB / 0.8262 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.392e-06/0.2715, allocations: 0 / 1.068 GB, free: 9.949 MB / 0.8262 GB Notification: Performance of matching and sorting (n=2) (initialization): time 6.298e-05/0.2715, allocations: 33.7 kB / 1.068 GB, free: 9.91 MB / 0.8262 GB Notification: Performance of prepare postOptimizeDAE: time 1.638e-05/0.2716, allocations: 9.344 kB / 1.068 GB, free: 9.902 MB / 0.8262 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.567e-06/0.2716, allocations: 0 / 1.068 GB, free: 9.902 MB / 0.8262 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.106e-05/0.2716, allocations: 4.094 kB / 1.068 GB, free: 9.898 MB / 0.8262 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001449/0.2717, allocations: 11.98 kB / 1.068 GB, free: 9.887 MB / 0.8262 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0003967/0.2721, allocations: 0.586 MB / 1.069 GB, free: 9.277 MB / 0.8262 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 1.986e-05/0.2722, allocations: 4 kB / 1.069 GB, free: 9.273 MB / 0.8262 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.438e-06/0.2722, allocations: 0 / 1.069 GB, free: 9.273 MB / 0.8262 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.286e-05/0.2723, allocations: 113.9 kB / 1.069 GB, free: 9.152 MB / 0.8262 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 9.918e-06/0.2723, allocations: 4 kB / 1.069 GB, free: 9.148 MB / 0.8262 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001003/0.2724, allocations: 44.81 kB / 1.069 GB, free: 9.102 MB / 0.8262 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.633e-06/0.2724, allocations: 0 / 1.069 GB, free: 9.102 MB / 0.8262 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.713e-06/0.2724, allocations: 4 kB / 1.069 GB, free: 9.098 MB / 0.8262 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.088e-06/0.2724, allocations: 0 / 1.069 GB, free: 9.098 MB / 0.8262 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001185/0.2725, allocations: 157.5 kB / 1.069 GB, free: 8.895 MB / 0.8262 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.102e-06/0.2726, allocations: 0 / 1.069 GB, free: 8.895 MB / 0.8262 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 8.528e-05/0.2726, allocations: 19.92 kB / 1.069 GB, free: 8.875 MB / 0.8262 GB Notification: Performance of postOpt tearingSystem (simulation): time 1.993e-06/0.2727, allocations: 0 / 1.069 GB, free: 8.875 MB / 0.8262 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 5.3e-06/0.2727, allocations: 4.031 kB / 1.069 GB, free: 8.871 MB / 0.8262 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0003483/0.273, allocations: 0.582 MB / 1.07 GB, free: 8.266 MB / 0.8262 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.07e-06/0.273, allocations: 7.922 kB / 1.07 GB, free: 8.258 MB / 0.8262 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 8.969e-05/0.2731, allocations: 69.09 kB / 1.07 GB, free: 8.172 MB / 0.8262 GB Notification: Performance of postOpt removeConstants (simulation): time 4.072e-05/0.2732, allocations: 81.23 kB / 1.07 GB, free: 8.074 MB / 0.8262 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 9.578e-06/0.2732, allocations: 0 / 1.07 GB, free: 8.074 MB / 0.8262 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 1.457e-05/0.2732, allocations: 0 / 1.07 GB, free: 8.074 MB / 0.8262 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 1.355e-05/0.2732, allocations: 3.938 kB / 1.07 GB, free: 8.07 MB / 0.8262 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.408e-06/0.2732, allocations: 4 kB / 1.07 GB, free: 8.066 MB / 0.8262 GB Notification: Performance of sorting global known variables: time 3.545e-05/0.2733, allocations: 75.28 kB / 1.07 GB, free: 7.992 MB / 0.8262 GB Notification: Performance of sort global known variables: time 1.3e-07/0.2733, allocations: 0 / 1.07 GB, free: 7.992 MB / 0.8262 GB Notification: Performance of remove unused functions: time 0.0002085/0.2735, allocations: 15.94 kB / 1.07 GB, free: 7.977 MB / 0.8262 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.0004241/0.2739, allocations: 0.613 MB / 1.07 GB, free: 7.332 MB / 0.8262 GB Notification: Performance of simCode: created initialization part: time 0.0001628/0.2741, allocations: 23.92 kB / 1.07 GB, free: 7.309 MB / 0.8262 GB Notification: Performance of simCode: created event and clocks part: time 1.873e-06/0.2741, allocations: 0 / 1.07 GB, free: 7.309 MB / 0.8262 GB Notification: Performance of simCode: created simulation system equations: time 9.327e-05/0.2742, allocations: 15.98 kB / 1.07 GB, free: 7.293 MB / 0.8262 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001402/0.2744, allocations: 12.09 kB / 1.07 GB, free: 7.281 MB / 0.8262 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0004081/0.2748, allocations: 139.6 kB / 1.071 GB, free: 7.105 MB / 0.8262 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002945/0.2751, allocations: 0.669 MB / 1.071 GB, free: 6.41 MB / 0.8262 GB Notification: Performance of simCode: alias equations: time 1.678e-05/0.2751, allocations: 4 kB / 1.071 GB, free: 6.406 MB / 0.8262 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 2.526e-05/0.2751, allocations: 11.42 kB / 1.071 GB, free: 6.395 MB / 0.8262 GB Notification: Performance of SimCode: time 2.034e-06/0.2751, allocations: 0 / 1.071 GB, free: 6.395 MB / 0.8262 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02327/0.2984, allocations: 1.352 MB / 1.073 GB, free: 5.242 MB / 0.8262 GB Notification: Performance of buildModelFMU: Generate platform static: time 10.89/11.19, allocations: 10.06 kB / 1.073 GB, free: 5.234 MB / 0.8262 GB (rm -f Buildings_11_Buildings.Fluid.BaseClasses.FlowModels.Validation.InvertingBasicFlowFunction_m_flow.pipe ; mkfifo Buildings_11_Buildings.Fluid.BaseClasses.FlowModels.Validation.InvertingBasicFlowFunction_m_flow.pipe ; head -c 1048576 < Buildings_11_Buildings.Fluid.BaseClasses.FlowModels.Validation.InvertingBasicFlowFunction_m_flow.pipe >> ../files/Buildings_11_Buildings.Fluid.BaseClasses.FlowModels.Validation.InvertingBasicFlowFunction_m_flow.sim & python3 -m fmpy simulate --output-file Buildings_11_Buildings.Fluid.BaseClasses.FlowModels.Validation.InvertingBasicFlowFunction_m_flow_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_InvertingBasicFlowFunction_m_flow.fmu > Buildings_11_Buildings.Fluid.BaseClasses.FlowModels.Validation.InvertingBasicFlowFunction_m_flow.pipe 2>&1) diffSimulationResults("Buildings_11_Buildings.Fluid.BaseClasses.FlowModels.Validation.InvertingBasicFlowFunction_m_flow_res.csv","/mnt/ReferenceFiles/Buildings/csv/maint_11.x/Buildings_Fluid_BaseClasses_FlowModels_Validation_InvertingBasicFlowFunction_m_flow.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Buildings_11_Buildings.Fluid.BaseClasses.FlowModels.Validation.InvertingBasicFlowFunction_m_flow.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches