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.001521/0.001521, allocations: 99.64 kB / 18.94 MB, free: 2.551 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.002116/0.002116, allocations: 212.2 kB / 22.25 MB, free: 4.855 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.573/1.573, allocations: 230.6 MB / 256 MB, free: 7.797 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.004/3.004, allocations: 476 MB / 0.7699 GB, free: 4.734 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.002128/0.002128, allocations: 73.42 kB / 1.117 GB, free: 9.164 MB / 0.8419 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.4143/0.4165, allocations: 169.9 MB / 1.283 GB, free: 4.203 MB / 0.9825 GB Notification: Performance of NFInst.instantiate(Buildings.Fluid.BaseClasses.FlowModels.Validation.InvertingBasicFlowFunction_dp): time 0.002734/0.4192, allocations: 1.271 MB / 1.284 GB, free: 2.922 MB / 0.9825 GB Notification: Performance of NFInst.instExpressions: time 0.001071/0.4203, allocations: 0.5156 MB / 1.284 GB, free: 2.406 MB / 0.9825 GB Notification: Performance of NFInst.updateImplicitVariability: time 3.002e-05/0.4203, allocations: 0 / 1.284 GB, free: 2.406 MB / 0.9825 GB Notification: Performance of NFTyping.typeComponents: time 2.288e-05/0.4203, allocations: 0 / 1.284 GB, free: 2.406 MB / 0.9825 GB Notification: Performance of NFTyping.typeBindings: time 4.236e-05/0.4204, allocations: 0 / 1.284 GB, free: 2.406 MB / 0.9825 GB Notification: Performance of NFTyping.typeClassSections: time 0.0005786/0.4209, allocations: 151.1 kB / 1.284 GB, free: 2.262 MB / 0.9825 GB Notification: Performance of NFFlatten.flatten: time 5.884e-05/0.421, allocations: 15.92 kB / 1.284 GB, free: 2.246 MB / 0.9825 GB Notification: Performance of NFFlatten.resolveConnections: time 5.337e-05/0.421, allocations: 0 / 1.284 GB, free: 2.246 MB / 0.9825 GB Notification: Performance of NFEvalConstants.evaluate: time 2.128e-05/0.4211, allocations: 4 kB / 1.284 GB, free: 2.242 MB / 0.9825 GB Notification: Performance of NFSimplifyModel.simplify: time 4.956e-05/0.4211, allocations: 3.938 kB / 1.284 GB, free: 2.238 MB / 0.9825 GB Notification: Performance of NFPackage.collectConstants: time 1.17e-05/0.4211, allocations: 0 / 1.284 GB, free: 2.238 MB / 0.9825 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0004486/0.4216, allocations: 275.5 kB / 1.285 GB, free: 1.969 MB / 0.9825 GB Notification: Performance of NFScalarize.scalarize: time 1.376e-05/0.4216, allocations: 0 / 1.285 GB, free: 1.969 MB / 0.9825 GB Notification: Performance of NFVerifyModel.verify: time 2.046e-05/0.4216, allocations: 4 kB / 1.285 GB, free: 1.965 MB / 0.9825 GB Notification: Performance of NFConvertDAE.convert: time 0.0002604/0.4219, allocations: 135.8 kB / 1.285 GB, free: 1.832 MB / 0.9825 GB Notification: Performance of FrontEnd - DAE generated: time 6.512e-06/0.4219, allocations: 8 kB / 1.285 GB, free: 1.824 MB / 0.9825 GB Notification: Performance of FrontEnd: time 1.362e-06/0.4219, allocations: 0 / 1.285 GB, free: 1.824 MB / 0.9825 GB Notification: Performance of Transformations before backend: time 6.423e-06/0.4219, allocations: 0 / 1.285 GB, free: 1.824 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.0004338/0.4223, allocations: 274 kB / 1.285 GB, free: 1.523 MB / 0.9825 GB Notification: Performance of prepare preOptimizeDAE: time 4.272e-05/0.4224, allocations: 8.031 kB / 1.285 GB, free: 1.516 MB / 0.9825 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 3.463e-05/0.4224, allocations: 30.75 kB / 1.285 GB, free: 1.477 MB / 0.9825 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 2.687e-05/0.4224, allocations: 4.938 kB / 1.285 GB, free: 1.473 MB / 0.9825 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001083/0.4225, allocations: 110.5 kB / 1.285 GB, free: 1.34 MB / 0.9825 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.453e-05/0.4225, allocations: 8.297 kB / 1.285 GB, free: 1.332 MB / 0.9825 GB Notification: Performance of preOpt expandDerOperator (simulation): time 1.321e-05/0.4226, allocations: 4.375 kB / 1.285 GB, free: 1.328 MB / 0.9825 GB Notification: Performance of preOpt clockPartitioning (simulation): time 9.731e-05/0.4227, allocations: 34.25 kB / 1.285 GB, free: 1.289 MB / 0.9825 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.042e-05/0.4227, allocations: 3.938 kB / 1.285 GB, free: 1.285 MB / 0.9825 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 7.855e-06/0.4227, allocations: 4 kB / 1.285 GB, free: 1.281 MB / 0.9825 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.829e-06/0.4227, allocations: 0 / 1.285 GB, free: 1.281 MB / 0.9825 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 2.333e-05/0.4227, allocations: 0 / 1.285 GB, free: 1.281 MB / 0.9825 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.000186/0.4229, allocations: 132.7 kB / 1.285 GB, free: 1.109 MB / 0.9825 GB Notification: Performance of preOpt comSubExp (simulation): time 7.259e-05/0.423, allocations: 30.55 kB / 1.285 GB, free: 1.07 MB / 0.9825 GB Notification: Performance of preOpt resolveLoops (simulation): time 1.888e-05/0.423, allocations: 4.859 kB / 1.286 GB, free: 1.062 MB / 0.9825 GB Notification: Performance of preOpt evalFunc (simulation): time 2.12e-05/0.423, allocations: 0 / 1.286 GB, free: 1.062 MB / 0.9825 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.1e-05/0.423, allocations: 34.62 kB / 1.286 GB, free: 1.02 MB / 0.9825 GB Notification: Performance of pre-optimization done (n=2): time 8.21e-07/0.423, allocations: 7.938 kB / 1.286 GB, free: 1.012 MB / 0.9825 GB Notification: Performance of matching and sorting (n=2): time 0.0001513/0.4232, allocations: 45.62 kB / 1.286 GB, free: 0.9609 MB / 0.9825 GB Notification: Performance of inlineWhenForInitialization (initialization): time 5.16e-05/0.4232, allocations: 51.41 kB / 1.286 GB, free: 0.8984 MB / 0.9825 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 7.473e-05/0.4233, allocations: 93.86 kB / 1.286 GB, free: 0.7969 MB / 0.9825 GB Notification: Performance of collectPreVariables (initialization): time 1.731e-05/0.4233, allocations: 25.7 kB / 1.286 GB, free: 0.7656 MB / 0.9825 GB Notification: Performance of collectInitialEqns (initialization): time 4.28e-05/0.4234, allocations: 80.14 kB / 1.286 GB, free: 0.6836 MB / 0.9825 GB Notification: Performance of collectInitialBindings (initialization): time 2.827e-05/0.4234, allocations: 11.95 kB / 1.286 GB, free: 0.6719 MB / 0.9825 GB Notification: Performance of simplifyInitialFunctions (initialization): time 2.753e-05/0.4234, allocations: 9.719 kB / 1.286 GB, free: 0.6562 MB / 0.9825 GB Notification: Performance of setup shared object (initialization): time 0.0001439/0.4236, allocations: 322.8 kB / 1.286 GB, free: 340 kB / 0.9825 GB Notification: Performance of preBalanceInitialSystem (initialization): time 1.209e-05/0.4236, allocations: 4.25 kB / 1.286 GB, free: 336 kB / 0.9825 GB Notification: Performance of partitionIndependentBlocks (initialization): time 1.089e-05/0.4236, allocations: 8 kB / 1.286 GB, free: 328 kB / 0.9825 GB Notification: Performance of analyzeInitialSystem (initialization): time 2.799e-05/0.4236, allocations: 8.859 kB / 1.286 GB, free: 316 kB / 0.9825 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.532e-06/0.4236, allocations: 0 / 1.286 GB, free: 316 kB / 0.9825 GB Notification: Performance of matching and sorting (n=2) (initialization): time 6.352e-05/0.4237, allocations: 37.7 kB / 1.286 GB, free: 272 kB / 0.9825 GB Notification: Performance of prepare postOptimizeDAE: time 1.625e-05/0.4237, allocations: 10.59 kB / 1.286 GB, free: 264 kB / 0.9825 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.901e-06/0.4237, allocations: 7.984 kB / 1.286 GB, free: 256 kB / 0.9825 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.31e-05/0.4237, allocations: 0 / 1.286 GB, free: 256 kB / 0.9825 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001517/0.4239, allocations: 8 kB / 1.286 GB, free: 248 kB / 0.9825 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0004313/0.4243, allocations: 0.5861 MB / 1.287 GB, free: 15.63 MB / 0.9981 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 1.64e-05/0.4243, allocations: 0 / 1.287 GB, free: 15.63 MB / 0.9981 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.18e-06/0.4243, allocations: 0 / 1.287 GB, free: 15.63 MB / 0.9981 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.628e-05/0.4244, allocations: 121.7 kB / 1.287 GB, free: 15.5 MB / 0.9981 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 8.837e-06/0.4244, allocations: 3.953 kB / 1.287 GB, free: 15.5 MB / 0.9981 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001124/0.4245, allocations: 52.88 kB / 1.287 GB, free: 15.45 MB / 0.9981 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.293e-06/0.4245, allocations: 0 / 1.287 GB, free: 15.45 MB / 0.9981 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.476e-06/0.4245, allocations: 0 / 1.287 GB, free: 15.45 MB / 0.9981 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.348e-06/0.4245, allocations: 8.125 kB / 1.287 GB, free: 15.44 MB / 0.9981 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001077/0.4247, allocations: 120.7 kB / 1.287 GB, free: 15.28 MB / 0.9981 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 7.71e-07/0.4247, allocations: 0 / 1.287 GB, free: 15.28 MB / 0.9981 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 7.073e-05/0.4247, allocations: 11.98 kB / 1.287 GB, free: 15.27 MB / 0.9981 GB Notification: Performance of postOpt tearingSystem (simulation): time 1.593e-06/0.4247, allocations: 0 / 1.287 GB, free: 15.27 MB / 0.9981 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 5.59e-06/0.4247, allocations: 4 kB / 1.287 GB, free: 15.26 MB / 0.9981 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0003469/0.4251, allocations: 0.5782 MB / 1.288 GB, free: 14.66 MB / 0.9981 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.216e-06/0.4251, allocations: 3.938 kB / 1.288 GB, free: 14.66 MB / 0.9981 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 7.985e-05/0.4252, allocations: 69.09 kB / 1.288 GB, free: 14.57 MB / 0.9981 GB Notification: Performance of postOpt removeConstants (simulation): time 5.019e-06/0.4252, allocations: 4.125 kB / 1.288 GB, free: 14.57 MB / 0.9981 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.029e-05/0.4252, allocations: 3.938 kB / 1.288 GB, free: 14.56 MB / 0.9981 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 1.579e-05/0.4252, allocations: 4 kB / 1.288 GB, free: 14.56 MB / 0.9981 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 2.294e-05/0.4252, allocations: 7.938 kB / 1.288 GB, free: 14.55 MB / 0.9981 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.338e-06/0.4252, allocations: 4 kB / 1.288 GB, free: 14.55 MB / 0.9981 GB Notification: Performance of sorting global known variables: time 3.97e-05/0.4253, allocations: 79.27 kB / 1.288 GB, free: 14.47 MB / 0.9981 GB Notification: Performance of sort global known variables: time 9e-08/0.4253, allocations: 0 / 1.288 GB, free: 14.47 MB / 0.9981 GB Notification: Performance of remove unused functions: time 0.0001834/0.4254, allocations: 8 kB / 1.288 GB, free: 14.46 MB / 0.9981 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.0004614/0.4259, allocations: 0.6069 MB / 1.288 GB, free: 13.82 MB / 0.9981 GB Notification: Performance of simCode: created initialization part: time 0.000162/0.4261, allocations: 27.92 kB / 1.288 GB, free: 13.8 MB / 0.9981 GB Notification: Performance of simCode: created event and clocks part: time 7.915e-06/0.4261, allocations: 0 / 1.288 GB, free: 13.8 MB / 0.9981 GB Notification: Performance of simCode: created simulation system equations: time 8.038e-05/0.4262, allocations: 11.98 kB / 1.288 GB, free: 13.79 MB / 0.9981 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001417/0.4263, allocations: 7.938 kB / 1.288 GB, free: 13.78 MB / 0.9981 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0005099/0.4268, allocations: 131.9 kB / 1.289 GB, free: 13.61 MB / 0.9981 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 6.268e-05/0.4269, allocations: 67.2 kB / 1.289 GB, free: 13.52 MB / 0.9981 GB Notification: Performance of simCode: alias equations: time 1.493e-05/0.4269, allocations: 4.125 kB / 1.289 GB, free: 13.52 MB / 0.9981 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 2.634e-05/0.4269, allocations: 11.38 kB / 1.289 GB, free: 13.5 MB / 0.9981 GB Notification: Performance of SimCode: time 2.8e-07/0.4269, allocations: 0 / 1.289 GB, free: 13.5 MB / 0.9981 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.03206/0.459, allocations: 1.791 MB / 1.29 GB, free: 11.85 MB / 0.9981 GB Notification: Performance of buildModelFMU: Generate platform static: time 13.2/13.66, allocations: 3.5 kB / 1.29 GB, free: 11.85 MB / 0.9981 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: 21.03544707177207]