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.001307/0.001307, allocations: 111.3 kB / 15.23 MB, free: 0.6602 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.001759/0.001759, allocations: 193.1 kB / 16.13 MB, free: 6.645 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.471/1.471, allocations: 222.9 MB / 239.8 MB, free: 4.527 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.594/2.594, allocations: 437 MB / 0.7099 GB, free: 5.328 MB / 0.5606 GB Notification: Performance of FrontEnd - loaded program: time 0.001372/0.001372, allocations: 67.89 kB / 0.8685 GB, free: 5.191 MB / 0.7169 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.7251/0.7265, allocations: 151.6 MB / 1.017 GB, free: 2.945 MB / 0.7637 GB Notification: Performance of NFInst.instantiate(Buildings.Fluid.BaseClasses.FlowModels.Validation.InvertingBasicFlowFunction_m_flow): time 0.003244/0.7298, allocations: 1.316 MB / 1.018 GB, free: 1.617 MB / 0.7637 GB Notification: Performance of NFInst.instExpressions: time 0.001328/0.7311, allocations: 0.5994 MB / 1.018 GB, free: 1.016 MB / 0.7637 GB Notification: Performance of NFInst.updateImplicitVariability: time 2.243e-05/0.7312, allocations: 4 kB / 1.018 GB, free: 1.012 MB / 0.7637 GB Notification: Performance of NFTyping.typeComponents: time 2.539e-05/0.7312, allocations: 4 kB / 1.018 GB, free: 1.008 MB / 0.7637 GB Notification: Performance of NFTyping.typeBindings: time 6.952e-05/0.7313, allocations: 3.984 kB / 1.018 GB, free: 1.004 MB / 0.7637 GB Notification: Performance of NFTyping.typeClassSections: time 0.0005472/0.7319, allocations: 111.6 kB / 1.019 GB, free: 0.8945 MB / 0.7637 GB Notification: Performance of NFFlatten.flatten: time 6.621e-05/0.7319, allocations: 15.92 kB / 1.019 GB, free: 0.8789 MB / 0.7637 GB Notification: Performance of NFFlatten.resolveConnections: time 6.148e-05/0.732, allocations: 4 kB / 1.019 GB, free: 0.875 MB / 0.7637 GB Notification: Performance of NFEvalConstants.evaluate: time 2.836e-05/0.732, allocations: 4 kB / 1.019 GB, free: 0.8711 MB / 0.7637 GB Notification: Performance of NFSimplifyModel.simplify: time 6.41e-05/0.7321, allocations: 3.938 kB / 1.019 GB, free: 0.8672 MB / 0.7637 GB Notification: Performance of NFPackage.collectConstants: time 1.79e-05/0.7321, allocations: 0 / 1.019 GB, free: 0.8672 MB / 0.7637 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0006035/0.7327, allocations: 347.3 kB / 1.019 GB, free: 0.5273 MB / 0.7637 GB Notification: Performance of NFScalarize.scalarize: time 1.376e-05/0.7328, allocations: 4 kB / 1.019 GB, free: 0.5234 MB / 0.7637 GB Notification: Performance of NFVerifyModel.verify: time 3.182e-05/0.7328, allocations: 7.984 kB / 1.019 GB, free: 0.5156 MB / 0.7637 GB Notification: Performance of NFConvertDAE.convert: time 0.0003095/0.7331, allocations: 145.7 kB / 1.019 GB, free: 384 kB / 0.7637 GB Notification: Performance of FrontEnd - DAE generated: time 8.395e-06/0.7331, allocations: 0 / 1.019 GB, free: 384 kB / 0.7637 GB Notification: Performance of FrontEnd: time 1.713e-06/0.7331, allocations: 0 / 1.019 GB, free: 384 kB / 0.7637 GB Notification: Performance of Transformations before backend: time 7.214e-06/0.7331, allocations: 0 / 1.019 GB, free: 384 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.0005908/0.7337, allocations: 351.5 kB / 1.019 GB, free: 15.98 MB / 0.7794 GB Notification: Performance of prepare preOptimizeDAE: time 5.704e-05/0.7338, allocations: 12.03 kB / 1.019 GB, free: 15.97 MB / 0.7794 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 4.22e-05/0.7338, allocations: 0.9375 kB / 1.019 GB, free: 15.97 MB / 0.7794 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001624/0.734, allocations: 168.4 kB / 1.02 GB, free: 15.77 MB / 0.7794 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.481e-05/0.734, allocations: 384 / 1.02 GB, free: 15.77 MB / 0.7794 GB Notification: Performance of preOpt expandDerOperator (simulation): time 1.157e-05/0.7341, allocations: 384 / 1.02 GB, free: 15.77 MB / 0.7794 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001509/0.7342, allocations: 42.19 kB / 1.02 GB, free: 15.72 MB / 0.7794 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.042e-05/0.7342, allocations: 192 / 1.02 GB, free: 15.72 MB / 0.7794 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.479e-05/0.7342, allocations: 3.938 kB / 1.02 GB, free: 15.71 MB / 0.7794 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.041e-06/0.7343, allocations: 0 / 1.02 GB, free: 15.71 MB / 0.7794 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 3.021e-05/0.7343, allocations: 4 kB / 1.02 GB, free: 15.71 MB / 0.7794 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0002096/0.7345, allocations: 157.7 kB / 1.02 GB, free: 15.51 MB / 0.7794 GB Notification: Performance of preOpt comSubExp (simulation): time 6.13e-05/0.7346, allocations: 18.61 kB / 1.02 GB, free: 15.48 MB / 0.7794 GB Notification: Performance of preOpt resolveLoops (simulation): time 2.645e-05/0.7346, allocations: 8.922 kB / 1.02 GB, free: 15.47 MB / 0.7794 GB Notification: Performance of preOpt evalFunc (simulation): time 2.954e-05/0.7346, allocations: 4 kB / 1.02 GB, free: 15.46 MB / 0.7794 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.288e-05/0.7347, allocations: 38.44 kB / 1.02 GB, free: 15.42 MB / 0.7794 GB Notification: Performance of pre-optimization done (n=2): time 9.82e-07/0.7347, allocations: 0 / 1.02 GB, free: 15.42 MB / 0.7794 GB Notification: Performance of matching and sorting (n=2): time 0.0001768/0.7349, allocations: 45.75 kB / 1.02 GB, free: 15.37 MB / 0.7794 GB Notification: Performance of inlineWhenForInitialization (initialization): time 4.465e-05/0.7349, allocations: 55.41 kB / 1.02 GB, free: 15.3 MB / 0.7794 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 9.745e-05/0.735, allocations: 97.86 kB / 1.02 GB, free: 15.2 MB / 0.7794 GB Notification: Performance of collectPreVariables (initialization): time 1.677e-05/0.735, allocations: 25.7 kB / 1.02 GB, free: 15.16 MB / 0.7794 GB Notification: Performance of collectInitialEqns (initialization): time 4.467e-05/0.7351, allocations: 84.08 kB / 1.02 GB, free: 15.08 MB / 0.7794 GB Notification: Performance of collectInitialBindings (initialization): time 3.602e-05/0.7351, allocations: 7.844 kB / 1.02 GB, free: 15.07 MB / 0.7794 GB Notification: Performance of simplifyInitialFunctions (initialization): time 3.415e-05/0.7352, allocations: 17.72 kB / 1.02 GB, free: 15.05 MB / 0.7794 GB Notification: Performance of setup shared object (initialization): time 0.0001299/0.7353, allocations: 314.8 kB / 1.02 GB, free: 14.73 MB / 0.7794 GB Notification: Performance of preBalanceInitialSystem (initialization): time 1.408e-05/0.7353, allocations: 4.125 kB / 1.021 GB, free: 14.73 MB / 0.7794 GB Notification: Performance of partitionIndependentBlocks (initialization): time 1.07e-05/0.7353, allocations: 4 kB / 1.021 GB, free: 14.72 MB / 0.7794 GB Notification: Performance of analyzeInitialSystem (initialization): time 3.242e-05/0.7354, allocations: 16.8 kB / 1.021 GB, free: 14.7 MB / 0.7794 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.003e-06/0.7354, allocations: 0 / 1.021 GB, free: 14.7 MB / 0.7794 GB Notification: Performance of matching and sorting (n=2) (initialization): time 6.436e-05/0.7355, allocations: 33.7 kB / 1.021 GB, free: 14.66 MB / 0.7794 GB Notification: Performance of prepare postOptimizeDAE: time 1.871e-05/0.7355, allocations: 11.98 kB / 1.021 GB, free: 14.65 MB / 0.7794 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.384e-06/0.7355, allocations: 3.938 kB / 1.021 GB, free: 14.65 MB / 0.7794 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.391e-05/0.7355, allocations: 0 / 1.021 GB, free: 14.65 MB / 0.7794 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.000173/0.7357, allocations: 8.094 kB / 1.021 GB, free: 14.64 MB / 0.7794 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0003885/0.7361, allocations: 0.5898 MB / 1.021 GB, free: 14.03 MB / 0.7794 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 2.455e-05/0.7361, allocations: 7.984 kB / 1.021 GB, free: 14.02 MB / 0.7794 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.111e-06/0.7361, allocations: 0 / 1.021 GB, free: 14.02 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 8.61e-05/0.7362, allocations: 114.3 kB / 1.021 GB, free: 13.9 MB / 0.7794 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 6.943e-06/0.7362, allocations: 0 / 1.021 GB, free: 13.9 MB / 0.7794 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001175/0.7364, allocations: 48.91 kB / 1.021 GB, free: 13.84 MB / 0.7794 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.212e-06/0.7364, allocations: 0 / 1.021 GB, free: 13.84 MB / 0.7794 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.881e-06/0.7364, allocations: 0 / 1.021 GB, free: 13.84 MB / 0.7794 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.406e-06/0.7364, allocations: 0 / 1.021 GB, free: 13.84 MB / 0.7794 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001157/0.7365, allocations: 153.6 kB / 1.021 GB, free: 13.64 MB / 0.7794 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.695e-06/0.7365, allocations: 4 kB / 1.021 GB, free: 13.64 MB / 0.7794 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 7.375e-05/0.7366, allocations: 11.98 kB / 1.021 GB, free: 13.63 MB / 0.7794 GB Notification: Performance of postOpt tearingSystem (simulation): time 1.492e-06/0.7366, allocations: 3.938 kB / 1.021 GB, free: 13.62 MB / 0.7794 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 6.662e-06/0.7366, allocations: 0 / 1.021 GB, free: 13.62 MB / 0.7794 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0003095/0.7369, allocations: 0.5861 MB / 1.022 GB, free: 13.02 MB / 0.7794 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.935e-06/0.7369, allocations: 3.938 kB / 1.022 GB, free: 13.01 MB / 0.7794 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 8.208e-05/0.737, allocations: 65.03 kB / 1.022 GB, free: 12.93 MB / 0.7794 GB Notification: Performance of postOpt removeConstants (simulation): time 4.147e-05/0.7371, allocations: 81.05 kB / 1.022 GB, free: 12.83 MB / 0.7794 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.503e-05/0.7371, allocations: 0 / 1.022 GB, free: 12.83 MB / 0.7794 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 1.39e-05/0.7371, allocations: 8.062 kB / 1.022 GB, free: 12.82 MB / 0.7794 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 2.203e-05/0.7372, allocations: 11.92 kB / 1.022 GB, free: 12.81 MB / 0.7794 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.144e-06/0.7372, allocations: 0 / 1.022 GB, free: 12.81 MB / 0.7794 GB Notification: Performance of sorting global known variables: time 4.216e-05/0.7372, allocations: 75.28 kB / 1.022 GB, free: 12.74 MB / 0.7794 GB Notification: Performance of sort global known variables: time 1.1e-07/0.7372, allocations: 0 / 1.022 GB, free: 12.74 MB / 0.7794 GB Notification: Performance of remove unused functions: time 0.0002117/0.7374, allocations: 8 kB / 1.022 GB, free: 12.73 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.0001882/0.7376, allocations: 111.2 kB / 1.022 GB, free: 12.61 MB / 0.7794 GB Notification: Performance of simCode: created initialization part: time 0.0001646/0.7378, allocations: 24.08 kB / 1.022 GB, free: 12.59 MB / 0.7794 GB Notification: Performance of simCode: created event and clocks part: time 2.395e-06/0.7378, allocations: 0 / 1.022 GB, free: 12.59 MB / 0.7794 GB Notification: Performance of simCode: created simulation system equations: time 7.882e-05/0.7379, allocations: 8 kB / 1.022 GB, free: 12.58 MB / 0.7794 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001537/0.7381, allocations: 11.92 kB / 1.022 GB, free: 12.57 MB / 0.7794 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0003832/0.7385, allocations: 110.1 kB / 1.023 GB, free: 12.44 MB / 0.7794 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002485/0.7387, allocations: 0.6772 MB / 1.023 GB, free: 11.73 MB / 0.7794 GB Notification: Performance of simCode: alias equations: time 1.791e-05/0.7387, allocations: 0 / 1.023 GB, free: 11.73 MB / 0.7794 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 1.444e-05/0.7388, allocations: 11.44 kB / 1.023 GB, free: 11.72 MB / 0.7794 GB Notification: Performance of SimCode: time 4.8e-07/0.7388, allocations: 0 / 1.023 GB, free: 11.72 MB / 0.7794 GB Notification: Performance of Templates: time 0.002413/0.7412, allocations: 444.9 kB / 1.024 GB, free: 11.32 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