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.001257/0.001257, allocations: 80.44 kB / 19.17 MB, free: 0.7422 MB / 13.93 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.001139/0.001139, allocations: 169.9 kB / 22.46 MB, free: 2.105 MB / 18.57 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 1.265/1.265, allocations: 177.1 MB / 202.8 MB, free: 5.742 MB / 186.7 MB " [Timeout remaining time 179] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ThermofluidStream 1.3.0/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ThermofluidStream 1.3.0/package.mo): time 0.9041/0.9041, allocations: 80.18 MB / 339.4 MB, free: 7.555 MB / 314.7 MB " [Timeout remaining time 179] Using package ThermofluidStream with version 1.3.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ThermofluidStream 1.3.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: Performance of FrontEnd - loaded program: time 2.825e-06/2.825e-06, allocations: 0 / 0.4924 GB, free: 6.648 MB / 410.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 3.233e-05/3.516e-05, allocations: 2.281 kB / 0.4924 GB, free: 6.645 MB / 410.7 MB Notification: Performance of NFInst.instantiate(ThermofluidStream.Undirected.Processes.Tests.TestFlowResistance): time 0.1702/0.1702, allocations: 129.6 MB / 0.6189 GB, free: 6.426 MB / 0.5261 GB Notification: Performance of NFInst.instExpressions: time 0.005579/0.1758, allocations: 4.297 MB / 0.6231 GB, free: 2.117 MB / 0.5261 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.001226/0.177, allocations: 43.56 kB / 0.6231 GB, free: 2.074 MB / 0.5261 GB Notification: Performance of NFTyping.typeComponents: time 0.0009934/0.178, allocations: 278 kB / 0.6234 GB, free: 1.801 MB / 0.5261 GB Notification: Performance of NFTyping.typeBindings: time 0.00206/0.1801, allocations: 0.7373 MB / 0.6241 GB, free: 1.059 MB / 0.5261 GB Notification: Performance of NFTyping.typeClassSections: time 0.001253/0.1813, allocations: 0.5213 MB / 0.6246 GB, free: 0.5352 MB / 0.5261 GB Notification: Performance of NFFlatten.flatten: time 0.001447/0.1828, allocations: 1.106 MB / 0.6257 GB, free: 15.42 MB / 0.5417 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0003632/0.1831, allocations: 98.61 kB / 0.6258 GB, free: 15.32 MB / 0.5417 GB Notification: Performance of NFEvalConstants.evaluate: time 0.00132/0.1845, allocations: 0.7125 MB / 0.6265 GB, free: 14.61 MB / 0.5417 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0005388/0.185, allocations: 430.9 kB / 0.6269 GB, free: 14.19 MB / 0.5417 GB Notification: Performance of NFPackage.collectConstants: time 0.0001225/0.1851, allocations: 44 kB / 0.627 GB, free: 14.14 MB / 0.5417 GB Notification: Performance of NFFlatten.collectFunctions: time 0.001377/0.1865, allocations: 0.6625 MB / 0.6276 GB, free: 13.48 MB / 0.5417 GB Notification: Performance of NFScalarize.scalarize: time 0.0001674/0.1867, allocations: 123.4 kB / 0.6277 GB, free: 13.36 MB / 0.5417 GB Notification: Performance of NFVerifyModel.verify: time 0.0001992/0.1869, allocations: 215.5 kB / 0.6279 GB, free: 13.15 MB / 0.5417 GB Notification: Performance of NFConvertDAE.convert: time 0.001675/0.1885, allocations: 0.9851 MB / 0.6289 GB, free: 12.16 MB / 0.5417 GB Notification: Performance of FrontEnd - DAE generated: time 5.651e-06/0.1886, allocations: 0 / 0.6289 GB, free: 12.16 MB / 0.5417 GB Notification: Performance of FrontEnd: time 1.763e-06/0.1886, allocations: 7.938 kB / 0.6289 GB, free: 12.15 MB / 0.5417 GB Notification: Performance of Transformations before backend: time 1.191e-05/0.1886, allocations: 0 / 0.6289 GB, free: 12.15 MB / 0.5417 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.001648/0.1902, allocations: 0.9052 MB / 0.6298 GB, free: 11.21 MB / 0.5417 GB Notification: Performance of prepare preOptimizeDAE: time 7.247e-05/0.1903, allocations: 14.06 kB / 0.6298 GB, free: 11.2 MB / 0.5417 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 9.744e-05/0.1904, allocations: 82.7 kB / 0.6299 GB, free: 11.11 MB / 0.5417 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0003419/0.1907, allocations: 104.4 kB / 0.63 GB, free: 11.01 MB / 0.5417 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0009216/0.1916, allocations: 485.4 kB / 0.6304 GB, free: 10.5 MB / 0.5417 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.817e-05/0.1917, allocations: 29.38 kB / 0.6305 GB, free: 10.48 MB / 0.5417 GB Notification: Performance of preOpt expandDerOperator (simulation): time 7.734e-05/0.1918, allocations: 60.3 kB / 0.6305 GB, free: 10.42 MB / 0.5417 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0005734/0.1923, allocations: 0.509 MB / 0.631 GB, free: 9.887 MB / 0.5417 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.241e-05/0.1923, allocations: 192 / 0.631 GB, free: 9.887 MB / 0.5417 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.856e-05/0.1924, allocations: 23.94 kB / 0.631 GB, free: 9.863 MB / 0.5417 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.165e-05/0.1924, allocations: 12 kB / 0.6311 GB, free: 9.852 MB / 0.5417 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0006324/0.193, allocations: 491.7 kB / 0.6315 GB, free: 9.371 MB / 0.5417 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002114/0.1951, allocations: 1.541 MB / 0.633 GB, free: 7.777 MB / 0.5417 GB Notification: Performance of preOpt comSubExp (simulation): time 0.000659/0.1958, allocations: 336.7 kB / 0.6333 GB, free: 7.441 MB / 0.5417 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001984/0.196, allocations: 175.5 kB / 0.6335 GB, free: 7.266 MB / 0.5417 GB Notification: Performance of preOpt evalFunc (simulation): time 0.001492/0.1975, allocations: 0.8457 MB / 0.6343 GB, free: 6.402 MB / 0.5417 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.221e-05/0.1975, allocations: 39.06 kB / 0.6344 GB, free: 6.355 MB / 0.5417 GB Notification: Performance of pre-optimization done (n=47): time 2.284e-06/0.1975, allocations: 0 / 0.6344 GB, free: 6.355 MB / 0.5417 GB Notification: Performance of matching and sorting (n=47): time 0.001179/0.1987, allocations: 0.6427 MB / 0.635 GB, free: 5.699 MB / 0.5417 GB Notification: Performance of inlineWhenForInitialization (initialization): time 8.603e-05/0.1988, allocations: 63.89 kB / 0.6351 GB, free: 5.625 MB / 0.5417 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0005679/0.1993, allocations: 483.1 kB / 0.6355 GB, free: 5.141 MB / 0.5417 GB Notification: Performance of collectPreVariables (initialization): time 3.812e-05/0.1994, allocations: 37.7 kB / 0.6356 GB, free: 5.098 MB / 0.5417 GB Notification: Performance of collectInitialEqns (initialization): time 0.0001976/0.1996, allocations: 272.9 kB / 0.6358 GB, free: 4.828 MB / 0.5417 GB Notification: Performance of collectInitialBindings (initialization): time 0.0002552/0.1998, allocations: 174.5 kB / 0.636 GB, free: 4.656 MB / 0.5417 GB Notification: Performance of simplifyInitialFunctions (initialization): time 9.359e-05/0.1999, allocations: 78.19 kB / 0.6361 GB, free: 4.574 MB / 0.5417 GB Notification: Performance of setup shared object (initialization): time 0.000139/0.2001, allocations: 382.6 kB / 0.6364 GB, free: 4.191 MB / 0.5417 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001891/0.2003, allocations: 124.9 kB / 0.6365 GB, free: 4.066 MB / 0.5417 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002309/0.2005, allocations: 181.7 kB / 0.6367 GB, free: 3.875 MB / 0.5417 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0004333/0.2009, allocations: 342.2 kB / 0.637 GB, free: 3.527 MB / 0.5417 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.795e-06/0.2009, allocations: 7.938 kB / 0.6371 GB, free: 3.52 MB / 0.5417 GB Notification: Performance of matching and sorting (n=53) (initialization): time 0.0006833/0.2016, allocations: 0.4987 MB / 0.6375 GB, free: 3.008 MB / 0.5417 GB Notification: Performance of prepare postOptimizeDAE: time 2.004e-05/0.2016, allocations: 4 kB / 0.6375 GB, free: 3.004 MB / 0.5417 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.945e-06/0.2016, allocations: 0 / 0.6375 GB, free: 3.004 MB / 0.5417 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.0002291/0.2019, allocations: 69.8 kB / 0.6376 GB, free: 2.93 MB / 0.5417 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002025/0.2021, allocations: 83.89 kB / 0.6377 GB, free: 2.848 MB / 0.5417 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.4169/0.6189, allocations: 2.702 MB / 0.6403 GB, free: 148.4 MB / 0.5417 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.000599/0.6195, allocations: 42.03 kB / 0.6404 GB, free: 148.4 MB / 0.5417 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 7.877e-05/0.6196, allocations: 26.12 kB / 0.6404 GB, free: 148.4 MB / 0.5417 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.0005508/0.6202, allocations: 173.7 kB / 0.6406 GB, free: 148.2 MB / 0.5417 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002498/0.6204, allocations: 63.59 kB / 0.6406 GB, free: 148.2 MB / 0.5417 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001505/0.6219, allocations: 0.6838 MB / 0.6413 GB, free: 148.1 MB / 0.5417 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 7.544e-06/0.6219, allocations: 4.75 kB / 0.6413 GB, free: 148.1 MB / 0.5417 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.33e-06/0.6219, allocations: 1.062 kB / 0.6413 GB, free: 148.1 MB / 0.5417 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 8.086e-06/0.6219, allocations: 6.719 kB / 0.6413 GB, free: 148.1 MB / 0.5417 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001966/0.6239, allocations: 1.041 MB / 0.6423 GB, free: 147.7 MB / 0.5417 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.421e-05/0.6239, allocations: 0.7812 kB / 0.6423 GB, free: 147.7 MB / 0.5417 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002724/0.6242, allocations: 79.64 kB / 0.6424 GB, free: 147.7 MB / 0.5417 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.0002843/0.6245, allocations: 70.19 kB / 0.6425 GB, free: 147.7 MB / 0.5417 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.577e-05/0.6245, allocations: 16.17 kB / 0.6425 GB, free: 147.7 MB / 0.5417 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001722/0.6262, allocations: 2.699 MB / 0.6451 GB, free: 145.1 MB / 0.5417 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 6.503e-06/0.6262, allocations: 0.8125 kB / 0.6451 GB, free: 145.1 MB / 0.5417 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001536/0.6278, allocations: 0.7282 MB / 0.6458 GB, free: 144.6 MB / 0.5417 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0001368/0.6279, allocations: 67.89 kB / 0.6459 GB, free: 144.6 MB / 0.5417 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 7.825e-05/0.628, allocations: 12.72 kB / 0.6459 GB, free: 144.6 MB / 0.5417 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001802/0.6282, allocations: 14.19 kB / 0.6459 GB, free: 144.6 MB / 0.5417 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001236/0.6283, allocations: 39.78 kB / 0.646 GB, free: 144.6 MB / 0.5417 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.661e-05/0.6283, allocations: 16.16 kB / 0.646 GB, free: 144.6 MB / 0.5417 GB Notification: Performance of sorting global known variables: time 0.0007028/0.629, allocations: 367 kB / 0.6463 GB, free: 144.4 MB / 0.5417 GB Notification: Performance of sort global known variables: time 2e-07/0.629, allocations: 0 / 0.6463 GB, free: 144.4 MB / 0.5417 GB Notification: Performance of remove unused functions: time 0.0006637/0.6297, allocations: 194.3 kB / 0.6465 GB, free: 144.4 MB / 0.5417 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.002015/0.6317, allocations: 1.438 MB / 0.6479 GB, free: 143.4 MB / 0.5417 GB Notification: Performance of simCode: created initialization part: time 0.001426/0.6331, allocations: 0.5579 MB / 0.6485 GB, free: 143.1 MB / 0.5417 GB Notification: Performance of simCode: created event and clocks part: time 9.358e-06/0.6331, allocations: 0.9375 kB / 0.6485 GB, free: 143.1 MB / 0.5417 GB Notification: Performance of simCode: created simulation system equations: time 0.0005407/0.6337, allocations: 419.3 kB / 0.6489 GB, free: 142.8 MB / 0.5417 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001619/0.6353, allocations: 284.5 kB / 0.6491 GB, free: 142.7 MB / 0.5417 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01142/0.6467, allocations: 4.765 MB / 0.6538 GB, free: 140.1 MB / 0.5417 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002724/0.647, allocations: 269.4 kB / 0.654 GB, free: 140 MB / 0.5417 GB Notification: Performance of simCode: alias equations: time 0.0008217/0.6478, allocations: 119.2 kB / 0.6541 GB, free: 140 MB / 0.5417 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0003315/0.6481, allocations: 230.2 kB / 0.6544 GB, free: 139.8 MB / 0.5417 GB Notification: Performance of SimCode: time 1.263e-06/0.6481, allocations: 0.9375 kB / 0.6544 GB, free: 139.8 MB / 0.5417 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.05371/0.7019, allocations: 19.86 MB / 0.6738 GB, free: 124.9 MB / 0.5417 GB Notification: Performance of buildModelFMU: Generate platform static: time 9.39/10.09, allocations: 3.984 kB / 0.6738 GB, free: 124.8 MB / 0.5417 GB " [Timeout remaining time 650] (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/jenkins/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: 13.694473925977945]