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.001551/0.001551, allocations: 105.9 kB / 16.27 MB, free: 6.348 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.001519/0.001519, allocations: 187.6 kB / 17.2 MB, free: 5.949 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.384/1.384, allocations: 222.9 MB / 240.9 MB, free: 15.22 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 12.0.0-master/package.mo): time 2.761/2.761, allocations: 482.4 MB / 0.7553 GB, free: 6.973 MB / 0.6231 GB Notification: Performance of FrontEnd - loaded program: time 0.00195/0.00195, allocations: 71.62 kB / 0.9245 GB, free: 15.96 MB / 0.7012 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.7047/0.7066, allocations: 162.2 MB / 1.083 GB, free: 1.637 MB / 0.8262 GB Notification: Performance of NFInst.instantiate(Buildings.Fluid.BaseClasses.FlowModels.Validation.InvertingBasicFlowFunction_dp): time 0.002114/0.7088, allocations: 1.248 MB / 1.084 GB, free: 0.7539 MB / 0.8262 GB Notification: Performance of NFInst.instExpressions: time 0.0008029/0.7096, allocations: 0.5853 MB / 1.085 GB, free: 356 kB / 0.8262 GB Notification: Performance of NFInst.updateImplicitVariability: time 1.959e-05/0.7096, allocations: 0 / 1.085 GB, free: 356 kB / 0.8262 GB Notification: Performance of NFTyping.typeComponents: time 1.666e-05/0.7097, allocations: 5.188 kB / 1.085 GB, free: 352 kB / 0.8262 GB Notification: Performance of NFTyping.typeBindings: time 3.924e-05/0.7097, allocations: 4.594 kB / 1.085 GB, free: 348 kB / 0.8262 GB Notification: Performance of NFTyping.typeClassSections: time 0.0004394/0.7102, allocations: 137.1 kB / 1.085 GB, free: 288 kB / 0.8262 GB Notification: Performance of NFFlatten.flatten: time 4.465e-05/0.7102, allocations: 13.84 kB / 1.085 GB, free: 280 kB / 0.8262 GB Notification: Performance of NFFlatten.resolveConnections: time 4.151e-05/0.7103, allocations: 2.531 kB / 1.085 GB, free: 280 kB / 0.8262 GB Notification: Performance of NFEvalConstants.evaluate: time 1.605e-05/0.7103, allocations: 2.656 kB / 1.085 GB, free: 280 kB / 0.8262 GB Notification: Performance of NFSimplifyModel.simplify: time 3.497e-05/0.7103, allocations: 7.641 kB / 1.085 GB, free: 276 kB / 0.8262 GB Notification: Performance of NFPackage.collectConstants: time 1.086e-05/0.7103, allocations: 0.7812 kB / 1.085 GB, free: 276 kB / 0.8262 GB Notification: Performance of NFFlatten.collectFunctions: time 0.000513/0.7108, allocations: 349.8 kB / 1.085 GB, free: 168 kB / 0.8262 GB Notification: Performance of NFScalarize.scalarize: time 9.729e-06/0.7109, allocations: 0.75 kB / 1.085 GB, free: 168 kB / 0.8262 GB Notification: Performance of NFVerifyModel.verify: time 1.923e-05/0.7109, allocations: 6.75 kB / 1.085 GB, free: 164 kB / 0.8262 GB Notification: Performance of NFConvertDAE.convert: time 0.0002495/0.7111, allocations: 140.1 kB / 1.085 GB, free: 120 kB / 0.8262 GB Notification: Performance of FrontEnd - DAE generated: time 3.497e-06/0.7112, allocations: 1.281 kB / 1.085 GB, free: 120 kB / 0.8262 GB Notification: Performance of FrontEnd: time 1.383e-06/0.7112, allocations: 0 / 1.085 GB, free: 120 kB / 0.8262 GB Notification: Performance of Transformations before backend: time 8.495e-06/0.7112, allocations: 0 / 1.085 GB, free: 120 kB / 0.8262 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.0003901/0.7116, allocations: 348.8 kB / 1.086 GB, free: 15.74 MB / 0.8419 GB Notification: Performance of prepare preOptimizeDAE: time 3.469e-05/0.7116, allocations: 9.688 kB / 1.086 GB, free: 15.74 MB / 0.8419 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 2.848e-05/0.7116, allocations: 2.469 kB / 1.086 GB, free: 15.74 MB / 0.8419 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001309/0.7118, allocations: 170.4 kB / 1.086 GB, free: 15.54 MB / 0.8419 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.11e-05/0.7118, allocations: 1.281 kB / 1.086 GB, free: 15.54 MB / 0.8419 GB Notification: Performance of preOpt expandDerOperator (simulation): time 6.883e-06/0.7118, allocations: 1 kB / 1.086 GB, free: 15.54 MB / 0.8419 GB Notification: Performance of preOpt clockPartitioning (simulation): time 9.146e-05/0.7119, allocations: 39.14 kB / 1.086 GB, free: 15.5 MB / 0.8419 GB Notification: Performance of preOpt findStateOrder (simulation): time 8.596e-06/0.7119, allocations: 5.156 kB / 1.086 GB, free: 15.5 MB / 0.8419 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 8.936e-06/0.7119, allocations: 3.938 kB / 1.086 GB, free: 15.49 MB / 0.8419 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.587e-06/0.7119, allocations: 0 / 1.086 GB, free: 15.49 MB / 0.8419 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 2.704e-05/0.712, allocations: 7.984 kB / 1.086 GB, free: 15.49 MB / 0.8419 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0001655/0.7121, allocations: 152.3 kB / 1.086 GB, free: 15.3 MB / 0.8419 GB Notification: Performance of preOpt comSubExp (simulation): time 5.042e-05/0.7122, allocations: 24.14 kB / 1.086 GB, free: 15.27 MB / 0.8419 GB Notification: Performance of preOpt resolveLoops (simulation): time 2.061e-05/0.7122, allocations: 7.859 kB / 1.086 GB, free: 15.26 MB / 0.8419 GB Notification: Performance of preOpt evalFunc (simulation): time 1.988e-05/0.7123, allocations: 0.5 kB / 1.086 GB, free: 15.26 MB / 0.8419 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.038e-05/0.7123, allocations: 36.67 kB / 1.086 GB, free: 15.22 MB / 0.8419 GB Notification: Performance of pre-optimization done (n=2): time 9.22e-07/0.7123, allocations: 3.938 kB / 1.086 GB, free: 15.21 MB / 0.8419 GB Notification: Performance of matching and sorting (n=2): time 0.0001347/0.7124, allocations: 44.95 kB / 1.086 GB, free: 15.18 MB / 0.8419 GB Notification: Performance of inlineWhenForInitialization (initialization): time 4.382e-05/0.7125, allocations: 56.16 kB / 1.086 GB, free: 15.11 MB / 0.8419 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 7.556e-05/0.7126, allocations: 93.95 kB / 1.086 GB, free: 15.01 MB / 0.8419 GB Notification: Performance of collectPreVariables (initialization): time 1.829e-05/0.7126, allocations: 29.7 kB / 1.086 GB, free: 14.98 MB / 0.8419 GB Notification: Performance of collectInitialEqns (initialization): time 3.654e-05/0.7126, allocations: 85.72 kB / 1.086 GB, free: 14.89 MB / 0.8419 GB Notification: Performance of collectInitialBindings (initialization): time 2.3e-05/0.7127, allocations: 9.641 kB / 1.086 GB, free: 14.88 MB / 0.8419 GB Notification: Performance of simplifyInitialFunctions (initialization): time 3.853e-05/0.7127, allocations: 13.11 kB / 1.086 GB, free: 14.87 MB / 0.8419 GB Notification: Performance of setup shared object (initialization): time 0.0001344/0.7128, allocations: 316.1 kB / 1.087 GB, free: 14.55 MB / 0.8419 GB Notification: Performance of preBalanceInitialSystem (initialization): time 1.281e-05/0.7129, allocations: 6.891 kB / 1.087 GB, free: 14.55 MB / 0.8419 GB Notification: Performance of partitionIndependentBlocks (initialization): time 1.093e-05/0.7129, allocations: 3.688 kB / 1.087 GB, free: 14.55 MB / 0.8419 GB Notification: Performance of analyzeInitialSystem (initialization): time 2.704e-05/0.7129, allocations: 12.56 kB / 1.087 GB, free: 14.54 MB / 0.8419 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.173e-06/0.7129, allocations: 1.344 kB / 1.087 GB, free: 14.54 MB / 0.8419 GB Notification: Performance of matching and sorting (n=2) (initialization): time 6.357e-05/0.713, allocations: 39.47 kB / 1.087 GB, free: 14.5 MB / 0.8419 GB Notification: Performance of prepare postOptimizeDAE: time 1.129e-05/0.713, allocations: 5.062 kB / 1.087 GB, free: 14.5 MB / 0.8419 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.74e-06/0.713, allocations: 3.938 kB / 1.087 GB, free: 14.5 MB / 0.8419 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.167e-05/0.713, allocations: 1.812 kB / 1.087 GB, free: 14.5 MB / 0.8419 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.000143/0.7132, allocations: 14.34 kB / 1.087 GB, free: 14.49 MB / 0.8419 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0004217/0.7136, allocations: 0.583 MB / 1.087 GB, free: 13.9 MB / 0.8419 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 1.766e-05/0.7136, allocations: 0.5625 kB / 1.087 GB, free: 13.9 MB / 0.8419 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.779e-06/0.7136, allocations: 0.5938 kB / 1.087 GB, free: 13.9 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 8.231e-05/0.7137, allocations: 120.7 kB / 1.088 GB, free: 13.78 MB / 0.8419 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 9.468e-06/0.7137, allocations: 2.172 kB / 1.088 GB, free: 13.78 MB / 0.8419 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 9.828e-05/0.7138, allocations: 46.66 kB / 1.088 GB, free: 13.74 MB / 0.8419 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.104e-06/0.7139, allocations: 2.672 kB / 1.088 GB, free: 13.74 MB / 0.8419 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.357e-06/0.7139, allocations: 0 / 1.088 GB, free: 13.74 MB / 0.8419 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.198e-06/0.7139, allocations: 1.031 kB / 1.088 GB, free: 13.74 MB / 0.8419 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001218/0.714, allocations: 158.5 kB / 1.088 GB, free: 13.54 MB / 0.8419 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 9.32e-07/0.714, allocations: 0 / 1.088 GB, free: 13.54 MB / 0.8419 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 7.91e-05/0.7141, allocations: 14 kB / 1.088 GB, free: 13.54 MB / 0.8419 GB Notification: Performance of postOpt tearingSystem (simulation): time 1.703e-06/0.7141, allocations: 0.5938 kB / 1.088 GB, free: 13.54 MB / 0.8419 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.909e-06/0.7141, allocations: 0.5625 kB / 1.088 GB, free: 13.54 MB / 0.8419 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0003575/0.7145, allocations: 0.588 MB / 1.088 GB, free: 12.95 MB / 0.8419 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.01e-05/0.7145, allocations: 3.938 kB / 1.088 GB, free: 12.94 MB / 0.8419 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 8.196e-05/0.7146, allocations: 66.84 kB / 1.088 GB, free: 12.87 MB / 0.8419 GB Notification: Performance of postOpt removeConstants (simulation): time 4.43e-05/0.7146, allocations: 82.47 kB / 1.088 GB, free: 12.77 MB / 0.8419 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.094e-05/0.7147, allocations: 5.906 kB / 1.088 GB, free: 12.77 MB / 0.8419 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 1.657e-05/0.7147, allocations: 4.75 kB / 1.088 GB, free: 12.77 MB / 0.8419 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 1.494e-05/0.7147, allocations: 6.094 kB / 1.088 GB, free: 12.76 MB / 0.8419 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.434e-06/0.7147, allocations: 0 / 1.088 GB, free: 12.76 MB / 0.8419 GB Notification: Performance of sorting global known variables: time 4.529e-05/0.7147, allocations: 77.56 kB / 1.089 GB, free: 12.69 MB / 0.8419 GB Notification: Performance of sort global known variables: time 1.2e-07/0.7148, allocations: 0.5312 kB / 1.089 GB, free: 12.69 MB / 0.8419 GB Notification: Performance of remove unused functions: time 0.0001931/0.715, allocations: 11.52 kB / 1.089 GB, free: 12.68 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.0001681/0.7151, allocations: 115.6 kB / 1.089 GB, free: 12.59 MB / 0.8419 GB Notification: Performance of simCode: created initialization part: time 0.0001544/0.7153, allocations: 19.73 kB / 1.089 GB, free: 12.58 MB / 0.8419 GB Notification: Performance of simCode: created event and clocks part: time 1.893e-06/0.7153, allocations: 1.312 kB / 1.089 GB, free: 12.58 MB / 0.8419 GB Notification: Performance of simCode: created simulation system equations: time 8.729e-05/0.7154, allocations: 16.95 kB / 1.089 GB, free: 12.58 MB / 0.8419 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001319/0.7155, allocations: 1.344 kB / 1.089 GB, free: 12.58 MB / 0.8419 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0003142/0.7159, allocations: 141.9 kB / 1.089 GB, free: 12.43 MB / 0.8419 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003054/0.7162, allocations: 0.6736 MB / 1.089 GB, free: 11.73 MB / 0.8419 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 1.503e-05/0.7162, allocations: 8.375 kB / 1.09 GB, free: 11.72 MB / 0.8419 GB Notification: Performance of SimCode: time 2.1e-07/0.7162, allocations: 1.531 kB / 1.09 GB, free: 11.72 MB / 0.8419 GB Notification: Performance of Templates: time 0.002404/0.7186, allocations: 0.6984 MB / 1.09 GB, free: 11.69 MB / 0.8419 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=400 -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/jenkins1/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