Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Buildings_latest_Buildings.Fluid.BaseClasses.FlowModels.Validation.InvertingBasicFlowFunction_dp.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 12.0.0-master/package.mo", uses=false) Using package Buildings with version 12.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 12.0.0-master/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_dp,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|m_flow|m_flow_nominal|dp",fileNamePrefix="Buildings_latest_Buildings.Fluid.BaseClasses.FlowModels.Validation.InvertingBasicFlowFunction_dp") translateModel(Buildings.Fluid.BaseClasses.FlowModels.Validation.InvertingBasicFlowFunction_dp,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|m_flow|m_flow_nominal|dp",fileNamePrefix="Buildings_latest_Buildings.Fluid.BaseClasses.FlowModels.Validation.InvertingBasicFlowFunction_dp") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.008201/0.008202, allocations: 99.66 kB / 15.73 MB, free: 5.551 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.001788/0.001788, allocations: 196.5 kB / 16.68 MB, free: 5.48 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.369/1.369, allocations: 222.9 MB / 240.4 MB, free: 4.348 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 12.0.0-master/package.mo): time 2.79/2.79, allocations: 472.6 MB / 0.7453 GB, free: 4.574 MB / 0.5919 GB Notification: Performance of FrontEnd - loaded program: time 0.001368/0.001368, allocations: 75.88 kB / 1.069 GB, free: 9.156 MB / 0.8263 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3228/0.3242, allocations: 159.9 MB / 1.226 GB, free: 9.133 MB / 0.9825 GB Notification: Performance of NFInst.instantiate(Buildings.Fluid.BaseClasses.FlowModels.Validation.InvertingBasicFlowFunction_dp): time 0.002369/0.3266, allocations: 1.249 MB / 1.227 GB, free: 7.875 MB / 0.9825 GB Notification: Performance of NFInst.instExpressions: time 0.001001/0.3276, allocations: 0.5838 MB / 1.227 GB, free: 7.289 MB / 0.9825 GB Notification: Performance of NFInst.updateImplicitVariability: time 2.53e-05/0.3277, allocations: 0 / 1.227 GB, free: 7.289 MB / 0.9825 GB Notification: Performance of NFTyping.typeComponents: time 2.114e-05/0.3277, allocations: 3.938 kB / 1.227 GB, free: 7.285 MB / 0.9825 GB Notification: Performance of NFTyping.typeBindings: time 4.343e-05/0.3278, allocations: 0 / 1.227 GB, free: 7.285 MB / 0.9825 GB Notification: Performance of NFTyping.typeClassSections: time 0.0005834/0.3284, allocations: 146.1 kB / 1.228 GB, free: 7.145 MB / 0.9825 GB Notification: Performance of NFFlatten.flatten: time 5.369e-05/0.3284, allocations: 11.94 kB / 1.228 GB, free: 7.133 MB / 0.9825 GB Notification: Performance of NFFlatten.resolveConnections: time 4.709e-05/0.3285, allocations: 7.984 kB / 1.228 GB, free: 7.125 MB / 0.9825 GB Notification: Performance of NFEvalConstants.evaluate: time 2.491e-05/0.3285, allocations: 3.984 kB / 1.228 GB, free: 7.121 MB / 0.9825 GB Notification: Performance of NFSimplifyModel.simplify: time 4.618e-05/0.3286, allocations: 7.938 kB / 1.228 GB, free: 7.113 MB / 0.9825 GB Notification: Performance of NFPackage.collectConstants: time 1.235e-05/0.3286, allocations: 0 / 1.228 GB, free: 7.113 MB / 0.9825 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0005312/0.3291, allocations: 339.3 kB / 1.228 GB, free: 6.781 MB / 0.9825 GB Notification: Performance of NFScalarize.scalarize: time 1.712e-05/0.3291, allocations: 7.984 kB / 1.228 GB, free: 6.773 MB / 0.9825 GB Notification: Performance of NFVerifyModel.verify: time 2.605e-05/0.3292, allocations: 3.938 kB / 1.228 GB, free: 6.77 MB / 0.9825 GB Notification: Performance of NFConvertDAE.convert: time 0.000292/0.3295, allocations: 139.6 kB / 1.228 GB, free: 6.633 MB / 0.9825 GB Notification: Performance of FrontEnd - DAE generated: time 5.1e-06/0.3295, allocations: 7.938 kB / 1.228 GB, free: 6.625 MB / 0.9825 GB Notification: Performance of FrontEnd: time 2.174e-06/0.3295, allocations: 0 / 1.228 GB, free: 6.625 MB / 0.9825 GB Notification: Performance of Transformations before backend: time 5.931e-06/0.3295, allocations: 0 / 1.228 GB, free: 6.625 MB / 0.9825 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.0004002/0.3299, allocations: 351.2 kB / 1.228 GB, free: 6.23 MB / 0.9825 GB Notification: Performance of prepare preOptimizeDAE: time 3.853e-05/0.33, allocations: 8.031 kB / 1.228 GB, free: 6.223 MB / 0.9825 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.128e-05/0.33, allocations: 4.938 kB / 1.228 GB, free: 6.219 MB / 0.9825 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001065/0.3301, allocations: 168.3 kB / 1.229 GB, free: 6.016 MB / 0.9825 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 9.688e-06/0.3301, allocations: 384 / 1.229 GB, free: 6.016 MB / 0.9825 GB Notification: Performance of preOpt expandDerOperator (simulation): time 7.283e-06/0.3301, allocations: 384 / 1.229 GB, free: 6.016 MB / 0.9825 GB Notification: Performance of preOpt clockPartitioning (simulation): time 9.058e-05/0.3302, allocations: 38.27 kB / 1.229 GB, free: 5.973 MB / 0.9825 GB Notification: Performance of preOpt findStateOrder (simulation): time 7.023e-06/0.3302, allocations: 4.125 kB / 1.229 GB, free: 5.969 MB / 0.9825 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 9.477e-06/0.3303, allocations: 3.938 kB / 1.229 GB, free: 5.965 MB / 0.9825 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.468e-06/0.3303, allocations: 0 / 1.229 GB, free: 5.965 MB / 0.9825 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 2.343e-05/0.3303, allocations: 4 kB / 1.229 GB, free: 5.961 MB / 0.9825 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0001492/0.3305, allocations: 157.6 kB / 1.229 GB, free: 5.758 MB / 0.9825 GB Notification: Performance of preOpt comSubExp (simulation): time 4.479e-05/0.3305, allocations: 18.61 kB / 1.229 GB, free: 5.73 MB / 0.9825 GB Notification: Performance of preOpt resolveLoops (simulation): time 2.533e-05/0.3305, allocations: 12.92 kB / 1.229 GB, free: 5.715 MB / 0.9825 GB Notification: Performance of preOpt evalFunc (simulation): time 2.133e-05/0.3306, allocations: 0 / 1.229 GB, free: 5.715 MB / 0.9825 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.358e-05/0.3306, allocations: 34.55 kB / 1.229 GB, free: 5.672 MB / 0.9825 GB Notification: Performance of pre-optimization done (n=2): time 1.092e-06/0.3306, allocations: 0 / 1.229 GB, free: 5.672 MB / 0.9825 GB Notification: Performance of matching and sorting (n=2): time 0.0001392/0.3307, allocations: 53.53 kB / 1.229 GB, free: 5.613 MB / 0.9825 GB Notification: Performance of inlineWhenForInitialization (initialization): time 3.809e-05/0.3308, allocations: 51.41 kB / 1.229 GB, free: 5.551 MB / 0.9825 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 7.787e-05/0.3309, allocations: 97.86 kB / 1.229 GB, free: 5.445 MB / 0.9825 GB Notification: Performance of collectPreVariables (initialization): time 2.178e-05/0.3309, allocations: 29.95 kB / 1.229 GB, free: 5.41 MB / 0.9825 GB Notification: Performance of collectInitialEqns (initialization): time 2.965e-05/0.3309, allocations: 84.12 kB / 1.229 GB, free: 5.324 MB / 0.9825 GB Notification: Performance of collectInitialBindings (initialization): time 2.344e-05/0.331, allocations: 0 / 1.229 GB, free: 5.324 MB / 0.9825 GB Notification: Performance of simplifyInitialFunctions (initialization): time 2.833e-05/0.331, allocations: 13.72 kB / 1.229 GB, free: 5.305 MB / 0.9825 GB Notification: Performance of setup shared object (initialization): time 0.0001045/0.3311, allocations: 314.8 kB / 1.229 GB, free: 4.988 MB / 0.9825 GB Notification: Performance of preBalanceInitialSystem (initialization): time 1.269e-05/0.3311, allocations: 0 / 1.229 GB, free: 4.988 MB / 0.9825 GB Notification: Performance of partitionIndependentBlocks (initialization): time 1.043e-05/0.3311, allocations: 4 kB / 1.229 GB, free: 4.984 MB / 0.9825 GB Notification: Performance of analyzeInitialSystem (initialization): time 3.332e-05/0.3312, allocations: 8.859 kB / 1.229 GB, free: 4.973 MB / 0.9825 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.426e-06/0.3312, allocations: 8.062 kB / 1.229 GB, free: 4.965 MB / 0.9825 GB Notification: Performance of matching and sorting (n=2) (initialization): time 6.679e-05/0.3313, allocations: 49.58 kB / 1.23 GB, free: 4.91 MB / 0.9825 GB Notification: Performance of prepare postOptimizeDAE: time 1.668e-05/0.3313, allocations: 9.875 kB / 1.23 GB, free: 4.902 MB / 0.9825 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.62e-06/0.3313, allocations: 3.938 kB / 1.23 GB, free: 4.898 MB / 0.9825 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.369e-05/0.3313, allocations: 3.984 kB / 1.23 GB, free: 4.895 MB / 0.9825 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001533/0.3315, allocations: 11.98 kB / 1.23 GB, free: 4.883 MB / 0.9825 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0003439/0.3318, allocations: 0.5822 MB / 1.23 GB, free: 4.277 MB / 0.9825 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 1.808e-05/0.3318, allocations: 0 / 1.23 GB, free: 4.277 MB / 0.9825 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.48e-06/0.3319, allocations: 0 / 1.23 GB, free: 4.277 MB / 0.9825 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.901e-05/0.3319, allocations: 122.3 kB / 1.23 GB, free: 4.148 MB / 0.9825 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 7.795e-06/0.332, allocations: 0 / 1.23 GB, free: 4.148 MB / 0.9825 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001077/0.3321, allocations: 48.75 kB / 1.23 GB, free: 4.094 MB / 0.9825 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.994e-06/0.3321, allocations: 0 / 1.23 GB, free: 4.094 MB / 0.9825 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.208e-06/0.3321, allocations: 0 / 1.23 GB, free: 4.094 MB / 0.9825 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.009e-06/0.3321, allocations: 4.094 kB / 1.23 GB, free: 4.09 MB / 0.9825 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001028/0.3322, allocations: 157.5 kB / 1.23 GB, free: 3.887 MB / 0.9825 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.383e-06/0.3322, allocations: 0 / 1.23 GB, free: 3.887 MB / 0.9825 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 7.436e-05/0.3323, allocations: 8 kB / 1.23 GB, free: 3.879 MB / 0.9825 GB Notification: Performance of postOpt tearingSystem (simulation): time 4.619e-06/0.3323, allocations: 3.984 kB / 1.23 GB, free: 3.875 MB / 0.9825 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 5.821e-06/0.3323, allocations: 0 / 1.23 GB, free: 3.875 MB / 0.9825 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0002772/0.3326, allocations: 0.5899 MB / 1.231 GB, free: 3.262 MB / 0.9825 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.835e-06/0.3326, allocations: 7.938 kB / 1.231 GB, free: 3.254 MB / 0.9825 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 6.644e-05/0.3327, allocations: 61.23 kB / 1.231 GB, free: 3.176 MB / 0.9825 GB Notification: Performance of postOpt removeConstants (simulation): time 3.638e-05/0.3327, allocations: 81.09 kB / 1.231 GB, free: 3.078 MB / 0.9825 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 9.839e-06/0.3327, allocations: 0 / 1.231 GB, free: 3.078 MB / 0.9825 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 1.321e-05/0.3328, allocations: 0 / 1.231 GB, free: 3.078 MB / 0.9825 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 1.185e-05/0.3328, allocations: 7.938 kB / 1.231 GB, free: 3.07 MB / 0.9825 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.676e-06/0.3328, allocations: 0 / 1.231 GB, free: 3.07 MB / 0.9825 GB Notification: Performance of sorting global known variables: time 3.028e-05/0.3328, allocations: 79.31 kB / 1.231 GB, free: 2.992 MB / 0.9825 GB Notification: Performance of sort global known variables: time 1.31e-07/0.3328, allocations: 0 / 1.231 GB, free: 2.992 MB / 0.9825 GB Notification: Performance of remove unused functions: time 0.000194/0.333, allocations: 11.94 kB / 1.231 GB, free: 2.98 MB / 0.9825 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.0001616/0.3332, allocations: 115.2 kB / 1.231 GB, free: 2.855 MB / 0.9825 GB Notification: Performance of simCode: created initialization part: time 0.0001604/0.3334, allocations: 23.92 kB / 1.231 GB, free: 2.832 MB / 0.9825 GB Notification: Performance of simCode: created event and clocks part: time 2.004e-06/0.3334, allocations: 4 kB / 1.231 GB, free: 2.828 MB / 0.9825 GB Notification: Performance of simCode: created simulation system equations: time 8.286e-05/0.3335, allocations: 12.14 kB / 1.231 GB, free: 2.816 MB / 0.9825 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.000131/0.3336, allocations: 4.062 kB / 1.231 GB, free: 2.812 MB / 0.9825 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0002909/0.3339, allocations: 105.9 kB / 1.232 GB, free: 2.684 MB / 0.9825 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002001/0.3341, allocations: 0.6729 MB / 1.232 GB, free: 1.984 MB / 0.9825 GB Notification: Performance of simCode: alias equations: time 1.547e-05/0.3341, allocations: 0 / 1.232 GB, free: 1.984 MB / 0.9825 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 1.526e-05/0.3342, allocations: 11.44 kB / 1.232 GB, free: 1.973 MB / 0.9825 GB Notification: Performance of SimCode: time 2.41e-07/0.3342, allocations: 0 / 1.232 GB, free: 1.973 MB / 0.9825 GB Notification: Performance of Templates: time 0.002379/0.3365, allocations: 465.7 kB / 1.233 GB, free: 1.551 MB / 0.9825 GB make -j1 -f Buildings_latest_Buildings.Fluid.BaseClasses.FlowModels.Validation.InvertingBasicFlowFunction_dp.makefile (rm -f Buildings_latest_Buildings.Fluid.BaseClasses.FlowModels.Validation.InvertingBasicFlowFunction_dp.pipe ; mkfifo Buildings_latest_Buildings.Fluid.BaseClasses.FlowModels.Validation.InvertingBasicFlowFunction_dp.pipe ; head -c 1048576 < Buildings_latest_Buildings.Fluid.BaseClasses.FlowModels.Validation.InvertingBasicFlowFunction_dp.pipe >> ../files/Buildings_latest_Buildings.Fluid.BaseClasses.FlowModels.Validation.InvertingBasicFlowFunction_dp.sim & ./Buildings_latest_Buildings.Fluid.BaseClasses.FlowModels.Validation.InvertingBasicFlowFunction_dp -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Buildings_latest_Buildings.Fluid.BaseClasses.FlowModels.Validation.InvertingBasicFlowFunction_dp.pipe 2>&1) diffSimulationResults("Buildings_latest_Buildings.Fluid.BaseClasses.FlowModels.Validation.InvertingBasicFlowFunction_dp_res.mat","/mnt/ReferenceFiles/Buildings/csv/master/Buildings_Fluid_BaseClasses_FlowModels_Validation_InvertingBasicFlowFunction_dp.csv","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Buildings_latest_Buildings.Fluid.BaseClasses.FlowModels.Validation.InvertingBasicFlowFunction_dp.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches