Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr ThermofluidStream_OM_adaptions_ThermofluidStream.Undirected.Processes.Tests.TestFlowResistance.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.Undirected.Processes.Tests.TestFlowResistance,tolerance=1e-06,outputFormat="mat",numberOfIntervals=2000,variableFilter="Time|flowResistance.rear.m_flow|flowResistance1.rear.m_flow",fileNamePrefix="ThermofluidStream_OM_adaptions_ThermofluidStream.Undirected.Processes.Tests.TestFlowResistance") translateModel(ThermofluidStream.Undirected.Processes.Tests.TestFlowResistance,tolerance=1e-06,outputFormat="mat",numberOfIntervals=2000,variableFilter="Time|flowResistance.rear.m_flow|flowResistance1.rear.m_flow",fileNamePrefix="ThermofluidStream_OM_adaptions_ThermofluidStream.Undirected.Processes.Tests.TestFlowResistance") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo): time 0.0008291/0.0008291, allocations: 171.9 kB / 16.11 MB, free: 5.691 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.171/1.171, allocations: 205 MB / 221.9 MB, free: 9.055 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.0006844/0.0006843, allocations: 84.12 kB / 269.9 MB, free: 8.66 MB / 218.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ThermofluidStream 0.4.0-OM_adaptions/package.mo): time 0.6134/0.6134, allocations: 90.51 MB / 408.3 MB, free: 3.926 MB / 298.7 MB Notification: Performance of FrontEnd - loaded program: time 0.000353/0.0003531, allocations: 8.219 kB / 484.9 MB, free: 7.191 MB / 378.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2717/0.272, allocations: 65.81 MB / 0.5378 GB, free: 34.92 MB / 394.7 MB Notification: Performance of NFInst.instantiate(ThermofluidStream.Undirected.Processes.Tests.TestFlowResistance): time 0.1259/0.398, allocations: 145.9 MB / 0.6802 GB, free: 4.559 MB / 0.4948 GB Notification: Performance of NFInst.instExpressions: time 0.225/0.6231, allocations: 4.602 MB / 0.6847 GB, free: 1.449 MB / 0.4948 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.0005712/0.6237, allocations: 6.5 kB / 0.6847 GB, free: 1.449 MB / 0.4948 GB Notification: Performance of NFTyping.typeComponents: time 0.0006832/0.6244, allocations: 244.2 kB / 0.685 GB, free: 1.449 MB / 0.4948 GB Notification: Performance of NFTyping.typeBindings: time 0.001227/0.6256, allocations: 0.6178 MB / 0.6856 GB, free: 1.434 MB / 0.4948 GB Notification: Performance of NFTyping.typeClassSections: time 0.0009349/0.6266, allocations: 446.4 kB / 0.686 GB, free: 1.418 MB / 0.4948 GB Notification: Performance of NFFlatten.flatten: time 0.0008482/0.6274, allocations: 1.246 MB / 0.6872 GB, free: 1.418 MB / 0.4948 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0002078/0.6276, allocations: 122.5 kB / 0.6873 GB, free: 1.398 MB / 0.4948 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0006513/0.6283, allocations: 441.7 kB / 0.6878 GB, free: 1.391 MB / 0.4948 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0005185/0.6288, allocations: 451.5 kB / 0.6882 GB, free: 1.391 MB / 0.4948 GB Notification: Performance of NFPackage.collectConstants: time 5.259e-05/0.6289, allocations: 20.75 kB / 0.6882 GB, free: 1.391 MB / 0.4948 GB Notification: Performance of NFFlatten.collectFunctions: time 0.00156/0.6305, allocations: 0.9044 MB / 0.6891 GB, free: 1.371 MB / 0.4948 GB Notification: Performance of NFScalarize.scalarize: time 8.303e-05/0.6305, allocations: 87.08 kB / 0.6892 GB, free: 1.371 MB / 0.4948 GB Notification: Performance of NFVerifyModel.verify: time 0.0002121/0.6308, allocations: 262 kB / 0.6894 GB, free: 1.371 MB / 0.4948 GB Notification: Performance of NFConvertDAE.convert: time 0.001145/0.6319, allocations: 0.9243 MB / 0.6903 GB, free: 1.309 MB / 0.4948 GB Notification: Performance of FrontEnd - DAE generated: time 3.076e-06/0.6319, allocations: 0 / 0.6903 GB, free: 1.309 MB / 0.4948 GB Notification: Performance of FrontEnd: time 1.714e-06/0.6319, allocations: 4.812 kB / 0.6903 GB, free: 1.305 MB / 0.4948 GB Notification: Performance of Transformations before backend: time 7.233e-06/0.632, allocations: 0 / 0.6903 GB, free: 1.305 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: 107 * Number of variables: 107 Notification: Performance of Generate backend data structure: time 0.001296/0.6333, allocations: 0.7896 MB / 0.6911 GB, free: 16.75 MB / 0.5105 GB Notification: Performance of prepare preOptimizeDAE: time 3.775e-05/0.6333, allocations: 9.266 kB / 0.6911 GB, free: 16.75 MB / 0.5105 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001062/0.6334, allocations: 57.53 kB / 0.6912 GB, free: 16.72 MB / 0.5105 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004055/0.6338, allocations: 375.9 kB / 0.6915 GB, free: 16.47 MB / 0.5105 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.869e-05/0.6339, allocations: 38.88 kB / 0.6916 GB, free: 16.47 MB / 0.5105 GB Notification: Performance of preOpt expandDerOperator (simulation): time 6.779e-05/0.6339, allocations: 39.64 kB / 0.6916 GB, free: 16.47 MB / 0.5105 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0007528/0.6347, allocations: 464.6 kB / 0.692 GB, free: 16.43 MB / 0.5105 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.423e-05/0.6347, allocations: 0 / 0.692 GB, free: 16.43 MB / 0.5105 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.537e-05/0.6348, allocations: 15.34 kB / 0.692 GB, free: 16.43 MB / 0.5105 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.501e-05/0.6348, allocations: 14.17 kB / 0.6921 GB, free: 16.43 MB / 0.5105 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.000751/0.6355, allocations: 496.5 kB / 0.6925 GB, free: 16.43 MB / 0.5105 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002239/0.6378, allocations: 2.179 MB / 0.6947 GB, free: 15.07 MB / 0.5105 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0007822/0.6386, allocations: 0.5496 MB / 0.6952 GB, free: 15.02 MB / 0.5105 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0003453/0.6389, allocations: 273.1 kB / 0.6955 GB, free: 15.02 MB / 0.5105 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0008423/0.6398, allocations: 0.6023 MB / 0.6961 GB, free: 14.45 MB / 0.5105 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.039e-05/0.6398, allocations: 41.72 kB / 0.6961 GB, free: 14.4 MB / 0.5105 GB Notification: Performance of pre-optimization done (n=59): time 2.375e-06/0.6398, allocations: 0 / 0.6961 GB, free: 14.4 MB / 0.5105 GB Notification: Performance of matching and sorting (n=59): time 0.001793/0.6416, allocations: 0.9955 MB / 0.6971 GB, free: 14.12 MB / 0.5105 GB Notification: Performance of inlineWhenForInitialization (initialization): time 3.441e-05/0.6417, allocations: 60.72 kB / 0.6971 GB, free: 14.06 MB / 0.5105 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003962/0.6421, allocations: 320.9 kB / 0.6974 GB, free: 13.95 MB / 0.5105 GB Notification: Performance of collectPreVariables (initialization): time 4.378e-05/0.6421, allocations: 37.3 kB / 0.6975 GB, free: 13.91 MB / 0.5105 GB Notification: Performance of collectInitialEqns (initialization): time 0.0001091/0.6423, allocations: 206.4 kB / 0.6977 GB, free: 13.8 MB / 0.5105 GB Notification: Performance of collectInitialBindings (initialization): time 0.0001253/0.6424, allocations: 202.5 kB / 0.6979 GB, free: 13.67 MB / 0.5105 GB Notification: Performance of simplifyInitialFunctions (initialization): time 2.332e-05/0.6424, allocations: 13.66 kB / 0.6979 GB, free: 13.67 MB / 0.5105 GB Notification: Performance of setup shared object (initialization): time 0.0001278/0.6425, allocations: 352.9 kB / 0.6982 GB, free: 13.36 MB / 0.5105 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003696/0.6429, allocations: 193.4 kB / 0.6984 GB, free: 13.36 MB / 0.5105 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.000365/0.6433, allocations: 202 kB / 0.6986 GB, free: 13.35 MB / 0.5105 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0006106/0.6439, allocations: 448.3 kB / 0.699 GB, free: 13.33 MB / 0.5105 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.265e-06/0.6439, allocations: 4 kB / 0.699 GB, free: 13.33 MB / 0.5105 GB Notification: Performance of matching and sorting (n=61) (initialization): time 0.001063/0.645, allocations: 0.6039 MB / 0.6996 GB, free: 13.24 MB / 0.5105 GB Notification: Performance of prepare postOptimizeDAE: time 1.644e-05/0.645, allocations: 7.594 kB / 0.6996 GB, free: 13.24 MB / 0.5105 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.974e-06/0.645, allocations: 0 / 0.6996 GB, free: 13.24 MB / 0.5105 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.0002649/0.6453, allocations: 69.77 kB / 0.6997 GB, free: 13.22 MB / 0.5105 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003223/0.6456, allocations: 92.88 kB / 0.6998 GB, free: 13.22 MB / 0.5105 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.00184/0.6475, allocations: 2.707 MB / 0.7024 GB, free: 10.7 MB / 0.5105 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002795/0.6478, allocations: 42.36 kB / 0.7024 GB, free: 10.68 MB / 0.5105 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.767e-05/0.6478, allocations: 20.08 kB / 0.7025 GB, free: 10.68 MB / 0.5105 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 (53): * Single equations (assignments): 47 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 4 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 2 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 2 systems {(1,2,100.0%), (1,2,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of prepare postOptimizeDAE: time 0.0001855/0.648, allocations: 167.4 kB / 0.7026 GB, free: 10.56 MB / 0.5105 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 9.552e-05/0.6481, allocations: 45.16 kB / 0.7027 GB, free: 10.54 MB / 0.5105 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001411/0.6496, allocations: 0.7867 MB / 0.7034 GB, free: 10.43 MB / 0.5105 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 9.988e-06/0.6496, allocations: 2.578 kB / 0.7034 GB, free: 10.43 MB / 0.5105 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.665e-06/0.6496, allocations: 2.062 kB / 0.7034 GB, free: 10.43 MB / 0.5105 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0001054/0.6497, allocations: 127.8 kB / 0.7036 GB, free: 10.3 MB / 0.5105 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 5.959e-05/0.6498, allocations: 12.73 kB / 0.7036 GB, free: 10.3 MB / 0.5105 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002251/0.65, allocations: 27.42 kB / 0.7036 GB, free: 10.29 MB / 0.5105 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001146/0.6501, allocations: 49.61 kB / 0.7036 GB, free: 10.29 MB / 0.5105 GB Notification: Performance of postOpt createDAEmodeBDAE (simulation): time 0.001259/0.6514, allocations: 0.7632 MB / 0.7044 GB, free: 10.14 MB / 0.5105 GB Notification: Performance of postOpt detectDAEmodeSparsePattern (simulation): time 0.001334/0.6527, allocations: 1.078 MB / 0.7054 GB, free: 9.898 MB / 0.5105 GB Notification: Performance of postOpt setEvaluationStage (simulation): time 0.0003703/0.6531, allocations: 295.7 kB / 0.7057 GB, free: 9.887 MB / 0.5105 GB Notification: Performance of sorting global known variables: time 0.0001894/0.6533, allocations: 231.2 kB / 0.7059 GB, free: 9.809 MB / 0.5105 GB Notification: Performance of Backend: time 3.71e-07/0.6533, allocations: 0 / 0.7059 GB, free: 9.809 MB / 0.5105 GB Notification: Performance of simCode: created initialization part: time 0.001713/0.655, allocations: 0.9544 MB / 0.7069 GB, free: 9.387 MB / 0.5105 GB Notification: Performance of SimCode: time 0.001634/0.6567, allocations: 1.642 MB / 0.7085 GB, free: 8.184 MB / 0.5105 GB Notification: Performance of Templates: time 0.01584/0.6725, allocations: 11.48 MB / 0.7197 GB, free: 6.789 MB / 0.5105 GB make -j1 -f ThermofluidStream_OM_adaptions_ThermofluidStream.Undirected.Processes.Tests.TestFlowResistance.makefile (rm -f ThermofluidStream_OM_adaptions_ThermofluidStream.Undirected.Processes.Tests.TestFlowResistance.pipe ; mkfifo ThermofluidStream_OM_adaptions_ThermofluidStream.Undirected.Processes.Tests.TestFlowResistance.pipe ; head -c 1048576 < ThermofluidStream_OM_adaptions_ThermofluidStream.Undirected.Processes.Tests.TestFlowResistance.pipe >> ../files/ThermofluidStream_OM_adaptions_ThermofluidStream.Undirected.Processes.Tests.TestFlowResistance.sim & ./ThermofluidStream_OM_adaptions_ThermofluidStream.Undirected.Processes.Tests.TestFlowResistance -abortSlowSimulation -alarm=1200 -emit_protected -lv LOG_STATS > ThermofluidStream_OM_adaptions_ThermofluidStream.Undirected.Processes.Tests.TestFlowResistance.pipe 2>&1) diffSimulationResults("ThermofluidStream_OM_adaptions_ThermofluidStream.Undirected.Processes.Tests.TestFlowResistance_res.mat","/mnt/ReferenceFiles/ThermofluidStream-OM-regression/ReferenceData/ThermofluidStream.Undirected.Processes.Tests.TestFlowResistance_ref.mat","../files/ThermofluidStream_OM_adaptions_ThermofluidStream.Undirected.Processes.Tests.TestFlowResistance.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches