Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr ThermofluidStream_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/package.mo", uses=false) Using package ThermofluidStream with version 1.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ThermofluidStream 1.1.0/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_ThermofluidStream_Topology_Tests_TestJunction",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(ThermofluidStream.Topology.Tests.TestJunction,fileNamePrefix="ThermofluidStream_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.005517/0.005517, allocations: 99.72 kB / 15.73 MB, free: 6.484 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.001474/0.001474, allocations: 193.2 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.367/1.367, allocations: 222.9 MB / 240.4 MB, free: 4.316 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ThermofluidStream 1.1.0/package.mo): time 0.6553/0.6553, allocations: 89.46 MB / 380 MB, free: 10.94 MB / 318.1 MB Notification: Performance of FrontEnd - loaded program: time 0.002199/0.002199, allocations: 75.88 kB / 0.5139 GB, free: 11.75 MB / 398.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1294/0.1316, allocations: 67.3 MB / 0.5796 GB, free: 8.367 MB / 462.1 MB Notification: Performance of NFInst.instantiate(ThermofluidStream.Topology.Tests.TestJunction): time 0.395/0.5267, allocations: 144.3 MB / 0.7206 GB, free: 12.09 MB / 0.5606 GB Notification: Performance of NFInst.instExpressions: time 0.005184/0.5319, allocations: 4.496 MB / 0.725 GB, free: 7.586 MB / 0.5606 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.0002002/0.5322, allocations: 7.938 kB / 0.725 GB, free: 7.578 MB / 0.5606 GB Notification: Performance of NFTyping.typeComponents: time 0.0006428/0.5329, allocations: 194.8 kB / 0.7252 GB, free: 7.387 MB / 0.5606 GB Notification: Performance of NFTyping.typeBindings: time 0.0006299/0.5335, allocations: 242.5 kB / 0.7254 GB, free: 7.148 MB / 0.5606 GB Notification: Performance of NFTyping.typeClassSections: time 0.001026/0.5345, allocations: 432.2 kB / 0.7258 GB, free: 6.727 MB / 0.5606 GB Notification: Performance of NFFlatten.flatten: time 0.0006761/0.5352, allocations: 0.5764 MB / 0.7264 GB, free: 6.148 MB / 0.5606 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0001958/0.5354, allocations: 106.2 kB / 0.7265 GB, free: 6.043 MB / 0.5606 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0005557/0.536, allocations: 314.8 kB / 0.7268 GB, free: 5.734 MB / 0.5606 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0004432/0.5364, allocations: 307.1 kB / 0.7271 GB, free: 5.434 MB / 0.5606 GB Notification: Performance of NFPackage.collectConstants: time 5.325e-05/0.5365, allocations: 32 kB / 0.7271 GB, free: 5.402 MB / 0.5606 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0008426/0.5374, allocations: 459.1 kB / 0.7275 GB, free: 4.953 MB / 0.5606 GB Notification: Performance of NFScalarize.scalarize: time 9.774e-05/0.5375, allocations: 91.72 kB / 0.7276 GB, free: 4.863 MB / 0.5606 GB Notification: Performance of NFVerifyModel.verify: time 0.0001956/0.5377, allocations: 171.2 kB / 0.7278 GB, free: 4.695 MB / 0.5606 GB Notification: Performance of NFConvertDAE.convert: time 0.0007098/0.5384, allocations: 0.5369 MB / 0.7283 GB, free: 4.16 MB / 0.5606 GB Notification: Performance of FrontEnd - DAE generated: time 3.166e-06/0.5384, allocations: 0 / 0.7283 GB, free: 4.16 MB / 0.5606 GB Notification: Performance of FrontEnd: time 1.112e-06/0.5384, allocations: 0 / 0.7283 GB, free: 4.16 MB / 0.5606 GB Notification: Performance of Transformations before backend: time 6.352e-06/0.5384, allocations: 0 / 0.7283 GB, free: 4.16 MB / 0.5606 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.001368/0.5398, allocations: 0.7089 MB / 0.729 GB, free: 3.402 MB / 0.5606 GB Notification: Performance of prepare preOptimizeDAE: time 3.434e-05/0.5398, allocations: 8.031 kB / 0.729 GB, free: 3.395 MB / 0.5606 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 7.556e-05/0.5399, allocations: 66.72 kB / 0.7291 GB, free: 3.32 MB / 0.5606 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 7.13e-05/0.54, allocations: 36.69 kB / 0.7291 GB, free: 3.285 MB / 0.5606 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003953/0.5404, allocations: 291.8 kB / 0.7294 GB, free: 2.961 MB / 0.5606 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.22e-05/0.5404, allocations: 20.94 kB / 0.7294 GB, free: 2.941 MB / 0.5606 GB Notification: Performance of preOpt expandDerOperator (simulation): time 5.769e-05/0.5405, allocations: 24.56 kB / 0.7294 GB, free: 2.918 MB / 0.5606 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0006662/0.5412, allocations: 449.1 kB / 0.7299 GB, free: 2.461 MB / 0.5606 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.155e-05/0.5412, allocations: 0 / 0.7299 GB, free: 2.461 MB / 0.5606 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.237e-05/0.5412, allocations: 15.98 kB / 0.7299 GB, free: 2.445 MB / 0.5606 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.53e-05/0.5413, allocations: 16.55 kB / 0.7299 GB, free: 2.426 MB / 0.5606 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0007197/0.542, allocations: 481.8 kB / 0.7304 GB, free: 1.957 MB / 0.5606 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002078/0.5441, allocations: 1.404 MB / 0.7317 GB, free: 476 kB / 0.5606 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0004426/0.5445, allocations: 254.4 kB / 0.732 GB, free: 212 kB / 0.5606 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0003311/0.5449, allocations: 212.8 kB / 0.7322 GB, free: 15.99 MB / 0.5762 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0003178/0.5452, allocations: 332.4 kB / 0.7325 GB, free: 15.6 MB / 0.5762 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.947e-05/0.5452, allocations: 38.56 kB / 0.7325 GB, free: 15.55 MB / 0.5762 GB Notification: Performance of pre-optimization done (n=32): time 1.403e-06/0.5452, allocations: 0 / 0.7325 GB, free: 15.55 MB / 0.5762 GB Notification: Performance of matching and sorting (n=33): time 0.002602/0.5479, allocations: 1.501 MB / 0.734 GB, free: 13.94 MB / 0.5762 GB Notification: Performance of inlineWhenForInitialization (initialization): time 4.295e-05/0.5479, allocations: 55.41 kB / 0.7341 GB, free: 13.87 MB / 0.5762 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002727/0.5482, allocations: 263 kB / 0.7343 GB, free: 13.61 MB / 0.5762 GB Notification: Performance of collectPreVariables (initialization): time 3.602e-05/0.5482, allocations: 41.69 kB / 0.7343 GB, free: 13.56 MB / 0.5762 GB Notification: Performance of collectInitialEqns (initialization): time 0.0001045/0.5483, allocations: 152.5 kB / 0.7345 GB, free: 13.41 MB / 0.5762 GB Notification: Performance of collectInitialBindings (initialization): time 0.0001003/0.5484, allocations: 111 kB / 0.7346 GB, free: 13.3 MB / 0.5762 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001157/0.5486, allocations: 65.67 kB / 0.7347 GB, free: 13.23 MB / 0.5762 GB Notification: Performance of setup shared object (initialization): time 0.0001595/0.5487, allocations: 346.7 kB / 0.735 GB, free: 12.88 MB / 0.5762 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002366/0.549, allocations: 139.9 kB / 0.7351 GB, free: 12.75 MB / 0.5762 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.000249/0.5492, allocations: 151.8 kB / 0.7353 GB, free: 12.6 MB / 0.5762 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0005779/0.5498, allocations: 344.5 kB / 0.7356 GB, free: 12.26 MB / 0.5762 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.072e-06/0.5498, allocations: 4 kB / 0.7356 GB, free: 12.25 MB / 0.5762 GB Notification: Performance of matching and sorting (n=36) (initialization): time 0.0008763/0.5507, allocations: 0.4906 MB / 0.7361 GB, free: 11.75 MB / 0.5762 GB Notification: Performance of prepare postOptimizeDAE: time 1.681e-05/0.5507, allocations: 8 kB / 0.7361 GB, free: 11.75 MB / 0.5762 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.592e-06/0.5508, allocations: 3.984 kB / 0.7361 GB, free: 11.74 MB / 0.5762 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.0003684/0.5511, allocations: 120.7 kB / 0.7362 GB, free: 11.62 MB / 0.5762 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002575/0.5514, allocations: 51.89 kB / 0.7363 GB, free: 11.57 MB / 0.5762 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002648/0.554, allocations: 2.337 MB / 0.7385 GB, free: 9.094 MB / 0.5762 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001615/0.5542, allocations: 4 kB / 0.7385 GB, free: 9.09 MB / 0.5762 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.76e-05/0.5543, allocations: 16.03 kB / 0.7386 GB, free: 9.074 MB / 0.5762 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.0001825/0.5545, allocations: 168.2 kB / 0.7387 GB, free: 8.902 MB / 0.5762 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 7.246e-05/0.5545, allocations: 31.81 kB / 0.7387 GB, free: 8.871 MB / 0.5762 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001115/0.5557, allocations: 0.641 MB / 0.7394 GB, free: 8.191 MB / 0.5762 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.62e-06/0.5557, allocations: 6.5 kB / 0.7394 GB, free: 8.188 MB / 0.5762 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.665e-06/0.5557, allocations: 4 kB / 0.7394 GB, free: 8.184 MB / 0.5762 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.6e-06/0.5557, allocations: 3.984 kB / 0.7394 GB, free: 8.18 MB / 0.5762 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0004853/0.5562, allocations: 409.4 kB / 0.7398 GB, free: 7.73 MB / 0.5762 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.879e-06/0.5562, allocations: 3.938 kB / 0.7398 GB, free: 7.727 MB / 0.5762 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001735/0.5564, allocations: 27.97 kB / 0.7398 GB, free: 7.699 MB / 0.5762 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.0003571/0.5567, allocations: 120.8 kB / 0.7399 GB, free: 7.578 MB / 0.5762 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.088e-05/0.5568, allocations: 15.97 kB / 0.7399 GB, free: 7.562 MB / 0.5762 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.002606/0.5594, allocations: 2.338 MB / 0.7422 GB, free: 5.082 MB / 0.5762 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.202e-06/0.5594, allocations: 0 / 0.7422 GB, free: 5.082 MB / 0.5762 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001045/0.5605, allocations: 0.6498 MB / 0.7429 GB, free: 4.406 MB / 0.5762 GB Notification: Performance of postOpt removeConstants (simulation): time 7.782e-05/0.5605, allocations: 100.9 kB / 0.7429 GB, free: 4.289 MB / 0.5762 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.891e-05/0.5606, allocations: 8.875 kB / 0.743 GB, free: 4.281 MB / 0.5762 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001585/0.5608, allocations: 3.984 kB / 0.743 GB, free: 4.277 MB / 0.5762 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.891e-05/0.5608, allocations: 23.97 kB / 0.743 GB, free: 4.254 MB / 0.5762 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.611e-05/0.5609, allocations: 11.97 kB / 0.743 GB, free: 4.242 MB / 0.5762 GB Notification: Performance of sorting global known variables: time 0.0002417/0.5611, allocations: 231 kB / 0.7432 GB, free: 4.02 MB / 0.5762 GB Notification: Performance of sort global known variables: time 1.4e-07/0.5611, allocations: 0 / 0.7432 GB, free: 4.02 MB / 0.5762 GB Notification: Performance of remove unused functions: time 0.0004558/0.5616, allocations: 111.9 kB / 0.7433 GB, free: 3.91 MB / 0.5762 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.001547/0.5631, allocations: 1.254 MB / 0.7445 GB, free: 2.625 MB / 0.5762 GB Notification: Performance of simCode: created initialization part: time 0.0009851/0.5641, allocations: 0.5217 MB / 0.7451 GB, free: 2.09 MB / 0.5762 GB Notification: Performance of simCode: created event and clocks part: time 2.374e-06/0.5641, allocations: 0 / 0.7451 GB, free: 2.09 MB / 0.5762 GB Notification: Performance of simCode: created simulation system equations: time 0.0006249/0.5648, allocations: 374.1 kB / 0.7454 GB, free: 1.711 MB / 0.5762 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0005506/0.5653, allocations: 110.2 kB / 0.7455 GB, free: 1.613 MB / 0.5762 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.004948/0.5703, allocations: 3.596 MB / 0.749 GB, free: 13.92 MB / 0.5919 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004314/0.5707, allocations: 0.795 MB / 0.7498 GB, free: 13.1 MB / 0.5919 GB Notification: Performance of simCode: alias equations: time 0.0002247/0.571, allocations: 78.73 kB / 0.7499 GB, free: 13.02 MB / 0.5919 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001653/0.5711, allocations: 103.4 kB / 0.75 GB, free: 12.92 MB / 0.5919 GB Notification: Performance of SimCode: time 3.5e-07/0.5711, allocations: 0 / 0.75 GB, free: 12.92 MB / 0.5919 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.03928/0.6104, allocations: 10.32 MB / 0.7601 GB, free: 2.758 MB / 0.5919 GB Notification: Performance of buildModelFMU: Generate platform static: time 10.03/10.64, allocations: 13.55 kB / 0.7601 GB, free: 2.746 MB / 0.5919 GB (rm -f ThermofluidStream_ThermofluidStream.Topology.Tests.TestJunction.pipe ; mkfifo ThermofluidStream_ThermofluidStream.Topology.Tests.TestJunction.pipe ; head -c 1048576 < ThermofluidStream_ThermofluidStream.Topology.Tests.TestJunction.pipe >> ../files/ThermofluidStream_ThermofluidStream.Topology.Tests.TestJunction.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=ThermofluidStream_ThermofluidStream.Topology.Tests.TestJunction_res.mat --tempDir=temp_ThermofluidStream_ThermofluidStream_Topology_Tests_TestJunction_fmu --startTime=0 --stopTime=1 --timeout=1200 --tolerance=1e-06 ThermofluidStream_ThermofluidStream_Topology_Tests_TestJunction.fmu > ThermofluidStream_ThermofluidStream.Topology.Tests.TestJunction.pipe 2>&1) diffSimulationResults("ThermofluidStream_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_ThermofluidStream.Topology.Tests.TestJunction.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches