Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Buildings_11_Buildings.Fluid.BaseClasses.FlowModels.Validation.InvertingBasicFlowFunction_m_flow.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 11.1.0-maint.11.x/package.mo", uses=false) Using package Buildings with version 11.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 11.1.0-maint.11.x/package.mo) Using package Modelica with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo) Using package Complex with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo) Using package ModelicaServices with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo) Running command: translateModel(Buildings.Fluid.BaseClasses.FlowModels.Validation.InvertingBasicFlowFunction_m_flow,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|m_flow|m_flow_nominal|dp",fileNamePrefix="Buildings_11_Buildings.Fluid.BaseClasses.FlowModels.Validation.InvertingBasicFlowFunction_m_flow") translateModel(Buildings.Fluid.BaseClasses.FlowModels.Validation.InvertingBasicFlowFunction_m_flow,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|m_flow|m_flow_nominal|dp",fileNamePrefix="Buildings_11_Buildings.Fluid.BaseClasses.FlowModels.Validation.InvertingBasicFlowFunction_m_flow") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001257/0.001257, allocations: 102.5 kB / 16.27 MB, free: 5.98 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001285/0.001285, allocations: 189.8 kB / 17.2 MB, free: 5.602 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.401/1.401, allocations: 222.9 MB / 240.9 MB, free: 15.2 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 11.1.0-maint.11.x/package.mo): time 2.722/2.722, allocations: 469.8 MB / 0.743 GB, free: 3.391 MB / 0.6075 GB Notification: Performance of FrontEnd - loaded program: time 0.001932/0.001932, allocations: 64.2 kB / 0.9092 GB, free: 13.88 MB / 0.6856 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3295/0.3315, allocations: 159.2 MB / 1.065 GB, free: 14.75 MB / 0.8419 GB Notification: Performance of NFInst.instantiate(Buildings.Fluid.BaseClasses.FlowModels.Validation.InvertingBasicFlowFunction_m_flow): time 0.002677/0.3342, allocations: 1.249 MB / 1.066 GB, free: 13.48 MB / 0.8419 GB Notification: Performance of NFInst.instExpressions: time 0.001011/0.3352, allocations: 0.5877 MB / 1.066 GB, free: 12.89 MB / 0.8419 GB Notification: Performance of NFInst.updateImplicitVariability: time 2.351e-05/0.3352, allocations: 0 / 1.066 GB, free: 12.89 MB / 0.8419 GB Notification: Performance of NFTyping.typeComponents: time 1.326e-05/0.3353, allocations: 0 / 1.066 GB, free: 12.89 MB / 0.8419 GB Notification: Performance of NFTyping.typeBindings: time 4.33e-05/0.3353, allocations: 3.938 kB / 1.066 GB, free: 12.89 MB / 0.8419 GB Notification: Performance of NFTyping.typeClassSections: time 0.0005074/0.3358, allocations: 143.4 kB / 1.067 GB, free: 12.75 MB / 0.8419 GB Notification: Performance of NFFlatten.flatten: time 4.279e-05/0.3359, allocations: 4 kB / 1.067 GB, free: 12.75 MB / 0.8419 GB Notification: Performance of NFFlatten.resolveConnections: time 4.305e-05/0.3359, allocations: 4 kB / 1.067 GB, free: 12.74 MB / 0.8419 GB Notification: Performance of NFEvalConstants.evaluate: time 1.984e-05/0.336, allocations: 7.938 kB / 1.067 GB, free: 12.73 MB / 0.8419 GB Notification: Performance of NFSimplifyModel.simplify: time 3.605e-05/0.336, allocations: 4 kB / 1.067 GB, free: 12.73 MB / 0.8419 GB Notification: Performance of NFPackage.collectConstants: time 9.969e-06/0.336, allocations: 0 / 1.067 GB, free: 12.73 MB / 0.8419 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0005439/0.3366, allocations: 347.3 kB / 1.067 GB, free: 12.39 MB / 0.8419 GB Notification: Performance of NFScalarize.scalarize: time 8.436e-06/0.3366, allocations: 0 / 1.067 GB, free: 12.39 MB / 0.8419 GB Notification: Performance of NFVerifyModel.verify: time 2.503e-05/0.3366, allocations: 7.938 kB / 1.067 GB, free: 12.38 MB / 0.8419 GB Notification: Performance of NFConvertDAE.convert: time 0.0002506/0.3369, allocations: 140 kB / 1.067 GB, free: 12.25 MB / 0.8419 GB Notification: Performance of FrontEnd - DAE generated: time 2.735e-06/0.3369, allocations: 4 kB / 1.067 GB, free: 12.24 MB / 0.8419 GB Notification: Performance of FrontEnd: time 8.91e-07/0.3369, allocations: 0 / 1.067 GB, free: 12.24 MB / 0.8419 GB Notification: Performance of Transformations before backend: time 3.967e-06/0.3369, allocations: 0 / 1.067 GB, free: 12.24 MB / 0.8419 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.0004807/0.3374, allocations: 355.5 kB / 1.067 GB, free: 11.84 MB / 0.8419 GB Notification: Performance of prepare preOptimizeDAE: time 3.471e-05/0.3374, allocations: 8.031 kB / 1.067 GB, free: 11.84 MB / 0.8419 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 2.793e-05/0.3375, allocations: 4.938 kB / 1.067 GB, free: 11.83 MB / 0.8419 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001442/0.3376, allocations: 164.4 kB / 1.068 GB, free: 11.63 MB / 0.8419 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.232e-05/0.3376, allocations: 4.312 kB / 1.068 GB, free: 11.63 MB / 0.8419 GB Notification: Performance of preOpt expandDerOperator (simulation): time 8.786e-06/0.3376, allocations: 8.25 kB / 1.068 GB, free: 11.62 MB / 0.8419 GB Notification: Performance of preOpt clockPartitioning (simulation): time 8.589e-05/0.3377, allocations: 34.27 kB / 1.068 GB, free: 11.58 MB / 0.8419 GB Notification: Performance of preOpt findStateOrder (simulation): time 7.114e-06/0.3378, allocations: 192 / 1.068 GB, free: 11.58 MB / 0.8419 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.003e-05/0.3378, allocations: 3.938 kB / 1.068 GB, free: 11.58 MB / 0.8419 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.849e-06/0.3378, allocations: 0 / 1.068 GB, free: 11.58 MB / 0.8419 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 3.605e-05/0.3378, allocations: 8 kB / 1.068 GB, free: 11.57 MB / 0.8419 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0001724/0.338, allocations: 149.7 kB / 1.068 GB, free: 11.38 MB / 0.8419 GB Notification: Performance of preOpt comSubExp (simulation): time 4.946e-05/0.3381, allocations: 22.61 kB / 1.068 GB, free: 11.34 MB / 0.8419 GB Notification: Performance of preOpt resolveLoops (simulation): time 2.225e-05/0.3381, allocations: 16.86 kB / 1.068 GB, free: 11.32 MB / 0.8419 GB Notification: Performance of preOpt evalFunc (simulation): time 2.148e-05/0.3381, allocations: 3.984 kB / 1.068 GB, free: 11.32 MB / 0.8419 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.793e-05/0.3381, allocations: 30.56 kB / 1.068 GB, free: 11.28 MB / 0.8419 GB Notification: Performance of pre-optimization done (n=2): time 8.91e-07/0.3381, allocations: 0 / 1.068 GB, free: 11.28 MB / 0.8419 GB Notification: Performance of matching and sorting (n=2): time 0.0001505/0.3383, allocations: 53.53 kB / 1.068 GB, free: 11.22 MB / 0.8419 GB Notification: Performance of inlineWhenForInitialization (initialization): time 3.97e-05/0.3384, allocations: 51.41 kB / 1.068 GB, free: 11.16 MB / 0.8419 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 7.266e-05/0.3384, allocations: 90.08 kB / 1.068 GB, free: 11.06 MB / 0.8419 GB Notification: Performance of collectPreVariables (initialization): time 1.562e-05/0.3385, allocations: 29.73 kB / 1.068 GB, free: 11.03 MB / 0.8419 GB Notification: Performance of collectInitialEqns (initialization): time 5.122e-05/0.3385, allocations: 88.14 kB / 1.068 GB, free: 10.94 MB / 0.8419 GB Notification: Performance of collectInitialBindings (initialization): time 2.543e-05/0.3385, allocations: 3.984 kB / 1.068 GB, free: 10.93 MB / 0.8419 GB Notification: Performance of simplifyInitialFunctions (initialization): time 2.856e-05/0.3386, allocations: 13.72 kB / 1.068 GB, free: 10.91 MB / 0.8419 GB Notification: Performance of setup shared object (initialization): time 0.0001446/0.3387, allocations: 310.8 kB / 1.068 GB, free: 10.6 MB / 0.8419 GB Notification: Performance of preBalanceInitialSystem (initialization): time 1.577e-05/0.3387, allocations: 7.938 kB / 1.068 GB, free: 10.59 MB / 0.8419 GB Notification: Performance of partitionIndependentBlocks (initialization): time 9.829e-06/0.3388, allocations: 4 kB / 1.068 GB, free: 10.59 MB / 0.8419 GB Notification: Performance of analyzeInitialSystem (initialization): time 3.187e-05/0.3388, allocations: 12.92 kB / 1.068 GB, free: 10.57 MB / 0.8419 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.443e-06/0.3388, allocations: 0 / 1.068 GB, free: 10.57 MB / 0.8419 GB Notification: Performance of matching and sorting (n=2) (initialization): time 6.626e-05/0.3389, allocations: 45.59 kB / 1.069 GB, free: 10.52 MB / 0.8419 GB Notification: Performance of prepare postOptimizeDAE: time 1.275e-05/0.3389, allocations: 4 kB / 1.069 GB, free: 10.52 MB / 0.8419 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.972e-05/0.3389, allocations: 11.94 kB / 1.069 GB, free: 10.51 MB / 0.8419 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.555e-05/0.3389, allocations: 0 / 1.069 GB, free: 10.51 MB / 0.8419 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001552/0.3391, allocations: 11.98 kB / 1.069 GB, free: 10.5 MB / 0.8419 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.000434/0.3395, allocations: 0.586 MB / 1.069 GB, free: 9.887 MB / 0.8419 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 1.845e-05/0.3396, allocations: 0 / 1.069 GB, free: 9.887 MB / 0.8419 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.22e-06/0.3396, allocations: 0 / 1.069 GB, free: 9.887 MB / 0.8419 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.552e-05/0.3397, allocations: 115.6 kB / 1.069 GB, free: 9.766 MB / 0.8419 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.216e-05/0.3397, allocations: 7.984 kB / 1.069 GB, free: 9.758 MB / 0.8419 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001246/0.3398, allocations: 44.81 kB / 1.069 GB, free: 9.707 MB / 0.8419 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.013e-06/0.3398, allocations: 7.875 kB / 1.069 GB, free: 9.699 MB / 0.8419 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.148e-06/0.3399, allocations: 128 / 1.069 GB, free: 9.699 MB / 0.8419 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.855e-06/0.3399, allocations: 4 kB / 1.069 GB, free: 9.695 MB / 0.8419 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001325/0.34, allocations: 153.6 kB / 1.069 GB, free: 9.496 MB / 0.8419 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 9.62e-07/0.34, allocations: 0 / 1.069 GB, free: 9.496 MB / 0.8419 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 7.423e-05/0.3401, allocations: 8 kB / 1.069 GB, free: 9.488 MB / 0.8419 GB Notification: Performance of postOpt tearingSystem (simulation): time 1.863e-06/0.3401, allocations: 0 / 1.069 GB, free: 9.488 MB / 0.8419 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 6.512e-06/0.3401, allocations: 3.938 kB / 1.069 GB, free: 9.484 MB / 0.8419 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0003834/0.3405, allocations: 0.5859 MB / 1.07 GB, free: 8.875 MB / 0.8419 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.946e-06/0.3405, allocations: 8.031 kB / 1.07 GB, free: 8.867 MB / 0.8419 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001104/0.3406, allocations: 65.11 kB / 1.07 GB, free: 8.785 MB / 0.8419 GB Notification: Performance of postOpt removeConstants (simulation): time 4.812e-05/0.3407, allocations: 81.09 kB / 1.07 GB, free: 8.688 MB / 0.8419 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.202e-05/0.3407, allocations: 4 kB / 1.07 GB, free: 8.684 MB / 0.8419 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 1.418e-05/0.3407, allocations: 0 / 1.07 GB, free: 8.684 MB / 0.8419 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 1.667e-05/0.3407, allocations: 7.938 kB / 1.07 GB, free: 8.676 MB / 0.8419 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.245e-06/0.3408, allocations: 0 / 1.07 GB, free: 8.676 MB / 0.8419 GB Notification: Performance of sorting global known variables: time 5.679e-05/0.3408, allocations: 79.31 kB / 1.07 GB, free: 8.598 MB / 0.8419 GB Notification: Performance of sort global known variables: time 1.11e-07/0.3408, allocations: 0 / 1.07 GB, free: 8.598 MB / 0.8419 GB Notification: Performance of remove unused functions: time 0.0002076/0.341, allocations: 8 kB / 1.07 GB, free: 8.59 MB / 0.8419 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.0002057/0.3412, allocations: 117.4 kB / 1.07 GB, free: 8.465 MB / 0.8419 GB Notification: Performance of simCode: created initialization part: time 0.0001775/0.3414, allocations: 19.98 kB / 1.07 GB, free: 8.445 MB / 0.8419 GB Notification: Performance of simCode: created event and clocks part: time 2.295e-06/0.3414, allocations: 0 / 1.07 GB, free: 8.445 MB / 0.8419 GB Notification: Performance of simCode: created simulation system equations: time 9.366e-05/0.3415, allocations: 24.08 kB / 1.07 GB, free: 8.422 MB / 0.8419 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001372/0.3417, allocations: 0 / 1.07 GB, free: 8.422 MB / 0.8419 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0003918/0.3421, allocations: 131.7 kB / 1.071 GB, free: 8.262 MB / 0.8419 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003254/0.3424, allocations: 0.6729 MB / 1.071 GB, free: 7.562 MB / 0.8419 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 2.041e-05/0.3425, allocations: 7.438 kB / 1.071 GB, free: 7.555 MB / 0.8419 GB Notification: Performance of SimCode: time 2.71e-07/0.3425, allocations: 3.938 kB / 1.071 GB, free: 7.551 MB / 0.8419 GB Notification: Performance of Templates: time 0.002615/0.3451, allocations: 0.6976 MB / 1.072 GB, free: 6.859 MB / 0.8419 GB make -j1 -f Buildings_11_Buildings.Fluid.BaseClasses.FlowModels.Validation.InvertingBasicFlowFunction_m_flow.makefile (rm -f Buildings_11_Buildings.Fluid.BaseClasses.FlowModels.Validation.InvertingBasicFlowFunction_m_flow.pipe ; mkfifo Buildings_11_Buildings.Fluid.BaseClasses.FlowModels.Validation.InvertingBasicFlowFunction_m_flow.pipe ; head -c 1048576 < Buildings_11_Buildings.Fluid.BaseClasses.FlowModels.Validation.InvertingBasicFlowFunction_m_flow.pipe >> ../files/Buildings_11_Buildings.Fluid.BaseClasses.FlowModels.Validation.InvertingBasicFlowFunction_m_flow.sim & ./Buildings_11_Buildings.Fluid.BaseClasses.FlowModels.Validation.InvertingBasicFlowFunction_m_flow -abortSlowSimulation -alarm=400 -emit_protected -lv LOG_STATS > Buildings_11_Buildings.Fluid.BaseClasses.FlowModels.Validation.InvertingBasicFlowFunction_m_flow.pipe 2>&1) diffSimulationResults("Buildings_11_Buildings.Fluid.BaseClasses.FlowModels.Validation.InvertingBasicFlowFunction_m_flow_res.mat","/mnt/ReferenceFiles/Buildings/csv/maint_11.x/Buildings_Fluid_BaseClasses_FlowModels_Validation_InvertingBasicFlowFunction_m_flow.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Buildings_11_Buildings.Fluid.BaseClasses.FlowModels.Validation.InvertingBasicFlowFunction_m_flow.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches