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.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.1.0+maint.om/package.mo): time 0.002259/0.002259, allocations: 99.64 kB / 18.95 MB, free: 2.668 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo): time 0.00277/0.00277, allocations: 211.7 kB / 22.24 MB, free: 5.262 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo): time 2.02/2.02, allocations: 230.6 MB / 256 MB, free: 7.738 MB / 206.1 MB " [Timeout remaining time 178] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ThermofluidStream 1.2.0/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ThermofluidStream 1.2.0/package.mo): time 1.268/1.268, allocations: 94.62 MB / 407 MB, free: 8.824 MB / 318.1 MB " [Timeout remaining time 178] Using package ThermofluidStream with version 1.2.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ThermofluidStream 1.2.0/package.mo) Using package Modelica with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo) Using package Complex with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo) Using package ModelicaServices with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.1.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"}) [Timeout 660] "Notification: ThermofluidStream requested package Modelica of version 4.0.0. Modelica 4.1.0 is used instead which states that it is fully compatible without conversion script needed. Notification: ThermofluidStream requested package Complex of version 4.0.0. Complex 4.1.0 is used instead which states that it is fully compatible without conversion script needed. Notification: Performance of FrontEnd - loaded program: time 0.002809/0.002809, allocations: 87.3 kB / 0.5549 GB, free: 38.3 MB / 446.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2903/0.2931, allocations: 73.05 MB / 0.6263 GB, free: 172 kB / 462.1 MB Notification: Performance of NFInst.instantiate(ThermofluidStream.Undirected.Processes.Tests.TestFlowResistance): time 1.135/1.428, allocations: 129.2 MB / 0.7525 GB, free: 3.289 MB / 0.5762 GB Notification: Performance of NFInst.instExpressions: time 0.01102/1.439, allocations: 4.229 MB / 0.7566 GB, free: 3.281 MB / 0.5762 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.001528/1.44, allocations: 37.91 kB / 0.7566 GB, free: 3.281 MB / 0.5762 GB Notification: Performance of NFTyping.typeComponents: time 0.001536/1.442, allocations: 278.9 kB / 0.7569 GB, free: 3.273 MB / 0.5762 GB Notification: Performance of NFTyping.typeBindings: time 0.003271/1.445, allocations: 0.6622 MB / 0.7575 GB, free: 3.254 MB / 0.5762 GB Notification: Performance of NFTyping.typeClassSections: time 0.00283/1.448, allocations: 0.5105 MB / 0.758 GB, free: 3.242 MB / 0.5762 GB Notification: Performance of NFFlatten.flatten: time 0.002678/1.451, allocations: 0.9943 MB / 0.759 GB, free: 3.238 MB / 0.5762 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0004657/1.451, allocations: 98.36 kB / 0.7591 GB, free: 3.227 MB / 0.5762 GB Notification: Performance of NFEvalConstants.evaluate: time 0.002269/1.453, allocations: 0.5432 MB / 0.7596 GB, free: 3.223 MB / 0.5762 GB Notification: Performance of NFSimplifyModel.simplify: time 0.001313/1.455, allocations: 444.5 kB / 0.76 GB, free: 3.223 MB / 0.5762 GB Notification: Performance of NFPackage.collectConstants: time 0.000164/1.455, allocations: 42.94 kB / 0.7601 GB, free: 3.223 MB / 0.5762 GB Notification: Performance of NFFlatten.collectFunctions: time 0.002725/1.457, allocations: 0.6556 MB / 0.7607 GB, free: 3.211 MB / 0.5762 GB Notification: Performance of NFScalarize.scalarize: time 0.0002776/1.458, allocations: 115.9 kB / 0.7608 GB, free: 3.211 MB / 0.5762 GB Notification: Performance of NFVerifyModel.verify: time 0.0004351/1.458, allocations: 261.9 kB / 0.7611 GB, free: 3.207 MB / 0.5762 GB Notification: Performance of NFConvertDAE.convert: time 0.002719/1.461, allocations: 0.9547 MB / 0.762 GB, free: 3.133 MB / 0.5762 GB Notification: Performance of FrontEnd - DAE generated: time 6.923e-06/1.461, allocations: 3.938 kB / 0.762 GB, free: 3.129 MB / 0.5762 GB Notification: Performance of FrontEnd: time 3.136e-06/1.461, allocations: 4.656 kB / 0.762 GB, free: 3.129 MB / 0.5762 GB Notification: Performance of Transformations before backend: time 2.386e-05/1.461, allocations: 0 / 0.762 GB, free: 3.129 MB / 0.5762 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.002661/1.464, allocations: 0.9066 MB / 0.7629 GB, free: 18.6 MB / 0.5919 GB Notification: Performance of prepare preOptimizeDAE: time 8.068e-05/1.464, allocations: 11.7 kB / 0.7629 GB, free: 18.6 MB / 0.5919 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001302/1.464, allocations: 82.58 kB / 0.763 GB, free: 18.56 MB / 0.5919 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0005075/1.464, allocations: 104.3 kB / 0.7631 GB, free: 18.52 MB / 0.5919 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001232/1.466, allocations: 482.8 kB / 0.7636 GB, free: 18.31 MB / 0.5919 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.318e-05/1.466, allocations: 31.78 kB / 0.7636 GB, free: 18.31 MB / 0.5919 GB Notification: Performance of preOpt expandDerOperator (simulation): time 9.45e-05/1.466, allocations: 43.69 kB / 0.7636 GB, free: 18.31 MB / 0.5919 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0009912/1.467, allocations: 0.5167 MB / 0.7641 GB, free: 18.23 MB / 0.5919 GB Notification: Performance of preOpt findStateOrder (simulation): time 2.191e-05/1.467, allocations: 0 / 0.7641 GB, free: 18.23 MB / 0.5919 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 4.306e-05/1.467, allocations: 17.22 kB / 0.7642 GB, free: 18.23 MB / 0.5919 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.232e-05/1.467, allocations: 13.72 kB / 0.7642 GB, free: 18.23 MB / 0.5919 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0008908/1.468, allocations: 491.6 kB / 0.7646 GB, free: 18.23 MB / 0.5919 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.003236/1.471, allocations: 1.529 MB / 0.7661 GB, free: 17.58 MB / 0.5919 GB Notification: Performance of preOpt comSubExp (simulation): time 0.001249/1.472, allocations: 336.3 kB / 0.7665 GB, free: 17.55 MB / 0.5919 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0005028/1.473, allocations: 181 kB / 0.7666 GB, free: 17.55 MB / 0.5919 GB Notification: Performance of preOpt evalFunc (simulation): time 0.002903/1.476, allocations: 0.85 MB / 0.7675 GB, free: 17.27 MB / 0.5919 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 5.474e-05/1.476, allocations: 37.75 kB / 0.7675 GB, free: 17.23 MB / 0.5919 GB Notification: Performance of pre-optimization done (n=47): time 2.265e-06/1.476, allocations: 0.5938 kB / 0.7675 GB, free: 17.23 MB / 0.5919 GB Notification: Performance of matching and sorting (n=47): time 0.002464/1.478, allocations: 0.6386 MB / 0.7681 GB, free: 17.14 MB / 0.5919 GB Notification: Performance of inlineWhenForInitialization (initialization): time 8.691e-05/1.478, allocations: 56.56 kB / 0.7682 GB, free: 17.07 MB / 0.5919 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0009261/1.479, allocations: 486.3 kB / 0.7686 GB, free: 16.96 MB / 0.5919 GB Notification: Performance of collectPreVariables (initialization): time 5.434e-05/1.479, allocations: 34.02 kB / 0.7687 GB, free: 16.93 MB / 0.5919 GB Notification: Performance of collectInitialEqns (initialization): time 0.0003372/1.479, allocations: 274.5 kB / 0.7689 GB, free: 16.81 MB / 0.5919 GB Notification: Performance of collectInitialBindings (initialization): time 0.0001435/1.48, allocations: 167.7 kB / 0.7691 GB, free: 16.7 MB / 0.5919 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001856/1.48, allocations: 81.86 kB / 0.7692 GB, free: 16.68 MB / 0.5919 GB Notification: Performance of setup shared object (initialization): time 0.0003295/1.48, allocations: 368.6 kB / 0.7695 GB, free: 16.37 MB / 0.5919 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003448/1.48, allocations: 128.7 kB / 0.7696 GB, free: 16.37 MB / 0.5919 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0004002/1.481, allocations: 181.2 kB / 0.7698 GB, free: 16.33 MB / 0.5919 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0008263/1.482, allocations: 344.9 kB / 0.7701 GB, free: 16.28 MB / 0.5919 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.551e-06/1.482, allocations: 1.969 kB / 0.7701 GB, free: 16.28 MB / 0.5919 GB Notification: Performance of matching and sorting (n=53) (initialization): time 0.001346/1.483, allocations: 0.4971 MB / 0.7706 GB, free: 16.18 MB / 0.5919 GB Notification: Performance of prepare postOptimizeDAE: time 4.818e-05/1.483, allocations: 8.703 kB / 0.7706 GB, free: 16.18 MB / 0.5919 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.411e-05/1.483, allocations: 1.062 kB / 0.7706 GB, free: 16.18 MB / 0.5919 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.000462/1.484, allocations: 68.17 kB / 0.7707 GB, free: 16.16 MB / 0.5919 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0005244/1.484, allocations: 90.12 kB / 0.7708 GB, free: 16.16 MB / 0.5919 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.003418/1.488, allocations: 2.707 MB / 0.7734 GB, free: 13.72 MB / 0.5919 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003675/1.488, allocations: 43.42 kB / 0.7735 GB, free: 13.7 MB / 0.5919 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.187e-05/1.488, allocations: 21.16 kB / 0.7735 GB, free: 13.7 MB / 0.5919 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.0003856/1.488, allocations: 170.3 kB / 0.7737 GB, free: 13.58 MB / 0.5919 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001548/1.489, allocations: 69.16 kB / 0.7737 GB, free: 13.54 MB / 0.5919 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001605/1.49, allocations: 0.6775 MB / 0.7744 GB, free: 13.41 MB / 0.5919 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.144e-05/1.49, allocations: 5.719 kB / 0.7744 GB, free: 13.41 MB / 0.5919 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.39e-06/1.49, allocations: 1.25 kB / 0.7744 GB, free: 13.41 MB / 0.5919 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.953e-06/1.49, allocations: 0.9062 kB / 0.7744 GB, free: 13.41 MB / 0.5919 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002257/1.492, allocations: 1.051 MB / 0.7754 GB, free: 13.06 MB / 0.5919 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 6.472e-06/1.492, allocations: 1.375 kB / 0.7754 GB, free: 13.06 MB / 0.5919 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0003001/1.493, allocations: 71.03 kB / 0.7755 GB, free: 13.06 MB / 0.5919 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.0002544/1.493, allocations: 67.78 kB / 0.7756 GB, free: 13.05 MB / 0.5919 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.317e-05/1.493, allocations: 12.25 kB / 0.7756 GB, free: 13.05 MB / 0.5919 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.003344/1.496, allocations: 2.713 MB / 0.7782 GB, free: 10.61 MB / 0.5919 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 6.973e-06/1.496, allocations: 7.438 kB / 0.7782 GB, free: 10.6 MB / 0.5919 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001709/1.498, allocations: 0.7358 MB / 0.7789 GB, free: 10.38 MB / 0.5919 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0001693/1.498, allocations: 64.03 kB / 0.779 GB, free: 10.34 MB / 0.5919 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 7.825e-05/1.498, allocations: 16.09 kB / 0.779 GB, free: 10.33 MB / 0.5919 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002322/1.499, allocations: 6.594 kB / 0.779 GB, free: 10.33 MB / 0.5919 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001249/1.499, allocations: 38.84 kB / 0.7791 GB, free: 10.33 MB / 0.5919 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.274e-05/1.499, allocations: 18.06 kB / 0.7791 GB, free: 10.33 MB / 0.5919 GB Notification: Performance of sorting global known variables: time 0.0005972/1.499, allocations: 367.5 kB / 0.7794 GB, free: 10.24 MB / 0.5919 GB Notification: Performance of sort global known variables: time 9e-08/1.499, allocations: 0 / 0.7794 GB, free: 10.24 MB / 0.5919 GB Notification: Performance of remove unused functions: time 0.001066/1.5, allocations: 180.9 kB / 0.7796 GB, free: 10.23 MB / 0.5919 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 (39): * Single equations (assignments): 37 * 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.002647/1.503, allocations: 1.437 MB / 0.781 GB, free: 9.457 MB / 0.5919 GB Notification: Performance of simCode: created initialization part: time 0.001399/1.504, allocations: 0.558 MB / 0.7815 GB, free: 9.227 MB / 0.5919 GB Notification: Performance of simCode: created event and clocks part: time 4.729e-06/1.504, allocations: 0.6875 kB / 0.7815 GB, free: 9.227 MB / 0.5919 GB Notification: Performance of simCode: created simulation system equations: time 0.0008048/1.505, allocations: 430.2 kB / 0.782 GB, free: 8.992 MB / 0.5919 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.00114/1.506, allocations: 177.7 kB / 0.7821 GB, free: 8.973 MB / 0.5919 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.009526/1.516, allocations: 4.726 MB / 0.7867 GB, free: 7.18 MB / 0.5919 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004341/1.516, allocations: 274.3 kB / 0.787 GB, free: 7.082 MB / 0.5919 GB Notification: Performance of simCode: alias equations: time 0.0005944/1.517, allocations: 115 kB / 0.7871 GB, free: 7.062 MB / 0.5919 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0003871/1.517, allocations: 227.4 kB / 0.7873 GB, free: 7.055 MB / 0.5919 GB Notification: Performance of SimCode: time 3.667e-06/1.517, allocations: 0 / 0.7873 GB, free: 7.055 MB / 0.5919 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.07811/1.595, allocations: 17.55 MB / 0.8045 GB, free: 4.012 MB / 0.5919 GB Notification: Performance of buildModelFMU: Generate platform static: time 16.57/18.17, allocations: 24.97 kB / 0.8045 GB, free: 3.996 MB / 0.5919 GB " [Timeout remaining time 642] (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 --stepSize=0.01 --timeout=1200 --tolerance=1e-06 ThermofluidStream_ThermofluidStream_Undirected_Processes_Tests_TestFlowResistance.fmu > ThermofluidStream_ThermofluidStream.Undirected.Processes.Tests.TestFlowResistance.pipe 2>&1) [Timeout 1260.0] 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) [Timeout 660] "" [Timeout remaining time 660] Reference file matches [Calling sys.exit(0), Time elapsed: 23.680564717855304]