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.008397/0.008397, allocations: 169.8 kB / 15.12 MB, free: 5.559 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.711/1.711, allocations: 205.4 MB / 221.2 MB, free: 13.82 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.0009502/0.0009501, allocations: 98.83 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.8167/0.8167, allocations: 90.58 MB / 408.4 MB, free: 14.97 MB / 298.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0003378/0.0003378, allocations: 8 kB / 485.2 MB, free: 2.078 MB / 362.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.4125/0.4128, allocations: 66.28 MB / 0.5386 GB, free: 45.51 MB / 426.7 MB Notification: Performance of NFInst.instantiate(ThermofluidStream.Processes.Tests.Flow_Resistance): time 0.1646/0.5775, allocations: 135.3 MB / 0.6707 GB, free: 4.344 MB / 490.7 MB Notification: Performance of NFInst.instExpressions: time 0.007741/0.5853, allocations: 6.259 MB / 0.6768 GB, free: 14.07 MB / 0.4948 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.0006213/0.586, allocations: 8 kB / 0.6768 GB, free: 14.07 MB / 0.4948 GB Notification: Performance of NFTyping.typeComponents: time 0.001208/0.5872, allocations: 422.2 kB / 0.6772 GB, free: 13.65 MB / 0.4948 GB Notification: Performance of NFTyping.typeBindings: time 0.001788/0.589, allocations: 0.6737 MB / 0.6779 GB, free: 12.98 MB / 0.4948 GB Notification: Performance of NFTyping.typeClassSections: time 0.001289/0.5903, allocations: 379 kB / 0.6782 GB, free: 12.61 MB / 0.4948 GB Notification: Performance of NFFlatten.flatten: time 0.0009791/0.5913, allocations: 0.6787 MB / 0.6789 GB, free: 11.93 MB / 0.4948 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0003736/0.5917, allocations: 261.9 kB / 0.6792 GB, free: 11.68 MB / 0.4948 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0004471/0.5921, allocations: 307 kB / 0.6795 GB, free: 11.38 MB / 0.4948 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0006092/0.5928, allocations: 490.5 kB / 0.6799 GB, free: 10.89 MB / 0.4948 GB Notification: Performance of NFPackage.collectConstants: time 6.199e-05/0.5928, allocations: 33.03 kB / 0.68 GB, free: 10.86 MB / 0.4948 GB Notification: Performance of NFFlatten.collectFunctions: time 0.001817/0.5947, allocations: 0.8427 MB / 0.6808 GB, free: 10.02 MB / 0.4948 GB Notification: Performance of NFScalarize.scalarize: time 0.0001173/0.5948, allocations: 123.5 kB / 0.6809 GB, free: 9.898 MB / 0.4948 GB Notification: Performance of NFVerifyModel.verify: time 0.0001434/0.5949, allocations: 157.3 kB / 0.681 GB, free: 9.738 MB / 0.4948 GB Notification: Performance of NFConvertDAE.convert: time 0.001002/0.596, allocations: 0.8385 MB / 0.6819 GB, free: 8.906 MB / 0.4948 GB Notification: Performance of FrontEnd - DAE generated: time 3.066e-06/0.596, allocations: 0 / 0.6819 GB, free: 8.906 MB / 0.4948 GB Notification: Performance of FrontEnd: time 1.723e-06/0.596, allocations: 0 / 0.6819 GB, free: 8.906 MB / 0.4948 GB Notification: Performance of Transformations before backend: time 8.867e-06/0.596, allocations: 0 / 0.6819 GB, free: 8.906 MB / 0.4948 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.001877/0.5979, allocations: 0.967 MB / 0.6828 GB, free: 7.891 MB / 0.4948 GB Notification: Performance of prepare preOptimizeDAE: time 4.19e-05/0.5979, allocations: 16.03 kB / 0.6828 GB, free: 7.875 MB / 0.4948 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001384/0.5981, allocations: 67.16 kB / 0.6829 GB, free: 7.809 MB / 0.4948 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0005996/0.5987, allocations: 427.8 kB / 0.6833 GB, free: 7.348 MB / 0.4948 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.781e-05/0.5987, allocations: 41.31 kB / 0.6833 GB, free: 7.309 MB / 0.4948 GB Notification: Performance of preOpt expandDerOperator (simulation): time 9.456e-05/0.5988, allocations: 63.91 kB / 0.6834 GB, free: 7.246 MB / 0.4948 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001176/0.6, allocations: 0.7403 MB / 0.6841 GB, free: 6.5 MB / 0.4948 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.661e-05/0.6, allocations: 0 / 0.6841 GB, free: 6.5 MB / 0.4948 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 6.326e-05/0.6001, allocations: 27.98 kB / 0.6841 GB, free: 6.473 MB / 0.4948 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.383e-05/0.6002, allocations: 33.3 kB / 0.6842 GB, free: 6.441 MB / 0.4948 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001295/0.6015, allocations: 0.86 MB / 0.685 GB, free: 5.578 MB / 0.4948 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.004082/0.6056, allocations: 3.285 MB / 0.6882 GB, free: 1.945 MB / 0.4948 GB Notification: Performance of preOpt comSubExp (simulation): time 0.001175/0.6068, allocations: 0.7018 MB / 0.6889 GB, free: 1.242 MB / 0.4948 GB Notification: Performance of preOpt evalFunc (simulation): time 0.002576/0.6094, allocations: 2.22 MB / 0.6911 GB, free: 14.76 MB / 0.5105 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.25e-05/0.6094, allocations: 44.52 kB / 0.6911 GB, free: 14.71 MB / 0.5105 GB Notification: Performance of pre-optimization done (n=61): time 3.977e-06/0.6094, allocations: 7.984 kB / 0.6911 GB, free: 14.7 MB / 0.5105 GB Notification: Performance of matching and sorting (n=63): time 0.004877/0.6143, allocations: 2.61 MB / 0.6937 GB, free: 11.94 MB / 0.5105 GB Notification: Performance of inlineWhenForInitialization (initialization): time 6.22e-05/0.6144, allocations: 55.97 kB / 0.6937 GB, free: 11.88 MB / 0.5105 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.000331/0.6148, allocations: 288.6 kB / 0.694 GB, free: 11.59 MB / 0.5105 GB Notification: Performance of collectPreVariables (initialization): time 7.013e-05/0.6148, allocations: 37.7 kB / 0.694 GB, free: 11.55 MB / 0.5105 GB Notification: Performance of collectInitialEqns (initialization): time 0.0001844/0.615, allocations: 256.6 kB / 0.6943 GB, free: 11.29 MB / 0.5105 GB Notification: Performance of collectInitialBindings (initialization): time 0.0001828/0.6152, allocations: 216.8 kB / 0.6945 GB, free: 11.08 MB / 0.5105 GB Notification: Performance of simplifyInitialFunctions (initialization): time 3.193e-05/0.6153, allocations: 8 kB / 0.6945 GB, free: 11.07 MB / 0.5105 GB Notification: Performance of setup shared object (initialization): time 0.0001688/0.6154, allocations: 360.2 kB / 0.6948 GB, free: 10.71 MB / 0.5105 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0004013/0.6158, allocations: 269 kB / 0.6951 GB, free: 10.45 MB / 0.5105 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0004373/0.6163, allocations: 317.5 kB / 0.6954 GB, free: 10.13 MB / 0.5105 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0004862/0.6168, allocations: 306.1 kB / 0.6957 GB, free: 9.828 MB / 0.5105 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.58e-06/0.6168, allocations: 4 kB / 0.6957 GB, free: 9.824 MB / 0.5105 GB Notification: Performance of matching and sorting (n=69) (initialization): time 0.001543/0.6183, allocations: 0.9168 MB / 0.6966 GB, free: 8.898 MB / 0.5105 GB Notification: Performance of prepare postOptimizeDAE: time 2.228e-05/0.6184, allocations: 4 kB / 0.6966 GB, free: 8.895 MB / 0.5105 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.868e-05/0.6184, allocations: 4 kB / 0.6966 GB, free: 8.891 MB / 0.5105 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.001659/0.6201, allocations: 412.5 kB / 0.697 GB, free: 8.484 MB / 0.5105 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002945/0.6204, allocations: 75.88 kB / 0.6971 GB, free: 8.41 MB / 0.5105 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001327/0.6217, allocations: 1.092 MB / 0.6981 GB, free: 7.289 MB / 0.5105 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0004065/0.6221, allocations: 39.92 kB / 0.6982 GB, free: 7.25 MB / 0.5105 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.591e-05/0.6222, allocations: 23.97 kB / 0.6982 GB, free: 7.227 MB / 0.5105 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 (38): * Single equations (assignments): 36 * 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 27} Notification: Performance of prepare postOptimizeDAE: time 0.0003793/0.6226, allocations: 221.4 kB / 0.6984 GB, free: 7 MB / 0.5105 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 9.453e-05/0.6227, allocations: 43.44 kB / 0.6984 GB, free: 6.957 MB / 0.5105 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001962/0.6247, allocations: 1.034 MB / 0.6995 GB, free: 5.941 MB / 0.5105 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.194e-05/0.6247, allocations: 8 kB / 0.6995 GB, free: 5.934 MB / 0.5105 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.19e-05/0.6247, allocations: 8.938 kB / 0.6995 GB, free: 5.926 MB / 0.5105 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 9.638e-06/0.6247, allocations: 3.984 kB / 0.6995 GB, free: 5.922 MB / 0.5105 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.003059/0.6278, allocations: 1.912 MB / 0.7013 GB, free: 3.949 MB / 0.5105 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 6.422e-06/0.6278, allocations: 0 / 0.7013 GB, free: 3.949 MB / 0.5105 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0003957/0.6282, allocations: 95.86 kB / 0.7014 GB, free: 3.855 MB / 0.5105 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.0005302/0.6288, allocations: 198 kB / 0.7016 GB, free: 3.66 MB / 0.5105 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 5.561e-05/0.6288, allocations: 29.34 kB / 0.7017 GB, free: 3.633 MB / 0.5105 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.003289/0.6321, allocations: 2.624 MB / 0.7042 GB, free: 0.875 MB / 0.5105 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.634e-06/0.6321, allocations: 0 / 0.7042 GB, free: 0.875 MB / 0.5105 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002111/0.6343, allocations: 1.393 MB / 0.7056 GB, free: 15.46 MB / 0.5261 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0001843/0.6345, allocations: 114.2 kB / 0.7057 GB, free: 15.33 MB / 0.5261 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 7.124e-05/0.6345, allocations: 12 kB / 0.7057 GB, free: 15.32 MB / 0.5261 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0003481/0.6349, allocations: 39.92 kB / 0.7057 GB, free: 15.28 MB / 0.5261 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 9.732e-05/0.635, allocations: 64.42 kB / 0.7058 GB, free: 15.21 MB / 0.5261 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.131e-05/0.635, allocations: 23.97 kB / 0.7058 GB, free: 15.19 MB / 0.5261 GB Notification: Performance of sorting global known variables: time 0.0002184/0.6353, allocations: 207.1 kB / 0.706 GB, free: 14.99 MB / 0.5261 GB Notification: Performance of sort global known variables: time 1.21e-07/0.6353, allocations: 0 / 0.706 GB, free: 14.99 MB / 0.5261 GB Notification: Performance of remove unused functions: time 0.0008569/0.6361, allocations: 259.9 kB / 0.7063 GB, free: 14.73 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 (51): * Single equations (assignments): 49 * 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,81.2%) 14} * Non-linear torn systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.0005608/0.6367, allocations: 331.8 kB / 0.7066 GB, free: 14.41 MB / 0.5261 GB Notification: Performance of simCode: created initialization part: time 0.001432/0.6382, allocations: 0.7778 MB / 0.7073 GB, free: 13.62 MB / 0.5261 GB Notification: Performance of simCode: created event and clocks part: time 2.756e-06/0.6382, allocations: 0 / 0.7073 GB, free: 13.62 MB / 0.5261 GB Notification: Performance of simCode: created simulation system equations: time 0.001112/0.6393, allocations: 0.657 MB / 0.708 GB, free: 12.95 MB / 0.5261 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0007038/0.64, allocations: 129.4 kB / 0.7081 GB, free: 12.83 MB / 0.5261 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002309/0.6423, allocations: 1.609 MB / 0.7097 GB, free: 11.21 MB / 0.5261 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0005453/0.6429, allocations: 0.9182 MB / 0.7106 GB, free: 10.27 MB / 0.5261 GB Notification: Performance of simCode: alias equations: time 0.0004162/0.6433, allocations: 140.2 kB / 0.7107 GB, free: 10.16 MB / 0.5261 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001473/0.6435, allocations: 59.39 kB / 0.7108 GB, free: 10.1 MB / 0.5261 GB Notification: Performance of SimCode: time 1.823e-06/0.6435, allocations: 0 / 0.7108 GB, free: 10.1 MB / 0.5261 GB Notification: Performance of Templates: time 0.02114/0.6646, allocations: 12.83 MB / 0.7233 GB, free: 13.43 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