Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr ThermofluidStream_OM_adaptions_ThermofluidStream.Processes.Tests.Flow_Resistance.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ThermofluidStream 0.4.0-OM_adaptions/package.mo", uses=false) Using package ThermofluidStream with version 0.4.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ThermofluidStream 0.4.0-OM_adaptions/package.mo) Using package ModelicaServices with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo) Using package Modelica with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo) Using package Complex with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo) Running command: translateModel(ThermofluidStream.Processes.Tests.Flow_Resistance,tolerance=1e-06,outputFormat="mat",numberOfIntervals=2000,variableFilter="Time|flowResistance.m_flow|flowResistance1.m_flow|flowResistance2.m_flow",fileNamePrefix="ThermofluidStream_OM_adaptions_ThermofluidStream.Processes.Tests.Flow_Resistance") translateModel(ThermofluidStream.Processes.Tests.Flow_Resistance,tolerance=1e-06,outputFormat="mat",numberOfIntervals=2000,variableFilter="Time|flowResistance.m_flow|flowResistance1.m_flow|flowResistance2.m_flow",fileNamePrefix="ThermofluidStream_OM_adaptions_ThermofluidStream.Processes.Tests.Flow_Resistance") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo): time 0.004881/0.004881, allocations: 163.9 kB / 15.13 MB, free: 5.594 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.306/1.306, allocations: 205.4 MB / 221.3 MB, free: 13.81 MB / 186.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo): time 0.0007404/0.0007404, allocations: 94.23 kB / 269.6 MB, free: 13.34 MB / 234.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ThermofluidStream 0.4.0-OM_adaptions/package.mo): time 0.6657/0.6657, allocations: 90.61 MB / 408.5 MB, free: 14.95 MB / 298.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0002919/0.0002919, allocations: 8 kB / 485.2 MB, free: 2.043 MB / 362.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3066/0.3069, allocations: 66.29 MB / 0.5386 GB, free: 45.57 MB / 426.7 MB Notification: Performance of NFInst.instantiate(ThermofluidStream.Processes.Tests.Flow_Resistance): time 0.1584/0.4654, allocations: 145.3 MB / 0.6805 GB, free: 10.27 MB / 0.4948 GB Notification: Performance of NFInst.instExpressions: time 0.008714/0.4742, allocations: 6.974 MB / 0.6873 GB, free: 3.285 MB / 0.4948 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.0007331/0.4749, allocations: 8 kB / 0.6873 GB, free: 3.277 MB / 0.4948 GB Notification: Performance of NFTyping.typeComponents: time 0.001402/0.4764, allocations: 409.9 kB / 0.6877 GB, free: 2.875 MB / 0.4948 GB Notification: Performance of NFTyping.typeBindings: time 0.002193/0.4786, allocations: 0.6602 MB / 0.6884 GB, free: 2.211 MB / 0.4948 GB Notification: Performance of NFTyping.typeClassSections: time 0.001558/0.4802, allocations: 370.6 kB / 0.6887 GB, free: 1.848 MB / 0.4948 GB Notification: Performance of NFFlatten.flatten: time 0.001458/0.4816, allocations: 1.148 MB / 0.6898 GB, free: 0.6953 MB / 0.4948 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0004857/0.4821, allocations: 260.5 kB / 0.6901 GB, free: 456 kB / 0.4948 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0007787/0.4829, allocations: 338.7 kB / 0.6904 GB, free: 116 kB / 0.4948 GB Notification: Performance of NFSimplifyModel.simplify: time 0.001176/0.4841, allocations: 0.5646 MB / 0.6909 GB, free: 15.55 MB / 0.5105 GB Notification: Performance of NFPackage.collectConstants: time 0.0001809/0.4843, allocations: 36.75 kB / 0.691 GB, free: 15.51 MB / 0.5105 GB Notification: Performance of NFFlatten.collectFunctions: time 0.002095/0.4864, allocations: 0.7758 MB / 0.6917 GB, free: 14.73 MB / 0.5105 GB Notification: Performance of NFScalarize.scalarize: time 0.0002159/0.4867, allocations: 135.5 kB / 0.6919 GB, free: 14.6 MB / 0.5105 GB Notification: Performance of NFVerifyModel.verify: time 0.0003326/0.487, allocations: 157.3 kB / 0.692 GB, free: 14.44 MB / 0.5105 GB Notification: Performance of NFConvertDAE.convert: time 0.001268/0.4883, allocations: 0.8534 MB / 0.6929 GB, free: 13.59 MB / 0.5105 GB Notification: Performance of FrontEnd - DAE generated: time 4.639e-06/0.4883, allocations: 0 / 0.6929 GB, free: 13.59 MB / 0.5105 GB Notification: Performance of FrontEnd: time 2.415e-06/0.4883, allocations: 0 / 0.6929 GB, free: 13.59 MB / 0.5105 GB Notification: Performance of Transformations before backend: time 4.079e-05/0.4884, allocations: 0 / 0.6929 GB, free: 13.59 MB / 0.5105 GB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 151 * Number of variables: 151 Notification: Performance of Generate backend data structure: time 0.002439/0.4908, allocations: 0.9573 MB / 0.6938 GB, free: 12.58 MB / 0.5105 GB Notification: Performance of prepare preOptimizeDAE: time 4.527e-05/0.4909, allocations: 11.97 kB / 0.6938 GB, free: 12.57 MB / 0.5105 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0002377/0.4911, allocations: 79.14 kB / 0.6939 GB, free: 12.49 MB / 0.5105 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0007397/0.4918, allocations: 422 kB / 0.6943 GB, free: 12.04 MB / 0.5105 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.829e-05/0.4919, allocations: 41.31 kB / 0.6943 GB, free: 12 MB / 0.5105 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001594/0.4921, allocations: 63.91 kB / 0.6944 GB, free: 11.93 MB / 0.5105 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001363/0.4934, allocations: 0.752 MB / 0.6951 GB, free: 11.18 MB / 0.5105 GB Notification: Performance of preOpt findStateOrder (simulation): time 2.605e-05/0.4935, allocations: 0 / 0.6951 GB, free: 11.18 MB / 0.5105 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 6.777e-05/0.4936, allocations: 20 kB / 0.6951 GB, free: 11.16 MB / 0.5105 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.548e-05/0.4936, allocations: 29.31 kB / 0.6952 GB, free: 11.13 MB / 0.5105 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001374/0.495, allocations: 0.86 MB / 0.696 GB, free: 10.27 MB / 0.5105 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.004419/0.4994, allocations: 3.255 MB / 0.6992 GB, free: 6.664 MB / 0.5105 GB Notification: Performance of preOpt comSubExp (simulation): time 0.001212/0.5007, allocations: 0.7036 MB / 0.6999 GB, free: 5.961 MB / 0.5105 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0006536/0.5013, allocations: 406.9 kB / 0.7003 GB, free: 5.559 MB / 0.5105 GB Notification: Performance of preOpt evalFunc (simulation): time 0.002608/0.504, allocations: 2.204 MB / 0.7024 GB, free: 3.09 MB / 0.5105 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.177e-05/0.504, allocations: 43.08 kB / 0.7024 GB, free: 3.039 MB / 0.5105 GB Notification: Performance of pre-optimization done (n=60): time 3.046e-06/0.504, allocations: 0 / 0.7024 GB, free: 3.039 MB / 0.5105 GB Notification: Performance of matching and sorting (n=61): time 0.004414/0.5084, allocations: 2.319 MB / 0.7047 GB, free: 0.6094 MB / 0.5105 GB Notification: Performance of inlineWhenForInitialization (initialization): time 5.044e-05/0.5085, allocations: 59.97 kB / 0.7048 GB, free: 0.5391 MB / 0.5105 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003284/0.5089, allocations: 290 kB / 0.705 GB, free: 260 kB / 0.5105 GB Notification: Performance of collectPreVariables (initialization): time 4.967e-05/0.5089, allocations: 33.7 kB / 0.7051 GB, free: 220 kB / 0.5105 GB Notification: Performance of collectInitialEqns (initialization): time 0.0001956/0.5091, allocations: 260.5 kB / 0.7053 GB, free: 15.96 MB / 0.5261 GB Notification: Performance of collectInitialBindings (initialization): time 0.0001645/0.5093, allocations: 212.9 kB / 0.7055 GB, free: 15.75 MB / 0.5261 GB Notification: Performance of simplifyInitialFunctions (initialization): time 3.344e-05/0.5093, allocations: 12 kB / 0.7055 GB, free: 15.73 MB / 0.5261 GB Notification: Performance of setup shared object (initialization): time 0.0001829/0.5095, allocations: 350.8 kB / 0.7059 GB, free: 15.38 MB / 0.5261 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0004314/0.51, allocations: 257 kB / 0.7061 GB, free: 15.13 MB / 0.5261 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0004743/0.5104, allocations: 317.5 kB / 0.7064 GB, free: 14.81 MB / 0.5261 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0005171/0.511, allocations: 302.1 kB / 0.7067 GB, free: 14.52 MB / 0.5261 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.826e-06/0.511, allocations: 0 / 0.7067 GB, free: 14.52 MB / 0.5261 GB Notification: Performance of matching and sorting (n=67) (initialization): time 0.001541/0.5125, allocations: 0.8818 MB / 0.7076 GB, free: 13.62 MB / 0.5261 GB Notification: Performance of prepare postOptimizeDAE: time 2.402e-05/0.5126, allocations: 4 kB / 0.7076 GB, free: 13.62 MB / 0.5261 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.27e-05/0.5126, allocations: 4 kB / 0.7076 GB, free: 13.61 MB / 0.5261 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.001856/0.5144, allocations: 413.5 kB / 0.708 GB, free: 13.21 MB / 0.5261 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002964/0.5148, allocations: 67.89 kB / 0.708 GB, free: 13.14 MB / 0.5261 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001406/0.5162, allocations: 1.073 MB / 0.7091 GB, free: 12.04 MB / 0.5261 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0004074/0.5166, allocations: 29.55 kB / 0.7091 GB, free: 12.02 MB / 0.5261 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.782e-05/0.5167, allocations: 35.91 kB / 0.7091 GB, free: 11.98 MB / 0.5261 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 4 * 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 (37): * Single equations (assignments): 35 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 1 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 0 * Torn equation systems: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 0 * Non-linear torn systems: 1 {4 26} Notification: Performance of prepare postOptimizeDAE: time 0.0003481/0.517, allocations: 213.5 kB / 0.7094 GB, free: 11.76 MB / 0.5261 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 9.71e-05/0.5171, allocations: 43.44 kB / 0.7094 GB, free: 11.72 MB / 0.5261 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.00197/0.5191, allocations: 1.004 MB / 0.7104 GB, free: 10.73 MB / 0.5261 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.203e-05/0.5191, allocations: 8 kB / 0.7104 GB, free: 10.72 MB / 0.5261 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.207e-05/0.5192, allocations: 4 kB / 0.7104 GB, free: 10.71 MB / 0.5261 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 9.788e-06/0.5192, allocations: 3.984 kB / 0.7104 GB, free: 10.71 MB / 0.5261 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.003248/0.5224, allocations: 1.842 MB / 0.7122 GB, free: 8.809 MB / 0.5261 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.78e-06/0.5224, allocations: 0 / 0.7122 GB, free: 8.809 MB / 0.5261 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0004233/0.5229, allocations: 99.8 kB / 0.7123 GB, free: 8.711 MB / 0.5261 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.0005524/0.5234, allocations: 189.7 kB / 0.7125 GB, free: 8.523 MB / 0.5261 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 7.578e-05/0.5235, allocations: 23.92 kB / 0.7125 GB, free: 8.5 MB / 0.5261 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.003225/0.5268, allocations: 2.478 MB / 0.7149 GB, free: 5.891 MB / 0.5261 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.576e-06/0.5268, allocations: 8.031 kB / 0.7149 GB, free: 5.883 MB / 0.5261 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002174/0.529, allocations: 1.37 MB / 0.7163 GB, free: 4.496 MB / 0.5261 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0001679/0.5291, allocations: 124.3 kB / 0.7164 GB, free: 4.359 MB / 0.5261 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 7.734e-05/0.5292, allocations: 12 kB / 0.7164 GB, free: 4.348 MB / 0.5261 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0004097/0.5296, allocations: 35.97 kB / 0.7164 GB, free: 4.312 MB / 0.5261 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 9.413e-05/0.5297, allocations: 52.48 kB / 0.7165 GB, free: 4.262 MB / 0.5261 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.932e-05/0.5298, allocations: 23.97 kB / 0.7165 GB, free: 4.238 MB / 0.5261 GB Notification: Performance of sorting global known variables: time 0.0002099/0.53, allocations: 207.1 kB / 0.7167 GB, free: 4.035 MB / 0.5261 GB Notification: Performance of sort global known variables: time 1.3e-07/0.53, allocations: 0 / 0.7167 GB, free: 4.035 MB / 0.5261 GB Notification: Performance of remove unused functions: time 0.000848/0.5309, allocations: 255.8 kB / 0.7169 GB, free: 3.785 MB / 0.5261 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 1 * Number of states: 3 (flowResistance.m_flow,flowResistance1.m_flow,flowResistance2.m_flow) * 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 (50): * Single equations (assignments): 48 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 1 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 0 * Torn equation systems: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 1 {(4,75.0%) 13} * Non-linear torn systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.0006109/0.5315, allocations: 328.8 kB / 0.7172 GB, free: 3.461 MB / 0.5261 GB Notification: Performance of simCode: created initialization part: time 0.001539/0.5331, allocations: 0.7563 MB / 0.718 GB, free: 2.699 MB / 0.5261 GB Notification: Performance of simCode: created event and clocks part: time 2.865e-06/0.5331, allocations: 4 kB / 0.718 GB, free: 2.695 MB / 0.5261 GB Notification: Performance of simCode: created simulation system equations: time 0.001186/0.5343, allocations: 0.6401 MB / 0.7186 GB, free: 2.035 MB / 0.5261 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0008786/0.5352, allocations: 148.7 kB / 0.7188 GB, free: 1.895 MB / 0.5261 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002519/0.5377, allocations: 1.602 MB / 0.7203 GB, free: 284 kB / 0.5261 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0005364/0.5382, allocations: 0.9065 MB / 0.7212 GB, free: 15.35 MB / 0.5417 GB Notification: Performance of simCode: alias equations: time 0.0004647/0.5387, allocations: 138.1 kB / 0.7213 GB, free: 15.24 MB / 0.5417 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.00016/0.5389, allocations: 59.39 kB / 0.7214 GB, free: 15.18 MB / 0.5417 GB Notification: Performance of SimCode: time 8.62e-07/0.5389, allocations: 0 / 0.7214 GB, free: 15.18 MB / 0.5417 GB Notification: Performance of Templates: time 0.0208/0.5597, allocations: 12.75 MB / 0.7338 GB, free: 2.594 MB / 0.5417 GB make -j1 -f ThermofluidStream_OM_adaptions_ThermofluidStream.Processes.Tests.Flow_Resistance.makefile (rm -f ThermofluidStream_OM_adaptions_ThermofluidStream.Processes.Tests.Flow_Resistance.pipe ; mkfifo ThermofluidStream_OM_adaptions_ThermofluidStream.Processes.Tests.Flow_Resistance.pipe ; head -c 1048576 < ThermofluidStream_OM_adaptions_ThermofluidStream.Processes.Tests.Flow_Resistance.pipe >> ../files/ThermofluidStream_OM_adaptions_ThermofluidStream.Processes.Tests.Flow_Resistance.sim & ./ThermofluidStream_OM_adaptions_ThermofluidStream.Processes.Tests.Flow_Resistance -abortSlowSimulation -alarm=1200 -emit_protected -lv LOG_STATS > ThermofluidStream_OM_adaptions_ThermofluidStream.Processes.Tests.Flow_Resistance.pipe 2>&1) diffSimulationResults("ThermofluidStream_OM_adaptions_ThermofluidStream.Processes.Tests.Flow_Resistance_res.mat","/mnt/ReferenceFiles/ThermofluidStream-OM-regression/ReferenceData/ThermofluidStream.Processes.Tests.Flow_Resistance_ref.mat","../files/ThermofluidStream_OM_adaptions_ThermofluidStream.Processes.Tests.Flow_Resistance.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches