Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Buildings_11_Buildings.Fluid.BaseClasses.FlowModels.Validation.InvertingBasicFlowFunction_dp.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.001886/0.001886, allocations: 109.2 kB / 18.94 MB, free: 2.949 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.002725/0.002725, allocations: 219.5 kB / 22.26 MB, free: 5.125 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.683/1.683, allocations: 230.6 MB / 256 MB, free: 7.98 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 3.085/3.085, allocations: 476.7 MB / 0.7707 GB, free: 4.258 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.InvertingBasicFlowFunction_dp,fileNamePrefix="Buildings_11_Buildings_Fluid_BaseClasses_FlowModels_Validation_InvertingBasicFlowFunction_dp",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Buildings.Fluid.BaseClasses.FlowModels.Validation.InvertingBasicFlowFunction_dp,fileNamePrefix="Buildings_11_Buildings_Fluid_BaseClasses_FlowModels_Validation_InvertingBasicFlowFunction_dp",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.002051/0.002051, allocations: 63.67 kB / 1.117 GB, free: 40.32 MB / 0.9044 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3837/0.3858, allocations: 170 MB / 1.283 GB, free: 11.68 MB / 0.9825 GB Notification: Performance of NFInst.instantiate(Buildings.Fluid.BaseClasses.FlowModels.Validation.InvertingBasicFlowFunction_dp): time 0.002756/0.3885, allocations: 1.276 MB / 1.285 GB, free: 10.4 MB / 0.9825 GB Notification: Performance of NFInst.instExpressions: time 0.001129/0.3896, allocations: 0.5896 MB / 1.285 GB, free: 9.812 MB / 0.9825 GB Notification: Performance of NFInst.updateImplicitVariability: time 3.381e-05/0.3897, allocations: 0 / 1.285 GB, free: 9.812 MB / 0.9825 GB Notification: Performance of NFTyping.typeComponents: time 1.676e-05/0.3897, allocations: 0 / 1.285 GB, free: 9.812 MB / 0.9825 GB Notification: Performance of NFTyping.typeBindings: time 4.976e-05/0.3897, allocations: 7.938 kB / 1.285 GB, free: 9.805 MB / 0.9825 GB Notification: Performance of NFTyping.typeClassSections: time 0.0005516/0.3903, allocations: 140.8 kB / 1.285 GB, free: 9.668 MB / 0.9825 GB Notification: Performance of NFFlatten.flatten: time 7.98e-05/0.3904, allocations: 15.94 kB / 1.285 GB, free: 9.652 MB / 0.9825 GB Notification: Performance of NFFlatten.resolveConnections: time 4.22e-05/0.3904, allocations: 0 / 1.285 GB, free: 9.652 MB / 0.9825 GB Notification: Performance of NFEvalConstants.evaluate: time 2.224e-05/0.3904, allocations: 11.92 kB / 1.285 GB, free: 9.641 MB / 0.9825 GB Notification: Performance of NFSimplifyModel.simplify: time 5.019e-05/0.3905, allocations: 3.984 kB / 1.285 GB, free: 9.637 MB / 0.9825 GB Notification: Performance of NFPackage.collectConstants: time 1.21e-05/0.3905, allocations: 0 / 1.285 GB, free: 9.637 MB / 0.9825 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0005212/0.391, allocations: 339.3 kB / 1.286 GB, free: 9.305 MB / 0.9825 GB Notification: Performance of NFScalarize.scalarize: time 1.48e-05/0.391, allocations: 7.984 kB / 1.286 GB, free: 9.297 MB / 0.9825 GB Notification: Performance of NFVerifyModel.verify: time 2.544e-05/0.3911, allocations: 7.938 kB / 1.286 GB, free: 9.289 MB / 0.9825 GB Notification: Performance of NFConvertDAE.convert: time 0.0002603/0.3913, allocations: 139.2 kB / 1.286 GB, free: 9.156 MB / 0.9825 GB Notification: Performance of FrontEnd - DAE generated: time 4.689e-06/0.3913, allocations: 0 / 1.286 GB, free: 9.156 MB / 0.9825 GB Notification: Performance of FrontEnd: time 1.874e-06/0.3913, allocations: 0 / 1.286 GB, free: 9.156 MB / 0.9825 GB Notification: Performance of Transformations before backend: time 6.953e-06/0.3913, allocations: 4 kB / 1.286 GB, free: 9.152 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.0004315/0.3918, allocations: 274 kB / 1.286 GB, free: 8.852 MB / 0.9825 GB Notification: Performance of prepare preOptimizeDAE: time 5.065e-05/0.3918, allocations: 12.02 kB / 1.286 GB, free: 8.84 MB / 0.9825 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 4.927e-05/0.3919, allocations: 34.75 kB / 1.286 GB, free: 8.797 MB / 0.9825 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 2.558e-05/0.3919, allocations: 4.891 kB / 1.286 GB, free: 8.793 MB / 0.9825 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001212/0.392, allocations: 110.5 kB / 1.286 GB, free: 8.66 MB / 0.9825 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.39e-05/0.392, allocations: 8.359 kB / 1.286 GB, free: 8.652 MB / 0.9825 GB Notification: Performance of preOpt expandDerOperator (simulation): time 7.143e-06/0.392, allocations: 384 / 1.286 GB, free: 8.652 MB / 0.9825 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001024/0.3921, allocations: 30.27 kB / 1.286 GB, free: 8.617 MB / 0.9825 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.254e-05/0.3921, allocations: 3.938 kB / 1.286 GB, free: 8.613 MB / 0.9825 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 7.504e-06/0.3922, allocations: 0 / 1.286 GB, free: 8.613 MB / 0.9825 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.138e-06/0.3922, allocations: 0 / 1.286 GB, free: 8.613 MB / 0.9825 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 2.979e-05/0.3922, allocations: 11.98 kB / 1.286 GB, free: 8.602 MB / 0.9825 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0001695/0.3924, allocations: 116.8 kB / 1.286 GB, free: 8.445 MB / 0.9825 GB Notification: Performance of preOpt comSubExp (simulation): time 6.094e-05/0.3924, allocations: 30.55 kB / 1.286 GB, free: 8.406 MB / 0.9825 GB Notification: Performance of preOpt resolveLoops (simulation): time 2.371e-05/0.3924, allocations: 12.91 kB / 1.286 GB, free: 8.391 MB / 0.9825 GB Notification: Performance of preOpt evalFunc (simulation): time 2.01e-05/0.3925, allocations: 0 / 1.286 GB, free: 8.391 MB / 0.9825 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.375e-05/0.3925, allocations: 34.56 kB / 1.287 GB, free: 8.348 MB / 0.9825 GB Notification: Performance of pre-optimization done (n=2): time 7.32e-07/0.3925, allocations: 0 / 1.287 GB, free: 8.348 MB / 0.9825 GB Notification: Performance of matching and sorting (n=2): time 0.0001715/0.3927, allocations: 45.64 kB / 1.287 GB, free: 8.297 MB / 0.9825 GB Notification: Performance of inlineWhenForInitialization (initialization): time 4.637e-05/0.3927, allocations: 51.41 kB / 1.287 GB, free: 8.234 MB / 0.9825 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 7.753e-05/0.3928, allocations: 97.97 kB / 1.287 GB, free: 8.129 MB / 0.9825 GB Notification: Performance of collectPreVariables (initialization): time 2.058e-05/0.3928, allocations: 33.64 kB / 1.287 GB, free: 8.09 MB / 0.9825 GB Notification: Performance of collectInitialEqns (initialization): time 4.978e-05/0.3929, allocations: 84.14 kB / 1.287 GB, free: 8.004 MB / 0.9825 GB Notification: Performance of collectInitialBindings (initialization): time 3.01e-05/0.3929, allocations: 7.891 kB / 1.287 GB, free: 7.996 MB / 0.9825 GB Notification: Performance of simplifyInitialFunctions (initialization): time 2.975e-05/0.3929, allocations: 13.72 kB / 1.287 GB, free: 7.977 MB / 0.9825 GB Notification: Performance of setup shared object (initialization): time 0.0001417/0.3931, allocations: 310.8 kB / 1.287 GB, free: 7.664 MB / 0.9825 GB Notification: Performance of preBalanceInitialSystem (initialization): time 1.518e-05/0.3931, allocations: 4 kB / 1.287 GB, free: 7.66 MB / 0.9825 GB Notification: Performance of partitionIndependentBlocks (initialization): time 1.567e-05/0.3931, allocations: 12.11 kB / 1.287 GB, free: 7.648 MB / 0.9825 GB Notification: Performance of analyzeInitialSystem (initialization): time 2.855e-05/0.3931, allocations: 12.92 kB / 1.287 GB, free: 7.633 MB / 0.9825 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.744e-06/0.3931, allocations: 0 / 1.287 GB, free: 7.633 MB / 0.9825 GB Notification: Performance of matching and sorting (n=2) (initialization): time 6.562e-05/0.3932, allocations: 37.7 kB / 1.287 GB, free: 7.59 MB / 0.9825 GB Notification: Performance of prepare postOptimizeDAE: time 1.651e-05/0.3932, allocations: 19.81 kB / 1.287 GB, free: 7.57 MB / 0.9825 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.629e-06/0.3932, allocations: 0 / 1.287 GB, free: 7.57 MB / 0.9825 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.346e-05/0.3932, allocations: 0 / 1.287 GB, free: 7.57 MB / 0.9825 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001677/0.3934, allocations: 15.92 kB / 1.287 GB, free: 7.555 MB / 0.9825 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0004257/0.3938, allocations: 0.5822 MB / 1.288 GB, free: 6.949 MB / 0.9825 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 1.677e-05/0.3938, allocations: 0 / 1.288 GB, free: 6.949 MB / 0.9825 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.651e-06/0.3938, allocations: 0 / 1.288 GB, free: 6.949 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 9.058e-05/0.3939, allocations: 116.2 kB / 1.288 GB, free: 6.828 MB / 0.9825 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 8.546e-06/0.3939, allocations: 3.953 kB / 1.288 GB, free: 6.824 MB / 0.9825 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001252/0.3941, allocations: 52.94 kB / 1.288 GB, free: 6.77 MB / 0.9825 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.292e-06/0.3941, allocations: 4.125 kB / 1.288 GB, free: 6.766 MB / 0.9825 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.639e-06/0.3941, allocations: 0 / 1.288 GB, free: 6.766 MB / 0.9825 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.294e-06/0.3941, allocations: 0 / 1.288 GB, free: 6.766 MB / 0.9825 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001129/0.3942, allocations: 124.7 kB / 1.288 GB, free: 6.602 MB / 0.9825 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 8.71e-07/0.3942, allocations: 0 / 1.288 GB, free: 6.602 MB / 0.9825 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 7.043e-05/0.3943, allocations: 11.98 kB / 1.288 GB, free: 6.59 MB / 0.9825 GB Notification: Performance of postOpt tearingSystem (simulation): time 1.423e-06/0.3943, allocations: 0 / 1.288 GB, free: 6.59 MB / 0.9825 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 6.923e-06/0.3943, allocations: 0 / 1.288 GB, free: 6.59 MB / 0.9825 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0003464/0.3946, allocations: 0.5861 MB / 1.289 GB, free: 5.98 MB / 0.9825 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.106e-06/0.3946, allocations: 3.938 kB / 1.289 GB, free: 5.977 MB / 0.9825 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 8.125e-05/0.3947, allocations: 65.06 kB / 1.289 GB, free: 5.895 MB / 0.9825 GB Notification: Performance of postOpt removeConstants (simulation): time 7.704e-06/0.3947, allocations: 4 kB / 1.289 GB, free: 5.891 MB / 0.9825 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.365e-05/0.3947, allocations: 4 kB / 1.289 GB, free: 5.887 MB / 0.9825 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 1.333e-05/0.3947, allocations: 0 / 1.289 GB, free: 5.887 MB / 0.9825 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 2.028e-05/0.3948, allocations: 3.938 kB / 1.289 GB, free: 5.883 MB / 0.9825 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.365e-06/0.3948, allocations: 4.125 kB / 1.289 GB, free: 5.879 MB / 0.9825 GB Notification: Performance of sorting global known variables: time 4.208e-05/0.3948, allocations: 79.28 kB / 1.289 GB, free: 5.801 MB / 0.9825 GB Notification: Performance of sort global known variables: time 7e-08/0.3948, allocations: 0 / 1.289 GB, free: 5.801 MB / 0.9825 GB Notification: Performance of remove unused functions: time 0.0001866/0.395, allocations: 7.938 kB / 1.289 GB, free: 5.793 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.0004531/0.3954, allocations: 0.6203 MB / 1.289 GB, free: 5.141 MB / 0.9825 GB Notification: Performance of simCode: created initialization part: time 0.0001625/0.3956, allocations: 19.98 kB / 1.289 GB, free: 5.121 MB / 0.9825 GB Notification: Performance of simCode: created event and clocks part: time 2.806e-06/0.3956, allocations: 0 / 1.289 GB, free: 5.121 MB / 0.9825 GB Notification: Performance of simCode: created simulation system equations: time 7.605e-05/0.3957, allocations: 11.98 kB / 1.289 GB, free: 5.109 MB / 0.9825 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001409/0.3958, allocations: 11.67 kB / 1.289 GB, free: 5.102 MB / 0.9825 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0005012/0.3963, allocations: 140.1 kB / 1.29 GB, free: 4.922 MB / 0.9825 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003007/0.3966, allocations: 0.6805 MB / 1.29 GB, free: 4.215 MB / 0.9825 GB Notification: Performance of simCode: alias equations: time 1.656e-05/0.3966, allocations: 7.922 kB / 1.29 GB, free: 4.207 MB / 0.9825 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 2.758e-05/0.3967, allocations: 7.438 kB / 1.29 GB, free: 4.199 MB / 0.9825 GB Notification: Performance of SimCode: time 2.8e-07/0.3967, allocations: 0 / 1.29 GB, free: 4.199 MB / 0.9825 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02817/0.4248, allocations: 1.385 MB / 1.292 GB, free: 2.953 MB / 0.9825 GB Notification: Performance of buildModelFMU: Generate platform static: time 12.49/12.92, allocations: 17.25 kB / 1.292 GB, free: 2.941 MB / 0.9825 GB " [Timeout remaining time 286] (rm -f Buildings_11_Buildings.Fluid.BaseClasses.FlowModels.Validation.InvertingBasicFlowFunction_dp.pipe ; mkfifo Buildings_11_Buildings.Fluid.BaseClasses.FlowModels.Validation.InvertingBasicFlowFunction_dp.pipe ; head -c 1048576 < Buildings_11_Buildings.Fluid.BaseClasses.FlowModels.Validation.InvertingBasicFlowFunction_dp.pipe >> ../files/Buildings_11_Buildings.Fluid.BaseClasses.FlowModels.Validation.InvertingBasicFlowFunction_dp.sim & python3 -m fmpy simulate --output-file Buildings_11_Buildings.Fluid.BaseClasses.FlowModels.Validation.InvertingBasicFlowFunction_dp_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_dp.fmu > Buildings_11_Buildings.Fluid.BaseClasses.FlowModels.Validation.InvertingBasicFlowFunction_dp.pipe 2>&1) [Timeout 420.0] diffSimulationResults("Buildings_11_Buildings.Fluid.BaseClasses.FlowModels.Validation.InvertingBasicFlowFunction_dp_res.csv","/mnt/ReferenceFiles/Buildings/csv/maint_11.x/Buildings_Fluid_BaseClasses_FlowModels_Validation_InvertingBasicFlowFunction_dp.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Buildings_11_Buildings.Fluid.BaseClasses.FlowModels.Validation.InvertingBasicFlowFunction_dp.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) [Timeout 300] "" [Timeout remaining time 300] Reference file matches [Calling sys.exit(0), Time elapsed: 20.46533940900008]