Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Buildings_latest_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.001448/0.001448, allocations: 110.4 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.001676/0.001676, allocations: 218.9 kB / 22.26 MB, free: 5.121 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.335/1.335, allocations: 230.6 MB / 256 MB, free: 7.957 MB / 206.1 MB " [Timeout remaining time 179] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings master/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings master/package.mo): time 2.926/2.926, allocations: 0.505 GB / 0.8101 GB, free: 22.04 MB / 0.6231 GB " [Timeout remaining time 177] Using package Buildings with version 13.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings master/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_latest_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_latest_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.001847/0.001847, allocations: 63.62 kB / 1.177 GB, free: 16.99 MB / 0.9044 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3008/0.3026, allocations: 180.2 MB / 1.353 GB, free: 8.445 MB / 1.045 GB Notification: Performance of NFInst.instantiate(Buildings.Fluid.BaseClasses.FlowModels.Validation.InvertingBasicFlowFunction_m_flow): time 0.002262/0.3049, allocations: 1.285 MB / 1.354 GB, free: 7.152 MB / 1.045 GB Notification: Performance of NFInst.instExpressions: time 0.000943/0.3058, allocations: 0.5881 MB / 1.355 GB, free: 6.562 MB / 1.045 GB Notification: Performance of NFInst.updateImplicitVariability: time 2.034e-05/0.3058, allocations: 0 / 1.355 GB, free: 6.562 MB / 1.045 GB Notification: Performance of NFTyping.typeComponents: time 1.654e-05/0.3058, allocations: 0 / 1.355 GB, free: 6.562 MB / 1.045 GB Notification: Performance of NFTyping.typeBindings: time 3.878e-05/0.3059, allocations: 3.938 kB / 1.355 GB, free: 6.559 MB / 1.045 GB Notification: Performance of NFTyping.typeClassSections: time 0.0005105/0.3064, allocations: 136.9 kB / 1.355 GB, free: 6.426 MB / 1.045 GB Notification: Performance of NFFlatten.flatten: time 4.685e-05/0.3064, allocations: 15.91 kB / 1.355 GB, free: 6.41 MB / 1.045 GB Notification: Performance of NFFlatten.resolveConnections: time 3.812e-05/0.3065, allocations: 8 kB / 1.355 GB, free: 6.402 MB / 1.045 GB Notification: Performance of NFEvalConstants.evaluate: time 1.426e-05/0.3065, allocations: 0 / 1.355 GB, free: 6.402 MB / 1.045 GB Notification: Performance of NFSimplifyModel.simplify: time 4.221e-05/0.3065, allocations: 7.938 kB / 1.355 GB, free: 6.395 MB / 1.045 GB Notification: Performance of NFPackage.collectConstants: time 9.278e-06/0.3065, allocations: 0 / 1.355 GB, free: 6.395 MB / 1.045 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0005106/0.3071, allocations: 343.3 kB / 1.355 GB, free: 6.059 MB / 1.045 GB Notification: Performance of NFScalarize.scalarize: time 1.045e-05/0.3071, allocations: 3.984 kB / 1.355 GB, free: 6.055 MB / 1.045 GB Notification: Performance of NFVerifyModel.verify: time 1.883e-05/0.3071, allocations: 4 kB / 1.355 GB, free: 6.051 MB / 1.045 GB Notification: Performance of NFConvertDAE.convert: time 0.0002723/0.3074, allocations: 143.8 kB / 1.355 GB, free: 5.91 MB / 1.045 GB Notification: Performance of FrontEnd - DAE generated: time 3.526e-06/0.3074, allocations: 4 kB / 1.355 GB, free: 5.906 MB / 1.045 GB Notification: Performance of FrontEnd: time 1.092e-06/0.3074, allocations: 0 / 1.355 GB, free: 5.906 MB / 1.045 GB Notification: Performance of Transformations before backend: time 8.396e-06/0.3074, allocations: 4 kB / 1.355 GB, free: 5.902 MB / 1.045 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.0003788/0.3078, allocations: 282 kB / 1.356 GB, free: 5.594 MB / 1.045 GB Notification: Performance of prepare preOptimizeDAE: time 3.776e-05/0.3078, allocations: 8.031 kB / 1.356 GB, free: 5.586 MB / 1.045 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 3.621e-05/0.3078, allocations: 30.75 kB / 1.356 GB, free: 5.547 MB / 1.045 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 2.186e-05/0.3078, allocations: 4.938 kB / 1.356 GB, free: 5.543 MB / 1.045 GB Notification: Performance of preOpt evaluateParameters (simulation): time 9.611e-05/0.3079, allocations: 106.5 kB / 1.356 GB, free: 5.414 MB / 1.045 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.092e-05/0.308, allocations: 4.312 kB / 1.356 GB, free: 5.41 MB / 1.045 GB Notification: Performance of preOpt expandDerOperator (simulation): time 1.126e-05/0.308, allocations: 4.375 kB / 1.356 GB, free: 5.406 MB / 1.045 GB Notification: Performance of preOpt clockPartitioning (simulation): time 8.294e-05/0.308, allocations: 34.27 kB / 1.356 GB, free: 5.367 MB / 1.045 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.021e-05/0.3081, allocations: 3.938 kB / 1.356 GB, free: 5.363 MB / 1.045 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 6.883e-06/0.3081, allocations: 3.938 kB / 1.356 GB, free: 5.359 MB / 1.045 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.975e-06/0.3081, allocations: 4 kB / 1.356 GB, free: 5.355 MB / 1.045 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 2.038e-05/0.3081, allocations: 0 / 1.356 GB, free: 5.355 MB / 1.045 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0001511/0.3082, allocations: 124.8 kB / 1.356 GB, free: 5.191 MB / 1.045 GB Notification: Performance of preOpt comSubExp (simulation): time 5.165e-05/0.3083, allocations: 22.55 kB / 1.356 GB, free: 5.16 MB / 1.045 GB Notification: Performance of preOpt resolveLoops (simulation): time 2.027e-05/0.3083, allocations: 12.92 kB / 1.356 GB, free: 5.145 MB / 1.045 GB Notification: Performance of preOpt evalFunc (simulation): time 1.761e-05/0.3083, allocations: 4 kB / 1.356 GB, free: 5.141 MB / 1.045 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.908e-05/0.3084, allocations: 30.56 kB / 1.356 GB, free: 5.102 MB / 1.045 GB Notification: Performance of pre-optimization done (n=2): time 2.615e-06/0.3084, allocations: 3.984 kB / 1.356 GB, free: 5.098 MB / 1.045 GB Notification: Performance of matching and sorting (n=2): time 0.0001283/0.3085, allocations: 49.62 kB / 1.356 GB, free: 5.043 MB / 1.045 GB Notification: Performance of inlineWhenForInitialization (initialization): time 3.456e-05/0.3085, allocations: 51.41 kB / 1.356 GB, free: 4.98 MB / 1.045 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 7.013e-05/0.3086, allocations: 93.86 kB / 1.356 GB, free: 4.879 MB / 1.045 GB Notification: Performance of collectPreVariables (initialization): time 1.803e-05/0.3086, allocations: 25.95 kB / 1.356 GB, free: 4.848 MB / 1.045 GB Notification: Performance of collectInitialEqns (initialization): time 3.178e-05/0.3087, allocations: 84.14 kB / 1.356 GB, free: 4.762 MB / 1.045 GB Notification: Performance of collectInitialBindings (initialization): time 1.893e-05/0.3087, allocations: 3.953 kB / 1.356 GB, free: 4.758 MB / 1.045 GB Notification: Performance of simplifyInitialFunctions (initialization): time 3.319e-05/0.3087, allocations: 21.7 kB / 1.356 GB, free: 4.73 MB / 1.045 GB Notification: Performance of setup shared object (initialization): time 0.0001242/0.3088, allocations: 314.8 kB / 1.357 GB, free: 4.414 MB / 1.045 GB Notification: Performance of preBalanceInitialSystem (initialization): time 1.029e-05/0.3088, allocations: 0 / 1.357 GB, free: 4.414 MB / 1.045 GB Notification: Performance of partitionIndependentBlocks (initialization): time 9.097e-06/0.3088, allocations: 4 kB / 1.357 GB, free: 4.41 MB / 1.045 GB Notification: Performance of analyzeInitialSystem (initialization): time 2.949e-05/0.3089, allocations: 12.86 kB / 1.357 GB, free: 4.395 MB / 1.045 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.222e-06/0.3089, allocations: 4.062 kB / 1.357 GB, free: 4.391 MB / 1.045 GB Notification: Performance of matching and sorting (n=2) (initialization): time 6.129e-05/0.3089, allocations: 41.62 kB / 1.357 GB, free: 4.344 MB / 1.045 GB Notification: Performance of prepare postOptimizeDAE: time 1.544e-05/0.309, allocations: 11.94 kB / 1.357 GB, free: 4.332 MB / 1.045 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.957e-06/0.309, allocations: 0 / 1.357 GB, free: 4.332 MB / 1.045 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.068e-05/0.309, allocations: 0 / 1.357 GB, free: 4.332 MB / 1.045 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001242/0.3091, allocations: 8 kB / 1.357 GB, free: 4.324 MB / 1.045 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0003885/0.3095, allocations: 0.5937 MB / 1.357 GB, free: 3.707 MB / 1.045 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 1.625e-05/0.3095, allocations: 4.125 kB / 1.357 GB, free: 3.703 MB / 1.045 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 9.098e-06/0.3095, allocations: 7.984 kB / 1.357 GB, free: 3.695 MB / 1.045 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.038e-05/0.3096, allocations: 118.4 kB / 1.357 GB, free: 3.57 MB / 1.045 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 6.612e-06/0.3096, allocations: 0 / 1.357 GB, free: 3.57 MB / 1.045 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 9.657e-05/0.3097, allocations: 48.94 kB / 1.357 GB, free: 3.52 MB / 1.045 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.623e-06/0.3097, allocations: 0 / 1.357 GB, free: 3.52 MB / 1.045 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.346e-06/0.3097, allocations: 0 / 1.357 GB, free: 3.52 MB / 1.045 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.054e-06/0.3097, allocations: 0 / 1.357 GB, free: 3.52 MB / 1.045 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.000137/0.3098, allocations: 132.7 kB / 1.358 GB, free: 3.348 MB / 1.045 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 9.32e-07/0.3098, allocations: 3.938 kB / 1.358 GB, free: 3.344 MB / 1.045 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 6.866e-05/0.3099, allocations: 8 kB / 1.358 GB, free: 3.336 MB / 1.045 GB Notification: Performance of postOpt tearingSystem (simulation): time 1.713e-06/0.3099, allocations: 0 / 1.358 GB, free: 3.336 MB / 1.045 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.849e-06/0.3099, allocations: 0 / 1.358 GB, free: 3.336 MB / 1.045 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0003666/0.3103, allocations: 0.586 MB / 1.358 GB, free: 2.727 MB / 1.045 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.266e-06/0.3103, allocations: 3.938 kB / 1.358 GB, free: 2.723 MB / 1.045 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.00011/0.3104, allocations: 69.12 kB / 1.358 GB, free: 2.637 MB / 1.045 GB Notification: Performance of postOpt removeConstants (simulation): time 4.879e-06/0.3104, allocations: 0 / 1.358 GB, free: 2.637 MB / 1.045 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.143e-05/0.3104, allocations: 4 kB / 1.358 GB, free: 2.633 MB / 1.045 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 1.669e-05/0.3104, allocations: 3.984 kB / 1.358 GB, free: 2.629 MB / 1.045 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 1.069e-05/0.3104, allocations: 3.938 kB / 1.358 GB, free: 2.625 MB / 1.045 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.144e-06/0.3104, allocations: 0 / 1.358 GB, free: 2.625 MB / 1.045 GB Notification: Performance of sorting global known variables: time 4.12e-05/0.3105, allocations: 87.31 kB / 1.358 GB, free: 2.539 MB / 1.045 GB Notification: Performance of sort global known variables: time 6e-08/0.3105, allocations: 0 / 1.358 GB, free: 2.539 MB / 1.045 GB Notification: Performance of remove unused functions: time 0.0001819/0.3107, allocations: 7.938 kB / 1.358 GB, free: 2.531 MB / 1.045 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.0004169/0.3111, allocations: 0.6085 MB / 1.359 GB, free: 1.891 MB / 1.045 GB Notification: Performance of simCode: created initialization part: time 0.0001535/0.3112, allocations: 28.05 kB / 1.359 GB, free: 1.863 MB / 1.045 GB Notification: Performance of simCode: created event and clocks part: time 2.144e-06/0.3112, allocations: 0 / 1.359 GB, free: 1.863 MB / 1.045 GB Notification: Performance of simCode: created simulation system equations: time 7.466e-05/0.3113, allocations: 12 kB / 1.359 GB, free: 1.852 MB / 1.045 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001263/0.3114, allocations: 5.656 kB / 1.359 GB, free: 1.848 MB / 1.045 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0004049/0.3118, allocations: 131.8 kB / 1.359 GB, free: 1.676 MB / 1.045 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.000271/0.3121, allocations: 0.6767 MB / 1.36 GB, free: 0.9727 MB / 1.045 GB Notification: Performance of simCode: alias equations: time 1.55e-05/0.3121, allocations: 4.125 kB / 1.36 GB, free: 0.9688 MB / 1.045 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 2.25e-05/0.3122, allocations: 11.38 kB / 1.36 GB, free: 0.9609 MB / 1.045 GB Notification: Performance of SimCode: time 2.91e-07/0.3122, allocations: 0 / 1.36 GB, free: 0.9609 MB / 1.045 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02699/0.3391, allocations: 1.4 MB / 1.361 GB, free: 15.72 MB / 1.061 GB Notification: Performance of buildModelFMU: Generate platform static: time 11.28/11.62, allocations: 12.98 kB / 1.361 GB, free: 15.71 MB / 1.061 GB " [Timeout remaining time 288] (rm -f Buildings_latest_Buildings.Fluid.BaseClasses.FlowModels.Validation.InvertingBasicFlowFunction_m_flow.pipe ; mkfifo Buildings_latest_Buildings.Fluid.BaseClasses.FlowModels.Validation.InvertingBasicFlowFunction_m_flow.pipe ; head -c 1048576 < Buildings_latest_Buildings.Fluid.BaseClasses.FlowModels.Validation.InvertingBasicFlowFunction_m_flow.pipe >> ../files/Buildings_latest_Buildings.Fluid.BaseClasses.FlowModels.Validation.InvertingBasicFlowFunction_m_flow.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=Buildings_latest_Buildings.Fluid.BaseClasses.FlowModels.Validation.InvertingBasicFlowFunction_m_flow_res.mat --tempDir=temp_Buildings_latest_Buildings_Fluid_BaseClasses_FlowModels_Validation_InvertingBasicFlowFunction_m_flow_fmu --startTime=0 --stopTime=1 --stepSize=0.0004 --timeout=800 --tolerance=1e-06 Buildings_latest_Buildings_Fluid_BaseClasses_FlowModels_Validation_InvertingBasicFlowFunction_m_flow.fmu > Buildings_latest_Buildings.Fluid.BaseClasses.FlowModels.Validation.InvertingBasicFlowFunction_m_flow.pipe 2>&1) [Timeout 840.0] diffSimulationResults("Buildings_latest_Buildings.Fluid.BaseClasses.FlowModels.Validation.InvertingBasicFlowFunction_m_flow_res.mat","/mnt/ReferenceFiles/Buildings/csv/master/Buildings_Fluid_BaseClasses_FlowModels_Validation_InvertingBasicFlowFunction_m_flow.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Buildings_latest_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: 17.59322385210544]