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.001271/0.001271, allocations: 116.8 kB / 17.16 MB, free: 5.895 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.001396/0.001396, allocations: 212 kB / 20.13 MB, free: 2.949 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.471/1.471, allocations: 230.6 MB / 253.5 MB, free: 15.11 MB / 206.1 MB " [Timeout remaining time 178] 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.974/2.974, allocations: 0.5003 GB / 0.8026 GB, free: 6.703 MB / 0.6387 GB " [Timeout remaining time 176] 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="cs",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="cs",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.00202/0.00202, allocations: 63.91 kB / 1.165 GB, free: 0.4922 MB / 0.9356 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.9112/0.9132, allocations: 179 MB / 1.34 GB, free: 16.25 MB / 1.061 GB Notification: Performance of NFInst.instantiate(Buildings.Fluid.BaseClasses.FlowModels.Validation.InvertingBasicFlowFunction_m_flow): time 0.00206/0.9153, allocations: 1.277 MB / 1.341 GB, free: 15.35 MB / 1.061 GB Notification: Performance of NFInst.instExpressions: time 0.0008017/0.9161, allocations: 0.5847 MB / 1.342 GB, free: 14.95 MB / 1.061 GB Notification: Performance of NFInst.updateImplicitVariability: time 2.31e-05/0.9161, allocations: 0 / 1.342 GB, free: 14.95 MB / 1.061 GB Notification: Performance of NFTyping.typeComponents: time 1.439e-05/0.9161, allocations: 3.938 kB / 1.342 GB, free: 14.95 MB / 1.061 GB Notification: Performance of NFTyping.typeBindings: time 4.236e-05/0.9162, allocations: 1.641 kB / 1.342 GB, free: 14.95 MB / 1.061 GB Notification: Performance of NFTyping.typeClassSections: time 0.00047/0.9166, allocations: 145.2 kB / 1.342 GB, free: 14.88 MB / 1.061 GB Notification: Performance of NFFlatten.flatten: time 4.949e-05/0.9167, allocations: 9.75 kB / 1.342 GB, free: 14.88 MB / 1.061 GB Notification: Performance of NFFlatten.resolveConnections: time 4.229e-05/0.9167, allocations: 1.922 kB / 1.342 GB, free: 14.88 MB / 1.061 GB Notification: Performance of NFEvalConstants.evaluate: time 1.637e-05/0.9167, allocations: 11.44 kB / 1.342 GB, free: 14.87 MB / 1.061 GB Notification: Performance of NFSimplifyModel.simplify: time 4.236e-05/0.9168, allocations: 2.516 kB / 1.342 GB, free: 14.87 MB / 1.061 GB Notification: Performance of NFPackage.collectConstants: time 9.759e-06/0.9168, allocations: 1.125 kB / 1.342 GB, free: 14.87 MB / 1.061 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0004848/0.9173, allocations: 343.7 kB / 1.342 GB, free: 14.77 MB / 1.061 GB Notification: Performance of NFScalarize.scalarize: time 2.298e-05/0.9173, allocations: 2.219 kB / 1.342 GB, free: 14.77 MB / 1.061 GB Notification: Performance of NFVerifyModel.verify: time 1.864e-05/0.9173, allocations: 5.922 kB / 1.342 GB, free: 14.76 MB / 1.061 GB Notification: Performance of NFConvertDAE.convert: time 0.0002411/0.9175, allocations: 139 kB / 1.343 GB, free: 14.72 MB / 1.061 GB Notification: Performance of FrontEnd - DAE generated: time 5.029e-06/0.9176, allocations: 5.922 kB / 1.343 GB, free: 14.71 MB / 1.061 GB Notification: Performance of FrontEnd: time 1.263e-06/0.9176, allocations: 0 / 1.343 GB, free: 14.71 MB / 1.061 GB Notification: Performance of Transformations before backend: time 4.969e-06/0.9176, allocations: 3.938 kB / 1.343 GB, free: 14.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.0003094/0.9179, allocations: 352 kB / 1.343 GB, free: 14.33 MB / 1.061 GB Notification: Performance of prepare preOptimizeDAE: time 3.74e-05/0.9179, allocations: 17.95 kB / 1.343 GB, free: 14.32 MB / 1.061 GB Notification: Performance of preOpt introduceOutputRealDerivatives (simulation): time 1.177e-05/0.9179, allocations: 192 / 1.343 GB, free: 14.32 MB / 1.061 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 1.562e-05/0.9179, allocations: 32.94 kB / 1.343 GB, free: 14.29 MB / 1.061 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 2.042e-05/0.918, allocations: 0.9375 kB / 1.343 GB, free: 14.29 MB / 1.061 GB Notification: Performance of preOpt evaluateParameters (simulation): time 7.642e-05/0.918, allocations: 163 kB / 1.343 GB, free: 14.09 MB / 1.061 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 5.3e-06/0.918, allocations: 4.375 kB / 1.343 GB, free: 14.09 MB / 1.061 GB Notification: Performance of preOpt expandDerOperator (simulation): time 1.018e-05/0.918, allocations: 1.781 kB / 1.343 GB, free: 14.09 MB / 1.061 GB Notification: Performance of preOpt clockPartitioning (simulation): time 7.308e-05/0.9181, allocations: 34.78 kB / 1.343 GB, free: 14.05 MB / 1.061 GB Notification: Performance of preOpt findStateOrder (simulation): time 7.945e-06/0.9181, allocations: 1.375 kB / 1.343 GB, free: 14.05 MB / 1.061 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 6.843e-06/0.9181, allocations: 4 kB / 1.343 GB, free: 14.05 MB / 1.061 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.299e-06/0.9181, allocations: 0.75 kB / 1.343 GB, free: 14.05 MB / 1.061 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 2.295e-05/0.9182, allocations: 6.656 kB / 1.343 GB, free: 14.04 MB / 1.061 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0001064/0.9183, allocations: 148.4 kB / 1.343 GB, free: 13.86 MB / 1.061 GB Notification: Performance of preOpt comSubExp (simulation): time 4.237e-05/0.9183, allocations: 27.2 kB / 1.343 GB, free: 13.82 MB / 1.061 GB Notification: Performance of preOpt resolveLoops (simulation): time 1.697e-05/0.9183, allocations: 8.312 kB / 1.343 GB, free: 13.82 MB / 1.061 GB Notification: Performance of preOpt evalFunc (simulation): time 1.629e-05/0.9183, allocations: 0.5156 kB / 1.343 GB, free: 13.82 MB / 1.061 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.048e-05/0.9184, allocations: 35.53 kB / 1.343 GB, free: 13.77 MB / 1.061 GB Notification: Performance of pre-optimization done (n=2): time 9.72e-07/0.9184, allocations: 1.469 kB / 1.343 GB, free: 13.77 MB / 1.061 GB Notification: Performance of matching and sorting (n=2): time 0.0001226/0.9185, allocations: 44.88 kB / 1.343 GB, free: 13.73 MB / 1.061 GB Notification: Performance of inlineWhenForInitialization (initialization): time 1.718e-05/0.9185, allocations: 55.53 kB / 1.343 GB, free: 13.67 MB / 1.061 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 4.56e-05/0.9185, allocations: 94.64 kB / 1.344 GB, free: 13.57 MB / 1.061 GB Notification: Performance of collectPreVariables (initialization): time 6.052e-06/0.9185, allocations: 29.7 kB / 1.344 GB, free: 13.54 MB / 1.061 GB Notification: Performance of collectInitialEqns (initialization): time 1.049e-05/0.9186, allocations: 81.11 kB / 1.344 GB, free: 13.45 MB / 1.061 GB Notification: Performance of collectInitialBindings (initialization): time 1.934e-05/0.9186, allocations: 9.906 kB / 1.344 GB, free: 13.45 MB / 1.061 GB Notification: Performance of simplifyInitialFunctions (initialization): time 2.334e-05/0.9186, allocations: 12.95 kB / 1.344 GB, free: 13.43 MB / 1.061 GB Notification: Performance of setup shared object (initialization): time 3.802e-05/0.9186, allocations: 316.9 kB / 1.344 GB, free: 13.11 MB / 1.061 GB Notification: Performance of preBalanceInitialSystem (initialization): time 1.118e-05/0.9186, allocations: 1.156 kB / 1.344 GB, free: 13.11 MB / 1.061 GB Notification: Performance of partitionIndependentBlocks (initialization): time 8.566e-06/0.9187, allocations: 7.109 kB / 1.344 GB, free: 13.11 MB / 1.061 GB Notification: Performance of analyzeInitialSystem (initialization): time 2.372e-05/0.9187, allocations: 10.09 kB / 1.344 GB, free: 13.1 MB / 1.061 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.794e-06/0.9187, allocations: 1.125 kB / 1.344 GB, free: 13.1 MB / 1.061 GB Notification: Performance of matching and sorting (n=2) (initialization): time 5.105e-05/0.9187, allocations: 44.02 kB / 1.344 GB, free: 13.06 MB / 1.061 GB Notification: Performance of prepare postOptimizeDAE: time 1.303e-05/0.9187, allocations: 9.766 kB / 1.344 GB, free: 13.06 MB / 1.061 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.587e-06/0.9188, allocations: 0 / 1.344 GB, free: 13.06 MB / 1.061 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.643e-05/0.9188, allocations: 1.188 kB / 1.344 GB, free: 13.06 MB / 1.061 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001389/0.9189, allocations: 9.406 kB / 1.344 GB, free: 13.06 MB / 1.061 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0002081/0.9191, allocations: 0.5882 MB / 1.345 GB, free: 12.46 MB / 1.061 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 1.797e-05/0.9191, allocations: 8.719 kB / 1.345 GB, free: 12.46 MB / 1.061 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.26e-06/0.9191, allocations: 0 / 1.345 GB, free: 12.46 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 4.377e-05/0.9192, allocations: 117.3 kB / 1.345 GB, free: 12.34 MB / 1.061 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 6.743e-06/0.9192, allocations: 0 / 1.345 GB, free: 12.34 MB / 1.061 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 8.438e-05/0.9193, allocations: 52.56 kB / 1.345 GB, free: 12.29 MB / 1.061 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.083e-06/0.9193, allocations: 1.969 kB / 1.345 GB, free: 12.29 MB / 1.061 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.699e-06/0.9193, allocations: 8.734 kB / 1.345 GB, free: 12.28 MB / 1.061 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.164e-06/0.9193, allocations: 0 / 1.345 GB, free: 12.28 MB / 1.061 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 5.355e-05/0.9193, allocations: 150 kB / 1.345 GB, free: 12.09 MB / 1.061 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.332e-06/0.9193, allocations: 1.875 kB / 1.345 GB, free: 12.09 MB / 1.061 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 7.193e-05/0.9194, allocations: 9.984 kB / 1.345 GB, free: 12.09 MB / 1.061 GB Notification: Performance of postOpt tearingSystem (simulation): time 2.194e-06/0.9194, allocations: 0.7031 kB / 1.345 GB, free: 12.09 MB / 1.061 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 5.49e-06/0.9194, allocations: 0 / 1.345 GB, free: 12.09 MB / 1.061 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0001566/0.9196, allocations: 0.5921 MB / 1.346 GB, free: 11.49 MB / 1.061 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 9.42e-07/0.9196, allocations: 0 / 1.346 GB, free: 11.49 MB / 1.061 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 5.253e-05/0.9196, allocations: 69.22 kB / 1.346 GB, free: 11.42 MB / 1.061 GB Notification: Performance of postOpt removeConstants (simulation): time 1.527e-05/0.9196, allocations: 79.14 kB / 1.346 GB, free: 11.32 MB / 1.061 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 9.297e-06/0.9197, allocations: 0 / 1.346 GB, free: 11.32 MB / 1.061 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 1.485e-05/0.9197, allocations: 8.625 kB / 1.346 GB, free: 11.32 MB / 1.061 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 1.51e-05/0.9197, allocations: 2.531 kB / 1.346 GB, free: 11.32 MB / 1.061 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.284e-06/0.9197, allocations: 0 / 1.346 GB, free: 11.32 MB / 1.061 GB Notification: Performance of sorting global known variables: time 1.658e-05/0.9197, allocations: 78.05 kB / 1.346 GB, free: 11.24 MB / 1.061 GB Notification: Performance of sort global known variables: time 5e-08/0.9197, allocations: 0 / 1.346 GB, free: 11.24 MB / 1.061 GB Notification: Performance of remove unused functions: time 0.0001916/0.9199, allocations: 12.2 kB / 1.346 GB, free: 11.24 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.0002375/0.9201, allocations: 0.6117 MB / 1.346 GB, free: 10.63 MB / 1.061 GB Notification: Performance of simCode: created initialization part: time 0.0001584/0.9203, allocations: 16.58 kB / 1.346 GB, free: 10.63 MB / 1.061 GB Notification: Performance of simCode: created event and clocks part: time 1.733e-06/0.9203, allocations: 0 / 1.346 GB, free: 10.63 MB / 1.061 GB Notification: Performance of simCode: created simulation system equations: time 8.587e-05/0.9204, allocations: 16.8 kB / 1.346 GB, free: 10.63 MB / 1.061 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001292/0.9205, allocations: 7.438 kB / 1.346 GB, free: 10.62 MB / 1.061 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0003796/0.9209, allocations: 145.9 kB / 1.347 GB, free: 10.47 MB / 1.061 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 8.02e-05/0.921, allocations: 0.6782 MB / 1.347 GB, free: 9.77 MB / 1.061 GB Notification: Performance of simCode: alias equations: time 1.29e-05/0.921, allocations: 0 / 1.347 GB, free: 9.77 MB / 1.061 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 1.871e-05/0.921, allocations: 9.453 kB / 1.347 GB, free: 9.762 MB / 1.061 GB Notification: Performance of SimCode: time 4.01e-07/0.921, allocations: 0 / 1.347 GB, free: 9.762 MB / 1.061 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.01898/0.94, allocations: 1.459 MB / 1.349 GB, free: 9.391 MB / 1.061 GB Notification: Performance of buildModelFMU: Generate platform static: time 11.49/12.43, allocations: 6.594 kB / 1.349 GB, free: 9.387 MB / 1.061 GB " [Timeout remaining time 287] (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: 18.81707450101385]