Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Buildings_12_Buildings.Fluid.BaseClasses.FlowModels.Validation.InvertingBasicFlowFunction_m_flow.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.001227/0.001227, allocations: 103.6 kB / 18.95 MB, free: 2.66 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.001403/0.001403, allocations: 220.4 kB / 22.25 MB, free: 5.254 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.394/1.394, allocations: 230.6 MB / 256 MB, free: 7.781 MB / 206.1 MB " [Timeout remaining time 178] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 12.1.1-maint.12.x/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 12.1.1-maint.12.x/package.mo): time 3.07/3.07, allocations: 0.49 GB / 0.7951 GB, free: 35.44 MB / 0.6231 GB " [Timeout remaining time 177] Using package Buildings with version 12.1.1 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 12.1.1-maint.12.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_m_flow,fileNamePrefix="Buildings_12_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_12_Buildings_Fluid_BaseClasses_FlowModels_Validation_InvertingBasicFlowFunction_m_flow",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.001925/0.001925, allocations: 70.48 kB / 1.154 GB, free: 25.46 MB / 0.9044 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3209/0.3228, allocations: 176.1 MB / 1.326 GB, free: 1.496 MB / 1.014 GB Notification: Performance of NFInst.instantiate(Buildings.Fluid.BaseClasses.FlowModels.Validation.InvertingBasicFlowFunction_m_flow): time 0.002851/0.3257, allocations: 1.276 MB / 1.327 GB, free: 220 kB / 1.014 GB Notification: Performance of NFInst.instExpressions: time 0.001084/0.3268, allocations: 0.5297 MB / 1.328 GB, free: 15.68 MB / 1.029 GB Notification: Performance of NFInst.updateImplicitVariability: time 2.479e-05/0.3268, allocations: 0 / 1.328 GB, free: 15.68 MB / 1.029 GB Notification: Performance of NFTyping.typeComponents: time 1.559e-05/0.3268, allocations: 0 / 1.328 GB, free: 15.68 MB / 1.029 GB Notification: Performance of NFTyping.typeBindings: time 4.196e-05/0.3269, allocations: 3.938 kB / 1.328 GB, free: 15.68 MB / 1.029 GB Notification: Performance of NFTyping.typeClassSections: time 0.0005921/0.3274, allocations: 134.3 kB / 1.328 GB, free: 15.55 MB / 1.029 GB Notification: Performance of NFFlatten.flatten: time 5.369e-05/0.3275, allocations: 11.94 kB / 1.328 GB, free: 15.54 MB / 1.029 GB Notification: Performance of NFFlatten.resolveConnections: time 4.966e-05/0.3276, allocations: 4 kB / 1.328 GB, free: 15.54 MB / 1.029 GB Notification: Performance of NFEvalConstants.evaluate: time 1.969e-05/0.3276, allocations: 7.984 kB / 1.328 GB, free: 15.53 MB / 1.029 GB Notification: Performance of NFSimplifyModel.simplify: time 5.471e-05/0.3276, allocations: 11.92 kB / 1.328 GB, free: 15.52 MB / 1.029 GB Notification: Performance of NFPackage.collectConstants: time 1.2e-05/0.3276, allocations: 0 / 1.328 GB, free: 15.52 MB / 1.029 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0004598/0.3281, allocations: 275.5 kB / 1.328 GB, free: 15.25 MB / 1.029 GB Notification: Performance of NFScalarize.scalarize: time 2.106e-05/0.3281, allocations: 7.969 kB / 1.328 GB, free: 15.24 MB / 1.029 GB Notification: Performance of NFVerifyModel.verify: time 1.714e-05/0.3281, allocations: 4 kB / 1.328 GB, free: 15.23 MB / 1.029 GB Notification: Performance of NFConvertDAE.convert: time 0.0002983/0.3284, allocations: 131.8 kB / 1.328 GB, free: 15.11 MB / 1.029 GB Notification: Performance of FrontEnd - DAE generated: time 6.012e-06/0.3284, allocations: 0 / 1.328 GB, free: 15.11 MB / 1.029 GB Notification: Performance of FrontEnd: time 1.553e-06/0.3284, allocations: 0 / 1.328 GB, free: 15.11 MB / 1.029 GB Notification: Performance of Transformations before backend: time 7.303e-06/0.3284, allocations: 4 kB / 1.328 GB, free: 15.1 MB / 1.029 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.0004684/0.3289, allocations: 279 kB / 1.328 GB, free: 14.8 MB / 1.029 GB Notification: Performance of prepare preOptimizeDAE: time 4.513e-05/0.329, allocations: 8.031 kB / 1.328 GB, free: 14.79 MB / 1.029 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 3.86e-05/0.329, allocations: 34.75 kB / 1.328 GB, free: 14.75 MB / 1.029 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 2.989e-05/0.329, allocations: 4.891 kB / 1.328 GB, free: 14.74 MB / 1.029 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001271/0.3292, allocations: 110.5 kB / 1.329 GB, free: 14.61 MB / 1.029 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.627e-05/0.3292, allocations: 4.375 kB / 1.329 GB, free: 14.61 MB / 1.029 GB Notification: Performance of preOpt expandDerOperator (simulation): time 1.101e-05/0.3292, allocations: 384 / 1.329 GB, free: 14.61 MB / 1.029 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001169/0.3293, allocations: 34.25 kB / 1.329 GB, free: 14.57 MB / 1.029 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.334e-05/0.3293, allocations: 7.922 kB / 1.329 GB, free: 14.56 MB / 1.029 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 7.774e-06/0.3293, allocations: 4 kB / 1.329 GB, free: 14.55 MB / 1.029 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.788e-06/0.3293, allocations: 0 / 1.329 GB, free: 14.55 MB / 1.029 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 2.743e-05/0.3294, allocations: 4 kB / 1.329 GB, free: 14.55 MB / 1.029 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0001906/0.3295, allocations: 120.8 kB / 1.329 GB, free: 14.39 MB / 1.029 GB Notification: Performance of preOpt comSubExp (simulation): time 7.813e-05/0.3296, allocations: 26.52 kB / 1.329 GB, free: 14.36 MB / 1.029 GB Notification: Performance of preOpt resolveLoops (simulation): time 2.194e-05/0.3296, allocations: 8.844 kB / 1.329 GB, free: 14.34 MB / 1.029 GB Notification: Performance of preOpt evalFunc (simulation): time 2.743e-05/0.3297, allocations: 4.062 kB / 1.329 GB, free: 14.34 MB / 1.029 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.949e-05/0.3297, allocations: 30.56 kB / 1.329 GB, free: 14.3 MB / 1.029 GB Notification: Performance of pre-optimization done (n=2): time 1.072e-06/0.3297, allocations: 0 / 1.329 GB, free: 14.3 MB / 1.029 GB Notification: Performance of matching and sorting (n=2): time 0.0001622/0.3299, allocations: 45.64 kB / 1.329 GB, free: 14.25 MB / 1.029 GB Notification: Performance of inlineWhenForInitialization (initialization): time 4.51e-05/0.3299, allocations: 55.41 kB / 1.329 GB, free: 14.18 MB / 1.029 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 9.544e-05/0.33, allocations: 97.78 kB / 1.329 GB, free: 14.08 MB / 1.029 GB Notification: Performance of collectPreVariables (initialization): time 1.814e-05/0.33, allocations: 25.7 kB / 1.329 GB, free: 14.05 MB / 1.029 GB Notification: Performance of collectInitialEqns (initialization): time 4.364e-05/0.3301, allocations: 84.14 kB / 1.329 GB, free: 13.96 MB / 1.029 GB Notification: Performance of collectInitialBindings (initialization): time 2.97e-05/0.3301, allocations: 15.83 kB / 1.329 GB, free: 13.95 MB / 1.029 GB Notification: Performance of simplifyInitialFunctions (initialization): time 3.435e-05/0.3301, allocations: 13.72 kB / 1.329 GB, free: 13.93 MB / 1.029 GB Notification: Performance of setup shared object (initialization): time 0.0001653/0.3303, allocations: 310.8 kB / 1.329 GB, free: 13.61 MB / 1.029 GB Notification: Performance of preBalanceInitialSystem (initialization): time 1.242e-05/0.3303, allocations: 0 / 1.329 GB, free: 13.61 MB / 1.029 GB Notification: Performance of partitionIndependentBlocks (initialization): time 1.508e-05/0.3303, allocations: 12.25 kB / 1.329 GB, free: 13.6 MB / 1.029 GB Notification: Performance of analyzeInitialSystem (initialization): time 3.278e-05/0.3304, allocations: 16.91 kB / 1.329 GB, free: 13.58 MB / 1.029 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.633e-06/0.3304, allocations: 0 / 1.329 GB, free: 13.58 MB / 1.029 GB Notification: Performance of matching and sorting (n=2) (initialization): time 6.935e-05/0.3304, allocations: 37.7 kB / 1.33 GB, free: 13.54 MB / 1.029 GB Notification: Performance of prepare postOptimizeDAE: time 1.851e-05/0.3304, allocations: 11.94 kB / 1.33 GB, free: 13.53 MB / 1.029 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.308e-06/0.3305, allocations: 0 / 1.33 GB, free: 13.53 MB / 1.029 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.388e-05/0.3305, allocations: 0 / 1.33 GB, free: 13.53 MB / 1.029 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001634/0.3306, allocations: 15.92 kB / 1.33 GB, free: 13.51 MB / 1.029 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0004343/0.3311, allocations: 0.5782 MB / 1.33 GB, free: 12.91 MB / 1.029 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 2.11e-05/0.3311, allocations: 8.078 kB / 1.33 GB, free: 12.9 MB / 1.029 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 7.654e-06/0.3311, allocations: 4.031 kB / 1.33 GB, free: 12.9 MB / 1.029 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.716e-05/0.3312, allocations: 109.8 kB / 1.33 GB, free: 12.78 MB / 1.029 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 7.424e-06/0.3312, allocations: 0 / 1.33 GB, free: 12.78 MB / 1.029 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001177/0.3313, allocations: 48.94 kB / 1.33 GB, free: 12.72 MB / 1.029 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.923e-06/0.3313, allocations: 0 / 1.33 GB, free: 12.72 MB / 1.029 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.609e-06/0.3313, allocations: 4 kB / 1.33 GB, free: 12.72 MB / 1.029 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.434e-06/0.3313, allocations: 0 / 1.33 GB, free: 12.72 MB / 1.029 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001147/0.3314, allocations: 128.7 kB / 1.33 GB, free: 12.55 MB / 1.029 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.232e-06/0.3314, allocations: 4.031 kB / 1.33 GB, free: 12.55 MB / 1.029 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 7.574e-05/0.3315, allocations: 8 kB / 1.33 GB, free: 12.54 MB / 1.029 GB Notification: Performance of postOpt tearingSystem (simulation): time 4.639e-06/0.3315, allocations: 3.984 kB / 1.33 GB, free: 12.54 MB / 1.029 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 6.472e-06/0.3315, allocations: 0 / 1.33 GB, free: 12.54 MB / 1.029 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0003653/0.3319, allocations: 0.5782 MB / 1.331 GB, free: 11.93 MB / 1.029 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.577e-06/0.3319, allocations: 3.938 kB / 1.331 GB, free: 11.93 MB / 1.029 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 7.842e-05/0.332, allocations: 65.11 kB / 1.331 GB, free: 11.85 MB / 1.029 GB Notification: Performance of postOpt removeConstants (simulation): time 7.464e-06/0.332, allocations: 3.984 kB / 1.331 GB, free: 11.84 MB / 1.029 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 9.598e-06/0.332, allocations: 0 / 1.331 GB, free: 11.84 MB / 1.029 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 1.778e-05/0.332, allocations: 8.125 kB / 1.331 GB, free: 11.84 MB / 1.029 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 1.234e-05/0.332, allocations: 7.938 kB / 1.331 GB, free: 11.83 MB / 1.029 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.204e-06/0.332, allocations: 0 / 1.331 GB, free: 11.83 MB / 1.029 GB Notification: Performance of sorting global known variables: time 3.905e-05/0.3321, allocations: 75.28 kB / 1.331 GB, free: 11.75 MB / 1.029 GB Notification: Performance of sort global known variables: time 1.1e-07/0.3321, allocations: 4 kB / 1.331 GB, free: 11.75 MB / 1.029 GB Notification: Performance of remove unused functions: time 0.0001942/0.3322, allocations: 11.88 kB / 1.331 GB, free: 11.74 MB / 1.029 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.0004993/0.3327, allocations: 0.629 MB / 1.332 GB, free: 11.08 MB / 1.029 GB Notification: Performance of simCode: created initialization part: time 0.000164/0.3329, allocations: 28.11 kB / 1.332 GB, free: 11.05 MB / 1.029 GB Notification: Performance of simCode: created event and clocks part: time 1.984e-06/0.3329, allocations: 0 / 1.332 GB, free: 11.05 MB / 1.029 GB Notification: Performance of simCode: created simulation system equations: time 8.209e-05/0.333, allocations: 11.98 kB / 1.332 GB, free: 11.04 MB / 1.029 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001346/0.3331, allocations: 7.938 kB / 1.332 GB, free: 11.03 MB / 1.029 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0004659/0.3336, allocations: 131.8 kB / 1.332 GB, free: 10.86 MB / 1.029 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 4.752e-05/0.3336, allocations: 55.36 kB / 1.332 GB, free: 10.79 MB / 1.029 GB Notification: Performance of simCode: alias equations: time 1.589e-05/0.3337, allocations: 4.062 kB / 1.332 GB, free: 10.79 MB / 1.029 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 2.728e-05/0.3337, allocations: 11.44 kB / 1.332 GB, free: 10.77 MB / 1.029 GB Notification: Performance of SimCode: time 6.92e-07/0.3337, allocations: 0 / 1.332 GB, free: 10.77 MB / 1.029 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02755/0.3612, allocations: 1.83 MB / 1.334 GB, free: 9.113 MB / 1.029 GB Notification: Performance of buildModelFMU: Generate platform static: time 11.82/12.18, allocations: 10.03 kB / 1.334 GB, free: 9.105 MB / 1.029 GB " [Timeout remaining time 288] (rm -f Buildings_12_Buildings.Fluid.BaseClasses.FlowModels.Validation.InvertingBasicFlowFunction_m_flow.pipe ; mkfifo Buildings_12_Buildings.Fluid.BaseClasses.FlowModels.Validation.InvertingBasicFlowFunction_m_flow.pipe ; head -c 1048576 < Buildings_12_Buildings.Fluid.BaseClasses.FlowModels.Validation.InvertingBasicFlowFunction_m_flow.pipe >> ../files/Buildings_12_Buildings.Fluid.BaseClasses.FlowModels.Validation.InvertingBasicFlowFunction_m_flow.sim & python3 -m fmpy simulate --output-file Buildings_12_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_12_Buildings_Fluid_BaseClasses_FlowModels_Validation_InvertingBasicFlowFunction_m_flow.fmu > Buildings_12_Buildings.Fluid.BaseClasses.FlowModels.Validation.InvertingBasicFlowFunction_m_flow.pipe 2>&1) [Timeout 420.0] diffSimulationResults("Buildings_12_Buildings.Fluid.BaseClasses.FlowModels.Validation.InvertingBasicFlowFunction_m_flow_res.csv","/mnt/ReferenceFiles/Buildings/csv/maint_12.x/Buildings_Fluid_BaseClasses_FlowModels_Validation_InvertingBasicFlowFunction_m_flow.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Buildings_12_Buildings.Fluid.BaseClasses.FlowModels.Validation.InvertingBasicFlowFunction_m_flow.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: 18.63067848898936]