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.0-master/package.mo", uses=false) Using package Buildings with version 11.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 11.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.001571/0.001572, allocations: 106.5 kB / 16.35 MB, free: 5.824 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.001803/0.001803, allocations: 189.4 kB / 17.29 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.323/1.323, allocations: 222.9 MB / 241 MB, free: 15.15 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 11.0.0-master/package.mo): time 2.449/2.449, allocations: 442.6 MB / 0.7165 GB, free: 14.63 MB / 0.5919 GB Notification: Performance of FrontEnd - loaded program: time 0.001283/0.001283, allocations: 67.72 kB / 0.8773 GB, free: 10.97 MB / 0.6544 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2568/0.2581, allocations: 153 MB / 1.027 GB, free: 2.066 MB / 0.795 GB Notification: Performance of NFInst.instantiate(Buildings.Fluid.BaseClasses.FlowModels.Validation.InvertingBasicFlowFunction_dp): time 0.002346/0.2605, allocations: 1.264 MB / 1.028 GB, free: 0.7891 MB / 0.795 GB Notification: Performance of NFInst.instExpressions: time 0.0009237/0.2614, allocations: 0.5978 MB / 1.029 GB, free: 196 kB / 0.795 GB Notification: Performance of NFInst.updateImplicitVariability: time 2.296e-05/0.2615, allocations: 0 / 1.029 GB, free: 196 kB / 0.795 GB Notification: Performance of NFTyping.typeComponents: time 1.658e-05/0.2615, allocations: 0 / 1.029 GB, free: 196 kB / 0.795 GB Notification: Performance of NFTyping.typeBindings: time 3.544e-05/0.2616, allocations: 0 / 1.029 GB, free: 196 kB / 0.795 GB Notification: Performance of NFTyping.typeClassSections: time 0.0005551/0.2621, allocations: 139.4 kB / 1.029 GB, free: 56 kB / 0.795 GB Notification: Performance of NFFlatten.flatten: time 4.882e-05/0.2622, allocations: 7.938 kB / 1.029 GB, free: 48 kB / 0.795 GB Notification: Performance of NFFlatten.resolveConnections: time 4.075e-05/0.2622, allocations: 0 / 1.029 GB, free: 48 kB / 0.795 GB Notification: Performance of NFEvalConstants.evaluate: time 2.827e-05/0.2623, allocations: 4 kB / 1.029 GB, free: 44 kB / 0.795 GB Notification: Performance of NFSimplifyModel.simplify: time 4.496e-05/0.2623, allocations: 11.92 kB / 1.029 GB, free: 32 kB / 0.795 GB Notification: Performance of NFPackage.collectConstants: time 1.018e-05/0.2623, allocations: 4 kB / 1.029 GB, free: 28 kB / 0.795 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0005072/0.2629, allocations: 339.4 kB / 1.029 GB, free: 15.69 MB / 0.8106 GB Notification: Performance of NFScalarize.scalarize: time 1.039e-05/0.2629, allocations: 3.984 kB / 1.029 GB, free: 15.69 MB / 0.8106 GB Notification: Performance of NFVerifyModel.verify: time 2.237e-05/0.2629, allocations: 8 kB / 1.029 GB, free: 15.68 MB / 0.8106 GB Notification: Performance of NFConvertDAE.convert: time 0.0002486/0.2632, allocations: 143.5 kB / 1.029 GB, free: 15.54 MB / 0.8106 GB Notification: Performance of FrontEnd - DAE generated: time 3.887e-06/0.2632, allocations: 0 / 1.029 GB, free: 15.54 MB / 0.8106 GB Notification: Performance of FrontEnd: time 1.242e-06/0.2632, allocations: 0 / 1.029 GB, free: 15.54 MB / 0.8106 GB Notification: Performance of Transformations before backend: time 4.618e-06/0.2632, allocations: 0 / 1.029 GB, free: 15.54 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.0003483/0.2635, allocations: 351.5 kB / 1.03 GB, free: 15.15 MB / 0.8106 GB Notification: Performance of prepare preOptimizeDAE: time 3.121e-05/0.2636, allocations: 15.97 kB / 1.03 GB, free: 15.13 MB / 0.8106 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 2.881e-05/0.2636, allocations: 4.938 kB / 1.03 GB, free: 15.13 MB / 0.8106 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001001/0.2637, allocations: 160.4 kB / 1.03 GB, free: 14.93 MB / 0.8106 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.059e-05/0.2637, allocations: 384 / 1.03 GB, free: 14.93 MB / 0.8106 GB Notification: Performance of preOpt expandDerOperator (simulation): time 1.031e-05/0.2638, allocations: 384 / 1.03 GB, free: 14.93 MB / 0.8106 GB Notification: Performance of preOpt clockPartitioning (simulation): time 8.696e-05/0.2638, allocations: 38.25 kB / 1.03 GB, free: 14.89 MB / 0.8106 GB Notification: Performance of preOpt findStateOrder (simulation): time 6.813e-06/0.2639, allocations: 4.125 kB / 1.03 GB, free: 14.89 MB / 0.8106 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 8.847e-06/0.2639, allocations: 3.938 kB / 1.03 GB, free: 14.88 MB / 0.8106 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.118e-06/0.2639, allocations: 0 / 1.03 GB, free: 14.88 MB / 0.8106 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 2.593e-05/0.2639, allocations: 7.938 kB / 1.03 GB, free: 14.88 MB / 0.8106 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0001385/0.2641, allocations: 157.7 kB / 1.03 GB, free: 14.67 MB / 0.8106 GB Notification: Performance of preOpt comSubExp (simulation): time 4.736e-05/0.2641, allocations: 18.61 kB / 1.03 GB, free: 14.64 MB / 0.8106 GB Notification: Performance of preOpt resolveLoops (simulation): time 1.879e-05/0.2641, allocations: 8.922 kB / 1.03 GB, free: 14.63 MB / 0.8106 GB Notification: Performance of preOpt evalFunc (simulation): time 1.942e-05/0.2642, allocations: 0 / 1.03 GB, free: 14.63 MB / 0.8106 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.254e-05/0.2642, allocations: 38.55 kB / 1.03 GB, free: 14.59 MB / 0.8106 GB Notification: Performance of pre-optimization done (n=2): time 7.92e-07/0.2642, allocations: 0 / 1.03 GB, free: 14.59 MB / 0.8106 GB Notification: Performance of matching and sorting (n=2): time 0.0001351/0.2643, allocations: 57.47 kB / 1.03 GB, free: 14.52 MB / 0.8106 GB Notification: Performance of inlineWhenForInitialization (initialization): time 2.807e-05/0.2644, allocations: 51.41 kB / 1.03 GB, free: 14.46 MB / 0.8106 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 5.942e-05/0.2644, allocations: 93.86 kB / 1.03 GB, free: 14.36 MB / 0.8106 GB Notification: Performance of collectPreVariables (initialization): time 1.089e-05/0.2645, allocations: 25.7 kB / 1.03 GB, free: 14.33 MB / 0.8106 GB Notification: Performance of collectInitialEqns (initialization): time 2.749e-05/0.2645, allocations: 84.14 kB / 1.03 GB, free: 14.24 MB / 0.8106 GB Notification: Performance of collectInitialBindings (initialization): time 2.096e-05/0.2645, allocations: 0 / 1.03 GB, free: 14.24 MB / 0.8106 GB Notification: Performance of simplifyInitialFunctions (initialization): time 3.238e-05/0.2645, allocations: 21.7 kB / 1.03 GB, free: 14.21 MB / 0.8106 GB Notification: Performance of setup shared object (initialization): time 8.704e-05/0.2646, allocations: 315.1 kB / 1.031 GB, free: 13.9 MB / 0.8106 GB Notification: Performance of preBalanceInitialSystem (initialization): time 1.094e-05/0.2647, allocations: 0 / 1.031 GB, free: 13.9 MB / 0.8106 GB Notification: Performance of partitionIndependentBlocks (initialization): time 1.139e-05/0.2647, allocations: 4 kB / 1.031 GB, free: 13.89 MB / 0.8106 GB Notification: Performance of analyzeInitialSystem (initialization): time 3.065e-05/0.2647, allocations: 12.86 kB / 1.031 GB, free: 13.88 MB / 0.8106 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.266e-06/0.2647, allocations: 0 / 1.031 GB, free: 13.88 MB / 0.8106 GB Notification: Performance of matching and sorting (n=2) (initialization): time 6.82e-05/0.2648, allocations: 45.53 kB / 1.031 GB, free: 13.83 MB / 0.8106 GB Notification: Performance of prepare postOptimizeDAE: time 1.351e-05/0.2648, allocations: 8 kB / 1.031 GB, free: 13.82 MB / 0.8106 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.35e-06/0.2648, allocations: 3.938 kB / 1.031 GB, free: 13.82 MB / 0.8106 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.099e-05/0.2648, allocations: 4.094 kB / 1.031 GB, free: 13.81 MB / 0.8106 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001426/0.265, allocations: 12 kB / 1.031 GB, free: 13.8 MB / 0.8106 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0003201/0.2653, allocations: 0.5821 MB / 1.031 GB, free: 13.2 MB / 0.8106 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 1.925e-05/0.2653, allocations: 0 / 1.031 GB, free: 13.2 MB / 0.8106 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 8.405e-06/0.2654, allocations: 4 kB / 1.031 GB, free: 13.19 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 7.075e-05/0.2654, allocations: 117.8 kB / 1.031 GB, free: 13.07 MB / 0.8106 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 8.376e-06/0.2654, allocations: 4 kB / 1.031 GB, free: 13.06 MB / 0.8106 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001011/0.2656, allocations: 44.81 kB / 1.031 GB, free: 13.01 MB / 0.8106 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.953e-06/0.2656, allocations: 0 / 1.031 GB, free: 13.01 MB / 0.8106 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.287e-06/0.2656, allocations: 0 / 1.031 GB, free: 13.01 MB / 0.8106 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.549e-06/0.2656, allocations: 0 / 1.031 GB, free: 13.01 MB / 0.8106 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 9.249e-05/0.2657, allocations: 161.5 kB / 1.032 GB, free: 12.8 MB / 0.8106 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.393e-06/0.2657, allocations: 0 / 1.032 GB, free: 12.8 MB / 0.8106 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 7.696e-05/0.2658, allocations: 8 kB / 1.032 GB, free: 12.79 MB / 0.8106 GB Notification: Performance of postOpt tearingSystem (simulation): time 2.455e-06/0.2658, allocations: 0 / 1.032 GB, free: 12.79 MB / 0.8106 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 7.074e-06/0.2658, allocations: 8.031 kB / 1.032 GB, free: 12.79 MB / 0.8106 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0002716/0.2661, allocations: 0.586 MB / 1.032 GB, free: 12.18 MB / 0.8106 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.735e-06/0.2661, allocations: 3.938 kB / 1.032 GB, free: 12.17 MB / 0.8106 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 7.065e-05/0.2662, allocations: 65.08 kB / 1.032 GB, free: 12.09 MB / 0.8106 GB Notification: Performance of postOpt removeConstants (simulation): time 3.022e-05/0.2662, allocations: 77.23 kB / 1.032 GB, free: 12 MB / 0.8106 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.104e-05/0.2662, allocations: 7.984 kB / 1.032 GB, free: 11.99 MB / 0.8106 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 1.427e-05/0.2662, allocations: 0 / 1.032 GB, free: 11.99 MB / 0.8106 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 2.545e-05/0.2663, allocations: 7.938 kB / 1.032 GB, free: 11.98 MB / 0.8106 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.986e-06/0.2663, allocations: 0 / 1.032 GB, free: 11.98 MB / 0.8106 GB Notification: Performance of sorting global known variables: time 3.109e-05/0.2663, allocations: 75.28 kB / 1.032 GB, free: 11.91 MB / 0.8106 GB Notification: Performance of sort global known variables: time 2.304e-06/0.2663, allocations: 0 / 1.032 GB, free: 11.91 MB / 0.8106 GB Notification: Performance of remove unused functions: time 0.0002019/0.2665, allocations: 15.94 kB / 1.032 GB, free: 11.89 MB / 0.8106 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.2667, allocations: 120.7 kB / 1.032 GB, free: 11.77 MB / 0.8106 GB Notification: Performance of simCode: created initialization part: time 0.0001596/0.2669, allocations: 15.98 kB / 1.032 GB, free: 11.75 MB / 0.8106 GB Notification: Performance of simCode: created event and clocks part: time 2.084e-06/0.2669, allocations: 0 / 1.032 GB, free: 11.75 MB / 0.8106 GB Notification: Performance of simCode: created simulation system equations: time 8.775e-05/0.267, allocations: 15.98 kB / 1.033 GB, free: 11.73 MB / 0.8106 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001389/0.2671, allocations: 0 / 1.033 GB, free: 11.73 MB / 0.8106 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0002936/0.2674, allocations: 110.1 kB / 1.033 GB, free: 11.6 MB / 0.8106 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001924/0.2676, allocations: 0.6769 MB / 1.033 GB, free: 10.9 MB / 0.8106 GB Notification: Performance of simCode: alias equations: time 1.675e-05/0.2676, allocations: 0 / 1.033 GB, free: 10.9 MB / 0.8106 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 1.345e-05/0.2677, allocations: 7.438 kB / 1.033 GB, free: 10.89 MB / 0.8106 GB Notification: Performance of SimCode: time 2.5e-07/0.2677, allocations: 0 / 1.033 GB, free: 10.89 MB / 0.8106 GB Notification: Performance of Templates: time 0.002443/0.2701, allocations: 458.7 kB / 1.034 GB, free: 10.48 MB / 0.8106 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 -s gbode -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