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-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: translateModel(ThermofluidStream.Topology.Tests.TestJunction,tolerance=1e-06,outputFormat="mat",numberOfIntervals=2000,variableFilter="Time|junctionN.outlet.m_flow|source.outlet.m_flow|source1.outlet.m_flow",fileNamePrefix="ThermofluidStream_ThermofluidStream.Topology.Tests.TestJunction") translateModel(ThermofluidStream.Topology.Tests.TestJunction,tolerance=1e-06,outputFormat="mat",numberOfIntervals=2000,variableFilter="Time|junctionN.outlet.m_flow|source.outlet.m_flow|source1.outlet.m_flow",fileNamePrefix="ThermofluidStream_ThermofluidStream.Topology.Tests.TestJunction") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.008345/0.008345, allocations: 101.7 kB / 15.73 MB, free: 5.586 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.001619/0.00162, allocations: 191.7 kB / 16.67 MB, free: 5.523 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.378/1.378, allocations: 222.9 MB / 240.4 MB, free: 15.13 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ThermofluidStream 1.1.0-main/package.mo): time 0.7225/0.7225, allocations: 91.2 MB / 381.7 MB, free: 7.527 MB / 302.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001585/0.001585, allocations: 79.88 kB / 0.5168 GB, free: 4.125 MB / 446.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.352/0.3536, allocations: 67.68 MB / 0.5829 GB, free: 13.98 MB / 446.1 MB Notification: Performance of NFInst.instantiate(ThermofluidStream.Topology.Tests.TestJunction): time 0.1536/0.5072, allocations: 144.5 MB / 0.724 GB, free: 13.1 MB / 0.5762 GB Notification: Performance of NFInst.instExpressions: time 0.004579/0.5118, allocations: 4.545 MB / 0.7285 GB, free: 8.539 MB / 0.5762 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.0002075/0.512, allocations: 23.81 kB / 0.7285 GB, free: 8.516 MB / 0.5762 GB Notification: Performance of NFTyping.typeComponents: time 0.0005547/0.5126, allocations: 198.7 kB / 0.7287 GB, free: 8.32 MB / 0.5762 GB Notification: Performance of NFTyping.typeBindings: time 0.000565/0.5132, allocations: 286.3 kB / 0.7289 GB, free: 8.039 MB / 0.5762 GB Notification: Performance of NFTyping.typeClassSections: time 0.0008874/0.5141, allocations: 434.3 kB / 0.7294 GB, free: 7.613 MB / 0.5762 GB Notification: Performance of NFFlatten.flatten: time 0.0006358/0.5148, allocations: 0.6699 MB / 0.73 GB, free: 6.941 MB / 0.5762 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0001969/0.515, allocations: 110.6 kB / 0.7301 GB, free: 6.828 MB / 0.5762 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0005901/0.5156, allocations: 366.5 kB / 0.7305 GB, free: 6.469 MB / 0.5762 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0004124/0.516, allocations: 334.9 kB / 0.7308 GB, free: 6.141 MB / 0.5762 GB Notification: Performance of NFPackage.collectConstants: time 4.718e-05/0.516, allocations: 32 kB / 0.7308 GB, free: 6.109 MB / 0.5762 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0007579/0.5168, allocations: 455.1 kB / 0.7313 GB, free: 5.664 MB / 0.5762 GB Notification: Performance of NFScalarize.scalarize: time 0.0001003/0.5169, allocations: 99.66 kB / 0.7314 GB, free: 5.566 MB / 0.5762 GB Notification: Performance of NFVerifyModel.verify: time 0.0001803/0.5171, allocations: 206.9 kB / 0.7315 GB, free: 5.363 MB / 0.5762 GB Notification: Performance of NFConvertDAE.convert: time 0.0007083/0.5178, allocations: 0.6169 MB / 0.7322 GB, free: 4.75 MB / 0.5762 GB Notification: Performance of FrontEnd - DAE generated: time 3.687e-06/0.5178, allocations: 0 / 0.7322 GB, free: 4.75 MB / 0.5762 GB Notification: Performance of FrontEnd: time 1.162e-06/0.5179, allocations: 4 kB / 0.7322 GB, free: 4.746 MB / 0.5762 GB Notification: Performance of Transformations before backend: time 8.005e-06/0.5179, allocations: 0 / 0.7322 GB, free: 4.746 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.001401/0.5193, allocations: 0.8024 MB / 0.7329 GB, free: 3.895 MB / 0.5762 GB Notification: Performance of prepare preOptimizeDAE: time 3.342e-05/0.5193, allocations: 8.031 kB / 0.7329 GB, free: 3.887 MB / 0.5762 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 8.535e-05/0.5194, allocations: 44.38 kB / 0.733 GB, free: 3.844 MB / 0.5762 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0006165/0.52, allocations: 454 kB / 0.7334 GB, free: 3.359 MB / 0.5762 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.302e-05/0.5201, allocations: 20.92 kB / 0.7334 GB, free: 3.34 MB / 0.5762 GB Notification: Performance of preOpt expandDerOperator (simulation): time 5.906e-05/0.5201, allocations: 28.28 kB / 0.7335 GB, free: 3.312 MB / 0.5762 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0006129/0.5207, allocations: 449.3 kB / 0.7339 GB, free: 2.852 MB / 0.5762 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.08e-05/0.5208, allocations: 0 / 0.7339 GB, free: 2.852 MB / 0.5762 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.09e-05/0.5208, allocations: 8 kB / 0.7339 GB, free: 2.844 MB / 0.5762 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.076e-05/0.5208, allocations: 24.55 kB / 0.7339 GB, free: 2.82 MB / 0.5762 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0006791/0.5215, allocations: 481.8 kB / 0.7344 GB, free: 2.352 MB / 0.5762 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001976/0.5235, allocations: 1.423 MB / 0.7358 GB, free: 0.8398 MB / 0.5762 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0004336/0.5239, allocations: 250.4 kB / 0.736 GB, free: 0.5859 MB / 0.5762 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002965/0.5243, allocations: 209.3 kB / 0.7362 GB, free: 388 kB / 0.5762 GB Notification: Performance of preOpt evalFunc (simulation): time 0.3023/0.8266, allocations: 339.3 kB / 0.7365 GB, free: 155.5 MB / 0.5762 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.289e-05/0.8266, allocations: 32.25 kB / 0.7366 GB, free: 155.5 MB / 0.5762 GB Notification: Performance of pre-optimization done (n=32): time 2.966e-06/0.8267, allocations: 0.8438 kB / 0.7366 GB, free: 155.5 MB / 0.5762 GB Notification: Performance of matching and sorting (n=33): time 0.00292/0.8296, allocations: 1.516 MB / 0.738 GB, free: 154.7 MB / 0.5762 GB Notification: Performance of inlineWhenForInitialization (initialization): time 2.831e-05/0.8296, allocations: 55.38 kB / 0.7381 GB, free: 154.6 MB / 0.5762 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0004335/0.8301, allocations: 375.5 kB / 0.7385 GB, free: 154.4 MB / 0.5762 GB Notification: Performance of collectPreVariables (initialization): time 2.406e-05/0.8301, allocations: 30.77 kB / 0.7385 GB, free: 154.4 MB / 0.5762 GB Notification: Performance of collectInitialEqns (initialization): time 0.0001109/0.8302, allocations: 195.4 kB / 0.7387 GB, free: 154.2 MB / 0.5762 GB Notification: Performance of collectInitialBindings (initialization): time 9.202e-05/0.8303, allocations: 125.2 kB / 0.7388 GB, free: 154.1 MB / 0.5762 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001411/0.8305, allocations: 65.44 kB / 0.7389 GB, free: 154.1 MB / 0.5762 GB Notification: Performance of setup shared object (initialization): time 8.646e-05/0.8305, allocations: 351.4 kB / 0.7392 GB, free: 153.8 MB / 0.5762 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.00024/0.8308, allocations: 145.9 kB / 0.7393 GB, free: 153.7 MB / 0.5762 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002576/0.8311, allocations: 145 kB / 0.7395 GB, free: 153.7 MB / 0.5762 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0005107/0.8316, allocations: 341.9 kB / 0.7398 GB, free: 153.5 MB / 0.5762 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.953e-06/0.8316, allocations: 0 / 0.7398 GB, free: 153.5 MB / 0.5762 GB Notification: Performance of matching and sorting (n=36) (initialization): time 0.0008717/0.8325, allocations: 0.5163 MB / 0.7403 GB, free: 153.3 MB / 0.5762 GB Notification: Performance of prepare postOptimizeDAE: time 2.098e-05/0.8325, allocations: 7.781 kB / 0.7403 GB, free: 153.3 MB / 0.5762 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.793e-06/0.8325, allocations: 0 / 0.7403 GB, free: 153.3 MB / 0.5762 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.0003583/0.8329, allocations: 117.3 kB / 0.7404 GB, free: 153.3 MB / 0.5762 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002636/0.8331, allocations: 58.53 kB / 0.7405 GB, free: 153.2 MB / 0.5762 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002235/0.8354, allocations: 2.327 MB / 0.7427 GB, free: 151.4 MB / 0.5762 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001857/0.8356, allocations: 9.531 kB / 0.7428 GB, free: 151.3 MB / 0.5762 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.761e-05/0.8356, allocations: 17.92 kB / 0.7428 GB, free: 151.3 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.0001662/0.8358, allocations: 166.1 kB / 0.7429 GB, free: 151.2 MB / 0.5762 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 8.638e-05/0.8359, allocations: 44.56 kB / 0.743 GB, free: 151.2 MB / 0.5762 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001205/0.8371, allocations: 0.6528 MB / 0.7436 GB, free: 150.8 MB / 0.5762 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.771e-06/0.8371, allocations: 7.594 kB / 0.7436 GB, free: 150.8 MB / 0.5762 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.332e-06/0.8371, allocations: 2.922 kB / 0.7436 GB, free: 150.8 MB / 0.5762 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.278e-06/0.8371, allocations: 1.266 kB / 0.7436 GB, free: 150.8 MB / 0.5762 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0005378/0.8377, allocations: 436.4 kB / 0.744 GB, free: 150.6 MB / 0.5762 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.964e-06/0.8377, allocations: 0.5625 kB / 0.744 GB, free: 150.6 MB / 0.5762 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001998/0.8379, allocations: 34.69 kB / 0.7441 GB, free: 150.6 MB / 0.5762 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.0003948/0.8383, allocations: 125 kB / 0.7442 GB, free: 150.5 MB / 0.5762 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.739e-05/0.8383, allocations: 15.11 kB / 0.7442 GB, free: 150.5 MB / 0.5762 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.002448/0.8408, allocations: 2.341 MB / 0.7465 GB, free: 148.6 MB / 0.5762 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.094e-06/0.8408, allocations: 0.5312 kB / 0.7465 GB, free: 148.6 MB / 0.5762 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001184/0.842, allocations: 0.6491 MB / 0.7471 GB, free: 148.3 MB / 0.5762 GB Notification: Performance of postOpt removeConstants (simulation): time 6.42e-05/0.8421, allocations: 108.6 kB / 0.7472 GB, free: 148.2 MB / 0.5762 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.787e-05/0.8421, allocations: 6.375 kB / 0.7472 GB, free: 148.2 MB / 0.5762 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001669/0.8423, allocations: 15.52 kB / 0.7473 GB, free: 148.2 MB / 0.5762 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 7.952e-05/0.8424, allocations: 24.83 kB / 0.7473 GB, free: 148.2 MB / 0.5762 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.699e-05/0.8424, allocations: 8.047 kB / 0.7473 GB, free: 148.2 MB / 0.5762 GB Notification: Performance of sorting global known variables: time 0.0003821/0.8428, allocations: 299.6 kB / 0.7476 GB, free: 148 MB / 0.5762 GB Notification: Performance of sort global known variables: time 1.4e-07/0.8428, allocations: 0 / 0.7476 GB, free: 148 MB / 0.5762 GB Notification: Performance of remove unused functions: time 0.0005982/0.8434, allocations: 115.1 kB / 0.7477 GB, free: 148 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.0003046/0.8437, allocations: 191 kB / 0.7479 GB, free: 147.9 MB / 0.5762 GB Notification: Performance of simCode: created initialization part: time 0.0009136/0.8447, allocations: 0.5225 MB / 0.7484 GB, free: 147.6 MB / 0.5762 GB Notification: Performance of simCode: created event and clocks part: time 2.816e-06/0.8447, allocations: 0 / 0.7484 GB, free: 147.6 MB / 0.5762 GB Notification: Performance of simCode: created simulation system equations: time 0.0004972/0.8452, allocations: 361.9 kB / 0.7487 GB, free: 147.4 MB / 0.5762 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0005341/0.8457, allocations: 106.5 kB / 0.7488 GB, free: 147.3 MB / 0.5762 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001284/0.847, allocations: 0.9153 MB / 0.7497 GB, free: 146.7 MB / 0.5762 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002013/0.8472, allocations: 0.822 MB / 0.7505 GB, free: 145.9 MB / 0.5762 GB Notification: Performance of simCode: alias equations: time 0.0001899/0.8474, allocations: 90.61 kB / 0.7506 GB, free: 145.9 MB / 0.5762 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 8.117e-05/0.8475, allocations: 35.16 kB / 0.7506 GB, free: 145.9 MB / 0.5762 GB Notification: Performance of SimCode: time 2.2e-07/0.8475, allocations: 3.938 kB / 0.7506 GB, free: 145.9 MB / 0.5762 GB Notification: Performance of Templates: time 0.009744/0.8573, allocations: 7.061 MB / 0.7575 GB, free: 139 MB / 0.5762 GB make -j1 -f ThermofluidStream_ThermofluidStream.Topology.Tests.TestJunction.makefile (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 & ./ThermofluidStream_ThermofluidStream.Topology.Tests.TestJunction -abortSlowSimulation -alarm=1200 -emit_protected -lv LOG_STATS > 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/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/ThermofluidStream_ThermofluidStream.Topology.Tests.TestJunction.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches