Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Buildings_10_Buildings.Fluid.BaseClasses.FlowModels.Validation.InvertingBasicFlowFunction_m_flow.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.0-maint.10.0.x/package.mo", uses=false) Using package Buildings with version 10.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 10.1.0-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_m_flow,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|m_flow|m_flow_nominal|dp",fileNamePrefix="Buildings_10_Buildings.Fluid.BaseClasses.FlowModels.Validation.InvertingBasicFlowFunction_m_flow") translateModel(Buildings.Fluid.BaseClasses.FlowModels.Validation.InvertingBasicFlowFunction_m_flow,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|m_flow|m_flow_nominal|dp",fileNamePrefix="Buildings_10_Buildings.Fluid.BaseClasses.FlowModels.Validation.InvertingBasicFlowFunction_m_flow") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.0009532/0.0009533, allocations: 86.17 kB / 15.06 MB, free: 1.09 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.00114/0.00114, allocations: 168.7 kB / 15.95 MB, free: 204 kB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.453/1.453, allocations: 223.3 MB / 240 MB, free: 5.426 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 10.1.0-maint.10.0.x/package.mo): time 2.74/2.74, allocations: 437.7 MB / 0.7117 GB, free: 7.047 MB / 0.5606 GB Notification: Performance of FrontEnd - loaded program: time 0.0003527/0.0003528, allocations: 11.94 kB / 0.8722 GB, free: 3.707 MB / 0.7169 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.7571/0.7575, allocations: 153.8 MB / 1.022 GB, free: 76 kB / 0.7637 GB Notification: Performance of NFInst.instantiate(Buildings.Fluid.BaseClasses.FlowModels.Validation.InvertingBasicFlowFunction_m_flow): time 0.001364/0.7589, allocations: 0.9728 MB / 1.023 GB, free: 15.09 MB / 0.7794 GB Notification: Performance of NFInst.instExpressions: time 0.0009718/0.7599, allocations: 0.5338 MB / 1.024 GB, free: 14.56 MB / 0.7794 GB Notification: Performance of NFInst.updateImplicitVariability: time 2.175e-05/0.7599, allocations: 0 / 1.024 GB, free: 14.56 MB / 0.7794 GB Notification: Performance of NFTyping.typeComponents: time 1.279e-05/0.7599, allocations: 3.938 kB / 1.024 GB, free: 14.55 MB / 0.7794 GB Notification: Performance of NFTyping.typeBindings: time 5.496e-05/0.76, allocations: 3.938 kB / 1.024 GB, free: 14.55 MB / 0.7794 GB Notification: Performance of NFTyping.typeClassSections: time 0.0004493/0.7605, allocations: 127.6 kB / 1.024 GB, free: 14.43 MB / 0.7794 GB Notification: Performance of NFFlatten.flatten: time 4.171e-05/0.7605, allocations: 4 kB / 1.024 GB, free: 14.42 MB / 0.7794 GB Notification: Performance of NFFlatten.resolveConnections: time 6.004e-05/0.7606, allocations: 0 / 1.024 GB, free: 14.42 MB / 0.7794 GB Notification: Performance of NFEvalConstants.evaluate: time 2.077e-05/0.7606, allocations: 3.938 kB / 1.024 GB, free: 14.42 MB / 0.7794 GB Notification: Performance of NFSimplifyModel.simplify: time 4.587e-05/0.7607, allocations: 4 kB / 1.024 GB, free: 14.41 MB / 0.7794 GB Notification: Performance of NFPackage.collectConstants: time 1.044e-05/0.7607, allocations: 0 / 1.024 GB, free: 14.41 MB / 0.7794 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0005042/0.7612, allocations: 339.3 kB / 1.024 GB, free: 14.08 MB / 0.7794 GB Notification: Performance of NFScalarize.scalarize: time 7.544e-06/0.7612, allocations: 3.938 kB / 1.024 GB, free: 14.08 MB / 0.7794 GB Notification: Performance of NFVerifyModel.verify: time 2.456e-05/0.7612, allocations: 33.7 kB / 1.024 GB, free: 14.04 MB / 0.7794 GB Notification: Performance of NFConvertDAE.convert: time 0.0001598/0.7614, allocations: 93.8 kB / 1.024 GB, free: 13.95 MB / 0.7794 GB Notification: Performance of FrontEnd - DAE generated: time 4.799e-06/0.7614, allocations: 0 / 1.024 GB, free: 13.95 MB / 0.7794 GB Notification: Performance of FrontEnd: time 1.522e-06/0.7614, allocations: 0 / 1.024 GB, free: 13.95 MB / 0.7794 GB Notification: Performance of Transformations before backend: time 3.486e-06/0.7614, allocations: 0 / 1.024 GB, free: 13.95 MB / 0.7794 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.0003729/0.7618, allocations: 351.3 kB / 1.025 GB, free: 13.56 MB / 0.7794 GB Notification: Performance of prepare preOptimizeDAE: time 4.278e-05/0.7619, allocations: 8.562 kB / 1.025 GB, free: 13.55 MB / 0.7794 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 2.724e-05/0.7619, allocations: 0 / 1.025 GB, free: 13.55 MB / 0.7794 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001498/0.7621, allocations: 167.1 kB / 1.025 GB, free: 13.35 MB / 0.7794 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.506e-05/0.7621, allocations: 7.984 kB / 1.025 GB, free: 13.34 MB / 0.7794 GB Notification: Performance of preOpt expandDerOperator (simulation): time 9.949e-06/0.7621, allocations: 3.938 kB / 1.025 GB, free: 13.34 MB / 0.7794 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001069/0.7622, allocations: 41.64 kB / 1.025 GB, free: 13.29 MB / 0.7794 GB Notification: Performance of preOpt findStateOrder (simulation): time 6.102e-06/0.7622, allocations: 0 / 1.025 GB, free: 13.29 MB / 0.7794 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 9.157e-06/0.7622, allocations: 0 / 1.025 GB, free: 13.29 MB / 0.7794 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.783e-06/0.7622, allocations: 3.938 kB / 1.025 GB, free: 13.29 MB / 0.7794 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 2.786e-05/0.7623, allocations: 4 kB / 1.025 GB, free: 13.28 MB / 0.7794 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0001653/0.7624, allocations: 149.7 kB / 1.025 GB, free: 13.09 MB / 0.7794 GB Notification: Performance of preOpt comSubExp (simulation): time 5.209e-05/0.7625, allocations: 26.61 kB / 1.025 GB, free: 13.05 MB / 0.7794 GB Notification: Performance of preOpt resolveLoops (simulation): time 1.794e-05/0.7625, allocations: 8.797 kB / 1.025 GB, free: 13.04 MB / 0.7794 GB Notification: Performance of preOpt evalFunc (simulation): time 2.233e-05/0.7626, allocations: 4.062 kB / 1.025 GB, free: 13.04 MB / 0.7794 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.713e-05/0.7626, allocations: 38.52 kB / 1.025 GB, free: 12.99 MB / 0.7794 GB Notification: Performance of pre-optimization done (n=2): time 8.62e-07/0.7626, allocations: 0 / 1.025 GB, free: 12.99 MB / 0.7794 GB Notification: Performance of matching and sorting (n=2): time 0.0001349/0.7627, allocations: 37.69 kB / 1.025 GB, free: 12.95 MB / 0.7794 GB Notification: Performance of inlineWhenForInitialization (initialization): time 4.118e-05/0.7628, allocations: 51.41 kB / 1.025 GB, free: 12.88 MB / 0.7794 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 7.47e-05/0.7629, allocations: 102 kB / 1.025 GB, free: 12.77 MB / 0.7794 GB Notification: Performance of collectPreVariables (initialization): time 1.49e-05/0.7629, allocations: 25.7 kB / 1.025 GB, free: 12.74 MB / 0.7794 GB Notification: Performance of collectInitialEqns (initialization): time 4.06e-05/0.7629, allocations: 80.14 kB / 1.026 GB, free: 12.66 MB / 0.7794 GB Notification: Performance of collectInitialBindings (initialization): time 3.08e-05/0.763, allocations: 11.84 kB / 1.026 GB, free: 12.65 MB / 0.7794 GB Notification: Performance of simplifyInitialFunctions (initialization): time 2.514e-06/0.763, allocations: 0 / 1.026 GB, free: 12.65 MB / 0.7794 GB Notification: Performance of setup shared object (initialization): time 0.0001269/0.7631, allocations: 314.8 kB / 1.026 GB, free: 12.33 MB / 0.7794 GB Notification: Performance of preBalanceInitialSystem (initialization): time 1.341e-05/0.7631, allocations: 7.922 kB / 1.026 GB, free: 12.32 MB / 0.7794 GB Notification: Performance of partitionIndependentBlocks (initialization): time 1.047e-05/0.7632, allocations: 4 kB / 1.026 GB, free: 12.32 MB / 0.7794 GB Notification: Performance of analyzeInitialSystem (initialization): time 1.651e-05/0.7632, allocations: 4.188 kB / 1.026 GB, free: 12.32 MB / 0.7794 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.034e-06/0.7632, allocations: 0 / 1.026 GB, free: 12.32 MB / 0.7794 GB Notification: Performance of matching and sorting (n=2) (initialization): time 6.146e-05/0.7633, allocations: 41.7 kB / 1.026 GB, free: 12.27 MB / 0.7794 GB Notification: Performance of prepare postOptimizeDAE: time 1.544e-05/0.7633, allocations: 5.719 kB / 1.026 GB, free: 12.27 MB / 0.7794 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.134e-06/0.7633, allocations: 3.953 kB / 1.026 GB, free: 12.26 MB / 0.7794 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.127e-05/0.7633, allocations: 0 / 1.026 GB, free: 12.26 MB / 0.7794 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001711/0.7635, allocations: 11.98 kB / 1.026 GB, free: 12.25 MB / 0.7794 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.000435/0.7639, allocations: 0.586 MB / 1.026 GB, free: 11.64 MB / 0.7794 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 2.109e-05/0.764, allocations: 3.906 kB / 1.026 GB, free: 11.64 MB / 0.7794 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 8.035e-06/0.764, allocations: 7.969 kB / 1.026 GB, free: 11.63 MB / 0.7794 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 (linear and non-linear blocks): 1 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Equation system details: * Constant Jacobian: 0 * Linear Jacobian (size,density): 0 * Non-linear Jacobian: 1 {1} * Without analytic Jacobian: 0 Notification: Performance of prepare postOptimizeDAE: time 8.23e-05/0.7641, allocations: 111.3 kB / 1.027 GB, free: 11.51 MB / 0.7794 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 8.356e-06/0.7641, allocations: 3.984 kB / 1.027 GB, free: 11.51 MB / 0.7794 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001237/0.7642, allocations: 40.83 kB / 1.027 GB, free: 11.46 MB / 0.7794 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.262e-06/0.7642, allocations: 0 / 1.027 GB, free: 11.46 MB / 0.7794 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.334e-06/0.7642, allocations: 8.125 kB / 1.027 GB, free: 11.45 MB / 0.7794 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.639e-06/0.7642, allocations: 3.984 kB / 1.027 GB, free: 11.45 MB / 0.7794 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.000116/0.7644, allocations: 145.7 kB / 1.027 GB, free: 11.26 MB / 0.7794 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.108e-06/0.7644, allocations: 3.953 kB / 1.027 GB, free: 11.25 MB / 0.7794 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 7.95e-05/0.7645, allocations: 19.86 kB / 1.027 GB, free: 11.23 MB / 0.7794 GB Notification: Performance of postOpt tearingSystem (simulation): time 2.204e-06/0.7645, allocations: 0 / 1.027 GB, free: 11.23 MB / 0.7794 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 6.883e-06/0.7645, allocations: 4 kB / 1.027 GB, free: 11.23 MB / 0.7794 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0003064/0.7648, allocations: 0.5821 MB / 1.027 GB, free: 10.62 MB / 0.7794 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.793e-06/0.7648, allocations: 0 / 1.027 GB, free: 10.62 MB / 0.7794 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 7.781e-05/0.7649, allocations: 65.11 kB / 1.027 GB, free: 10.54 MB / 0.7794 GB Notification: Performance of postOpt removeConstants (simulation): time 4.544e-05/0.7649, allocations: 85.05 kB / 1.028 GB, free: 10.44 MB / 0.7794 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.224e-05/0.765, allocations: 4 kB / 1.028 GB, free: 10.44 MB / 0.7794 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 1.365e-05/0.765, allocations: 0 / 1.028 GB, free: 10.44 MB / 0.7794 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 1.404e-05/0.765, allocations: 0 / 1.028 GB, free: 10.44 MB / 0.7794 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.275e-06/0.765, allocations: 128 / 1.028 GB, free: 10.44 MB / 0.7794 GB Notification: Performance of sorting global known variables: time 3.876e-05/0.765, allocations: 91.27 kB / 1.028 GB, free: 10.35 MB / 0.7794 GB Notification: Performance of sort global known variables: time 1.1e-07/0.7651, allocations: 0 / 1.028 GB, free: 10.35 MB / 0.7794 GB Notification: Performance of remove unused functions: time 0.0001967/0.7653, allocations: 8 kB / 1.028 GB, free: 10.34 MB / 0.7794 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 (linear and non-linear blocks): 1 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Equation system details: * Constant Jacobian: 0 * Linear Jacobian (size,density): 0 * Non-linear Jacobian: 1 {1} * Without analytic Jacobian: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.0001941/0.7655, allocations: 111.2 kB / 1.028 GB, free: 10.22 MB / 0.7794 GB Notification: Performance of simCode: created initialization part: time 0.0001599/0.7656, allocations: 15.98 kB / 1.028 GB, free: 10.21 MB / 0.7794 GB Notification: Performance of simCode: created event and clocks part: time 2.665e-06/0.7656, allocations: 0 / 1.028 GB, free: 10.21 MB / 0.7794 GB Notification: Performance of simCode: created simulation system equations: time 8.156e-05/0.7657, allocations: 24.14 kB / 1.028 GB, free: 10.18 MB / 0.7794 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001504/0.7659, allocations: 3.953 kB / 1.028 GB, free: 10.18 MB / 0.7794 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0003859/0.7663, allocations: 115 kB / 1.028 GB, free: 10.04 MB / 0.7794 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002769/0.7666, allocations: 0.6731 MB / 1.029 GB, free: 9.34 MB / 0.7794 GB Notification: Performance of simCode: alias equations: time 1.736e-05/0.7666, allocations: 0 / 1.029 GB, free: 9.34 MB / 0.7794 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 1.702e-05/0.7666, allocations: 11.5 kB / 1.029 GB, free: 9.328 MB / 0.7794 GB Notification: Performance of SimCode: time 2.31e-07/0.7666, allocations: 0 / 1.029 GB, free: 9.328 MB / 0.7794 GB Notification: Performance of Templates: time 0.002599/0.7692, allocations: 428.2 kB / 1.029 GB, free: 8.941 MB / 0.7794 GB make -j1 -f Buildings_10_Buildings.Fluid.BaseClasses.FlowModels.Validation.InvertingBasicFlowFunction_m_flow.makefile (rm -f Buildings_10_Buildings.Fluid.BaseClasses.FlowModels.Validation.InvertingBasicFlowFunction_m_flow.pipe ; mkfifo Buildings_10_Buildings.Fluid.BaseClasses.FlowModels.Validation.InvertingBasicFlowFunction_m_flow.pipe ; head -c 1048576 < Buildings_10_Buildings.Fluid.BaseClasses.FlowModels.Validation.InvertingBasicFlowFunction_m_flow.pipe >> ../files/Buildings_10_Buildings.Fluid.BaseClasses.FlowModels.Validation.InvertingBasicFlowFunction_m_flow.sim & ./Buildings_10_Buildings.Fluid.BaseClasses.FlowModels.Validation.InvertingBasicFlowFunction_m_flow -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Buildings_10_Buildings.Fluid.BaseClasses.FlowModels.Validation.InvertingBasicFlowFunction_m_flow.pipe 2>&1) diffSimulationResults("Buildings_10_Buildings.Fluid.BaseClasses.FlowModels.Validation.InvertingBasicFlowFunction_m_flow_res.mat","/mnt/ReferenceFiles/Buildings/csv/maint_10.0.x/Buildings_Fluid_BaseClasses_FlowModels_Validation_InvertingBasicFlowFunction_m_flow.csv","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Buildings_10_Buildings.Fluid.BaseClasses.FlowModels.Validation.InvertingBasicFlowFunction_m_flow.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches