Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Buildings_9_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 9.1.3-maint.9.1.x/package.mo", uses=false) Using package Buildings with version 9.1.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 9.1.3-maint.9.1.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_9_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_9_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.001191/0.001191, 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.001924/0.001924, allocations: 190.5 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.403/1.403, allocations: 222.9 MB / 239.9 MB, free: 4.523 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 9.1.3-maint.9.1.x/package.mo): time 2.414/2.414, allocations: 390.2 MB / 0.6643 GB, free: 0.5586 MB / 0.5137 GB Notification: Performance of FrontEnd - loaded program: time 0.001531/0.001531, allocations: 63.89 kB / 0.812 GB, free: 14.77 MB / 0.67 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.702/0.7035, allocations: 140.4 MB / 0.9491 GB, free: 9.23 MB / 0.7169 GB Notification: Performance of NFInst.instantiate(Buildings.Fluid.BaseClasses.FlowModels.Validation.InvertingBasicFlowFunction_m_flow): time 0.00229/0.7059, allocations: 1.318 MB / 0.9504 GB, free: 8.184 MB / 0.7169 GB Notification: Performance of NFInst.instExpressions: time 0.0008482/0.7068, allocations: 0.5724 MB / 0.9509 GB, free: 7.73 MB / 0.7169 GB Notification: Performance of NFInst.updateImplicitVariability: time 2.186e-05/0.7068, allocations: 1.281 kB / 0.9509 GB, free: 7.73 MB / 0.7169 GB Notification: Performance of NFTyping.typeComponents: time 2.183e-05/0.7068, allocations: 3.938 kB / 0.9509 GB, free: 7.727 MB / 0.7169 GB Notification: Performance of NFTyping.typeBindings: time 4.484e-05/0.7069, allocations: 3.938 kB / 0.9509 GB, free: 7.723 MB / 0.7169 GB Notification: Performance of NFTyping.typeClassSections: time 0.0005938/0.7075, allocations: 131.9 kB / 0.9511 GB, free: 7.641 MB / 0.7169 GB Notification: Performance of NFFlatten.flatten: time 4.63e-05/0.7075, allocations: 8.562 kB / 0.9511 GB, free: 7.637 MB / 0.7169 GB Notification: Performance of NFFlatten.resolveConnections: time 4.257e-05/0.7076, allocations: 1.281 kB / 0.9511 GB, free: 7.637 MB / 0.7169 GB Notification: Performance of NFEvalConstants.evaluate: time 1.816e-05/0.7076, allocations: 1.5 kB / 0.9511 GB, free: 7.637 MB / 0.7169 GB Notification: Performance of NFSimplifyModel.simplify: time 4.026e-05/0.7077, allocations: 6.422 kB / 0.9511 GB, free: 7.633 MB / 0.7169 GB Notification: Performance of NFPackage.collectConstants: time 1.096e-05/0.7077, allocations: 1.219 kB / 0.9511 GB, free: 7.633 MB / 0.7169 GB Notification: Performance of NFFlatten.collectFunctions: time 0.000484/0.7082, allocations: 345.1 kB / 0.9514 GB, free: 7.434 MB / 0.7169 GB Notification: Performance of NFScalarize.scalarize: time 1.089e-05/0.7082, allocations: 7.938 kB / 0.9514 GB, free: 7.426 MB / 0.7169 GB Notification: Performance of NFVerifyModel.verify: time 1.982e-05/0.7082, allocations: 6.125 kB / 0.9514 GB, free: 7.422 MB / 0.7169 GB Notification: Performance of NFConvertDAE.convert: time 0.000257/0.7085, allocations: 141.8 kB / 0.9516 GB, free: 7.344 MB / 0.7169 GB Notification: Performance of FrontEnd - DAE generated: time 3.838e-06/0.7085, allocations: 0 / 0.9516 GB, free: 7.344 MB / 0.7169 GB Notification: Performance of FrontEnd: time 1.803e-06/0.7085, allocations: 0 / 0.9516 GB, free: 7.344 MB / 0.7169 GB Notification: Performance of Transformations before backend: time 5.06e-06/0.7085, allocations: 0 / 0.9516 GB, free: 7.344 MB / 0.7169 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.000329/0.7088, allocations: 351.6 kB / 0.9519 GB, free: 6.961 MB / 0.7169 GB Notification: Performance of prepare preOptimizeDAE: time 3.628e-05/0.7089, allocations: 10.38 kB / 0.9519 GB, free: 6.961 MB / 0.7169 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.533e-05/0.7089, allocations: 0.9375 kB / 0.9519 GB, free: 6.961 MB / 0.7169 GB Notification: Performance of preOpt evaluateParameters (simulation): time 7.809e-05/0.709, allocations: 165.8 kB / 0.9521 GB, free: 6.762 MB / 0.7169 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.273e-05/0.709, allocations: 9.438 kB / 0.9521 GB, free: 6.754 MB / 0.7169 GB Notification: Performance of preOpt expandDerOperator (simulation): time 8.145e-06/0.709, allocations: 384 / 0.9521 GB, free: 6.754 MB / 0.7169 GB Notification: Performance of preOpt clockPartitioning (simulation): time 9.341e-05/0.7091, allocations: 34.27 kB / 0.9521 GB, free: 6.719 MB / 0.7169 GB Notification: Performance of preOpt findStateOrder (simulation): time 7.594e-06/0.7092, allocations: 4.188 kB / 0.9521 GB, free: 6.715 MB / 0.7169 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.115e-05/0.7092, allocations: 3.938 kB / 0.9521 GB, free: 6.711 MB / 0.7169 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.43e-06/0.7092, allocations: 0.9688 kB / 0.9521 GB, free: 6.711 MB / 0.7169 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 3.232e-05/0.7092, allocations: 3.312 kB / 0.9521 GB, free: 6.711 MB / 0.7169 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0001368/0.7094, allocations: 151.7 kB / 0.9523 GB, free: 6.516 MB / 0.7169 GB Notification: Performance of preOpt comSubExp (simulation): time 5.331e-05/0.7094, allocations: 28.55 kB / 0.9523 GB, free: 6.484 MB / 0.7169 GB Notification: Performance of preOpt resolveLoops (simulation): time 2.26e-05/0.7095, allocations: 15.02 kB / 0.9523 GB, free: 6.469 MB / 0.7169 GB Notification: Performance of preOpt evalFunc (simulation): time 3.312e-05/0.7095, allocations: 5.109 kB / 0.9523 GB, free: 6.465 MB / 0.7169 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.86e-05/0.7095, allocations: 31.72 kB / 0.9524 GB, free: 6.426 MB / 0.7169 GB Notification: Performance of pre-optimization done (n=2): time 1.403e-06/0.7095, allocations: 0 / 0.9524 GB, free: 6.426 MB / 0.7169 GB Notification: Performance of matching and sorting (n=2): time 0.0001574/0.7097, allocations: 42.77 kB / 0.9524 GB, free: 6.387 MB / 0.7169 GB Notification: Performance of inlineWhenForInitialization (initialization): time 3.291e-05/0.7097, allocations: 56.47 kB / 0.9524 GB, free: 6.32 MB / 0.7169 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 5.241e-05/0.7098, allocations: 100.1 kB / 0.9525 GB, free: 6.215 MB / 0.7169 GB Notification: Performance of collectPreVariables (initialization): time 7.634e-06/0.7098, allocations: 25.7 kB / 0.9526 GB, free: 6.184 MB / 0.7169 GB Notification: Performance of collectInitialEqns (initialization): time 1.838e-05/0.7098, allocations: 81.2 kB / 0.9526 GB, free: 6.102 MB / 0.7169 GB Notification: Performance of collectInitialBindings (initialization): time 2.462e-05/0.7098, allocations: 9 kB / 0.9527 GB, free: 6.094 MB / 0.7169 GB Notification: Performance of simplifyInitialFunctions (initialization): time 2.785e-05/0.7099, allocations: 15.62 kB / 0.9527 GB, free: 6.074 MB / 0.7169 GB Notification: Performance of setup shared object (initialization): time 6.089e-05/0.7099, allocations: 311.9 kB / 0.953 GB, free: 5.762 MB / 0.7169 GB Notification: Performance of preBalanceInitialSystem (initialization): time 1.339e-05/0.71, allocations: 5.75 kB / 0.953 GB, free: 5.758 MB / 0.7169 GB Notification: Performance of partitionIndependentBlocks (initialization): time 1.002e-05/0.71, allocations: 6.219 kB / 0.953 GB, free: 5.754 MB / 0.7169 GB Notification: Performance of analyzeInitialSystem (initialization): time 2.888e-05/0.71, allocations: 18.56 kB / 0.953 GB, free: 5.738 MB / 0.7169 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.044e-06/0.71, allocations: 0 / 0.953 GB, free: 5.738 MB / 0.7169 GB Notification: Performance of matching and sorting (n=2) (initialization): time 6.46e-05/0.7101, allocations: 38.67 kB / 0.953 GB, free: 5.703 MB / 0.7169 GB Notification: Performance of prepare postOptimizeDAE: time 1.599e-05/0.7101, allocations: 4.906 kB / 0.953 GB, free: 5.703 MB / 0.7169 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.971e-06/0.7101, allocations: 3.938 kB / 0.953 GB, free: 5.699 MB / 0.7169 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.578e-05/0.7101, allocations: 1.156 kB / 0.953 GB, free: 5.699 MB / 0.7169 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001759/0.7103, allocations: 10.95 kB / 0.953 GB, free: 5.695 MB / 0.7169 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0002654/0.7106, allocations: 0.5866 MB / 0.9536 GB, free: 5.098 MB / 0.7169 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 2.161e-05/0.7106, allocations: 5.125 kB / 0.9536 GB, free: 5.094 MB / 0.7169 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.121e-06/0.7106, allocations: 0 / 0.9536 GB, free: 5.094 MB / 0.7169 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 5.251e-05/0.7107, allocations: 112.5 kB / 0.9537 GB, free: 4.977 MB / 0.7169 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 8.286e-06/0.7107, allocations: 0 / 0.9537 GB, free: 4.977 MB / 0.7169 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.000107/0.7108, allocations: 52.84 kB / 0.9538 GB, free: 4.926 MB / 0.7169 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.144e-06/0.7108, allocations: 1.625 kB / 0.9538 GB, free: 4.926 MB / 0.7169 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.109e-06/0.7108, allocations: 0 / 0.9538 GB, free: 4.926 MB / 0.7169 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.018e-06/0.7109, allocations: 3.984 kB / 0.9538 GB, free: 4.922 MB / 0.7169 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 6.882e-05/0.7109, allocations: 160.4 kB / 0.9539 GB, free: 4.719 MB / 0.7169 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.124e-06/0.7109, allocations: 0.9062 kB / 0.9539 GB, free: 4.719 MB / 0.7169 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 7.885e-05/0.711, allocations: 15.8 kB / 0.954 GB, free: 4.711 MB / 0.7169 GB Notification: Performance of postOpt tearingSystem (simulation): time 2.996e-06/0.711, allocations: 0 / 0.954 GB, free: 4.711 MB / 0.7169 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 7.293e-06/0.711, allocations: 1.125 kB / 0.954 GB, free: 4.711 MB / 0.7169 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0001913/0.7112, allocations: 0.586 MB / 0.9545 GB, free: 4.113 MB / 0.7169 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.085e-06/0.7113, allocations: 9.094 kB / 0.9545 GB, free: 4.105 MB / 0.7169 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 6.04e-05/0.7113, allocations: 62 kB / 0.9546 GB, free: 4.035 MB / 0.7169 GB Notification: Performance of postOpt removeConstants (simulation): time 1.927e-05/0.7113, allocations: 78.23 kB / 0.9547 GB, free: 3.941 MB / 0.7169 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.455e-05/0.7114, allocations: 0 / 0.9547 GB, free: 3.941 MB / 0.7169 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 1.595e-05/0.7114, allocations: 5.156 kB / 0.9547 GB, free: 3.938 MB / 0.7169 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 1.433e-05/0.7114, allocations: 9.062 kB / 0.9547 GB, free: 3.93 MB / 0.7169 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.236e-06/0.7114, allocations: 1.094 kB / 0.9547 GB, free: 3.93 MB / 0.7169 GB Notification: Performance of sorting global known variables: time 2.209e-05/0.7114, allocations: 80.38 kB / 0.9548 GB, free: 3.852 MB / 0.7169 GB Notification: Performance of sort global known variables: time 1.1e-07/0.7114, allocations: 0 / 0.9548 GB, free: 3.852 MB / 0.7169 GB Notification: Performance of remove unused functions: time 0.000205/0.7117, allocations: 7.25 kB / 0.9548 GB, free: 3.852 MB / 0.7169 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.0001599/0.7118, allocations: 112.1 kB / 0.9549 GB, free: 3.758 MB / 0.7169 GB Notification: Performance of simCode: created initialization part: time 0.0001832/0.712, allocations: 28.39 kB / 0.9549 GB, free: 3.742 MB / 0.7169 GB Notification: Performance of simCode: created event and clocks part: time 2.976e-06/0.712, allocations: 1.25 kB / 0.9549 GB, free: 3.742 MB / 0.7169 GB Notification: Performance of simCode: created simulation system equations: time 9.057e-05/0.7121, allocations: 18.61 kB / 0.9549 GB, free: 3.734 MB / 0.7169 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001763/0.7123, allocations: 3.969 kB / 0.9549 GB, free: 3.734 MB / 0.7169 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0003839/0.7127, allocations: 110.9 kB / 0.955 GB, free: 3.617 MB / 0.7169 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001043/0.7128, allocations: 0.6712 MB / 0.9557 GB, free: 2.922 MB / 0.7169 GB Notification: Performance of simCode: alias equations: time 1.627e-05/0.7128, allocations: 5.188 kB / 0.9557 GB, free: 2.918 MB / 0.7169 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 1.496e-05/0.7129, allocations: 8.719 kB / 0.9557 GB, free: 2.91 MB / 0.7169 GB Notification: Performance of SimCode: time 2.2e-07/0.7129, allocations: 0 / 0.9557 GB, free: 2.91 MB / 0.7169 GB Notification: Performance of Templates: time 0.002668/0.7155, allocations: 451.3 kB / 0.9561 GB, free: 2.684 MB / 0.7169 GB make -j1 -f Buildings_9_Buildings.Fluid.BaseClasses.FlowModels.Validation.InvertingBasicFlowFunction_m_flow.makefile (rm -f Buildings_9_Buildings.Fluid.BaseClasses.FlowModels.Validation.InvertingBasicFlowFunction_m_flow.pipe ; mkfifo Buildings_9_Buildings.Fluid.BaseClasses.FlowModels.Validation.InvertingBasicFlowFunction_m_flow.pipe ; head -c 1048576 < Buildings_9_Buildings.Fluid.BaseClasses.FlowModels.Validation.InvertingBasicFlowFunction_m_flow.pipe >> ../files/Buildings_9_Buildings.Fluid.BaseClasses.FlowModels.Validation.InvertingBasicFlowFunction_m_flow.sim & ./Buildings_9_Buildings.Fluid.BaseClasses.FlowModels.Validation.InvertingBasicFlowFunction_m_flow -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Buildings_9_Buildings.Fluid.BaseClasses.FlowModels.Validation.InvertingBasicFlowFunction_m_flow.pipe 2>&1) diffSimulationResults("Buildings_9_Buildings.Fluid.BaseClasses.FlowModels.Validation.InvertingBasicFlowFunction_m_flow_res.mat","/mnt/ReferenceFiles/Buildings/csv/maint_9.1.x/Buildings_Fluid_BaseClasses_FlowModels_Validation_InvertingBasicFlowFunction_m_flow.csv","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Buildings_9_Buildings.Fluid.BaseClasses.FlowModels.Validation.InvertingBasicFlowFunction_m_flow.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches