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.001629/0.001629, allocations: 99.64 kB / 18.95 MB, free: 2.668 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.002132/0.002132, allocations: 213.2 kB / 22.24 MB, free: 5.262 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.334/1.334, allocations: 230.6 MB / 256 MB, free: 7.789 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 3.03/3.03, allocations: 0.5107 GB / 0.8158 GB, free: 17.81 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.001936/0.001936, allocations: 67.28 kB / 1.186 GB, free: 13.71 MB / 0.9044 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3027/0.3047, allocations: 181.9 MB / 1.363 GB, free: 14.11 MB / 1.061 GB Notification: Performance of NFInst.instantiate(Buildings.Fluid.BaseClasses.FlowModels.Validation.InvertingBasicFlowFunction_m_flow): time 0.00222/0.3069, allocations: 1.282 MB / 1.365 GB, free: 12.81 MB / 1.061 GB Notification: Performance of NFInst.instExpressions: time 0.0009067/0.3078, allocations: 0.522 MB / 1.365 GB, free: 12.29 MB / 1.061 GB Notification: Performance of NFInst.updateImplicitVariability: time 2.107e-05/0.3078, allocations: 0 / 1.365 GB, free: 12.29 MB / 1.061 GB Notification: Performance of NFTyping.typeComponents: time 1.597e-05/0.3078, allocations: 0 / 1.365 GB, free: 12.29 MB / 1.061 GB Notification: Performance of NFTyping.typeBindings: time 2.899e-05/0.3079, allocations: 3.938 kB / 1.365 GB, free: 12.29 MB / 1.061 GB Notification: Performance of NFTyping.typeClassSections: time 0.0004572/0.3083, allocations: 145.8 kB / 1.365 GB, free: 12.14 MB / 1.061 GB Notification: Performance of NFFlatten.flatten: time 4.105e-05/0.3084, allocations: 8 kB / 1.365 GB, free: 12.14 MB / 1.061 GB Notification: Performance of NFFlatten.resolveConnections: time 3.706e-05/0.3084, allocations: 7.938 kB / 1.365 GB, free: 12.13 MB / 1.061 GB Notification: Performance of NFEvalConstants.evaluate: time 1.276e-05/0.3084, allocations: 0 / 1.365 GB, free: 12.13 MB / 1.061 GB Notification: Performance of NFSimplifyModel.simplify: time 3.963e-05/0.3085, allocations: 7.984 kB / 1.365 GB, free: 12.12 MB / 1.061 GB Notification: Performance of NFPackage.collectConstants: time 9.288e-06/0.3085, allocations: 0 / 1.365 GB, free: 12.12 MB / 1.061 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0004112/0.3089, allocations: 267.5 kB / 1.366 GB, free: 11.86 MB / 1.061 GB Notification: Performance of NFScalarize.scalarize: time 1.255e-05/0.3089, allocations: 4 kB / 1.366 GB, free: 11.86 MB / 1.061 GB Notification: Performance of NFVerifyModel.verify: time 1.5e-05/0.3089, allocations: 7.922 kB / 1.366 GB, free: 11.85 MB / 1.061 GB Notification: Performance of NFConvertDAE.convert: time 0.0002338/0.3091, allocations: 128 kB / 1.366 GB, free: 11.72 MB / 1.061 GB Notification: Performance of FrontEnd - DAE generated: time 3.396e-06/0.3091, allocations: 3.938 kB / 1.366 GB, free: 11.72 MB / 1.061 GB Notification: Performance of FrontEnd: time 1.423e-06/0.3092, allocations: 0 / 1.366 GB, free: 11.72 MB / 1.061 GB Notification: Performance of Transformations before backend: time 8.235e-06/0.3092, allocations: 4 kB / 1.366 GB, free: 11.71 MB / 1.061 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.0003487/0.3095, allocations: 282 kB / 1.366 GB, free: 11.41 MB / 1.061 GB Notification: Performance of prepare preOptimizeDAE: time 3.369e-05/0.3095, allocations: 15.97 kB / 1.366 GB, free: 11.39 MB / 1.061 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 3.853e-05/0.3096, allocations: 34.75 kB / 1.366 GB, free: 11.35 MB / 1.061 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 1.821e-05/0.3096, allocations: 0.9375 kB / 1.366 GB, free: 11.35 MB / 1.061 GB Notification: Performance of preOpt evaluateParameters (simulation): time 9.093e-05/0.3097, allocations: 102.5 kB / 1.366 GB, free: 11.22 MB / 1.061 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.252e-05/0.3097, allocations: 8.375 kB / 1.366 GB, free: 11.21 MB / 1.061 GB Notification: Performance of preOpt expandDerOperator (simulation): time 8.345e-06/0.3097, allocations: 384 / 1.366 GB, free: 11.21 MB / 1.061 GB Notification: Performance of preOpt clockPartitioning (simulation): time 7.521e-05/0.3098, allocations: 30.27 kB / 1.366 GB, free: 11.18 MB / 1.061 GB Notification: Performance of preOpt findStateOrder (simulation): time 8.636e-06/0.3098, allocations: 3.938 kB / 1.366 GB, free: 11.18 MB / 1.061 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 8.326e-06/0.3098, allocations: 7.984 kB / 1.366 GB, free: 11.17 MB / 1.061 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.33e-06/0.3098, allocations: 3.984 kB / 1.366 GB, free: 11.16 MB / 1.061 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 2.411e-05/0.3098, allocations: 7.938 kB / 1.366 GB, free: 11.16 MB / 1.061 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0001453/0.31, allocations: 120.8 kB / 1.366 GB, free: 11 MB / 1.061 GB Notification: Performance of preOpt comSubExp (simulation): time 6.344e-05/0.31, allocations: 22.58 kB / 1.366 GB, free: 10.96 MB / 1.061 GB Notification: Performance of preOpt resolveLoops (simulation): time 1.854e-05/0.3101, allocations: 8.844 kB / 1.366 GB, free: 10.95 MB / 1.061 GB Notification: Performance of preOpt evalFunc (simulation): time 1.757e-05/0.3101, allocations: 4.062 kB / 1.366 GB, free: 10.95 MB / 1.061 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.283e-05/0.3101, allocations: 30.56 kB / 1.366 GB, free: 10.91 MB / 1.061 GB Notification: Performance of pre-optimization done (n=2): time 1.042e-06/0.3101, allocations: 0 / 1.366 GB, free: 10.91 MB / 1.061 GB Notification: Performance of matching and sorting (n=2): time 0.0001289/0.3102, allocations: 53.53 kB / 1.366 GB, free: 10.85 MB / 1.061 GB Notification: Performance of inlineWhenForInitialization (initialization): time 3.54e-05/0.3103, allocations: 55.41 kB / 1.366 GB, free: 10.79 MB / 1.061 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 6.755e-05/0.3103, allocations: 93.84 kB / 1.367 GB, free: 10.68 MB / 1.061 GB Notification: Performance of collectPreVariables (initialization): time 1.577e-05/0.3103, allocations: 25.7 kB / 1.367 GB, free: 10.65 MB / 1.061 GB Notification: Performance of collectInitialEqns (initialization): time 3.85e-05/0.3104, allocations: 88.14 kB / 1.367 GB, free: 10.56 MB / 1.061 GB Notification: Performance of collectInitialBindings (initialization): time 2.026e-05/0.3104, allocations: 7.938 kB / 1.367 GB, free: 10.55 MB / 1.061 GB Notification: Performance of simplifyInitialFunctions (initialization): time 2.753e-05/0.3104, allocations: 13.72 kB / 1.367 GB, free: 10.54 MB / 1.061 GB Notification: Performance of setup shared object (initialization): time 0.0001292/0.3106, allocations: 310.8 kB / 1.367 GB, free: 10.22 MB / 1.061 GB Notification: Performance of preBalanceInitialSystem (initialization): time 1.387e-05/0.3106, allocations: 4 kB / 1.367 GB, free: 10.22 MB / 1.061 GB Notification: Performance of partitionIndependentBlocks (initialization): time 1.027e-05/0.3106, allocations: 4.25 kB / 1.367 GB, free: 10.21 MB / 1.061 GB Notification: Performance of analyzeInitialSystem (initialization): time 2.686e-05/0.3106, allocations: 16.91 kB / 1.367 GB, free: 10.2 MB / 1.061 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.663e-06/0.3106, allocations: 0 / 1.367 GB, free: 10.2 MB / 1.061 GB Notification: Performance of matching and sorting (n=2) (initialization): time 6.63e-05/0.3107, allocations: 41.64 kB / 1.367 GB, free: 10.15 MB / 1.061 GB Notification: Performance of prepare postOptimizeDAE: time 1.268e-05/0.3107, allocations: 15.88 kB / 1.367 GB, free: 10.13 MB / 1.061 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.116e-06/0.3107, allocations: 0 / 1.367 GB, free: 10.13 MB / 1.061 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.034e-05/0.3107, allocations: 0 / 1.367 GB, free: 10.13 MB / 1.061 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.000128/0.3108, allocations: 11.98 kB / 1.367 GB, free: 10.12 MB / 1.061 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0003812/0.3112, allocations: 0.5782 MB / 1.368 GB, free: 9.52 MB / 1.061 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 1.621e-05/0.3112, allocations: 4.125 kB / 1.368 GB, free: 9.516 MB / 1.061 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 8.065e-06/0.3112, allocations: 4.031 kB / 1.368 GB, free: 9.512 MB / 1.061 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 7.95e-05/0.3113, allocations: 109.8 kB / 1.368 GB, free: 9.395 MB / 1.061 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 6.672e-06/0.3113, allocations: 0 / 1.368 GB, free: 9.395 MB / 1.061 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 9.607e-05/0.3114, allocations: 48.94 kB / 1.368 GB, free: 9.336 MB / 1.061 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.908e-06/0.3114, allocations: 4 kB / 1.368 GB, free: 9.332 MB / 1.061 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.016e-06/0.3114, allocations: 0 / 1.368 GB, free: 9.332 MB / 1.061 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.814e-06/0.3114, allocations: 3.938 kB / 1.368 GB, free: 9.328 MB / 1.061 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.000104/0.3115, allocations: 128.7 kB / 1.368 GB, free: 9.16 MB / 1.061 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 8.31e-07/0.3115, allocations: 4.031 kB / 1.368 GB, free: 9.156 MB / 1.061 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 6.886e-05/0.3116, allocations: 8 kB / 1.368 GB, free: 9.148 MB / 1.061 GB Notification: Performance of postOpt tearingSystem (simulation): time 1.573e-06/0.3116, allocations: 0 / 1.368 GB, free: 9.148 MB / 1.061 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 7.334e-06/0.3116, allocations: 3.984 kB / 1.368 GB, free: 9.145 MB / 1.061 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0003447/0.312, allocations: 0.5859 MB / 1.369 GB, free: 8.535 MB / 1.061 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.005e-06/0.312, allocations: 3.938 kB / 1.369 GB, free: 8.531 MB / 1.061 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 7.872e-05/0.312, allocations: 61.17 kB / 1.369 GB, free: 8.453 MB / 1.061 GB Notification: Performance of postOpt removeConstants (simulation): time 7.164e-06/0.312, allocations: 3.984 kB / 1.369 GB, free: 8.449 MB / 1.061 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.239e-05/0.3121, allocations: 8 kB / 1.369 GB, free: 8.441 MB / 1.061 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 1.34e-05/0.3121, allocations: 8.125 kB / 1.369 GB, free: 8.434 MB / 1.061 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 1.388e-05/0.3121, allocations: 3.938 kB / 1.369 GB, free: 8.43 MB / 1.061 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.093e-06/0.3121, allocations: 0 / 1.369 GB, free: 8.43 MB / 1.061 GB Notification: Performance of sorting global known variables: time 3.837e-05/0.3121, allocations: 79.28 kB / 1.369 GB, free: 8.352 MB / 1.061 GB Notification: Performance of sort global known variables: time 8e-08/0.3121, allocations: 0 / 1.369 GB, free: 8.352 MB / 1.061 GB Notification: Performance of remove unused functions: time 0.0001789/0.3123, allocations: 7.938 kB / 1.369 GB, free: 8.344 MB / 1.061 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.0004137/0.3127, allocations: 0.6124 MB / 1.369 GB, free: 7.699 MB / 1.061 GB Notification: Performance of simCode: created initialization part: time 0.0001488/0.3129, allocations: 24.11 kB / 1.369 GB, free: 7.676 MB / 1.061 GB Notification: Performance of simCode: created event and clocks part: time 2.053e-06/0.3129, allocations: 0 / 1.369 GB, free: 7.676 MB / 1.061 GB Notification: Performance of simCode: created simulation system equations: time 8.14e-05/0.313, allocations: 15.92 kB / 1.369 GB, free: 7.66 MB / 1.061 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001277/0.3131, allocations: 11.88 kB / 1.369 GB, free: 7.648 MB / 1.061 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0003945/0.3135, allocations: 128.9 kB / 1.369 GB, free: 7.484 MB / 1.061 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 4.527e-05/0.3135, allocations: 55.36 kB / 1.369 GB, free: 7.41 MB / 1.061 GB Notification: Performance of simCode: alias equations: time 1.286e-05/0.3135, allocations: 128 / 1.369 GB, free: 7.41 MB / 1.061 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 2.055e-05/0.3136, allocations: 11.44 kB / 1.37 GB, free: 7.398 MB / 1.061 GB Notification: Performance of SimCode: time 2.8e-07/0.3136, allocations: 0 / 1.37 GB, free: 7.398 MB / 1.061 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.0274/0.341, allocations: 1.813 MB / 1.371 GB, free: 5.762 MB / 1.061 GB Notification: Performance of buildModelFMU: Generate platform static: time 11.33/11.67, allocations: 12.7 kB / 1.371 GB, free: 5.75 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.738127843942493]