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 11.0.1-master/package.mo", uses=false) Using package Buildings with version 11.0.1 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 11.0.1-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.001398/0.001398, allocations: 91.38 kB / 15.36 MB, free: 0.7383 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.01297/0.01297, allocations: 169 kB / 16.26 MB, free: 6.613 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.495/1.495, allocations: 223.3 MB / 240.3 MB, free: 5.328 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 11.0.1-master/package.mo): time 2.927/2.927, allocations: 462.7 MB / 0.7364 GB, free: 304 kB / 0.5762 GB Notification: Performance of FrontEnd - loaded program: time 0.0004081/0.0004085, allocations: 10.44 kB / 0.9028 GB, free: 36.67 MB / 0.7169 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3301/0.3305, allocations: 159.6 MB / 1.059 GB, free: 5.512 MB / 0.8106 GB Notification: Performance of NFInst.instantiate(Buildings.Fluid.BaseClasses.FlowModels.Validation.InvertingBasicFlowFunction_dp): time 0.001257/0.3318, allocations: 0.9867 MB / 1.06 GB, free: 4.512 MB / 0.8106 GB Notification: Performance of NFInst.instExpressions: time 0.0009455/0.3328, allocations: 0.5957 MB / 1.06 GB, free: 3.914 MB / 0.8106 GB Notification: Performance of NFInst.updateImplicitVariability: time 1.5e-05/0.3328, allocations: 0 / 1.06 GB, free: 3.914 MB / 0.8106 GB Notification: Performance of NFTyping.typeComponents: time 1.453e-05/0.3329, allocations: 0 / 1.06 GB, free: 3.914 MB / 0.8106 GB Notification: Performance of NFTyping.typeBindings: time 4.045e-05/0.3329, allocations: 4 kB / 1.06 GB, free: 3.91 MB / 0.8106 GB Notification: Performance of NFTyping.typeClassSections: time 0.0004115/0.3333, allocations: 118.7 kB / 1.06 GB, free: 3.797 MB / 0.8106 GB Notification: Performance of NFFlatten.flatten: time 3.604e-05/0.3334, allocations: 7.938 kB / 1.06 GB, free: 3.789 MB / 0.8106 GB Notification: Performance of NFFlatten.resolveConnections: time 3.728e-05/0.3334, allocations: 4 kB / 1.06 GB, free: 3.785 MB / 0.8106 GB Notification: Performance of NFEvalConstants.evaluate: time 1.831e-05/0.3334, allocations: 0 / 1.06 GB, free: 3.785 MB / 0.8106 GB Notification: Performance of NFSimplifyModel.simplify: time 4.424e-05/0.3335, allocations: 15.92 kB / 1.06 GB, free: 3.77 MB / 0.8106 GB Notification: Performance of NFPackage.collectConstants: time 9.638e-06/0.3335, allocations: 0 / 1.06 GB, free: 3.77 MB / 0.8106 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0004663/0.334, allocations: 339.3 kB / 1.061 GB, free: 3.438 MB / 0.8106 GB Notification: Performance of NFScalarize.scalarize: time 1.04e-05/0.334, allocations: 3.984 kB / 1.061 GB, free: 3.434 MB / 0.8106 GB Notification: Performance of NFVerifyModel.verify: time 3.23e-05/0.334, allocations: 33.69 kB / 1.061 GB, free: 3.395 MB / 0.8106 GB Notification: Performance of NFConvertDAE.convert: time 0.000222/0.3343, allocations: 147.9 kB / 1.061 GB, free: 3.25 MB / 0.8106 GB Notification: Performance of FrontEnd - DAE generated: time 3.567e-06/0.3343, allocations: 0 / 1.061 GB, free: 3.25 MB / 0.8106 GB Notification: Performance of FrontEnd: time 1.613e-06/0.3343, allocations: 0 / 1.061 GB, free: 3.25 MB / 0.8106 GB Notification: Performance of Transformations before backend: time 3.356e-06/0.3343, allocations: 3.938 kB / 1.061 GB, free: 3.246 MB / 0.8106 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.0003311/0.3346, allocations: 347.4 kB / 1.061 GB, free: 2.855 MB / 0.8106 GB Notification: Performance of prepare preOptimizeDAE: time 3.432e-05/0.3347, allocations: 12.03 kB / 1.061 GB, free: 2.844 MB / 0.8106 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 2.437e-05/0.3347, allocations: 0.9375 kB / 1.061 GB, free: 2.844 MB / 0.8106 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.000102/0.3348, allocations: 160.4 kB / 1.061 GB, free: 2.648 MB / 0.8106 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 9.738e-06/0.3348, allocations: 384 / 1.061 GB, free: 2.648 MB / 0.8106 GB Notification: Performance of preOpt expandDerOperator (simulation): time 8.226e-06/0.3348, allocations: 12.38 kB / 1.061 GB, free: 2.637 MB / 0.8106 GB Notification: Performance of preOpt clockPartitioning (simulation): time 8.075e-05/0.3349, allocations: 38.19 kB / 1.061 GB, free: 2.594 MB / 0.8106 GB Notification: Performance of preOpt findStateOrder (simulation): time 6.382e-06/0.3349, allocations: 192 / 1.061 GB, free: 2.594 MB / 0.8106 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.017e-05/0.3349, allocations: 3.938 kB / 1.061 GB, free: 2.59 MB / 0.8106 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.288e-06/0.3349, allocations: 0 / 1.061 GB, free: 2.59 MB / 0.8106 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 2.408e-05/0.335, allocations: 4 kB / 1.061 GB, free: 2.586 MB / 0.8106 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0001381/0.3351, allocations: 149.7 kB / 1.062 GB, free: 2.391 MB / 0.8106 GB Notification: Performance of preOpt comSubExp (simulation): time 4.696e-05/0.3352, allocations: 30.55 kB / 1.062 GB, free: 2.352 MB / 0.8106 GB Notification: Performance of preOpt resolveLoops (simulation): time 1.819e-05/0.3352, allocations: 8.859 kB / 1.062 GB, free: 2.34 MB / 0.8106 GB Notification: Performance of preOpt evalFunc (simulation): time 1.73e-05/0.3352, allocations: 0 / 1.062 GB, free: 2.34 MB / 0.8106 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.212e-05/0.3352, allocations: 38.56 kB / 1.062 GB, free: 2.293 MB / 0.8106 GB Notification: Performance of pre-optimization done (n=2): time 7.71e-07/0.3353, allocations: 0 / 1.062 GB, free: 2.293 MB / 0.8106 GB Notification: Performance of matching and sorting (n=2): time 0.0001273/0.3354, allocations: 45.62 kB / 1.062 GB, free: 2.242 MB / 0.8106 GB Notification: Performance of inlineWhenForInitialization (initialization): time 3.423e-05/0.3354, allocations: 51.41 kB / 1.062 GB, free: 2.18 MB / 0.8106 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 6.237e-05/0.3355, allocations: 97.98 kB / 1.062 GB, free: 2.074 MB / 0.8106 GB Notification: Performance of collectPreVariables (initialization): time 1.112e-05/0.3355, allocations: 25.7 kB / 1.062 GB, free: 2.043 MB / 0.8106 GB Notification: Performance of collectInitialEqns (initialization): time 2.966e-05/0.3355, allocations: 80.14 kB / 1.062 GB, free: 1.961 MB / 0.8106 GB Notification: Performance of collectInitialBindings (initialization): time 2.305e-05/0.3356, allocations: 3.906 kB / 1.062 GB, free: 1.957 MB / 0.8106 GB Notification: Performance of simplifyInitialFunctions (initialization): time 2.293e-05/0.3356, allocations: 17.72 kB / 1.062 GB, free: 1.934 MB / 0.8106 GB Notification: Performance of setup shared object (initialization): time 9.116e-05/0.3357, allocations: 314.8 kB / 1.062 GB, free: 1.617 MB / 0.8106 GB Notification: Performance of preBalanceInitialSystem (initialization): time 1.082e-05/0.3357, allocations: 0 / 1.062 GB, free: 1.617 MB / 0.8106 GB Notification: Performance of partitionIndependentBlocks (initialization): time 1.011e-05/0.3357, allocations: 7.938 kB / 1.062 GB, free: 1.609 MB / 0.8106 GB Notification: Performance of analyzeInitialSystem (initialization): time 2.885e-05/0.3358, allocations: 17.05 kB / 1.062 GB, free: 1.59 MB / 0.8106 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.684e-06/0.3358, allocations: 0 / 1.062 GB, free: 1.59 MB / 0.8106 GB Notification: Performance of matching and sorting (n=2) (initialization): time 5.621e-05/0.3358, allocations: 33.7 kB / 1.062 GB, free: 1.551 MB / 0.8106 GB Notification: Performance of prepare postOptimizeDAE: time 1.385e-05/0.3359, allocations: 11.98 kB / 1.062 GB, free: 1.539 MB / 0.8106 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.21e-06/0.3359, allocations: 3.938 kB / 1.062 GB, free: 1.535 MB / 0.8106 GB Notification: Performance of postOpt tearingSystem (initialization): time 8.816e-06/0.3359, allocations: 0 / 1.062 GB, free: 1.535 MB / 0.8106 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001547/0.336, allocations: 8 kB / 1.062 GB, free: 1.527 MB / 0.8106 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0003777/0.3364, allocations: 0.5937 MB / 1.063 GB, free: 0.9102 MB / 0.8106 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 1.694e-05/0.3364, allocations: 0 / 1.063 GB, free: 0.9102 MB / 0.8106 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 8.496e-06/0.3365, allocations: 7.984 kB / 1.063 GB, free: 0.9023 MB / 0.8106 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 6.76e-05/0.3365, allocations: 113.8 kB / 1.063 GB, free: 0.7812 MB / 0.8106 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 6.543e-06/0.3365, allocations: 0 / 1.063 GB, free: 0.7812 MB / 0.8106 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 9.749e-05/0.3366, allocations: 48.8 kB / 1.063 GB, free: 0.7305 MB / 0.8106 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.633e-06/0.3367, allocations: 0 / 1.063 GB, free: 0.7305 MB / 0.8106 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.008e-06/0.3367, allocations: 8.062 kB / 1.063 GB, free: 0.7227 MB / 0.8106 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.894e-06/0.3367, allocations: 0 / 1.063 GB, free: 0.7227 MB / 0.8106 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 9.088e-05/0.3368, allocations: 153.6 kB / 1.063 GB, free: 0.5234 MB / 0.8106 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.385e-06/0.3368, allocations: 0 / 1.063 GB, free: 0.5234 MB / 0.8106 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 7.367e-05/0.3369, allocations: 15.92 kB / 1.063 GB, free: 0.5078 MB / 0.8106 GB Notification: Performance of postOpt tearingSystem (simulation): time 3.386e-06/0.3369, allocations: 0 / 1.063 GB, free: 0.5078 MB / 0.8106 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 9.207e-06/0.3369, allocations: 4 kB / 1.063 GB, free: 0.5039 MB / 0.8106 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0002782/0.3372, allocations: 0.5899 MB / 1.064 GB, free: 15.89 MB / 0.8262 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.524e-06/0.3372, allocations: 3.938 kB / 1.064 GB, free: 15.89 MB / 0.8262 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 6.915e-05/0.3373, allocations: 65.09 kB / 1.064 GB, free: 15.8 MB / 0.8262 GB Notification: Performance of postOpt removeConstants (simulation): time 3.004e-05/0.3373, allocations: 81.02 kB / 1.064 GB, free: 15.71 MB / 0.8262 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 9.027e-06/0.3373, allocations: 0 / 1.064 GB, free: 15.71 MB / 0.8262 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 1.366e-05/0.3373, allocations: 4 kB / 1.064 GB, free: 15.7 MB / 0.8262 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 1.391e-05/0.3373, allocations: 7.922 kB / 1.064 GB, free: 15.7 MB / 0.8262 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.164e-06/0.3374, allocations: 96 / 1.064 GB, free: 15.7 MB / 0.8262 GB Notification: Performance of sorting global known variables: time 2.795e-05/0.3374, allocations: 83.28 kB / 1.064 GB, free: 15.61 MB / 0.8262 GB Notification: Performance of sort global known variables: time 1.3e-07/0.3374, allocations: 0 / 1.064 GB, free: 15.61 MB / 0.8262 GB Notification: Performance of remove unused functions: time 0.0001869/0.3376, allocations: 4 kB / 1.064 GB, free: 15.61 MB / 0.8262 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.0001544/0.3377, allocations: 119.2 kB / 1.064 GB, free: 15.48 MB / 0.8262 GB Notification: Performance of simCode: created initialization part: time 0.0001444/0.3379, allocations: 19.98 kB / 1.064 GB, free: 15.46 MB / 0.8262 GB Notification: Performance of simCode: created event and clocks part: time 2.234e-06/0.3379, allocations: 160 / 1.064 GB, free: 15.46 MB / 0.8262 GB Notification: Performance of simCode: created simulation system equations: time 8.294e-05/0.338, allocations: 12 kB / 1.064 GB, free: 15.45 MB / 0.8262 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001379/0.3381, allocations: 15.86 kB / 1.064 GB, free: 15.43 MB / 0.8262 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0002686/0.3384, allocations: 107.2 kB / 1.064 GB, free: 15.3 MB / 0.8262 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001874/0.3386, allocations: 0.6731 MB / 1.065 GB, free: 14.61 MB / 0.8262 GB Notification: Performance of simCode: alias equations: time 1.489e-05/0.3386, allocations: 64 / 1.065 GB, free: 14.61 MB / 0.8262 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 1.25e-05/0.3387, allocations: 15.44 kB / 1.065 GB, free: 14.59 MB / 0.8262 GB Notification: Performance of SimCode: time 2.31e-07/0.3387, allocations: 0 / 1.065 GB, free: 14.59 MB / 0.8262 GB Notification: Performance of Templates: time 0.002323/0.341, allocations: 411.5 kB / 1.065 GB, free: 14.22 MB / 0.8262 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