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.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.1.0+maint.om/package.mo): time 0.001729/0.001729, allocations: 103 kB / 16.45 MB, free: 6.449 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo): time 0.001905/0.001905, allocations: 212.9 kB / 19.43 MB, free: 3.637 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo): time 1.563/1.563, allocations: 230.6 MB / 252.8 MB, free: 9.117 MB / 206.1 MB " [Timeout remaining time 178] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 11.1.1-maint.11.x/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 11.1.1-maint.11.x/package.mo): time 2.898/2.898, allocations: 476.7 MB / 0.7672 GB, free: 5.207 MB / 0.6231 GB " [Timeout remaining time 176] Using package Buildings with version 11.1.1 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 11.1.1-maint.11.x/package.mo) Using package Modelica with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo) Using package Complex with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo) Using package ModelicaServices with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.1.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"}) [Timeout 300] "Notification: Buildings requested package Modelica of version 4.0.0. Modelica 4.1.0 is used instead which states that it is fully compatible without conversion script needed. Notification: Performance of FrontEnd - loaded program: time 0.002106/0.002106, allocations: 75.89 kB / 1.112 GB, free: 1.543 MB / 0.9044 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.9754/0.9775, allocations: 169.9 MB / 1.278 GB, free: 13.44 MB / 0.9825 GB Notification: Performance of NFInst.instantiate(Buildings.Fluid.BaseClasses.FlowModels.Validation.InverseFlowFunctions): time 0.002857/0.9803, allocations: 1.312 MB / 1.28 GB, free: 12.12 MB / 0.9825 GB Notification: Performance of NFInst.instExpressions: time 0.001126/0.9815, allocations: 0.5994 MB / 1.28 GB, free: 11.52 MB / 0.9825 GB Notification: Performance of NFInst.updateImplicitVariability: time 3.279e-05/0.9815, allocations: 0 / 1.28 GB, free: 11.52 MB / 0.9825 GB Notification: Performance of NFTyping.typeComponents: time 2.142e-05/0.9815, allocations: 3.938 kB / 1.28 GB, free: 11.51 MB / 0.9825 GB Notification: Performance of NFTyping.typeBindings: time 5.257e-05/0.9816, allocations: 7.984 kB / 1.28 GB, free: 11.5 MB / 0.9825 GB Notification: Performance of NFTyping.typeClassSections: time 0.0006532/0.9822, allocations: 143.4 kB / 1.28 GB, free: 11.36 MB / 0.9825 GB Notification: Performance of NFFlatten.flatten: time 7.184e-05/0.9823, allocations: 23.86 kB / 1.28 GB, free: 11.34 MB / 0.9825 GB Notification: Performance of NFFlatten.resolveConnections: time 3.893e-05/0.9823, allocations: 4 kB / 1.28 GB, free: 11.34 MB / 0.9825 GB Notification: Performance of NFEvalConstants.evaluate: time 2.594e-05/0.9824, allocations: 11.94 kB / 1.28 GB, free: 11.32 MB / 0.9825 GB Notification: Performance of NFSimplifyModel.simplify: time 6.316e-05/0.9824, allocations: 11.98 kB / 1.28 GB, free: 11.31 MB / 0.9825 GB Notification: Performance of NFPackage.collectConstants: time 1.297e-05/0.9824, allocations: 7.922 kB / 1.28 GB, free: 11.3 MB / 0.9825 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0005736/0.983, allocations: 335.4 kB / 1.281 GB, free: 10.98 MB / 0.9825 GB Notification: Performance of NFScalarize.scalarize: time 1.516e-05/0.983, allocations: 7.938 kB / 1.281 GB, free: 10.97 MB / 0.9825 GB Notification: Performance of NFVerifyModel.verify: time 3.042e-05/0.9831, allocations: 11.94 kB / 1.281 GB, free: 10.96 MB / 0.9825 GB Notification: Performance of NFConvertDAE.convert: time 0.0003088/0.9834, allocations: 141.4 kB / 1.281 GB, free: 10.82 MB / 0.9825 GB Notification: Performance of FrontEnd - DAE generated: time 4.198e-06/0.9834, allocations: 0 / 1.281 GB, free: 10.82 MB / 0.9825 GB Notification: Performance of FrontEnd: time 1.603e-06/0.9834, allocations: 0 / 1.281 GB, free: 10.82 MB / 0.9825 GB Notification: Performance of Transformations before backend: time 5.58e-06/0.9834, allocations: 0 / 1.281 GB, free: 10.82 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.0005704/0.9839, allocations: 371.1 kB / 1.281 GB, free: 10.41 MB / 0.9825 GB Notification: Performance of prepare preOptimizeDAE: time 4.389e-05/0.984, allocations: 8.031 kB / 1.281 GB, free: 10.4 MB / 0.9825 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 4.495e-05/0.984, allocations: 38.69 kB / 1.281 GB, free: 10.35 MB / 0.9825 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.037e-05/0.9841, allocations: 4.891 kB / 1.281 GB, free: 10.35 MB / 0.9825 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001573/0.9842, allocations: 160.4 kB / 1.281 GB, free: 10.15 MB / 0.9825 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.189e-05/0.9842, allocations: 4.375 kB / 1.281 GB, free: 10.15 MB / 0.9825 GB Notification: Performance of preOpt expandDerOperator (simulation): time 1.224e-05/0.9842, allocations: 384 / 1.281 GB, free: 10.15 MB / 0.9825 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001263/0.9844, allocations: 42.25 kB / 1.281 GB, free: 10.1 MB / 0.9825 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.019e-05/0.9844, allocations: 7.938 kB / 1.281 GB, free: 10.09 MB / 0.9825 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.248e-05/0.9844, allocations: 4 kB / 1.281 GB, free: 10.09 MB / 0.9825 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.661e-06/0.9844, allocations: 0 / 1.281 GB, free: 10.09 MB / 0.9825 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 5.476e-05/0.9845, allocations: 11.98 kB / 1.281 GB, free: 10.08 MB / 0.9825 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.000411/0.9849, allocations: 260.8 kB / 1.282 GB, free: 9.773 MB / 0.9825 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0002281/0.9851, allocations: 46.56 kB / 1.282 GB, free: 9.719 MB / 0.9825 GB Notification: Performance of preOpt resolveLoops (simulation): time 3.904e-05/0.9851, allocations: 20.86 kB / 1.282 GB, free: 9.695 MB / 0.9825 GB Notification: Performance of preOpt evalFunc (simulation): time 2.13e-05/0.9852, allocations: 0 / 1.282 GB, free: 9.695 MB / 0.9825 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.864e-05/0.9852, allocations: 34.55 kB / 1.282 GB, free: 9.652 MB / 0.9825 GB Notification: Performance of pre-optimization done (n=4): time 8.01e-07/0.9852, allocations: 0 / 1.282 GB, free: 9.652 MB / 0.9825 GB Notification: Performance of matching and sorting (n=4): time 0.0001998/0.9854, allocations: 65.58 kB / 1.282 GB, free: 9.582 MB / 0.9825 GB Notification: Performance of inlineWhenForInitialization (initialization): time 3.966e-05/0.9854, allocations: 51.41 kB / 1.282 GB, free: 9.52 MB / 0.9825 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 8.086e-05/0.9855, allocations: 97.86 kB / 1.282 GB, free: 9.414 MB / 0.9825 GB Notification: Performance of collectPreVariables (initialization): time 2.528e-05/0.9855, allocations: 25.7 kB / 1.282 GB, free: 9.383 MB / 0.9825 GB Notification: Performance of collectInitialEqns (initialization): time 5.755e-05/0.9856, allocations: 85.84 kB / 1.282 GB, free: 9.297 MB / 0.9825 GB Notification: Performance of collectInitialBindings (initialization): time 1.941e-05/0.9856, allocations: 19.89 kB / 1.282 GB, free: 9.277 MB / 0.9825 GB Notification: Performance of simplifyInitialFunctions (initialization): time 3.619e-05/0.9856, allocations: 13.72 kB / 1.282 GB, free: 9.258 MB / 0.9825 GB Notification: Performance of setup shared object (initialization): time 0.0001425/0.9858, allocations: 314.8 kB / 1.282 GB, free: 8.941 MB / 0.9825 GB Notification: Performance of preBalanceInitialSystem (initialization): time 2.254e-05/0.9858, allocations: 4 kB / 1.282 GB, free: 8.938 MB / 0.9825 GB Notification: Performance of partitionIndependentBlocks (initialization): time 4.553e-05/0.9858, allocations: 29.7 kB / 1.282 GB, free: 8.902 MB / 0.9825 GB Notification: Performance of analyzeInitialSystem (initialization): time 6.087e-05/0.9859, allocations: 34.03 kB / 1.282 GB, free: 8.863 MB / 0.9825 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.328e-06/0.9859, allocations: 3.938 kB / 1.282 GB, free: 8.859 MB / 0.9825 GB Notification: Performance of matching and sorting (n=5) (initialization): time 0.0001021/0.986, allocations: 53.73 kB / 1.283 GB, free: 8.801 MB / 0.9825 GB Notification: Performance of prepare postOptimizeDAE: time 1.49e-05/0.986, allocations: 4 kB / 1.283 GB, free: 8.797 MB / 0.9825 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.644e-06/0.986, allocations: 7.922 kB / 1.283 GB, free: 8.789 MB / 0.9825 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.535e-05/0.9861, allocations: 4 kB / 1.283 GB, free: 8.785 MB / 0.9825 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 5.131e-05/0.9861, allocations: 11.92 kB / 1.283 GB, free: 8.773 MB / 0.9825 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 6.052e-06/0.9861, allocations: 4 kB / 1.283 GB, free: 8.77 MB / 0.9825 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 4.188e-05/0.9862, allocations: 3.953 kB / 1.283 GB, free: 8.766 MB / 0.9825 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.272e-06/0.9862, allocations: 0 / 1.283 GB, free: 8.766 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 0.0001015/0.9863, allocations: 128.5 kB / 1.283 GB, free: 8.633 MB / 0.9825 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.569e-05/0.9863, allocations: 0 / 1.283 GB, free: 8.633 MB / 0.9825 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001593/0.9864, allocations: 61.17 kB / 1.283 GB, free: 8.559 MB / 0.9825 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.345e-06/0.9864, allocations: 0 / 1.283 GB, free: 8.559 MB / 0.9825 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.448e-06/0.9865, allocations: 3.938 kB / 1.283 GB, free: 8.555 MB / 0.9825 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.585e-06/0.9865, allocations: 0 / 1.283 GB, free: 8.555 MB / 0.9825 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001883/0.9866, allocations: 165.6 kB / 1.283 GB, free: 8.344 MB / 0.9825 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.062e-06/0.9866, allocations: 0 / 1.283 GB, free: 8.344 MB / 0.9825 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 3.722e-05/0.9867, allocations: 8 kB / 1.283 GB, free: 8.336 MB / 0.9825 GB Notification: Performance of postOpt tearingSystem (simulation): time 2.053e-06/0.9867, allocations: 0 / 1.283 GB, free: 8.336 MB / 0.9825 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 9.808e-06/0.9867, allocations: 4 kB / 1.283 GB, free: 8.332 MB / 0.9825 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.392e-06/0.9867, allocations: 0 / 1.283 GB, free: 8.332 MB / 0.9825 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 7.81e-07/0.9867, allocations: 0 / 1.283 GB, free: 8.332 MB / 0.9825 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001544/0.9869, allocations: 147.5 kB / 1.283 GB, free: 8.172 MB / 0.9825 GB Notification: Performance of postOpt removeConstants (simulation): time 5.305e-05/0.9869, allocations: 81.06 kB / 1.283 GB, free: 8.074 MB / 0.9825 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.857e-05/0.9869, allocations: 7.984 kB / 1.283 GB, free: 8.066 MB / 0.9825 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 4.916e-05/0.987, allocations: 7.938 kB / 1.283 GB, free: 8.059 MB / 0.9825 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 2.136e-05/0.987, allocations: 4 kB / 1.283 GB, free: 8.055 MB / 0.9825 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.686e-06/0.987, allocations: 0 / 1.283 GB, free: 8.055 MB / 0.9825 GB Notification: Performance of sorting global known variables: time 5.273e-05/0.987, allocations: 83.22 kB / 1.283 GB, free: 7.973 MB / 0.9825 GB Notification: Performance of sort global known variables: time 7.1e-08/0.987, allocations: 0 / 1.283 GB, free: 7.973 MB / 0.9825 GB Notification: Performance of remove unused functions: time 0.0002588/0.9873, allocations: 15.94 kB / 1.283 GB, free: 7.957 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.0005785/0.9879, allocations: 0.7084 MB / 1.284 GB, free: 7.219 MB / 0.9825 GB Notification: Performance of simCode: created initialization part: time 0.0001141/0.988, allocations: 27.92 kB / 1.284 GB, free: 7.191 MB / 0.9825 GB Notification: Performance of simCode: created event and clocks part: time 1.813e-06/0.988, allocations: 0 / 1.284 GB, free: 7.191 MB / 0.9825 GB Notification: Performance of simCode: created simulation system equations: time 2.026e-05/0.988, allocations: 8 kB / 1.284 GB, free: 7.184 MB / 0.9825 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002184/0.9882, allocations: 4 kB / 1.284 GB, free: 7.18 MB / 0.9825 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0005022/0.9887, allocations: 164.1 kB / 1.284 GB, free: 6.98 MB / 0.9825 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003193/0.9891, allocations: 0.6768 MB / 1.285 GB, free: 6.277 MB / 0.9825 GB Notification: Performance of simCode: alias equations: time 3.364e-05/0.9891, allocations: 7.984 kB / 1.285 GB, free: 6.27 MB / 0.9825 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 3.32e-05/0.9891, allocations: 11.44 kB / 1.285 GB, free: 6.258 MB / 0.9825 GB Notification: Performance of SimCode: time 3.9e-07/0.9891, allocations: 3.938 kB / 1.285 GB, free: 6.254 MB / 0.9825 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02779/1.017, allocations: 1.426 MB / 1.286 GB, free: 4.977 MB / 0.9825 GB Notification: Performance of buildModelFMU: Generate platform static: time 8.737/9.754, allocations: 2 kB / 1.286 GB, free: 4.977 MB / 0.9825 GB " [Timeout remaining time 290] (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) [Timeout 420.0] 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) [Timeout 300] "Error: Could not read variable m_flow_nominal in file Buildings_11_Buildings.Fluid.BaseClasses.FlowModels.Validation.InverseFlowFunctions_res.csv. Warning: Get data of variable m_flow_nominal from file Buildings_11_Buildings.Fluid.BaseClasses.FlowModels.Validation.InverseFlowFunctions_res.csv failed! " [Timeout remaining time 300] Reference file matches [Calling sys.exit(0), Time elapsed: 16.27085792995058]