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.00112/0.00112, allocations: 111.3 kB / 15.23 MB, free: 0.6406 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.001232/0.001232, allocations: 192.3 kB / 16.14 MB, free: 6.711 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.341/1.341, allocations: 222.9 MB / 239.8 MB, free: 4.613 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.35/2.35, allocations: 390.2 MB / 0.6642 GB, free: 0.5703 MB / 0.5137 GB Notification: Performance of FrontEnd - loaded program: time 0.001191/0.001191, allocations: 59.91 kB / 0.8118 GB, free: 14.85 MB / 0.67 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.6254/0.6266, allocations: 140.4 MB / 0.9489 GB, free: 9.227 MB / 0.7169 GB Notification: Performance of NFInst.instantiate(Buildings.Fluid.BaseClasses.FlowModels.Validation.InvertingBasicFlowFunction_m_flow): time 0.002062/0.6287, allocations: 1.325 MB / 0.9502 GB, free: 8.176 MB / 0.7169 GB Notification: Performance of NFInst.instExpressions: time 0.0008034/0.6295, allocations: 0.5971 MB / 0.9508 GB, free: 7.711 MB / 0.7169 GB Notification: Performance of NFInst.updateImplicitVariability: time 1.308e-05/0.6295, allocations: 0 / 0.9508 GB, free: 7.711 MB / 0.7169 GB Notification: Performance of NFTyping.typeComponents: time 1.959e-05/0.6295, allocations: 1.094 kB / 0.9508 GB, free: 7.711 MB / 0.7169 GB Notification: Performance of NFTyping.typeBindings: time 5.672e-05/0.6296, allocations: 3.938 kB / 0.9508 GB, free: 7.707 MB / 0.7169 GB Notification: Performance of NFTyping.typeClassSections: time 0.0004202/0.63, allocations: 122.3 kB / 0.9509 GB, free: 7.625 MB / 0.7169 GB Notification: Performance of NFFlatten.flatten: time 3.686e-05/0.6301, allocations: 8.625 kB / 0.9509 GB, free: 7.621 MB / 0.7169 GB Notification: Performance of NFFlatten.resolveConnections: time 3.739e-05/0.6301, allocations: 1.531 kB / 0.9509 GB, free: 7.621 MB / 0.7169 GB Notification: Performance of NFEvalConstants.evaluate: time 1.684e-05/0.6301, allocations: 2.625 kB / 0.9509 GB, free: 7.621 MB / 0.7169 GB Notification: Performance of NFSimplifyModel.simplify: time 3.956e-05/0.6302, allocations: 14.38 kB / 0.9509 GB, free: 7.609 MB / 0.7169 GB Notification: Performance of NFPackage.collectConstants: time 1.041e-05/0.6302, allocations: 0 / 0.9509 GB, free: 7.609 MB / 0.7169 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0004207/0.6306, allocations: 341.2 kB / 0.9513 GB, free: 7.414 MB / 0.7169 GB Notification: Performance of NFScalarize.scalarize: time 8.817e-06/0.6306, allocations: 0 / 0.9513 GB, free: 7.414 MB / 0.7169 GB Notification: Performance of NFVerifyModel.verify: time 1.778e-05/0.6307, allocations: 2.094 kB / 0.9513 GB, free: 7.414 MB / 0.7169 GB Notification: Performance of NFConvertDAE.convert: time 0.000222/0.6309, allocations: 148.3 kB / 0.9514 GB, free: 7.328 MB / 0.7169 GB Notification: Performance of FrontEnd - DAE generated: time 4.408e-06/0.6309, allocations: 1.375 kB / 0.9514 GB, free: 7.328 MB / 0.7169 GB Notification: Performance of FrontEnd: time 7.22e-07/0.6309, allocations: 4 kB / 0.9514 GB, free: 7.324 MB / 0.7169 GB Notification: Performance of Transformations before backend: time 3.195e-06/0.6309, allocations: 3.938 kB / 0.9514 GB, free: 7.32 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.0002873/0.6312, allocations: 347.4 kB / 0.9517 GB, free: 6.941 MB / 0.7169 GB Notification: Performance of prepare preOptimizeDAE: time 3.489e-05/0.6313, allocations: 9.375 kB / 0.9518 GB, free: 6.941 MB / 0.7169 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.022e-05/0.6313, allocations: 1.906 kB / 0.9518 GB, free: 6.941 MB / 0.7169 GB Notification: Performance of preOpt evaluateParameters (simulation): time 7.338e-05/0.6314, allocations: 166 kB / 0.9519 GB, free: 6.742 MB / 0.7169 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 8.406e-06/0.6314, allocations: 384 / 0.9519 GB, free: 6.742 MB / 0.7169 GB Notification: Performance of preOpt expandDerOperator (simulation): time 9.929e-06/0.6314, allocations: 6.094 kB / 0.9519 GB, free: 6.738 MB / 0.7169 GB Notification: Performance of preOpt clockPartitioning (simulation): time 7.909e-05/0.6315, allocations: 32.92 kB / 0.952 GB, free: 6.703 MB / 0.7169 GB Notification: Performance of preOpt findStateOrder (simulation): time 8.275e-06/0.6315, allocations: 192 / 0.952 GB, free: 6.703 MB / 0.7169 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 8.516e-06/0.6315, allocations: 3.938 kB / 0.952 GB, free: 6.699 MB / 0.7169 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.528e-06/0.6315, allocations: 1.344 kB / 0.952 GB, free: 6.699 MB / 0.7169 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 2.512e-05/0.6315, allocations: 10.62 kB / 0.952 GB, free: 6.691 MB / 0.7169 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0001058/0.6317, allocations: 148.2 kB / 0.9521 GB, free: 6.5 MB / 0.7169 GB Notification: Performance of preOpt comSubExp (simulation): time 4.297e-05/0.6317, allocations: 27.86 kB / 0.9521 GB, free: 6.469 MB / 0.7169 GB Notification: Performance of preOpt resolveLoops (simulation): time 1.838e-05/0.6317, allocations: 16.3 kB / 0.9521 GB, free: 6.453 MB / 0.7169 GB Notification: Performance of preOpt evalFunc (simulation): time 1.733e-05/0.6317, allocations: 3.984 kB / 0.9522 GB, free: 6.449 MB / 0.7169 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.336e-05/0.6318, allocations: 32.03 kB / 0.9522 GB, free: 6.41 MB / 0.7169 GB Notification: Performance of pre-optimization done (n=2): time 1.153e-06/0.6318, allocations: 0 / 0.9522 GB, free: 6.41 MB / 0.7169 GB Notification: Performance of matching and sorting (n=2): time 0.0001247/0.6319, allocations: 42.64 kB / 0.9522 GB, free: 6.371 MB / 0.7169 GB Notification: Performance of inlineWhenForInitialization (initialization): time 2.051e-05/0.6319, allocations: 52.38 kB / 0.9523 GB, free: 6.309 MB / 0.7169 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 4.5e-05/0.632, allocations: 96.72 kB / 0.9524 GB, free: 6.207 MB / 0.7169 GB Notification: Performance of collectPreVariables (initialization): time 6.983e-06/0.632, allocations: 33.95 kB / 0.9524 GB, free: 6.168 MB / 0.7169 GB Notification: Performance of collectInitialEqns (initialization): time 1.418e-05/0.632, allocations: 81.02 kB / 0.9525 GB, free: 6.086 MB / 0.7169 GB Notification: Performance of collectInitialBindings (initialization): time 2.17e-05/0.632, allocations: 9.031 kB / 0.9525 GB, free: 6.078 MB / 0.7169 GB Notification: Performance of simplifyInitialFunctions (initialization): time 2.302e-05/0.6321, allocations: 11.94 kB / 0.9525 GB, free: 6.062 MB / 0.7169 GB Notification: Performance of setup shared object (initialization): time 4.242e-05/0.6321, allocations: 315.8 kB / 0.9528 GB, free: 5.746 MB / 0.7169 GB Notification: Performance of preBalanceInitialSystem (initialization): time 1.357e-05/0.6321, allocations: 6.156 kB / 0.9528 GB, free: 5.742 MB / 0.7169 GB Notification: Performance of partitionIndependentBlocks (initialization): time 8.757e-06/0.6321, allocations: 1.188 kB / 0.9528 GB, free: 5.742 MB / 0.7169 GB Notification: Performance of analyzeInitialSystem (initialization): time 3.001e-05/0.6322, allocations: 18.78 kB / 0.9528 GB, free: 5.727 MB / 0.7169 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.834e-06/0.6322, allocations: 0 / 0.9528 GB, free: 5.727 MB / 0.7169 GB Notification: Performance of matching and sorting (n=2) (initialization): time 5.235e-05/0.6322, allocations: 41.62 kB / 0.9529 GB, free: 5.688 MB / 0.7169 GB Notification: Performance of prepare postOptimizeDAE: time 1.3e-05/0.6323, allocations: 8 kB / 0.9529 GB, free: 5.688 MB / 0.7169 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.909e-06/0.6323, allocations: 3.938 kB / 0.9529 GB, free: 5.684 MB / 0.7169 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.171e-05/0.6323, allocations: 0 / 0.9529 GB, free: 5.684 MB / 0.7169 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001553/0.6324, allocations: 11.67 kB / 0.9529 GB, free: 5.68 MB / 0.7169 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.000229/0.6327, allocations: 0.5871 MB / 0.9535 GB, free: 5.082 MB / 0.7169 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 1.861e-05/0.6327, allocations: 3.906 kB / 0.9535 GB, free: 5.078 MB / 0.7169 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.711e-06/0.6327, allocations: 1.281 kB / 0.9535 GB, free: 5.078 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.012e-05/0.6328, allocations: 115 kB / 0.9536 GB, free: 4.957 MB / 0.7169 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 6.773e-06/0.6328, allocations: 1.188 kB / 0.9536 GB, free: 4.957 MB / 0.7169 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 8.77e-05/0.6329, allocations: 45.72 kB / 0.9536 GB, free: 4.914 MB / 0.7169 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.543e-06/0.6329, allocations: 3.938 kB / 0.9536 GB, free: 4.91 MB / 0.7169 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.238e-06/0.6329, allocations: 8.062 kB / 0.9536 GB, free: 4.902 MB / 0.7169 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.114e-06/0.6329, allocations: 5.062 kB / 0.9536 GB, free: 4.898 MB / 0.7169 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 5.575e-05/0.633, allocations: 151.9 kB / 0.9538 GB, free: 4.703 MB / 0.7169 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.292e-06/0.633, allocations: 1.094 kB / 0.9538 GB, free: 4.703 MB / 0.7169 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 7.222e-05/0.6331, allocations: 11.83 kB / 0.9538 GB, free: 4.699 MB / 0.7169 GB Notification: Performance of postOpt tearingSystem (simulation): time 2.174e-06/0.6331, allocations: 3.938 kB / 0.9538 GB, free: 4.695 MB / 0.7169 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 8.045e-06/0.6331, allocations: 1.125 kB / 0.9538 GB, free: 4.695 MB / 0.7169 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0001678/0.6332, allocations: 0.5822 MB / 0.9544 GB, free: 4.102 MB / 0.7169 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.894e-06/0.6333, allocations: 8.031 kB / 0.9544 GB, free: 4.094 MB / 0.7169 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 5.363e-05/0.6333, allocations: 67.03 kB / 0.9544 GB, free: 4.02 MB / 0.7169 GB Notification: Performance of postOpt removeConstants (simulation): time 1.518e-05/0.6333, allocations: 82.23 kB / 0.9545 GB, free: 3.922 MB / 0.7169 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.046e-05/0.6334, allocations: 0 / 0.9545 GB, free: 3.922 MB / 0.7169 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 1.5e-05/0.6334, allocations: 1.156 kB / 0.9545 GB, free: 3.922 MB / 0.7169 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 1.537e-05/0.6334, allocations: 5.031 kB / 0.9545 GB, free: 3.918 MB / 0.7169 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.445e-06/0.6334, allocations: 0 / 0.9545 GB, free: 3.918 MB / 0.7169 GB Notification: Performance of sorting global known variables: time 1.618e-05/0.6334, allocations: 81.38 kB / 0.9546 GB, free: 3.84 MB / 0.7169 GB Notification: Performance of sort global known variables: time 1.2e-07/0.6334, allocations: 0 / 0.9546 GB, free: 3.84 MB / 0.7169 GB Notification: Performance of remove unused functions: time 0.0002046/0.6336, allocations: 11.75 kB / 0.9546 GB, free: 3.836 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.0001399/0.6338, allocations: 107.5 kB / 0.9547 GB, free: 3.746 MB / 0.7169 GB Notification: Performance of simCode: created initialization part: time 0.0001502/0.6339, allocations: 24.73 kB / 0.9547 GB, free: 3.734 MB / 0.7169 GB Notification: Performance of simCode: created event and clocks part: time 1.944e-06/0.634, allocations: 0 / 0.9547 GB, free: 3.734 MB / 0.7169 GB Notification: Performance of simCode: created simulation system equations: time 8.348e-05/0.634, allocations: 22.45 kB / 0.9548 GB, free: 3.723 MB / 0.7169 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001395/0.6342, allocations: 1.094 kB / 0.9548 GB, free: 3.723 MB / 0.7169 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.000349/0.6345, allocations: 117.9 kB / 0.9549 GB, free: 3.598 MB / 0.7169 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 9.583e-05/0.6347, allocations: 0.6723 MB / 0.9555 GB, free: 2.902 MB / 0.7169 GB Notification: Performance of simCode: alias equations: time 1.586e-05/0.6347, allocations: 0 / 0.9555 GB, free: 2.902 MB / 0.7169 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 1.216e-05/0.6347, allocations: 8.938 kB / 0.9555 GB, free: 2.895 MB / 0.7169 GB Notification: Performance of SimCode: time 2.51e-07/0.6347, allocations: 4 kB / 0.9555 GB, free: 2.891 MB / 0.7169 GB Notification: Performance of Templates: time 0.002349/0.637, allocations: 445 kB / 0.956 GB, free: 2.664 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