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.001315/0.001315, allocations: 104.4 kB / 19.7 MB, free: 2.125 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.001492/0.001492, allocations: 213.8 kB / 22.99 MB, free: 4.945 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.446/1.446, allocations: 230.6 MB / 256.8 MB, free: 7.812 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.052/3.052, allocations: 0.4892 GB / 0.7951 GB, free: 35.66 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: translateModel(Buildings.Fluid.BaseClasses.FlowModels.Validation.InvertingBasicFlowFunction_m_flow,tolerance=1e-06,outputFormat="mat",numberOfIntervals=2500,variableFilter="time|m_flow|m_flow_nominal|dp",fileNamePrefix="Buildings_12_Buildings.Fluid.BaseClasses.FlowModels.Validation.InvertingBasicFlowFunction_m_flow") translateModel(Buildings.Fluid.BaseClasses.FlowModels.Validation.InvertingBasicFlowFunction_m_flow,tolerance=1e-06,outputFormat="mat",numberOfIntervals=2500,variableFilter="time|m_flow|m_flow_nominal|dp",fileNamePrefix="Buildings_12_Buildings.Fluid.BaseClasses.FlowModels.Validation.InvertingBasicFlowFunction_m_flow") [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.002058/0.002058, allocations: 73.23 kB / 1.154 GB, free: 25.39 MB / 0.9044 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3119/0.3139, allocations: 176.1 MB / 1.326 GB, free: 1.727 MB / 1.014 GB Notification: Performance of NFInst.instantiate(Buildings.Fluid.BaseClasses.FlowModels.Validation.InvertingBasicFlowFunction_m_flow): time 0.002355/0.3163, allocations: 1.28 MB / 1.328 GB, free: 452 kB / 1.014 GB Notification: Performance of NFInst.instExpressions: time 0.001017/0.3173, allocations: 0.522 MB / 1.328 GB, free: 15.92 MB / 1.029 GB Notification: Performance of NFInst.updateImplicitVariability: time 2.469e-05/0.3173, allocations: 0 / 1.328 GB, free: 15.92 MB / 1.029 GB Notification: Performance of NFTyping.typeComponents: time 1.94e-05/0.3174, allocations: 0 / 1.328 GB, free: 15.92 MB / 1.029 GB Notification: Performance of NFTyping.typeBindings: time 3.474e-05/0.3174, allocations: 0 / 1.328 GB, free: 15.92 MB / 1.029 GB Notification: Performance of NFTyping.typeClassSections: time 0.0005087/0.3179, allocations: 139.4 kB / 1.328 GB, free: 15.78 MB / 1.029 GB Notification: Performance of NFFlatten.flatten: time 5.111e-05/0.3179, allocations: 15.88 kB / 1.328 GB, free: 15.77 MB / 1.029 GB Notification: Performance of NFFlatten.resolveConnections: time 4.546e-05/0.318, allocations: 4 kB / 1.328 GB, free: 15.76 MB / 1.029 GB Notification: Performance of NFEvalConstants.evaluate: time 2.645e-05/0.318, allocations: 3.984 kB / 1.328 GB, free: 15.76 MB / 1.029 GB Notification: Performance of NFSimplifyModel.simplify: time 3.988e-05/0.3181, allocations: 4 kB / 1.328 GB, free: 15.75 MB / 1.029 GB Notification: Performance of NFPackage.collectConstants: time 9.528e-06/0.3181, allocations: 0 / 1.328 GB, free: 15.75 MB / 1.029 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0004528/0.3185, allocations: 267.5 kB / 1.328 GB, free: 15.49 MB / 1.029 GB Notification: Performance of NFScalarize.scalarize: time 1.093e-05/0.3185, allocations: 0 / 1.328 GB, free: 15.49 MB / 1.029 GB Notification: Performance of NFVerifyModel.verify: time 1.891e-05/0.3186, allocations: 7.938 kB / 1.328 GB, free: 15.48 MB / 1.029 GB Notification: Performance of NFConvertDAE.convert: time 0.0002391/0.3188, allocations: 127.6 kB / 1.329 GB, free: 15.36 MB / 1.029 GB Notification: Performance of FrontEnd - DAE generated: time 3.797e-06/0.3188, allocations: 4 kB / 1.329 GB, free: 15.36 MB / 1.029 GB Notification: Performance of FrontEnd: time 1.593e-06/0.3188, allocations: 4 kB / 1.329 GB, free: 15.35 MB / 1.029 GB Notification: Performance of Transformations before backend: time 9.227e-06/0.3188, allocations: 3.938 kB / 1.329 GB, free: 15.35 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.0004171/0.3192, allocations: 282 kB / 1.329 GB, free: 15.04 MB / 1.029 GB Notification: Performance of prepare preOptimizeDAE: time 3.313e-05/0.3193, allocations: 8.031 kB / 1.329 GB, free: 15.03 MB / 1.029 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 2.727e-05/0.3193, allocations: 4.891 kB / 1.329 GB, free: 15.03 MB / 1.029 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001136/0.3194, allocations: 110.5 kB / 1.329 GB, free: 14.89 MB / 1.029 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 7.264e-06/0.3194, allocations: 384 / 1.329 GB, free: 14.89 MB / 1.029 GB Notification: Performance of preOpt expandDerOperator (simulation): time 1.145e-05/0.3194, allocations: 384 / 1.329 GB, free: 14.89 MB / 1.029 GB Notification: Performance of preOpt clockPartitioning (simulation): time 9.488e-05/0.3195, allocations: 38.25 kB / 1.329 GB, free: 14.85 MB / 1.029 GB Notification: Performance of preOpt findStateOrder (simulation): time 7.995e-06/0.3195, allocations: 4.188 kB / 1.329 GB, free: 14.85 MB / 1.029 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.06e-05/0.3195, allocations: 3.938 kB / 1.329 GB, free: 14.84 MB / 1.029 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.264e-06/0.3195, allocations: 7.984 kB / 1.329 GB, free: 14.84 MB / 1.029 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 2.224e-05/0.3196, allocations: 3.938 kB / 1.329 GB, free: 14.83 MB / 1.029 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0001378/0.3197, allocations: 101.3 kB / 1.329 GB, free: 14.7 MB / 1.029 GB Notification: Performance of preOpt comSubExp (simulation): time 6.12e-05/0.3198, allocations: 18.61 kB / 1.329 GB, free: 14.68 MB / 1.029 GB Notification: Performance of preOpt resolveLoops (simulation): time 2.014e-05/0.3198, allocations: 8.922 kB / 1.329 GB, free: 14.66 MB / 1.029 GB Notification: Performance of preOpt evalFunc (simulation): time 2.304e-05/0.3198, allocations: 3.984 kB / 1.329 GB, free: 14.66 MB / 1.029 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.414e-05/0.3198, allocations: 30.56 kB / 1.329 GB, free: 14.62 MB / 1.029 GB Notification: Performance of pre-optimization done (n=2): time 9.72e-07/0.3198, allocations: 4 kB / 1.329 GB, free: 14.62 MB / 1.029 GB Notification: Performance of matching and sorting (n=2): time 0.0001583/0.32, allocations: 49.58 kB / 1.329 GB, free: 14.56 MB / 1.029 GB Notification: Performance of inlineWhenForInitialization (initialization): time 3.926e-05/0.32, allocations: 51.41 kB / 1.329 GB, free: 14.5 MB / 1.029 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 8.087e-05/0.3201, allocations: 101.8 kB / 1.329 GB, free: 14.39 MB / 1.029 GB Notification: Performance of collectPreVariables (initialization): time 2.174e-05/0.3201, allocations: 25.7 kB / 1.329 GB, free: 14.36 MB / 1.029 GB Notification: Performance of collectInitialEqns (initialization): time 3.842e-05/0.3202, allocations: 80.14 kB / 1.329 GB, free: 14.28 MB / 1.029 GB Notification: Performance of collectInitialBindings (initialization): time 2.196e-05/0.3202, allocations: 3.953 kB / 1.329 GB, free: 14.27 MB / 1.029 GB Notification: Performance of simplifyInitialFunctions (initialization): time 3.091e-05/0.3202, allocations: 13.72 kB / 1.33 GB, free: 14.25 MB / 1.029 GB Notification: Performance of setup shared object (initialization): time 0.0001434/0.3204, allocations: 314.8 kB / 1.33 GB, free: 13.94 MB / 1.029 GB Notification: Performance of preBalanceInitialSystem (initialization): time 1.488e-05/0.3204, allocations: 4 kB / 1.33 GB, free: 13.93 MB / 1.029 GB Notification: Performance of partitionIndependentBlocks (initialization): time 9.288e-06/0.3204, allocations: 4.25 kB / 1.33 GB, free: 13.93 MB / 1.029 GB Notification: Performance of analyzeInitialSystem (initialization): time 3.439e-05/0.3204, allocations: 20.78 kB / 1.33 GB, free: 13.91 MB / 1.029 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.837e-06/0.3204, allocations: 4 kB / 1.33 GB, free: 13.9 MB / 1.029 GB Notification: Performance of matching and sorting (n=2) (initialization): time 7.062e-05/0.3205, allocations: 37.7 kB / 1.33 GB, free: 13.86 MB / 1.029 GB Notification: Performance of prepare postOptimizeDAE: time 1.164e-05/0.3205, allocations: 4 kB / 1.33 GB, free: 13.86 MB / 1.029 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.957e-06/0.3205, allocations: 0 / 1.33 GB, free: 13.86 MB / 1.029 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.464e-05/0.3205, allocations: 3.938 kB / 1.33 GB, free: 13.85 MB / 1.029 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001452/0.3207, allocations: 11.98 kB / 1.33 GB, free: 13.84 MB / 1.029 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0004238/0.3211, allocations: 0.5862 MB / 1.33 GB, free: 13.23 MB / 1.029 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 1.914e-05/0.3211, allocations: 11.83 kB / 1.33 GB, free: 13.22 MB / 1.029 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.458e-06/0.3211, allocations: 0 / 1.33 GB, free: 13.22 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 9.352e-05/0.3212, allocations: 118.3 kB / 1.331 GB, free: 13.09 MB / 1.029 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 6.652e-06/0.3212, allocations: 0 / 1.331 GB, free: 13.09 MB / 1.029 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001064/0.3213, allocations: 45 kB / 1.331 GB, free: 13.04 MB / 1.029 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.783e-06/0.3213, allocations: 0 / 1.331 GB, free: 13.04 MB / 1.029 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.767e-06/0.3213, allocations: 3.938 kB / 1.331 GB, free: 13.04 MB / 1.029 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.164e-06/0.3213, allocations: 0 / 1.331 GB, free: 13.04 MB / 1.029 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 9.532e-05/0.3214, allocations: 101.4 kB / 1.331 GB, free: 12.91 MB / 1.029 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.076e-06/0.3214, allocations: 7.938 kB / 1.331 GB, free: 12.9 MB / 1.029 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 7.39e-05/0.3215, allocations: 8 kB / 1.331 GB, free: 12.89 MB / 1.029 GB Notification: Performance of postOpt tearingSystem (simulation): time 1.823e-06/0.3215, allocations: 0 / 1.331 GB, free: 12.89 MB / 1.029 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 5.29e-06/0.3215, allocations: 0 / 1.331 GB, free: 12.89 MB / 1.029 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0003731/0.3219, allocations: 0.5899 MB / 1.331 GB, free: 12.28 MB / 1.029 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.182e-06/0.3219, allocations: 0 / 1.331 GB, free: 12.28 MB / 1.029 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 7.796e-05/0.322, allocations: 61.11 kB / 1.331 GB, free: 12.2 MB / 1.029 GB Notification: Performance of postOpt removeConstants (simulation): time 1.861e-05/0.322, allocations: 12 kB / 1.331 GB, free: 12.19 MB / 1.029 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.179e-05/0.322, allocations: 4.109 kB / 1.331 GB, free: 12.18 MB / 1.029 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 1.445e-05/0.322, allocations: 4 kB / 1.331 GB, free: 12.18 MB / 1.029 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 1.507e-05/0.322, allocations: 0 / 1.331 GB, free: 12.18 MB / 1.029 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.214e-06/0.322, allocations: 0 / 1.331 GB, free: 12.18 MB / 1.029 GB Notification: Performance of sorting global known variables: time 4.553e-05/0.3221, allocations: 83.22 kB / 1.331 GB, free: 12.1 MB / 1.029 GB Notification: Performance of sort global known variables: time 8e-08/0.3221, allocations: 0 / 1.331 GB, free: 12.1 MB / 1.029 GB Notification: Performance of remove unused functions: time 0.0001974/0.3223, allocations: 15.88 kB / 1.332 GB, free: 12.08 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.0001629/0.3224, allocations: 107.8 kB / 1.332 GB, free: 11.96 MB / 1.029 GB Notification: Performance of simCode: created initialization part: time 0.000179/0.3226, allocations: 28.08 kB / 1.332 GB, free: 11.94 MB / 1.029 GB Notification: Performance of simCode: created event and clocks part: time 2.404e-06/0.3226, allocations: 0 / 1.332 GB, free: 11.94 MB / 1.029 GB Notification: Performance of simCode: created simulation system equations: time 0.0001138/0.3227, allocations: 11.98 kB / 1.332 GB, free: 11.93 MB / 1.029 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001398/0.3229, allocations: 4 kB / 1.332 GB, free: 11.92 MB / 1.029 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.000363/0.3232, allocations: 139.7 kB / 1.332 GB, free: 11.75 MB / 1.029 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 6.139e-05/0.3233, allocations: 55.36 kB / 1.332 GB, free: 11.68 MB / 1.029 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 1.682e-05/0.3233, allocations: 7.438 kB / 1.332 GB, free: 11.67 MB / 1.029 GB Notification: Performance of SimCode: time 3.71e-07/0.3233, allocations: 0 / 1.332 GB, free: 11.67 MB / 1.029 GB Notification: Performance of Templates: time 0.002573/0.3259, allocations: 0.7162 MB / 1.333 GB, free: 10.96 MB / 1.029 GB " [Timeout remaining time 300] make -j1 -f Buildings_12_Buildings.Fluid.BaseClasses.FlowModels.Validation.InvertingBasicFlowFunction_m_flow.makefile [Timeout 300] (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 & ./Buildings_12_Buildings.Fluid.BaseClasses.FlowModels.Validation.InvertingBasicFlowFunction_m_flow -abortSlowSimulation -alarm=400 -emit_protected -lv LOG_STATS > Buildings_12_Buildings.Fluid.BaseClasses.FlowModels.Validation.InvertingBasicFlowFunction_m_flow.pipe 2>&1) [Timeout 400] diffSimulationResults("Buildings_12_Buildings.Fluid.BaseClasses.FlowModels.Validation.InvertingBasicFlowFunction_m_flow_res.mat","/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: 10.811312158592045]