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.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_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.001801/0.001801, allocations: 115.3 kB / 15.34 MB, free: 0.5156 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.002053/0.002053, allocations: 192.4 kB / 16.25 MB, free: 6.637 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.515/1.515, allocations: 222.9 MB / 239.9 MB, free: 4.531 MB / 190.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.798/2.798, allocations: 437 MB / 0.7101 GB, free: 5.285 MB / 0.5606 GB Notification: Performance of FrontEnd - loaded program: time 0.002054/0.002054, allocations: 67.89 kB / 0.8687 GB, free: 5.105 MB / 0.7169 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.6176/0.6197, allocations: 151.6 MB / 1.017 GB, free: 2.77 MB / 0.7637 GB Notification: Performance of NFInst.instantiate(Buildings.Fluid.BaseClasses.FlowModels.Validation.InvertingBasicFlowFunction_m_flow): time 0.002501/0.6223, allocations: 1.321 MB / 1.018 GB, free: 1.438 MB / 0.7637 GB Notification: Performance of NFInst.instExpressions: time 0.001008/0.6233, allocations: 0.5799 MB / 1.019 GB, free: 0.8555 MB / 0.7637 GB Notification: Performance of NFInst.updateImplicitVariability: time 2.349e-05/0.6233, allocations: 4 kB / 1.019 GB, free: 0.8516 MB / 0.7637 GB Notification: Performance of NFTyping.typeComponents: time 1.857e-05/0.6234, allocations: 0 / 1.019 GB, free: 0.8516 MB / 0.7637 GB Notification: Performance of NFTyping.typeBindings: time 5.56e-05/0.6234, allocations: 7.922 kB / 1.019 GB, free: 0.8438 MB / 0.7637 GB Notification: Performance of NFTyping.typeClassSections: time 0.000532/0.624, allocations: 123.6 kB / 1.019 GB, free: 0.7227 MB / 0.7637 GB Notification: Performance of NFFlatten.flatten: time 4.411e-05/0.624, allocations: 8 kB / 1.019 GB, free: 0.7148 MB / 0.7637 GB Notification: Performance of NFFlatten.resolveConnections: time 4.422e-05/0.6241, allocations: 8 kB / 1.019 GB, free: 0.707 MB / 0.7637 GB Notification: Performance of NFEvalConstants.evaluate: time 2.366e-05/0.6241, allocations: 7.984 kB / 1.019 GB, free: 0.6992 MB / 0.7637 GB Notification: Performance of NFSimplifyModel.simplify: time 4.426e-05/0.6242, allocations: 3.938 kB / 1.019 GB, free: 0.6953 MB / 0.7637 GB Notification: Performance of NFPackage.collectConstants: time 1.128e-05/0.6242, allocations: 4 kB / 1.019 GB, free: 0.6914 MB / 0.7637 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0005064/0.6247, allocations: 347.3 kB / 1.019 GB, free: 360 kB / 0.7637 GB Notification: Performance of NFScalarize.scalarize: time 9.317e-06/0.6247, allocations: 0 / 1.019 GB, free: 360 kB / 0.7637 GB Notification: Performance of NFVerifyModel.verify: time 2.318e-05/0.6247, allocations: 0 / 1.019 GB, free: 360 kB / 0.7637 GB Notification: Performance of NFConvertDAE.convert: time 0.0002617/0.625, allocations: 145.6 kB / 1.019 GB, free: 216 kB / 0.7637 GB Notification: Performance of FrontEnd - DAE generated: time 3.697e-06/0.625, allocations: 0 / 1.019 GB, free: 216 kB / 0.7637 GB Notification: Performance of FrontEnd: time 9.02e-07/0.625, allocations: 0 / 1.019 GB, free: 216 kB / 0.7637 GB Notification: Performance of Transformations before backend: time 5.179e-06/0.625, allocations: 0 / 1.019 GB, free: 216 kB / 0.7637 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.000475/0.6255, allocations: 351.4 kB / 1.02 GB, free: 15.82 MB / 0.7794 GB Notification: Performance of prepare preOptimizeDAE: time 3.891e-05/0.6256, allocations: 15.97 kB / 1.02 GB, free: 15.8 MB / 0.7794 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 2.601e-05/0.6256, allocations: 4.938 kB / 1.02 GB, free: 15.8 MB / 0.7794 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001433/0.6257, allocations: 160.4 kB / 1.02 GB, free: 15.6 MB / 0.7794 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 7.544e-06/0.6257, allocations: 384 / 1.02 GB, free: 15.6 MB / 0.7794 GB Notification: Performance of preOpt expandDerOperator (simulation): time 1.408e-05/0.6258, allocations: 8.312 kB / 1.02 GB, free: 15.59 MB / 0.7794 GB Notification: Performance of preOpt clockPartitioning (simulation): time 9.391e-05/0.6259, allocations: 30.27 kB / 1.02 GB, free: 15.56 MB / 0.7794 GB Notification: Performance of preOpt findStateOrder (simulation): time 8.576e-06/0.6259, allocations: 192 / 1.02 GB, free: 15.56 MB / 0.7794 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.039e-05/0.6259, allocations: 3.938 kB / 1.02 GB, free: 15.55 MB / 0.7794 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.128e-06/0.6259, allocations: 0 / 1.02 GB, free: 15.55 MB / 0.7794 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 2.966e-05/0.6259, allocations: 11.98 kB / 1.02 GB, free: 15.54 MB / 0.7794 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0001718/0.6261, allocations: 145.7 kB / 1.02 GB, free: 15.35 MB / 0.7794 GB Notification: Performance of preOpt comSubExp (simulation): time 5.72e-05/0.6262, allocations: 26.61 kB / 1.02 GB, free: 15.32 MB / 0.7794 GB Notification: Performance of preOpt resolveLoops (simulation): time 2.259e-05/0.6262, allocations: 12.78 kB / 1.02 GB, free: 15.3 MB / 0.7794 GB Notification: Performance of preOpt evalFunc (simulation): time 2.726e-05/0.6262, allocations: 0 / 1.02 GB, free: 15.3 MB / 0.7794 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.356e-05/0.6263, allocations: 38.56 kB / 1.02 GB, free: 15.25 MB / 0.7794 GB Notification: Performance of pre-optimization done (n=2): time 7.51e-07/0.6263, allocations: 0 / 1.02 GB, free: 15.25 MB / 0.7794 GB Notification: Performance of matching and sorting (n=2): time 0.000146/0.6264, allocations: 45.64 kB / 1.02 GB, free: 15.2 MB / 0.7794 GB Notification: Performance of inlineWhenForInitialization (initialization): time 3.947e-05/0.6265, allocations: 51.41 kB / 1.02 GB, free: 15.14 MB / 0.7794 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 8.971e-05/0.6266, allocations: 97.84 kB / 1.02 GB, free: 15.04 MB / 0.7794 GB Notification: Performance of collectPreVariables (initialization): time 1.657e-05/0.6266, allocations: 25.7 kB / 1.02 GB, free: 15 MB / 0.7794 GB Notification: Performance of collectInitialEqns (initialization): time 3.995e-05/0.6266, allocations: 84.14 kB / 1.02 GB, free: 14.92 MB / 0.7794 GB Notification: Performance of collectInitialBindings (initialization): time 2.866e-05/0.6267, allocations: 7.844 kB / 1.02 GB, free: 14.91 MB / 0.7794 GB Notification: Performance of simplifyInitialFunctions (initialization): time 3.348e-05/0.6267, allocations: 13.72 kB / 1.02 GB, free: 14.89 MB / 0.7794 GB Notification: Performance of setup shared object (initialization): time 0.0001349/0.6269, allocations: 315.1 kB / 1.021 GB, free: 14.57 MB / 0.7794 GB Notification: Performance of preBalanceInitialSystem (initialization): time 1.761e-05/0.6269, allocations: 11.94 kB / 1.021 GB, free: 14.56 MB / 0.7794 GB Notification: Performance of partitionIndependentBlocks (initialization): time 1.259e-05/0.6269, allocations: 7.984 kB / 1.021 GB, free: 14.55 MB / 0.7794 GB Notification: Performance of analyzeInitialSystem (initialization): time 3.141e-05/0.6269, allocations: 12.86 kB / 1.021 GB, free: 14.54 MB / 0.7794 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.322e-06/0.6269, allocations: 0 / 1.021 GB, free: 14.54 MB / 0.7794 GB Notification: Performance of matching and sorting (n=2) (initialization): time 6.157e-05/0.627, allocations: 37.7 kB / 1.021 GB, free: 14.5 MB / 0.7794 GB Notification: Performance of prepare postOptimizeDAE: time 1.261e-05/0.627, allocations: 4 kB / 1.021 GB, free: 14.49 MB / 0.7794 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.482e-06/0.627, allocations: 3.938 kB / 1.021 GB, free: 14.49 MB / 0.7794 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.278e-05/0.6271, allocations: 4.094 kB / 1.021 GB, free: 14.48 MB / 0.7794 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001672/0.6272, allocations: 11.98 kB / 1.021 GB, free: 14.47 MB / 0.7794 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0004115/0.6276, allocations: 0.5898 MB / 1.021 GB, free: 13.86 MB / 0.7794 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 1.699e-05/0.6277, allocations: 0 / 1.021 GB, free: 13.86 MB / 0.7794 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.138e-05/0.6277, allocations: 4.031 kB / 1.021 GB, free: 13.86 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 (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 9.481e-05/0.6278, allocations: 112.3 kB / 1.021 GB, free: 13.74 MB / 0.7794 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 7.184e-06/0.6278, allocations: 4.094 kB / 1.021 GB, free: 13.73 MB / 0.7794 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001105/0.6279, allocations: 48.81 kB / 1.022 GB, free: 13.68 MB / 0.7794 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.533e-06/0.6279, allocations: 3.938 kB / 1.022 GB, free: 13.68 MB / 0.7794 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.316e-06/0.6279, allocations: 4 kB / 1.022 GB, free: 13.67 MB / 0.7794 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.304e-06/0.6279, allocations: 0 / 1.022 GB, free: 13.67 MB / 0.7794 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001207/0.6281, allocations: 157.5 kB / 1.022 GB, free: 13.47 MB / 0.7794 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 8.91e-07/0.6281, allocations: 0 / 1.022 GB, free: 13.47 MB / 0.7794 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 7.211e-05/0.6282, allocations: 11.98 kB / 1.022 GB, free: 13.46 MB / 0.7794 GB Notification: Performance of postOpt tearingSystem (simulation): time 3.797e-06/0.6282, allocations: 4 kB / 1.022 GB, free: 13.45 MB / 0.7794 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 6.753e-06/0.6282, allocations: 4.031 kB / 1.022 GB, free: 13.45 MB / 0.7794 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0003447/0.6285, allocations: 0.5782 MB / 1.022 GB, free: 12.85 MB / 0.7794 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.307e-06/0.6285, allocations: 3.938 kB / 1.022 GB, free: 12.84 MB / 0.7794 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 7.943e-05/0.6286, allocations: 65.09 kB / 1.022 GB, free: 12.76 MB / 0.7794 GB Notification: Performance of postOpt removeConstants (simulation): time 4.987e-05/0.6287, allocations: 89.06 kB / 1.022 GB, free: 12.66 MB / 0.7794 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.23e-05/0.6287, allocations: 12 kB / 1.022 GB, free: 12.64 MB / 0.7794 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 1.409e-05/0.6287, allocations: 0 / 1.022 GB, free: 12.64 MB / 0.7794 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 1.775e-05/0.6287, allocations: 3.938 kB / 1.022 GB, free: 12.64 MB / 0.7794 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.224e-06/0.6288, allocations: 0 / 1.022 GB, free: 12.64 MB / 0.7794 GB Notification: Performance of sorting global known variables: time 3.88e-05/0.6288, allocations: 79.28 kB / 1.022 GB, free: 12.56 MB / 0.7794 GB Notification: Performance of sort global known variables: time 1.3e-07/0.6288, allocations: 0 / 1.022 GB, free: 12.56 MB / 0.7794 GB Notification: Performance of remove unused functions: time 0.0001989/0.629, allocations: 15.98 kB / 1.022 GB, free: 12.55 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 (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.0001797/0.6292, allocations: 107.3 kB / 1.023 GB, free: 12.43 MB / 0.7794 GB Notification: Performance of simCode: created initialization part: time 0.0001711/0.6294, allocations: 19.98 kB / 1.023 GB, free: 12.41 MB / 0.7794 GB Notification: Performance of simCode: created event and clocks part: time 2.194e-06/0.6294, allocations: 0 / 1.023 GB, free: 12.41 MB / 0.7794 GB Notification: Performance of simCode: created simulation system equations: time 9.182e-05/0.6295, allocations: 19.92 kB / 1.023 GB, free: 12.39 MB / 0.7794 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001453/0.6296, allocations: 0.75 kB / 1.023 GB, free: 12.39 MB / 0.7794 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0003678/0.63, allocations: 118.3 kB / 1.023 GB, free: 12.25 MB / 0.7794 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003037/0.6303, allocations: 0.6768 MB / 1.023 GB, free: 11.55 MB / 0.7794 GB Notification: Performance of simCode: alias equations: time 1.453e-05/0.6303, allocations: 0 / 1.023 GB, free: 11.55 MB / 0.7794 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 1.429e-05/0.6304, allocations: 7.438 kB / 1.023 GB, free: 11.54 MB / 0.7794 GB Notification: Performance of SimCode: time 2.21e-07/0.6304, allocations: 0 / 1.023 GB, free: 11.54 MB / 0.7794 GB Notification: Performance of Templates: time 0.002905/0.6333, allocations: 453 kB / 1.024 GB, free: 11.13 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=400 -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