Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr ThermofluidStream_ThermofluidStream.Undirected.Processes.Tests.TestFlowResistance.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/ThermofluidStream 1.1.0-main/package.mo", uses=false) Using package ThermofluidStream with version 1.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ThermofluidStream 1.1.0-main/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: "" <> buildModelFMU(ThermofluidStream.Undirected.Processes.Tests.TestFlowResistance,fileNamePrefix="ThermofluidStream_ThermofluidStream_Undirected_Processes_Tests_TestFlowResistance",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(ThermofluidStream.Undirected.Processes.Tests.TestFlowResistance,fileNamePrefix="ThermofluidStream_ThermofluidStream_Undirected_Processes_Tests_TestFlowResistance",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.00194/0.00194, allocations: 108 kB / 15.6 MB, free: 132 kB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.002976/0.002975, allocations: 194.7 kB / 16.53 MB, free: 6.391 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 2.095/2.095, allocations: 222.9 MB / 240.2 MB, free: 4.414 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ThermofluidStream 1.1.0-main/package.mo): time 1.18/1.18, allocations: 91.21 MB / 381.6 MB, free: 9.426 MB / 318.1 MB Notification: Performance of FrontEnd - loaded program: time 0.002235/0.002235, allocations: 78.34 kB / 460.4 MB, free: 23.11 MB / 350.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3043/0.3066, allocations: 67.7 MB / 0.5157 GB, free: 10.11 MB / 398.1 MB Notification: Performance of NFInst.instantiate(ThermofluidStream.Undirected.Processes.Tests.TestFlowResistance): time 1.112/1.418, allocations: 149.5 MB / 0.6617 GB, free: 2.191 MB / 478.1 MB Notification: Performance of NFInst.instExpressions: time 0.01072/1.429, allocations: 4.63 MB / 0.6663 GB, free: 14.41 MB / 494.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.00177/1.431, allocations: 32.66 kB / 0.6663 GB, free: 14.39 MB / 494.1 MB Notification: Performance of NFTyping.typeComponents: time 0.00173/1.433, allocations: 291.8 kB / 0.6666 GB, free: 14.15 MB / 494.1 MB Notification: Performance of NFTyping.typeBindings: time 0.002694/1.436, allocations: 0.6713 MB / 0.6672 GB, free: 13.6 MB / 494.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.002126/1.438, allocations: 0.4908 MB / 0.6677 GB, free: 13.22 MB / 494.1 MB Notification: Performance of NFFlatten.flatten: time 0.002642/1.44, allocations: 0.973 MB / 0.6687 GB, free: 12.66 MB / 494.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0004086/1.441, allocations: 166.1 kB / 0.6688 GB, free: 12.58 MB / 494.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.001721/1.443, allocations: 0.5096 MB / 0.6693 GB, free: 12.27 MB / 494.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.00071/1.443, allocations: 461.1 kB / 0.6698 GB, free: 12 MB / 494.1 MB Notification: Performance of NFPackage.collectConstants: time 8.377e-05/1.443, allocations: 42.91 kB / 0.6698 GB, free: 12 MB / 494.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.003258/1.447, allocations: 0.7664 MB / 0.6705 GB, free: 11.64 MB / 494.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0004414/1.447, allocations: 119.6 kB / 0.6707 GB, free: 11.55 MB / 494.1 MB Notification: Performance of NFVerifyModel.verify: time 0.001067/1.448, allocations: 319.4 kB / 0.671 GB, free: 11.34 MB / 494.1 MB Notification: Performance of NFConvertDAE.convert: time 0.002157/1.45, allocations: 0.9357 MB / 0.6719 GB, free: 10.74 MB / 494.1 MB Notification: Performance of FrontEnd - DAE generated: time 9.127e-06/1.45, allocations: 0 / 0.6719 GB, free: 10.74 MB / 494.1 MB Notification: Performance of FrontEnd: time 2.465e-06/1.451, allocations: 2.906 kB / 0.6719 GB, free: 10.74 MB / 494.1 MB Notification: Performance of Transformations before backend: time 1.53e-05/1.451, allocations: 0 / 0.6719 GB, free: 10.74 MB / 494.1 MB 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.002384/1.453, allocations: 0.9624 MB / 0.6728 GB, free: 9.945 MB / 494.1 MB Notification: Performance of prepare preOptimizeDAE: time 6.43e-05/1.453, allocations: 10.12 kB / 0.6728 GB, free: 9.945 MB / 494.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001055/1.453, allocations: 82.92 kB / 0.6729 GB, free: 9.867 MB / 494.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001379/1.453, allocations: 71.22 kB / 0.673 GB, free: 9.832 MB / 494.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001806/1.455, allocations: 0.5079 MB / 0.6735 GB, free: 9.383 MB / 494.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001054/1.455, allocations: 33.16 kB / 0.6735 GB, free: 9.367 MB / 494.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0002302/1.456, allocations: 46.16 kB / 0.6735 GB, free: 9.352 MB / 494.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001461/1.457, allocations: 0.5047 MB / 0.674 GB, free: 9.023 MB / 494.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.778e-05/1.457, allocations: 0 / 0.674 GB, free: 9.023 MB / 494.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 4.525e-05/1.457, allocations: 20.72 kB / 0.6741 GB, free: 9.008 MB / 494.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.653e-05/1.457, allocations: 9.812 kB / 0.6741 GB, free: 9.008 MB / 494.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001174/1.458, allocations: 486.3 kB / 0.6745 GB, free: 8.773 MB / 494.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.004422/1.463, allocations: 2.182 MB / 0.6767 GB, free: 6.77 MB / 494.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001389/1.464, allocations: 370.5 kB / 0.677 GB, free: 6.582 MB / 494.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0004131/1.465, allocations: 212.3 kB / 0.6772 GB, free: 6.469 MB / 494.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.003217/1.468, allocations: 1.991 MB / 0.6792 GB, free: 4.426 MB / 494.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.369e-05/1.468, allocations: 37.81 kB / 0.6792 GB, free: 4.383 MB / 494.1 MB Notification: Performance of pre-optimization done (n=47): time 2.444e-06/1.468, allocations: 0 / 0.6792 GB, free: 4.383 MB / 494.1 MB Notification: Performance of matching and sorting (n=47): time 0.003293/1.471, allocations: 0.7978 MB / 0.68 GB, free: 3.852 MB / 494.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 8.715e-05/1.471, allocations: 56.69 kB / 0.68 GB, free: 3.789 MB / 494.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0006897/1.472, allocations: 484.2 kB / 0.6805 GB, free: 3.5 MB / 494.1 MB Notification: Performance of collectPreVariables (initialization): time 5.09e-05/1.472, allocations: 32.55 kB / 0.6805 GB, free: 3.465 MB / 494.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0002812/1.472, allocations: 274.4 kB / 0.6808 GB, free: 3.219 MB / 494.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001625/1.473, allocations: 163.9 kB / 0.6809 GB, free: 3.074 MB / 494.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.000153/1.473, allocations: 81.84 kB / 0.681 GB, free: 3.02 MB / 494.1 MB Notification: Performance of setup shared object (initialization): time 0.0002498/1.473, allocations: 370.3 kB / 0.6814 GB, free: 2.664 MB / 494.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002833/1.473, allocations: 130.1 kB / 0.6815 GB, free: 2.602 MB / 494.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002998/1.474, allocations: 185.6 kB / 0.6817 GB, free: 2.484 MB / 494.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0006232/1.474, allocations: 343.3 kB / 0.682 GB, free: 2.289 MB / 494.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.905e-06/1.474, allocations: 0 / 0.682 GB, free: 2.289 MB / 494.1 MB Notification: Performance of matching and sorting (n=53) (initialization): time 0.001212/1.476, allocations: 0.5069 MB / 0.6825 GB, free: 2.008 MB / 494.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.353e-05/1.476, allocations: 4.906 kB / 0.6825 GB, free: 2.008 MB / 494.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.089e-05/1.476, allocations: 2.875 kB / 0.6825 GB, free: 2.008 MB / 494.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0003538/1.476, allocations: 65.11 kB / 0.6826 GB, free: 1.965 MB / 494.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.000349/1.476, allocations: 91.23 kB / 0.6827 GB, free: 1.941 MB / 494.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.004711/1.481, allocations: 2.925 MB / 0.6855 GB, free: 14.95 MB / 0.4981 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002429/1.481, allocations: 37.78 kB / 0.6855 GB, free: 14.92 MB / 0.4981 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.633e-05/1.481, allocations: 16.75 kB / 0.6856 GB, free: 14.91 MB / 0.4981 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 5 * 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 (49): * Single equations (assignments): 47 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * 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.0002577/1.482, allocations: 182.8 kB / 0.6857 GB, free: 14.75 MB / 0.4981 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001168/1.482, allocations: 62.59 kB / 0.6858 GB, free: 14.71 MB / 0.4981 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.00179/1.484, allocations: 0.7091 MB / 0.6865 GB, free: 14.26 MB / 0.4981 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 8.325e-06/1.484, allocations: 4.906 kB / 0.6865 GB, free: 14.26 MB / 0.4981 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.894e-06/1.484, allocations: 5.938 kB / 0.6865 GB, free: 14.25 MB / 0.4981 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.067e-05/1.484, allocations: 3.984 kB / 0.6865 GB, free: 14.25 MB / 0.4981 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.004086/1.488, allocations: 1.184 MB / 0.6877 GB, free: 13.36 MB / 0.4981 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.119e-06/1.488, allocations: 6.5 kB / 0.6877 GB, free: 13.35 MB / 0.4981 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.000294/1.488, allocations: 77.83 kB / 0.6877 GB, free: 13.33 MB / 0.4981 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.0002279/1.488, allocations: 73.58 kB / 0.6878 GB, free: 13.28 MB / 0.4981 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.199e-05/1.488, allocations: 15.53 kB / 0.6878 GB, free: 13.27 MB / 0.4981 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.003077/1.491, allocations: 2.933 MB / 0.6907 GB, free: 10.28 MB / 0.4981 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.084e-06/1.491, allocations: 0 / 0.6907 GB, free: 10.28 MB / 0.4981 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002687/1.494, allocations: 0.7658 MB / 0.6914 GB, free: 9.789 MB / 0.4981 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0003245/1.495, allocations: 133.3 kB / 0.6916 GB, free: 9.656 MB / 0.4981 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 7.835e-05/1.495, allocations: 21.78 kB / 0.6916 GB, free: 9.641 MB / 0.4981 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0005096/1.495, allocations: 10.11 kB / 0.6916 GB, free: 9.633 MB / 0.4981 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001289/1.495, allocations: 37.33 kB / 0.6916 GB, free: 9.613 MB / 0.4981 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.609e-05/1.495, allocations: 20.89 kB / 0.6917 GB, free: 9.605 MB / 0.4981 GB Notification: Performance of sorting global known variables: time 0.0005112/1.496, allocations: 363.7 kB / 0.692 GB, free: 9.395 MB / 0.4981 GB Notification: Performance of sort global known variables: time 3.31e-07/1.496, allocations: 0 / 0.692 GB, free: 9.395 MB / 0.4981 GB Notification: Performance of remove unused functions: time 0.0009554/1.497, allocations: 200.3 kB / 0.6922 GB, free: 9.344 MB / 0.4981 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 5 * Number of states: 2 (flowResistance.rear.m_flow,flowResistance1.rear.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 (43): * Single equations (assignments): 41 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * 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 Backend phase and start with SimCode phase: time 0.002452/1.499, allocations: 1.478 MB / 0.6936 GB, free: 7.875 MB / 0.4981 GB Notification: Performance of simCode: created initialization part: time 0.002101/1.501, allocations: 0.6045 MB / 0.6942 GB, free: 7.242 MB / 0.4981 GB Notification: Performance of simCode: created event and clocks part: time 2.111e-05/1.502, allocations: 4 kB / 0.6942 GB, free: 7.238 MB / 0.4981 GB Notification: Performance of simCode: created simulation system equations: time 0.001226/1.503, allocations: 433.1 kB / 0.6946 GB, free: 6.789 MB / 0.4981 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001249/1.504, allocations: 181.7 kB / 0.6948 GB, free: 6.621 MB / 0.4981 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.009262/1.513, allocations: 4.917 MB / 0.6996 GB, free: 1.57 MB / 0.4981 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0006381/1.514, allocations: 0.8711 MB / 0.7005 GB, free: 0.6719 MB / 0.4981 GB Notification: Performance of simCode: alias equations: time 0.0004574/1.515, allocations: 126.8 kB / 0.7006 GB, free: 0.5586 MB / 0.4981 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0004194/1.515, allocations: 239.3 kB / 0.7008 GB, free: 336 kB / 0.4981 GB Notification: Performance of SimCode: time 2.214e-06/1.515, allocations: 0 / 0.7008 GB, free: 336 kB / 0.4981 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 2.085/3.6, allocations: 16.39 MB / 0.7168 GB, free: 196 kB / 0.5137 GB Notification: Performance of buildModelFMU: Generate platform static: time 16/19.6, allocations: 12.59 kB / 0.7168 GB, free: 184 kB / 0.5137 GB (rm -f ThermofluidStream_ThermofluidStream.Undirected.Processes.Tests.TestFlowResistance.pipe ; mkfifo ThermofluidStream_ThermofluidStream.Undirected.Processes.Tests.TestFlowResistance.pipe ; head -c 1048576 < ThermofluidStream_ThermofluidStream.Undirected.Processes.Tests.TestFlowResistance.pipe >> ../files/ThermofluidStream_ThermofluidStream.Undirected.Processes.Tests.TestFlowResistance.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=ThermofluidStream_ThermofluidStream.Undirected.Processes.Tests.TestFlowResistance_res.mat --tempDir=temp_ThermofluidStream_ThermofluidStream_Undirected_Processes_Tests_TestFlowResistance_fmu --startTime=0 --stopTime=10 --timeout=1200 --tolerance=1e-06 ThermofluidStream_ThermofluidStream_Undirected_Processes_Tests_TestFlowResistance.fmu > ThermofluidStream_ThermofluidStream.Undirected.Processes.Tests.TestFlowResistance.pipe 2>&1) diffSimulationResults("ThermofluidStream_ThermofluidStream.Undirected.Processes.Tests.TestFlowResistance_res.mat","/mnt/ReferenceFiles/ThermofluidStream-main-regression/ReferenceData/ThermofluidStream.Undirected.Processes.Tests.TestFlowResistance_ref.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/ThermofluidStream_ThermofluidStream.Undirected.Processes.Tests.TestFlowResistance.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches