Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr ThermofluidStream_ThermofluidStream.Boundaries.Tests.SourceSink.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.Boundaries.Tests.SourceSink,tolerance=1e-06,outputFormat="mat",numberOfIntervals=2000,variableFilter="Time|source.outlet.m_flow|source1.outlet.m_flow",fileNamePrefix="ThermofluidStream_ThermofluidStream.Boundaries.Tests.SourceSink") translateModel(ThermofluidStream.Boundaries.Tests.SourceSink,tolerance=1e-06,outputFormat="mat",numberOfIntervals=2000,variableFilter="Time|source.outlet.m_flow|source1.outlet.m_flow",fileNamePrefix="ThermofluidStream_ThermofluidStream.Boundaries.Tests.SourceSink") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001408/0.001408, allocations: 107.2 kB / 16.41 MB, free: 6.492 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.001349/0.001349, allocations: 192.1 kB / 17.34 MB, free: 5.762 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.445/1.445, allocations: 222.9 MB / 241 MB, free: 15.16 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ThermofluidStream 1.1.0-main/package.mo): time 0.782/0.782, allocations: 91.19 MB / 382.4 MB, free: 7.52 MB / 302.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001586/0.001586, allocations: 75.88 kB / 0.5175 GB, free: 4.129 MB / 446.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3445/0.346, allocations: 67.68 MB / 0.5836 GB, free: 13.94 MB / 446.1 MB Notification: Performance of NFInst.instantiate(ThermofluidStream.Boundaries.Tests.SourceSink): time 0.1494/0.4955, allocations: 140.5 MB / 0.7208 GB, free: 1.09 MB / 0.5606 GB Notification: Performance of NFInst.instExpressions: time 0.003477/0.499, allocations: 3.299 MB / 0.724 GB, free: 13.78 MB / 0.5762 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.0002921/0.4994, allocations: 19.88 kB / 0.7241 GB, free: 13.76 MB / 0.5762 GB Notification: Performance of NFTyping.typeComponents: time 0.0005368/0.4999, allocations: 131.1 kB / 0.7242 GB, free: 13.63 MB / 0.5762 GB Notification: Performance of NFTyping.typeBindings: time 0.0004246/0.5004, allocations: 178.9 kB / 0.7244 GB, free: 13.45 MB / 0.5762 GB Notification: Performance of NFTyping.typeClassSections: time 0.0004583/0.5008, allocations: 199.2 kB / 0.7245 GB, free: 13.26 MB / 0.5762 GB Notification: Performance of NFFlatten.flatten: time 0.0003498/0.5012, allocations: 334.5 kB / 0.7249 GB, free: 12.93 MB / 0.5762 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0001561/0.5014, allocations: 64.38 kB / 0.7249 GB, free: 12.87 MB / 0.5762 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0004548/0.5018, allocations: 211 kB / 0.7251 GB, free: 12.66 MB / 0.5762 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0001705/0.502, allocations: 119.4 kB / 0.7252 GB, free: 12.54 MB / 0.5762 GB Notification: Performance of NFPackage.collectConstants: time 2.346e-05/0.502, allocations: 12 kB / 0.7253 GB, free: 12.53 MB / 0.5762 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0004548/0.5025, allocations: 255.5 kB / 0.7255 GB, free: 12.28 MB / 0.5762 GB Notification: Performance of NFScalarize.scalarize: time 6.028e-05/0.5026, allocations: 35.8 kB / 0.7255 GB, free: 12.25 MB / 0.5762 GB Notification: Performance of NFVerifyModel.verify: time 0.0001069/0.5027, allocations: 111.3 kB / 0.7256 GB, free: 12.14 MB / 0.5762 GB Notification: Performance of NFConvertDAE.convert: time 0.0004455/0.5031, allocations: 312.9 kB / 0.7259 GB, free: 11.83 MB / 0.5762 GB Notification: Performance of FrontEnd - DAE generated: time 4.969e-06/0.5032, allocations: 0 / 0.7259 GB, free: 11.83 MB / 0.5762 GB Notification: Performance of FrontEnd: time 1.973e-06/0.5032, allocations: 0 / 0.7259 GB, free: 11.83 MB / 0.5762 GB Notification: Performance of Transformations before backend: time 7.204e-06/0.5032, allocations: 0 / 0.7259 GB, free: 11.83 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: 28 * Number of variables: 28 Notification: Performance of Generate backend data structure: time 0.0007623/0.5039, allocations: 0.5543 MB / 0.7265 GB, free: 11.23 MB / 0.5762 GB Notification: Performance of prepare preOptimizeDAE: time 3.887e-05/0.504, allocations: 12.03 kB / 0.7265 GB, free: 11.22 MB / 0.5762 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 5.705e-05/0.504, allocations: 28.56 kB / 0.7265 GB, free: 11.19 MB / 0.5762 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0005575/0.5046, allocations: 359.9 kB / 0.7269 GB, free: 10.8 MB / 0.5762 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.505e-05/0.5046, allocations: 16.55 kB / 0.7269 GB, free: 10.79 MB / 0.5762 GB Notification: Performance of preOpt expandDerOperator (simulation): time 3.124e-05/0.5047, allocations: 12.38 kB / 0.7269 GB, free: 10.77 MB / 0.5762 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.000222/0.5049, allocations: 150.8 kB / 0.727 GB, free: 10.61 MB / 0.5762 GB Notification: Performance of preOpt findStateOrder (simulation): time 9.528e-06/0.5049, allocations: 0 / 0.727 GB, free: 10.61 MB / 0.5762 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.749e-05/0.505, allocations: 7.984 kB / 0.727 GB, free: 10.6 MB / 0.5762 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.695e-06/0.505, allocations: 4 kB / 0.727 GB, free: 10.6 MB / 0.5762 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001443/0.5051, allocations: 79.89 kB / 0.7271 GB, free: 10.52 MB / 0.5762 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0007976/0.5059, allocations: 0.7193 MB / 0.7278 GB, free: 9.738 MB / 0.5762 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0001251/0.5061, allocations: 88.95 kB / 0.7279 GB, free: 9.633 MB / 0.5762 GB Notification: Performance of preOpt resolveLoops (simulation): time 6.733e-05/0.5061, allocations: 41.89 kB / 0.7279 GB, free: 9.586 MB / 0.5762 GB Notification: Performance of preOpt evalFunc (simulation): time 0.000155/0.5063, allocations: 166.2 kB / 0.7281 GB, free: 9.387 MB / 0.5762 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.443e-05/0.5063, allocations: 34.5 kB / 0.7281 GB, free: 9.344 MB / 0.5762 GB Notification: Performance of pre-optimization done (n=8): time 1.103e-06/0.5063, allocations: 0 / 0.7281 GB, free: 9.344 MB / 0.5762 GB Notification: Performance of matching and sorting (n=8): time 0.0006667/0.507, allocations: 333.1 kB / 0.7285 GB, free: 8.969 MB / 0.5762 GB Notification: Performance of inlineWhenForInitialization (initialization): time 5.425e-05/0.5071, allocations: 81.11 kB / 0.7285 GB, free: 8.871 MB / 0.5762 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003061/0.5074, allocations: 321.6 kB / 0.7288 GB, free: 8.551 MB / 0.5762 GB Notification: Performance of collectPreVariables (initialization): time 1.679e-05/0.5074, allocations: 25.7 kB / 0.7289 GB, free: 8.52 MB / 0.5762 GB Notification: Performance of collectInitialEqns (initialization): time 0.0001052/0.5075, allocations: 152.1 kB / 0.729 GB, free: 8.367 MB / 0.5762 GB Notification: Performance of collectInitialBindings (initialization): time 3.249e-05/0.5076, allocations: 31.55 kB / 0.729 GB, free: 8.336 MB / 0.5762 GB Notification: Performance of simplifyInitialFunctions (initialization): time 3.978e-05/0.5076, allocations: 25.72 kB / 0.7291 GB, free: 8.305 MB / 0.5762 GB Notification: Performance of setup shared object (initialization): time 0.0001385/0.5077, allocations: 338.8 kB / 0.7294 GB, free: 7.965 MB / 0.5762 GB Notification: Performance of preBalanceInitialSystem (initialization): time 4.176e-05/0.5078, allocations: 23.98 kB / 0.7294 GB, free: 7.941 MB / 0.5762 GB Notification: Performance of partitionIndependentBlocks (initialization): time 5.522e-05/0.5078, allocations: 51.36 kB / 0.7295 GB, free: 7.879 MB / 0.5762 GB Notification: Performance of analyzeInitialSystem (initialization): time 9.775e-05/0.508, allocations: 67.38 kB / 0.7295 GB, free: 7.801 MB / 0.5762 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.235e-06/0.508, allocations: 0 / 0.7295 GB, free: 7.801 MB / 0.5762 GB Notification: Performance of matching and sorting (n=10) (initialization): time 0.000251/0.5082, allocations: 159.4 kB / 0.7297 GB, free: 7.633 MB / 0.5762 GB Notification: Performance of prepare postOptimizeDAE: time 1.669e-05/0.5082, allocations: 7.938 kB / 0.7297 GB, free: 7.625 MB / 0.5762 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.681e-06/0.5083, allocations: 0 / 0.7297 GB, free: 7.625 MB / 0.5762 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.0002008/0.5085, allocations: 45.62 kB / 0.7297 GB, free: 7.574 MB / 0.5762 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 6.142e-05/0.5085, allocations: 8 kB / 0.7297 GB, free: 7.566 MB / 0.5762 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001923/0.5105, allocations: 2.773 MB / 0.7324 GB, free: 4.516 MB / 0.5762 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 6.451e-05/0.5105, allocations: 11.88 kB / 0.7325 GB, free: 4.504 MB / 0.5762 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.065e-05/0.5106, allocations: 4 kB / 0.7325 GB, free: 4.5 MB / 0.5762 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 4 * 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 (8): * Single equations (assignments): 6 * 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,1,100.0%), (1,1,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of prepare postOptimizeDAE: time 0.0001328/0.5107, allocations: 133.7 kB / 0.7326 GB, free: 4.359 MB / 0.5762 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 7.914e-05/0.5108, allocations: 39.55 kB / 0.7326 GB, free: 4.32 MB / 0.5762 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0002914/0.5111, allocations: 159.5 kB / 0.7328 GB, free: 4.137 MB / 0.5762 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.134e-06/0.5111, allocations: 3.938 kB / 0.7328 GB, free: 4.133 MB / 0.5762 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.254e-06/0.5111, allocations: 0 / 0.7328 GB, free: 4.133 MB / 0.5762 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.328e-06/0.5111, allocations: 4 kB / 0.7328 GB, free: 4.129 MB / 0.5762 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.00051/0.5116, allocations: 0.5166 MB / 0.7333 GB, free: 3.543 MB / 0.5762 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.008e-06/0.5116, allocations: 4.078 kB / 0.7333 GB, free: 3.539 MB / 0.5762 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 1.839e-05/0.5117, allocations: 7.938 kB / 0.7333 GB, free: 3.531 MB / 0.5762 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.000128/0.5118, allocations: 49.58 kB / 0.7333 GB, free: 3.477 MB / 0.5762 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.181e-05/0.5118, allocations: 4 kB / 0.7333 GB, free: 3.473 MB / 0.5762 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001801/0.5136, allocations: 2.757 MB / 0.736 GB, free: 444 kB / 0.5762 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.774e-06/0.5136, allocations: 0 / 0.736 GB, free: 444 kB / 0.5762 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0003103/0.5139, allocations: 337.9 kB / 0.7364 GB, free: 76 kB / 0.5762 GB Notification: Performance of postOpt removeConstants (simulation): time 0.2917/0.8057, allocations: 101.3 kB / 0.7365 GB, free: 154.3 MB / 0.5762 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 5.248e-05/0.8058, allocations: 1.344 kB / 0.7365 GB, free: 154.3 MB / 0.5762 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001572/0.806, allocations: 5.625 kB / 0.7365 GB, free: 154.3 MB / 0.5762 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.525e-05/0.806, allocations: 14.22 kB / 0.7365 GB, free: 154.3 MB / 0.5762 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.134e-05/0.806, allocations: 2.828 kB / 0.7365 GB, free: 154.3 MB / 0.5762 GB Notification: Performance of sorting global known variables: time 0.0002901/0.8063, allocations: 230.4 kB / 0.7367 GB, free: 154.2 MB / 0.5762 GB Notification: Performance of sort global known variables: time 2.91e-07/0.8063, allocations: 0.9688 kB / 0.7367 GB, free: 154.2 MB / 0.5762 GB Notification: Performance of remove unused functions: time 0.0004412/0.8068, allocations: 47.52 kB / 0.7367 GB, free: 154.2 MB / 0.5762 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 4 * Number of states: 2 (sink1.inlet.m_flow,sink.inlet.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 (4): * Single equations (assignments): 2 * 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,1,100.0%), (1,1,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of Backend phase and start with SimCode phase: time 0.000265/0.807, allocations: 148.9 kB / 0.7369 GB, free: 154.1 MB / 0.5762 GB Notification: Performance of simCode: created initialization part: time 0.0004511/0.8075, allocations: 288.8 kB / 0.7372 GB, free: 153.9 MB / 0.5762 GB Notification: Performance of simCode: created event and clocks part: time 2.545e-06/0.8075, allocations: 0.5938 kB / 0.7372 GB, free: 153.9 MB / 0.5762 GB Notification: Performance of simCode: created simulation system equations: time 0.0002011/0.8077, allocations: 256.5 kB / 0.7374 GB, free: 153.7 MB / 0.5762 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0005642/0.8083, allocations: 66.86 kB / 0.7375 GB, free: 153.7 MB / 0.5762 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0008895/0.8092, allocations: 0.5911 MB / 0.7381 GB, free: 153.3 MB / 0.5762 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002353/0.8094, allocations: 0.7569 MB / 0.7388 GB, free: 152.6 MB / 0.5762 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 3.671e-05/0.8095, allocations: 21.25 kB / 0.7388 GB, free: 152.6 MB / 0.5762 GB Notification: Performance of SimCode: time 6.51e-07/0.8095, allocations: 0 / 0.7388 GB, free: 152.6 MB / 0.5762 GB Notification: Performance of Templates: time 0.02401/0.8335, allocations: 5.681 MB / 0.7444 GB, free: 150.7 MB / 0.5762 GB make -j1 -f ThermofluidStream_ThermofluidStream.Boundaries.Tests.SourceSink.makefile (rm -f ThermofluidStream_ThermofluidStream.Boundaries.Tests.SourceSink.pipe ; mkfifo ThermofluidStream_ThermofluidStream.Boundaries.Tests.SourceSink.pipe ; head -c 1048576 < ThermofluidStream_ThermofluidStream.Boundaries.Tests.SourceSink.pipe >> ../files/ThermofluidStream_ThermofluidStream.Boundaries.Tests.SourceSink.sim & ./ThermofluidStream_ThermofluidStream.Boundaries.Tests.SourceSink -abortSlowSimulation -alarm=1200 -emit_protected -lv LOG_STATS > ThermofluidStream_ThermofluidStream.Boundaries.Tests.SourceSink.pipe 2>&1) diffSimulationResults("ThermofluidStream_ThermofluidStream.Boundaries.Tests.SourceSink_res.mat","/mnt/ReferenceFiles/ThermofluidStream-main-regression/ReferenceData/ThermofluidStream.Boundaries.Tests.SourceSink_ref.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/ThermofluidStream_ThermofluidStream.Boundaries.Tests.SourceSink.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches