Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr ThermofluidStream_dev_ThermofluidStream.Topology.Tests.TestJunction.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.Topology.Tests.TestJunction,fileNamePrefix="ThermofluidStream_dev_ThermofluidStream_Topology_Tests_TestJunction",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(ThermofluidStream.Topology.Tests.TestJunction,fileNamePrefix="ThermofluidStream_dev_ThermofluidStream_Topology_Tests_TestJunction",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.007382/0.007382, allocations: 100.2 kB / 15.73 MB, free: 6.48 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001626/0.001626, allocations: 193.7 kB / 16.68 MB, free: 6.363 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.405/1.405, allocations: 222.9 MB / 240.4 MB, free: 4.312 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ThermofluidStream 1.1.0-main/package.mo): time 0.6874/0.6874, allocations: 93.7 MB / 384.2 MB, free: 6.891 MB / 318.1 MB Notification: Performance of FrontEnd - loaded program: time 0.002385/0.002385, allocations: 83.86 kB / 0.5199 GB, free: 6.316 MB / 398.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1476/0.1501, allocations: 68.26 MB / 0.5866 GB, free: 1.98 MB / 462.1 MB Notification: Performance of NFInst.instantiate(ThermofluidStream.Topology.Tests.TestJunction): time 0.4934/0.6435, allocations: 144.5 MB / 0.7277 GB, free: 2.332 MB / 0.5606 GB Notification: Performance of NFInst.instExpressions: time 0.006239/0.6498, allocations: 4.586 MB / 0.7322 GB, free: 13.74 MB / 0.5762 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.0004341/0.6502, allocations: 27.81 kB / 0.7322 GB, free: 13.71 MB / 0.5762 GB Notification: Performance of NFTyping.typeComponents: time 0.0007045/0.6509, allocations: 206.6 kB / 0.7324 GB, free: 13.51 MB / 0.5762 GB Notification: Performance of NFTyping.typeBindings: time 0.0007773/0.6518, allocations: 314.2 kB / 0.7327 GB, free: 13.2 MB / 0.5762 GB Notification: Performance of NFTyping.typeClassSections: time 0.001324/0.6531, allocations: 426.4 kB / 0.7331 GB, free: 12.78 MB / 0.5762 GB Notification: Performance of NFFlatten.flatten: time 0.0009497/0.6541, allocations: 0.7479 MB / 0.7338 GB, free: 12.03 MB / 0.5762 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0002476/0.6543, allocations: 119.5 kB / 0.734 GB, free: 11.91 MB / 0.5762 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0007384/0.6551, allocations: 382.4 kB / 0.7343 GB, free: 11.54 MB / 0.5762 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0004844/0.6556, allocations: 334.8 kB / 0.7346 GB, free: 11.21 MB / 0.5762 GB Notification: Performance of NFPackage.collectConstants: time 5.676e-05/0.6556, allocations: 32 kB / 0.7347 GB, free: 11.18 MB / 0.5762 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0009658/0.6566, allocations: 455.1 kB / 0.7351 GB, free: 10.73 MB / 0.5762 GB Notification: Performance of NFScalarize.scalarize: time 0.0001174/0.6567, allocations: 107.5 kB / 0.7352 GB, free: 10.62 MB / 0.5762 GB Notification: Performance of NFVerifyModel.verify: time 0.0002165/0.657, allocations: 218.8 kB / 0.7354 GB, free: 10.41 MB / 0.5762 GB Notification: Performance of NFConvertDAE.convert: time 0.0009276/0.6579, allocations: 0.6418 MB / 0.7361 GB, free: 9.77 MB / 0.5762 GB Notification: Performance of FrontEnd - DAE generated: time 4.969e-06/0.6579, allocations: 4 kB / 0.7361 GB, free: 9.766 MB / 0.5762 GB Notification: Performance of FrontEnd: time 1.813e-06/0.6579, allocations: 0 / 0.7361 GB, free: 9.766 MB / 0.5762 GB Notification: Performance of Transformations before backend: time 9.478e-06/0.658, allocations: 0 / 0.7361 GB, free: 9.766 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: 65 * Number of variables: 65 Notification: Performance of Generate backend data structure: time 0.001581/0.6595, allocations: 0.8292 MB / 0.7369 GB, free: 8.887 MB / 0.5762 GB Notification: Performance of prepare preOptimizeDAE: time 3.954e-05/0.6596, allocations: 12.03 kB / 0.7369 GB, free: 8.875 MB / 0.5762 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 8.004e-05/0.6597, allocations: 62.72 kB / 0.7369 GB, free: 8.805 MB / 0.5762 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 9.427e-05/0.6598, allocations: 52.61 kB / 0.737 GB, free: 8.754 MB / 0.5762 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0007446/0.6605, allocations: 490.2 kB / 0.7375 GB, free: 8.234 MB / 0.5762 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.105e-05/0.6606, allocations: 16.94 kB / 0.7375 GB, free: 8.219 MB / 0.5762 GB Notification: Performance of preOpt expandDerOperator (simulation): time 6.2e-05/0.6606, allocations: 32.27 kB / 0.7375 GB, free: 8.188 MB / 0.5762 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0006939/0.6613, allocations: 449.1 kB / 0.7379 GB, free: 7.73 MB / 0.5762 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.093e-05/0.6614, allocations: 4 kB / 0.7379 GB, free: 7.727 MB / 0.5762 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.392e-05/0.6614, allocations: 9 kB / 0.7379 GB, free: 7.719 MB / 0.5762 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.967e-05/0.6614, allocations: 24.55 kB / 0.738 GB, free: 7.691 MB / 0.5762 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.00075/0.6622, allocations: 477.8 kB / 0.7384 GB, free: 7.227 MB / 0.5762 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002159/0.6644, allocations: 1.439 MB / 0.7398 GB, free: 5.699 MB / 0.5762 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0004654/0.6649, allocations: 250.3 kB / 0.7401 GB, free: 5.445 MB / 0.5762 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0003334/0.6652, allocations: 208.8 kB / 0.7403 GB, free: 5.238 MB / 0.5762 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0003286/0.6655, allocations: 336.4 kB / 0.7406 GB, free: 4.836 MB / 0.5762 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.472e-05/0.6656, allocations: 39.44 kB / 0.7406 GB, free: 4.789 MB / 0.5762 GB Notification: Performance of pre-optimization done (n=32): time 2.415e-06/0.6656, allocations: 0 / 0.7406 GB, free: 4.789 MB / 0.5762 GB Notification: Performance of matching and sorting (n=33): time 0.002813/0.6684, allocations: 1.534 MB / 0.7421 GB, free: 3.145 MB / 0.5762 GB Notification: Performance of inlineWhenForInitialization (initialization): time 5.482e-05/0.6685, allocations: 55.41 kB / 0.7422 GB, free: 3.078 MB / 0.5762 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0004567/0.6689, allocations: 398 kB / 0.7426 GB, free: 2.684 MB / 0.5762 GB Notification: Performance of collectPreVariables (initialization): time 3.472e-05/0.669, allocations: 29.7 kB / 0.7426 GB, free: 2.648 MB / 0.5762 GB Notification: Performance of collectInitialEqns (initialization): time 0.0001716/0.6692, allocations: 212.6 kB / 0.7428 GB, free: 2.434 MB / 0.5762 GB Notification: Performance of collectInitialBindings (initialization): time 0.0001116/0.6693, allocations: 123 kB / 0.7429 GB, free: 2.312 MB / 0.5762 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001183/0.6694, allocations: 65.67 kB / 0.743 GB, free: 2.242 MB / 0.5762 GB Notification: Performance of setup shared object (initialization): time 0.0001821/0.6696, allocations: 358.7 kB / 0.7433 GB, free: 1.883 MB / 0.5762 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002546/0.6699, allocations: 143.9 kB / 0.7434 GB, free: 1.742 MB / 0.5762 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002463/0.6701, allocations: 155.6 kB / 0.7436 GB, free: 1.59 MB / 0.5762 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0005526/0.6707, allocations: 332.7 kB / 0.7439 GB, free: 1.262 MB / 0.5762 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.042e-06/0.6707, allocations: 0 / 0.7439 GB, free: 1.262 MB / 0.5762 GB Notification: Performance of matching and sorting (n=36) (initialization): time 0.0009389/0.6716, allocations: 0.5216 MB / 0.7444 GB, free: 0.7305 MB / 0.5762 GB Notification: Performance of prepare postOptimizeDAE: time 1.99e-05/0.6717, allocations: 8 kB / 0.7444 GB, free: 0.7227 MB / 0.5762 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.222e-06/0.6717, allocations: 0 / 0.7444 GB, free: 0.7227 MB / 0.5762 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.0004019/0.6721, allocations: 116.7 kB / 0.7445 GB, free: 0.6055 MB / 0.5762 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002831/0.6724, allocations: 58.19 kB / 0.7446 GB, free: 0.5508 MB / 0.5762 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002784/0.6752, allocations: 2.331 MB / 0.7469 GB, free: 14.08 MB / 0.5919 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002297/0.6754, allocations: 12.03 kB / 0.7469 GB, free: 14.07 MB / 0.5919 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.724e-05/0.6755, allocations: 15.98 kB / 0.7469 GB, free: 14.05 MB / 0.5919 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 (25): * Single equations (assignments): 24 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 1 system {(3,9,77.8%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of prepare postOptimizeDAE: time 0.0002315/0.6757, allocations: 164.2 kB / 0.7471 GB, free: 13.89 MB / 0.5919 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 9.103e-05/0.6758, allocations: 51.72 kB / 0.7471 GB, free: 13.84 MB / 0.5919 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001181/0.677, allocations: 0.6595 MB / 0.7477 GB, free: 13.14 MB / 0.5919 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.04e-06/0.677, allocations: 4 kB / 0.7477 GB, free: 13.14 MB / 0.5919 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.414e-06/0.677, allocations: 4 kB / 0.7478 GB, free: 13.13 MB / 0.5919 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.496e-06/0.677, allocations: 4 kB / 0.7478 GB, free: 13.13 MB / 0.5919 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.000538/0.6776, allocations: 454 kB / 0.7482 GB, free: 12.64 MB / 0.5919 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.184e-06/0.6776, allocations: 0 / 0.7482 GB, free: 12.64 MB / 0.5919 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001747/0.6778, allocations: 31.95 kB / 0.7482 GB, free: 12.61 MB / 0.5919 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.0003548/0.6781, allocations: 132.7 kB / 0.7483 GB, free: 12.47 MB / 0.5919 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.831e-05/0.6782, allocations: 7.984 kB / 0.7484 GB, free: 12.46 MB / 0.5919 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.002758/0.6809, allocations: 2.338 MB / 0.7506 GB, free: 9.992 MB / 0.5919 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.453e-06/0.6809, allocations: 4 kB / 0.7506 GB, free: 9.988 MB / 0.5919 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001104/0.682, allocations: 0.642 MB / 0.7513 GB, free: 9.32 MB / 0.5919 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0001015/0.6822, allocations: 124.9 kB / 0.7514 GB, free: 9.18 MB / 0.5919 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 5.144e-05/0.6822, allocations: 4 kB / 0.7514 GB, free: 9.176 MB / 0.5919 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001699/0.6824, allocations: 8 kB / 0.7514 GB, free: 9.168 MB / 0.5919 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 6.412e-05/0.6825, allocations: 19.95 kB / 0.7514 GB, free: 9.148 MB / 0.5919 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.916e-05/0.6825, allocations: 15.98 kB / 0.7514 GB, free: 9.133 MB / 0.5919 GB Notification: Performance of sorting global known variables: time 0.0003613/0.6829, allocations: 318.9 kB / 0.7517 GB, free: 8.82 MB / 0.5919 GB Notification: Performance of sort global known variables: time 1.1e-07/0.6829, allocations: 0 / 0.7517 GB, free: 8.82 MB / 0.5919 GB Notification: Performance of remove unused functions: time 0.0004917/0.6834, allocations: 115.9 kB / 0.7518 GB, free: 8.707 MB / 0.5919 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 1 * Number of states: 3 (source.outlet.m_flow,source1.outlet.m_flow,source2.outlet.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 (13): * Single equations (assignments): 12 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 1 system {(4,8,62.5%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of Backend phase and start with SimCode phase: time 0.001599/0.685, allocations: 1.285 MB / 0.7531 GB, free: 7.391 MB / 0.5919 GB Notification: Performance of simCode: created initialization part: time 0.0009792/0.686, allocations: 0.5217 MB / 0.7536 GB, free: 6.855 MB / 0.5919 GB Notification: Performance of simCode: created event and clocks part: time 2.594e-06/0.686, allocations: 3.938 kB / 0.7536 GB, free: 6.852 MB / 0.5919 GB Notification: Performance of simCode: created simulation system equations: time 0.0006419/0.6866, allocations: 362.4 kB / 0.754 GB, free: 6.484 MB / 0.5919 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0005974/0.6872, allocations: 108.5 kB / 0.7541 GB, free: 6.379 MB / 0.5919 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.005717/0.693, allocations: 4.132 MB / 0.7581 GB, free: 2.156 MB / 0.5919 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004455/0.6934, allocations: 0.8308 MB / 0.7589 GB, free: 1.301 MB / 0.5919 GB Notification: Performance of simCode: alias equations: time 0.0002578/0.6937, allocations: 96.03 kB / 0.759 GB, free: 1.207 MB / 0.5919 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002229/0.6939, allocations: 163.3 kB / 0.7592 GB, free: 1.047 MB / 0.5919 GB Notification: Performance of SimCode: time 3.3e-07/0.6939, allocations: 0 / 0.7592 GB, free: 1.047 MB / 0.5919 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.04162/0.7356, allocations: 11.92 MB / 0.7708 GB, free: 5.297 MB / 0.6075 GB Notification: Performance of buildModelFMU: Generate platform static: time 10.07/10.81, allocations: 7.266 kB / 0.7708 GB, free: 5.293 MB / 0.6075 GB (rm -f ThermofluidStream_dev_ThermofluidStream.Topology.Tests.TestJunction.pipe ; mkfifo ThermofluidStream_dev_ThermofluidStream.Topology.Tests.TestJunction.pipe ; head -c 1048576 < ThermofluidStream_dev_ThermofluidStream.Topology.Tests.TestJunction.pipe >> ../files/ThermofluidStream_dev_ThermofluidStream.Topology.Tests.TestJunction.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=ThermofluidStream_dev_ThermofluidStream.Topology.Tests.TestJunction_res.mat --tempDir=temp_ThermofluidStream_dev_ThermofluidStream_Topology_Tests_TestJunction_fmu --startTime=0 --stopTime=1 --timeout=1200 --tolerance=1e-06 ThermofluidStream_dev_ThermofluidStream_Topology_Tests_TestJunction.fmu > ThermofluidStream_dev_ThermofluidStream.Topology.Tests.TestJunction.pipe 2>&1) diffSimulationResults("ThermofluidStream_dev_ThermofluidStream.Topology.Tests.TestJunction_res.mat","/mnt/ReferenceFiles/ThermofluidStream-main-regression/ReferenceData/ThermofluidStream.Topology.Tests.TestJunction_ref.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/ThermofluidStream_dev_ThermofluidStream.Topology.Tests.TestJunction.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches