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.001587/0.001587, allocations: 174.4 kB / 15.77 MB, free: 6.328 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.577/1.577, allocations: 205.4 MB / 221.9 MB, free: 13.84 MB / 186.8 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo): time 0.0009267/0.0009267, allocations: 90.25 kB / 270.3 MB, free: 13.37 MB / 234.8 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ThermofluidStream 0.4.0-OM_adaptions/package.mo): time 0.7634/0.7634, allocations: 90.6 MB / 409.1 MB, free: 14.99 MB / 298.8 MB Notification: Performance of FrontEnd - loaded program: time 0.0003059/0.0003059, allocations: 8 kB / 485.9 MB, free: 2.09 MB / 362.8 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3757/0.376, allocations: 66.27 MB / 0.5392 GB, free: 45.62 MB / 426.8 MB Notification: Performance of NFInst.instantiate(ThermofluidStream.Processes.Tests.Flow_Resistance): time 0.1747/0.5507, allocations: 145.3 MB / 0.6811 GB, free: 10.34 MB / 0.4949 GB Notification: Performance of NFInst.instExpressions: time 0.008207/0.559, allocations: 6.972 MB / 0.6879 GB, free: 3.359 MB / 0.4949 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.0006592/0.5597, allocations: 11.94 kB / 0.6879 GB, free: 3.348 MB / 0.4949 GB Notification: Performance of NFTyping.typeComponents: time 0.001182/0.5609, allocations: 413.9 kB / 0.6883 GB, free: 2.941 MB / 0.4949 GB Notification: Performance of NFTyping.typeBindings: time 0.00179/0.5627, allocations: 0.6602 MB / 0.689 GB, free: 2.277 MB / 0.4949 GB Notification: Performance of NFTyping.typeClassSections: time 0.001243/0.564, allocations: 370.6 kB / 0.6893 GB, free: 1.914 MB / 0.4949 GB Notification: Performance of NFFlatten.flatten: time 0.001077/0.5651, allocations: 1.148 MB / 0.6904 GB, free: 0.7617 MB / 0.4949 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0003556/0.5654, allocations: 251.8 kB / 0.6907 GB, free: 0.5195 MB / 0.4949 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0005034/0.5659, allocations: 354.7 kB / 0.691 GB, free: 176 kB / 0.4949 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0007703/0.5667, allocations: 0.5569 MB / 0.6916 GB, free: 15.61 MB / 0.5105 GB Notification: Performance of NFPackage.collectConstants: time 7.041e-05/0.5668, allocations: 32 kB / 0.6916 GB, free: 15.58 MB / 0.5105 GB Notification: Performance of NFFlatten.collectFunctions: time 0.00166/0.5685, allocations: 0.7836 MB / 0.6924 GB, free: 14.79 MB / 0.5105 GB Notification: Performance of NFScalarize.scalarize: time 0.0001274/0.5686, allocations: 127.5 kB / 0.6925 GB, free: 14.67 MB / 0.5105 GB Notification: Performance of NFVerifyModel.verify: time 0.0001482/0.5688, allocations: 153.4 kB / 0.6926 GB, free: 14.51 MB / 0.5105 GB Notification: Performance of NFConvertDAE.convert: time 0.0009709/0.5697, allocations: 0.8546 MB / 0.6935 GB, free: 13.66 MB / 0.5105 GB Notification: Performance of FrontEnd - DAE generated: time 4.007e-06/0.5698, allocations: 0 / 0.6935 GB, free: 13.66 MB / 0.5105 GB Notification: Performance of FrontEnd: time 1.603e-06/0.5698, allocations: 0 / 0.6935 GB, free: 13.66 MB / 0.5105 GB Notification: Performance of Transformations before backend: time 8.586e-06/0.5698, allocations: 0 / 0.6935 GB, free: 13.66 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.001894/0.5717, allocations: 0.9631 MB / 0.6944 GB, free: 12.65 MB / 0.5105 GB Notification: Performance of prepare preOptimizeDAE: time 3.529e-05/0.5717, allocations: 16.03 kB / 0.6944 GB, free: 12.63 MB / 0.5105 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001235/0.5719, allocations: 71.14 kB / 0.6945 GB, free: 12.56 MB / 0.5105 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0005353/0.5724, allocations: 427.5 kB / 0.6949 GB, free: 12.1 MB / 0.5105 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.378e-05/0.5725, allocations: 45.31 kB / 0.6949 GB, free: 12.06 MB / 0.5105 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001019/0.5726, allocations: 63.91 kB / 0.695 GB, free: 12 MB / 0.5105 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001157/0.5737, allocations: 0.7443 MB / 0.6957 GB, free: 11.25 MB / 0.5105 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.882e-05/0.5738, allocations: 3.984 kB / 0.6957 GB, free: 11.24 MB / 0.5105 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 5.827e-05/0.5738, allocations: 24 kB / 0.6958 GB, free: 11.22 MB / 0.5105 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.36e-05/0.5739, allocations: 29.31 kB / 0.6958 GB, free: 11.19 MB / 0.5105 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001241/0.5751, allocations: 0.8607 MB / 0.6966 GB, free: 10.33 MB / 0.5105 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.00377/0.5789, allocations: 3.255 MB / 0.6998 GB, free: 6.727 MB / 0.5105 GB Notification: Performance of preOpt comSubExp (simulation): time 0.001151/0.5801, allocations: 0.6986 MB / 0.7005 GB, free: 6.027 MB / 0.5105 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0006162/0.5807, allocations: 414.9 kB / 0.7009 GB, free: 5.617 MB / 0.5105 GB Notification: Performance of preOpt evalFunc (simulation): time 0.002655/0.5834, allocations: 2.2 MB / 0.703 GB, free: 3.152 MB / 0.5105 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.885e-05/0.5834, allocations: 43.02 kB / 0.7031 GB, free: 3.102 MB / 0.5105 GB Notification: Performance of pre-optimization done (n=60): time 2.484e-06/0.5834, allocations: 0.9375 kB / 0.7031 GB, free: 3.102 MB / 0.5105 GB Notification: Performance of matching and sorting (n=61): time 0.004636/0.5881, allocations: 2.319 MB / 0.7053 GB, free: 0.6719 MB / 0.5105 GB Notification: Performance of inlineWhenForInitialization (initialization): time 5.876e-05/0.5882, allocations: 59.97 kB / 0.7054 GB, free: 0.6016 MB / 0.5105 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003365/0.5885, allocations: 284.6 kB / 0.7057 GB, free: 328 kB / 0.5105 GB Notification: Performance of collectPreVariables (initialization): time 6.257e-05/0.5886, allocations: 37.7 kB / 0.7057 GB, free: 284 kB / 0.5105 GB Notification: Performance of collectInitialEqns (initialization): time 0.0002259/0.5888, allocations: 260.5 kB / 0.706 GB, free: 20 kB / 0.5105 GB Notification: Performance of collectInitialBindings (initialization): time 0.000241/0.5891, allocations: 208.9 kB / 0.7062 GB, free: 15.81 MB / 0.5261 GB Notification: Performance of simplifyInitialFunctions (initialization): time 3.247e-05/0.5891, allocations: 8 kB / 0.7062 GB, free: 15.8 MB / 0.5261 GB Notification: Performance of setup shared object (initialization): time 0.0001528/0.5893, allocations: 354.8 kB / 0.7065 GB, free: 15.45 MB / 0.5261 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0004171/0.5897, allocations: 257 kB / 0.7067 GB, free: 15.2 MB / 0.5261 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0004535/0.5901, allocations: 318.9 kB / 0.707 GB, free: 14.88 MB / 0.5261 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0004794/0.5906, allocations: 306 kB / 0.7073 GB, free: 14.58 MB / 0.5261 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.943e-06/0.5906, allocations: 0 / 0.7073 GB, free: 14.58 MB / 0.5261 GB Notification: Performance of matching and sorting (n=67) (initialization): time 0.001493/0.5921, allocations: 0.8779 MB / 0.7082 GB, free: 13.69 MB / 0.5261 GB Notification: Performance of prepare postOptimizeDAE: time 2.311e-05/0.5922, allocations: 8 kB / 0.7082 GB, free: 13.68 MB / 0.5261 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.338e-06/0.5922, allocations: 0 / 0.7082 GB, free: 13.68 MB / 0.5261 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.00173/0.5939, allocations: 405.6 kB / 0.7086 GB, free: 13.28 MB / 0.5261 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002895/0.5942, allocations: 75.89 kB / 0.7087 GB, free: 13.21 MB / 0.5261 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001304/0.5955, allocations: 1.072 MB / 0.7097 GB, free: 12.11 MB / 0.5261 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003971/0.596, allocations: 31.98 kB / 0.7097 GB, free: 12.08 MB / 0.5261 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.858e-05/0.596, allocations: 25.77 kB / 0.7098 GB, free: 12.05 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.0003204/0.5964, allocations: 213.5 kB / 0.71 GB, free: 11.84 MB / 0.5261 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 8.807e-05/0.5964, allocations: 47.42 kB / 0.71 GB, free: 11.79 MB / 0.5261 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001859/0.5983, allocations: 1.009 MB / 0.711 GB, free: 10.8 MB / 0.5261 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 9.467e-06/0.5983, allocations: 12 kB / 0.711 GB, free: 10.79 MB / 0.5261 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 9.087e-06/0.5984, allocations: 4 kB / 0.711 GB, free: 10.78 MB / 0.5261 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 9.779e-06/0.5984, allocations: 3.984 kB / 0.711 GB, free: 10.78 MB / 0.5261 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002857/0.6012, allocations: 1.838 MB / 0.7128 GB, free: 8.879 MB / 0.5261 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.931e-06/0.6013, allocations: 1.062 kB / 0.7128 GB, free: 8.879 MB / 0.5261 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0003929/0.6016, allocations: 99.86 kB / 0.7129 GB, free: 8.781 MB / 0.5261 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.0005204/0.6022, allocations: 186 kB / 0.7131 GB, free: 8.598 MB / 0.5261 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 5.366e-05/0.6022, allocations: 27.92 kB / 0.7131 GB, free: 8.57 MB / 0.5261 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.003213/0.6055, allocations: 2.489 MB / 0.7155 GB, free: 5.949 MB / 0.5261 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.974e-06/0.6055, allocations: 0 / 0.7155 GB, free: 5.949 MB / 0.5261 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002076/0.6076, allocations: 1.366 MB / 0.7169 GB, free: 4.566 MB / 0.5261 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0001481/0.6077, allocations: 116.6 kB / 0.717 GB, free: 4.434 MB / 0.5261 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 6.66e-05/0.6078, allocations: 12 kB / 0.717 GB, free: 4.422 MB / 0.5261 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0003455/0.6082, allocations: 31.98 kB / 0.717 GB, free: 4.391 MB / 0.5261 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001029/0.6083, allocations: 56.47 kB / 0.7171 GB, free: 4.336 MB / 0.5261 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 6.339e-05/0.6083, allocations: 31.97 kB / 0.7171 GB, free: 4.305 MB / 0.5261 GB Notification: Performance of sorting global known variables: time 0.000216/0.6086, allocations: 207 kB / 0.7173 GB, free: 4.102 MB / 0.5261 GB Notification: Performance of sort global known variables: time 2.11e-07/0.6086, allocations: 0 / 0.7173 GB, free: 4.102 MB / 0.5261 GB Notification: Performance of remove unused functions: time 0.0008322/0.6094, allocations: 251.8 kB / 0.7176 GB, free: 3.855 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.0005522/0.61, allocations: 336 kB / 0.7179 GB, free: 3.523 MB / 0.5261 GB Notification: Performance of simCode: created initialization part: time 0.001434/0.6114, allocations: 0.7603 MB / 0.7186 GB, free: 2.758 MB / 0.5261 GB Notification: Performance of simCode: created event and clocks part: time 2.785e-06/0.6114, allocations: 0 / 0.7186 GB, free: 2.758 MB / 0.5261 GB Notification: Performance of simCode: created simulation system equations: time 0.001041/0.6125, allocations: 0.6402 MB / 0.7192 GB, free: 2.098 MB / 0.5261 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0008207/0.6133, allocations: 144.9 kB / 0.7194 GB, free: 1.965 MB / 0.5261 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002321/0.6156, allocations: 1.635 MB / 0.721 GB, free: 316 kB / 0.5261 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004985/0.6161, allocations: 0.9026 MB / 0.7219 GB, free: 15.38 MB / 0.5418 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001816/0.6163, allocations: 67.39 kB / 0.7219 GB, free: 15.32 MB / 0.5418 GB Notification: Performance of SimCode: time 2.81e-07/0.6163, allocations: 0 / 0.7219 GB, free: 15.32 MB / 0.5418 GB Notification: Performance of Templates: time 0.01655/0.6329, allocations: 13.08 MB / 0.7347 GB, free: 2.363 MB / 0.5418 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