Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Buildings_10_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 10.1.1-maint.10.0.x/package.mo", uses=false) Using package Buildings with version 10.1.1 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 10.1.1-maint.10.0.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_dp,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|m_flow|m_flow_nominal|dp",fileNamePrefix="Buildings_10_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_10_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.001422/0.001421, allocations: 109.9 kB / 16.41 MB, free: 6.492 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.001409/0.001409, allocations: 185.5 kB / 17.34 MB, free: 5.766 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.306/1.306, allocations: 222.9 MB / 241 MB, free: 15.16 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 10.1.1-maint.10.0.x/package.mo): time 2.354/2.354, allocations: 437 MB / 0.7112 GB, free: 4.387 MB / 0.5762 GB Notification: Performance of FrontEnd - loaded program: time 0.001269/0.001269, allocations: 67.91 kB / 1.019 GB, free: 9.414 MB / 0.795 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.7241/0.7254, allocations: 151.6 MB / 1.167 GB, free: 3.855 MB / 0.8887 GB Notification: Performance of NFInst.instantiate(Buildings.Fluid.BaseClasses.FlowModels.Validation.InvertingBasicFlowFunction_dp): time 0.001946/0.7274, allocations: 1.253 MB / 1.169 GB, free: 2.594 MB / 0.8887 GB Notification: Performance of NFInst.instExpressions: time 0.0009066/0.7283, allocations: 0.594 MB / 1.169 GB, free: 2 MB / 0.8887 GB Notification: Performance of NFInst.updateImplicitVariability: time 2.442e-05/0.7284, allocations: 0 / 1.169 GB, free: 2 MB / 0.8887 GB Notification: Performance of NFTyping.typeComponents: time 1.446e-05/0.7284, allocations: 3.938 kB / 1.169 GB, free: 1.996 MB / 0.8887 GB Notification: Performance of NFTyping.typeBindings: time 4.292e-05/0.7284, allocations: 4 kB / 1.169 GB, free: 1.992 MB / 0.8887 GB Notification: Performance of NFTyping.typeClassSections: time 0.0004619/0.7289, allocations: 137.1 kB / 1.169 GB, free: 1.859 MB / 0.8887 GB Notification: Performance of NFFlatten.flatten: time 4.687e-05/0.729, allocations: 19.92 kB / 1.169 GB, free: 1.84 MB / 0.8887 GB Notification: Performance of NFFlatten.resolveConnections: time 3.28e-05/0.729, allocations: 0 / 1.169 GB, free: 1.84 MB / 0.8887 GB Notification: Performance of NFEvalConstants.evaluate: time 1.666e-05/0.729, allocations: 4 kB / 1.169 GB, free: 1.836 MB / 0.8887 GB Notification: Performance of NFSimplifyModel.simplify: time 4.034e-05/0.7291, allocations: 3.984 kB / 1.169 GB, free: 1.832 MB / 0.8887 GB Notification: Performance of NFPackage.collectConstants: time 1.131e-05/0.7291, allocations: 0 / 1.169 GB, free: 1.832 MB / 0.8887 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0004544/0.7295, allocations: 347.3 kB / 1.17 GB, free: 1.492 MB / 0.8887 GB Notification: Performance of NFScalarize.scalarize: time 8.756e-06/0.7296, allocations: 0 / 1.17 GB, free: 1.492 MB / 0.8887 GB Notification: Performance of NFVerifyModel.verify: time 2.25e-05/0.7296, allocations: 7.984 kB / 1.17 GB, free: 1.484 MB / 0.8887 GB Notification: Performance of NFConvertDAE.convert: time 0.0002171/0.7298, allocations: 139.5 kB / 1.17 GB, free: 1.352 MB / 0.8887 GB Notification: Performance of FrontEnd - DAE generated: time 3.576e-06/0.7298, allocations: 0 / 1.17 GB, free: 1.352 MB / 0.8887 GB Notification: Performance of FrontEnd: time 1.223e-06/0.7298, allocations: 4 kB / 1.17 GB, free: 1.348 MB / 0.8887 GB Notification: Performance of Transformations before backend: time 4.789e-06/0.7298, allocations: 4 kB / 1.17 GB, free: 1.344 MB / 0.8887 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.0003577/0.7302, allocations: 353.3 kB / 1.17 GB, free: 0.9492 MB / 0.8887 GB Notification: Performance of prepare preOptimizeDAE: time 3.183e-05/0.7302, allocations: 12.86 kB / 1.17 GB, free: 0.9375 MB / 0.8887 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 2.965e-05/0.7303, allocations: 0.9375 kB / 1.17 GB, free: 0.9375 MB / 0.8887 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001001/0.7304, allocations: 164.3 kB / 1.17 GB, free: 0.7383 MB / 0.8887 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.109e-05/0.7304, allocations: 8.359 kB / 1.17 GB, free: 0.7305 MB / 0.8887 GB Notification: Performance of preOpt expandDerOperator (simulation): time 6.572e-06/0.7304, allocations: 384 / 1.17 GB, free: 0.7305 MB / 0.8887 GB Notification: Performance of preOpt clockPartitioning (simulation): time 7.754e-05/0.7305, allocations: 34.25 kB / 1.17 GB, free: 0.6914 MB / 0.8887 GB Notification: Performance of preOpt findStateOrder (simulation): time 5.931e-06/0.7305, allocations: 4.188 kB / 1.17 GB, free: 0.6875 MB / 0.8887 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 8.456e-06/0.7305, allocations: 3.938 kB / 1.17 GB, free: 0.6836 MB / 0.8887 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.148e-06/0.7305, allocations: 0 / 1.17 GB, free: 0.6836 MB / 0.8887 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 2.637e-05/0.7305, allocations: 11.94 kB / 1.17 GB, free: 0.6719 MB / 0.8887 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0001353/0.7307, allocations: 145.7 kB / 1.17 GB, free: 492 kB / 0.8887 GB Notification: Performance of preOpt comSubExp (simulation): time 4.781e-05/0.7307, allocations: 30.59 kB / 1.17 GB, free: 452 kB / 0.8887 GB Notification: Performance of preOpt resolveLoops (simulation): time 1.727e-05/0.7308, allocations: 4.859 kB / 1.17 GB, free: 444 kB / 0.8887 GB Notification: Performance of preOpt evalFunc (simulation): time 1.912e-05/0.7308, allocations: 8.062 kB / 1.17 GB, free: 436 kB / 0.8887 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.11e-05/0.7308, allocations: 30.56 kB / 1.171 GB, free: 396 kB / 0.8887 GB Notification: Performance of pre-optimization done (n=2): time 9.82e-07/0.7308, allocations: 0 / 1.171 GB, free: 396 kB / 0.8887 GB Notification: Performance of matching and sorting (n=2): time 0.0001272/0.731, allocations: 45.58 kB / 1.171 GB, free: 344 kB / 0.8887 GB Notification: Performance of inlineWhenForInitialization (initialization): time 3.276e-05/0.731, allocations: 55.39 kB / 1.171 GB, free: 276 kB / 0.8887 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 5.632e-05/0.7311, allocations: 93.86 kB / 1.171 GB, free: 172 kB / 0.8887 GB Notification: Performance of collectPreVariables (initialization): time 1.159e-05/0.7311, allocations: 25.7 kB / 1.171 GB, free: 140 kB / 0.8887 GB Notification: Performance of collectInitialEqns (initialization): time 3.01e-05/0.7311, allocations: 92.33 kB / 1.171 GB, free: 44 kB / 0.8887 GB Notification: Performance of collectInitialBindings (initialization): time 2.345e-05/0.7311, allocations: 11.84 kB / 1.171 GB, free: 32 kB / 0.8887 GB Notification: Performance of simplifyInitialFunctions (initialization): time 2.6e-05/0.7312, allocations: 9.719 kB / 1.171 GB, free: 16 kB / 0.8887 GB Notification: Performance of setup shared object (initialization): time 0.000113/0.7313, allocations: 314.8 kB / 1.171 GB, free: 15.7 MB / 0.9044 GB Notification: Performance of preBalanceInitialSystem (initialization): time 1.418e-05/0.7313, allocations: 8 kB / 1.171 GB, free: 15.69 MB / 0.9044 GB Notification: Performance of partitionIndependentBlocks (initialization): time 7.935e-06/0.7313, allocations: 0 / 1.171 GB, free: 15.69 MB / 0.9044 GB Notification: Performance of analyzeInitialSystem (initialization): time 3.125e-05/0.7314, allocations: 12.86 kB / 1.171 GB, free: 15.68 MB / 0.9044 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.522e-06/0.7314, allocations: 64 / 1.171 GB, free: 15.68 MB / 0.9044 GB Notification: Performance of matching and sorting (n=2) (initialization): time 6.359e-05/0.7314, allocations: 45.64 kB / 1.171 GB, free: 15.62 MB / 0.9044 GB Notification: Performance of prepare postOptimizeDAE: time 1.33e-05/0.7314, allocations: 6.188 kB / 1.171 GB, free: 15.62 MB / 0.9044 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.573e-06/0.7315, allocations: 3.938 kB / 1.171 GB, free: 15.62 MB / 0.9044 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.105e-05/0.7315, allocations: 0 / 1.171 GB, free: 15.62 MB / 0.9044 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001348/0.7316, allocations: 11.98 kB / 1.171 GB, free: 15.61 MB / 0.9044 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0003424/0.732, allocations: 0.5782 MB / 1.172 GB, free: 15 MB / 0.9044 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 1.938e-05/0.732, allocations: 8.156 kB / 1.172 GB, free: 15 MB / 0.9044 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.19e-06/0.732, allocations: 0 / 1.172 GB, free: 15 MB / 0.9044 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.919e-05/0.7321, allocations: 113.8 kB / 1.172 GB, free: 14.88 MB / 0.9044 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 9.969e-06/0.7321, allocations: 8 kB / 1.172 GB, free: 14.87 MB / 0.9044 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001085/0.7322, allocations: 44.77 kB / 1.172 GB, free: 14.81 MB / 0.9044 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.463e-06/0.7322, allocations: 0 / 1.172 GB, free: 14.81 MB / 0.9044 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.332e-06/0.7322, allocations: 3.984 kB / 1.172 GB, free: 14.81 MB / 0.9044 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.815e-06/0.7322, allocations: 0 / 1.172 GB, free: 14.81 MB / 0.9044 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001377/0.7324, allocations: 157.6 kB / 1.172 GB, free: 14.61 MB / 0.9044 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.132e-06/0.7324, allocations: 0 / 1.172 GB, free: 14.61 MB / 0.9044 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 7.89e-05/0.7325, allocations: 11.98 kB / 1.172 GB, free: 14.59 MB / 0.9044 GB Notification: Performance of postOpt tearingSystem (simulation): time 1.973e-06/0.7325, allocations: 0 / 1.172 GB, free: 14.59 MB / 0.9044 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 5.951e-06/0.7325, allocations: 0 / 1.172 GB, free: 14.59 MB / 0.9044 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0002768/0.7328, allocations: 0.5859 MB / 1.173 GB, free: 13.98 MB / 0.9044 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.755e-06/0.7328, allocations: 3.938 kB / 1.173 GB, free: 13.98 MB / 0.9044 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 7.211e-05/0.7329, allocations: 65.25 kB / 1.173 GB, free: 13.9 MB / 0.9044 GB Notification: Performance of postOpt removeConstants (simulation): time 3.052e-05/0.7329, allocations: 81.11 kB / 1.173 GB, free: 13.8 MB / 0.9044 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.113e-05/0.7329, allocations: 4 kB / 1.173 GB, free: 13.8 MB / 0.9044 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 1.398e-05/0.7329, allocations: 0 / 1.173 GB, free: 13.8 MB / 0.9044 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 1.344e-05/0.733, allocations: 3.938 kB / 1.173 GB, free: 13.79 MB / 0.9044 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.406e-06/0.733, allocations: 4 kB / 1.173 GB, free: 13.79 MB / 0.9044 GB Notification: Performance of sorting global known variables: time 3.662e-05/0.733, allocations: 83.27 kB / 1.173 GB, free: 13.71 MB / 0.9044 GB Notification: Performance of sort global known variables: time 1.61e-07/0.733, allocations: 8.062 kB / 1.173 GB, free: 13.7 MB / 0.9044 GB Notification: Performance of remove unused functions: time 0.0001879/0.7332, allocations: 8 kB / 1.173 GB, free: 13.69 MB / 0.9044 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.0001447/0.7334, allocations: 111.2 kB / 1.173 GB, free: 13.57 MB / 0.9044 GB Notification: Performance of simCode: created initialization part: time 0.0001726/0.7335, allocations: 23.92 kB / 1.173 GB, free: 13.55 MB / 0.9044 GB Notification: Performance of simCode: created event and clocks part: time 2.204e-06/0.7336, allocations: 0 / 1.173 GB, free: 13.55 MB / 0.9044 GB Notification: Performance of simCode: created simulation system equations: time 8.053e-05/0.7336, allocations: 12 kB / 1.173 GB, free: 13.54 MB / 0.9044 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001286/0.7338, allocations: 1.25 kB / 1.173 GB, free: 13.54 MB / 0.9044 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0003104/0.7341, allocations: 143.6 kB / 1.173 GB, free: 13.36 MB / 0.9044 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002192/0.7343, allocations: 0.6729 MB / 1.174 GB, free: 12.66 MB / 0.9044 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 1.445e-05/0.7344, allocations: 11.44 kB / 1.174 GB, free: 12.65 MB / 0.9044 GB Notification: Performance of SimCode: time 3.31e-07/0.7344, allocations: 0 / 1.174 GB, free: 12.65 MB / 0.9044 GB Notification: Performance of Templates: time 0.002178/0.7365, allocations: 0.6996 MB / 1.175 GB, free: 11.96 MB / 0.9044 GB make -j1 -f Buildings_10_Buildings.Fluid.BaseClasses.FlowModels.Validation.InvertingBasicFlowFunction_dp.makefile (rm -f Buildings_10_Buildings.Fluid.BaseClasses.FlowModels.Validation.InvertingBasicFlowFunction_dp.pipe ; mkfifo Buildings_10_Buildings.Fluid.BaseClasses.FlowModels.Validation.InvertingBasicFlowFunction_dp.pipe ; head -c 1048576 < Buildings_10_Buildings.Fluid.BaseClasses.FlowModels.Validation.InvertingBasicFlowFunction_dp.pipe >> ../files/Buildings_10_Buildings.Fluid.BaseClasses.FlowModels.Validation.InvertingBasicFlowFunction_dp.sim & ./Buildings_10_Buildings.Fluid.BaseClasses.FlowModels.Validation.InvertingBasicFlowFunction_dp -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Buildings_10_Buildings.Fluid.BaseClasses.FlowModels.Validation.InvertingBasicFlowFunction_dp.pipe 2>&1) diffSimulationResults("Buildings_10_Buildings.Fluid.BaseClasses.FlowModels.Validation.InvertingBasicFlowFunction_dp_res.mat","/mnt/ReferenceFiles/Buildings/csv/maint_10.0.x/Buildings_Fluid_BaseClasses_FlowModels_Validation_InvertingBasicFlowFunction_dp.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Buildings_10_Buildings.Fluid.BaseClasses.FlowModels.Validation.InvertingBasicFlowFunction_dp.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches