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.008988/0.008988, allocations: 102.6 kB / 15.73 MB, free: 6.039 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.001804/0.001804, allocations: 190.7 kB / 16.67 MB, free: 5.953 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.46/1.46, allocations: 222.9 MB / 240.4 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.7483/0.7483, allocations: 91.19 MB / 381.7 MB, free: 7.508 MB / 302.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001777/0.001777, allocations: 76.2 kB / 0.5168 GB, free: 4.117 MB / 446.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3906/0.3924, allocations: 67.68 MB / 0.5829 GB, free: 13.95 MB / 446.1 MB Notification: Performance of NFInst.instantiate(ThermofluidStream.Boundaries.Tests.SourceSink): time 0.1517/0.5442, allocations: 140.5 MB / 0.7202 GB, free: 1.074 MB / 0.5606 GB Notification: Performance of NFInst.instExpressions: time 0.003984/0.5482, allocations: 3.303 MB / 0.7234 GB, free: 13.76 MB / 0.5762 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.00044/0.5487, allocations: 15.94 kB / 0.7234 GB, free: 13.74 MB / 0.5762 GB Notification: Performance of NFTyping.typeComponents: time 0.0006557/0.5493, allocations: 131.1 kB / 0.7235 GB, free: 13.61 MB / 0.5762 GB Notification: Performance of NFTyping.typeBindings: time 0.0006755/0.5501, allocations: 178.9 kB / 0.7237 GB, free: 13.44 MB / 0.5762 GB Notification: Performance of NFTyping.typeClassSections: time 0.0006024/0.5507, allocations: 199.3 kB / 0.7239 GB, free: 13.24 MB / 0.5762 GB Notification: Performance of NFFlatten.flatten: time 0.0005485/0.5513, allocations: 342.5 kB / 0.7242 GB, free: 12.91 MB / 0.5762 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0001955/0.5515, allocations: 64.36 kB / 0.7243 GB, free: 12.84 MB / 0.5762 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0005099/0.552, allocations: 211 kB / 0.7245 GB, free: 12.64 MB / 0.5762 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0001964/0.5522, allocations: 119.4 kB / 0.7246 GB, free: 12.52 MB / 0.5762 GB Notification: Performance of NFPackage.collectConstants: time 2.809e-05/0.5523, allocations: 12 kB / 0.7246 GB, free: 12.51 MB / 0.5762 GB Notification: Performance of NFFlatten.collectFunctions: time 0.000547/0.5528, allocations: 259.5 kB / 0.7248 GB, free: 12.25 MB / 0.5762 GB Notification: Performance of NFScalarize.scalarize: time 7.612e-05/0.5529, allocations: 31.8 kB / 0.7249 GB, free: 12.22 MB / 0.5762 GB Notification: Performance of NFVerifyModel.verify: time 0.0001158/0.553, allocations: 107.3 kB / 0.725 GB, free: 12.12 MB / 0.5762 GB Notification: Performance of NFConvertDAE.convert: time 0.0005498/0.5536, allocations: 320.9 kB / 0.7253 GB, free: 11.8 MB / 0.5762 GB Notification: Performance of FrontEnd - DAE generated: time 4.538e-06/0.5536, allocations: 0 / 0.7253 GB, free: 11.8 MB / 0.5762 GB Notification: Performance of FrontEnd: time 1.393e-06/0.5536, allocations: 4 kB / 0.7253 GB, free: 11.8 MB / 0.5762 GB Notification: Performance of Transformations before backend: time 7.433e-06/0.5536, allocations: 0 / 0.7253 GB, free: 11.8 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.0008689/0.5545, allocations: 0.5452 MB / 0.7258 GB, free: 11.21 MB / 0.5762 GB Notification: Performance of prepare preOptimizeDAE: time 4.439e-05/0.5545, allocations: 15.97 kB / 0.7258 GB, free: 11.19 MB / 0.5762 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 7.509e-05/0.5546, allocations: 32.55 kB / 0.7259 GB, free: 11.16 MB / 0.5762 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0006217/0.5553, allocations: 355.9 kB / 0.7262 GB, free: 10.77 MB / 0.5762 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.814e-05/0.5553, allocations: 12.61 kB / 0.7262 GB, free: 10.76 MB / 0.5762 GB Notification: Performance of preOpt expandDerOperator (simulation): time 3.418e-05/0.5553, allocations: 12.38 kB / 0.7262 GB, free: 10.75 MB / 0.5762 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002507/0.5556, allocations: 142.8 kB / 0.7264 GB, free: 10.59 MB / 0.5762 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.243e-05/0.5556, allocations: 3.938 kB / 0.7264 GB, free: 10.59 MB / 0.5762 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.597e-05/0.5556, allocations: 8 kB / 0.7264 GB, free: 10.58 MB / 0.5762 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.032e-05/0.5557, allocations: 7.984 kB / 0.7264 GB, free: 10.57 MB / 0.5762 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001402/0.5558, allocations: 71.97 kB / 0.7265 GB, free: 10.5 MB / 0.5762 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0008333/0.5566, allocations: 0.727 MB / 0.7272 GB, free: 9.715 MB / 0.5762 GB Notification: Performance of preOpt comSubExp (simulation): time 0.00014/0.5568, allocations: 89.11 kB / 0.7272 GB, free: 9.609 MB / 0.5762 GB Notification: Performance of preOpt resolveLoops (simulation): time 5.728e-05/0.5569, allocations: 33.8 kB / 0.7273 GB, free: 9.57 MB / 0.5762 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0001533/0.557, allocations: 166.2 kB / 0.7274 GB, free: 9.371 MB / 0.5762 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.43e-05/0.5571, allocations: 30.56 kB / 0.7275 GB, free: 9.332 MB / 0.5762 GB Notification: Performance of pre-optimization done (n=8): time 1.202e-06/0.5571, allocations: 0 / 0.7275 GB, free: 9.332 MB / 0.5762 GB Notification: Performance of matching and sorting (n=8): time 0.0007056/0.5578, allocations: 337 kB / 0.7278 GB, free: 8.953 MB / 0.5762 GB Notification: Performance of inlineWhenForInitialization (initialization): time 4.711e-05/0.5578, allocations: 77.11 kB / 0.7279 GB, free: 8.859 MB / 0.5762 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003167/0.5582, allocations: 325.6 kB / 0.7282 GB, free: 8.535 MB / 0.5762 GB Notification: Performance of collectPreVariables (initialization): time 1.355e-05/0.5582, allocations: 25.7 kB / 0.7282 GB, free: 8.504 MB / 0.5762 GB Notification: Performance of collectInitialEqns (initialization): time 0.0001044/0.5583, allocations: 152.1 kB / 0.7283 GB, free: 8.352 MB / 0.5762 GB Notification: Performance of collectInitialBindings (initialization): time 3.758e-05/0.5583, allocations: 31.55 kB / 0.7284 GB, free: 8.32 MB / 0.5762 GB Notification: Performance of simplifyInitialFunctions (initialization): time 4.836e-05/0.5584, allocations: 29.72 kB / 0.7284 GB, free: 8.285 MB / 0.5762 GB Notification: Performance of setup shared object (initialization): time 0.0001312/0.5585, allocations: 338.8 kB / 0.7287 GB, free: 7.945 MB / 0.5762 GB Notification: Performance of preBalanceInitialSystem (initialization): time 4.459e-05/0.5586, allocations: 23.94 kB / 0.7287 GB, free: 7.922 MB / 0.5762 GB Notification: Performance of partitionIndependentBlocks (initialization): time 5.629e-05/0.5586, allocations: 47.36 kB / 0.7288 GB, free: 7.863 MB / 0.5762 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001143/0.5588, allocations: 75.42 kB / 0.7289 GB, free: 7.777 MB / 0.5762 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.924e-06/0.5588, allocations: 0 / 0.7289 GB, free: 7.777 MB / 0.5762 GB Notification: Performance of matching and sorting (n=10) (initialization): time 0.0002707/0.559, allocations: 159.3 kB / 0.729 GB, free: 7.609 MB / 0.5762 GB Notification: Performance of prepare postOptimizeDAE: time 2.577e-05/0.5591, allocations: 7.938 kB / 0.729 GB, free: 7.602 MB / 0.5762 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.844e-06/0.5591, allocations: 0 / 0.729 GB, free: 7.602 MB / 0.5762 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.000241/0.5593, allocations: 45.7 kB / 0.7291 GB, free: 7.551 MB / 0.5762 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 7.148e-05/0.5594, allocations: 11.98 kB / 0.7291 GB, free: 7.539 MB / 0.5762 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.00203/0.5615, allocations: 2.773 MB / 0.7318 GB, free: 4.488 MB / 0.5762 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 7.527e-05/0.5616, allocations: 15.78 kB / 0.7318 GB, free: 4.473 MB / 0.5762 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 9.157e-06/0.5616, allocations: 0 / 0.7318 GB, free: 4.473 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.0001352/0.5617, allocations: 137.7 kB / 0.7319 GB, free: 4.328 MB / 0.5762 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 6.988e-05/0.5618, allocations: 31.56 kB / 0.732 GB, free: 4.297 MB / 0.5762 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0002962/0.5621, allocations: 159.4 kB / 0.7321 GB, free: 4.113 MB / 0.5762 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.846e-06/0.5621, allocations: 0 / 0.7321 GB, free: 4.113 MB / 0.5762 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.785e-06/0.5621, allocations: 0 / 0.7321 GB, free: 4.113 MB / 0.5762 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.35e-06/0.5621, allocations: 4.078 kB / 0.7321 GB, free: 4.109 MB / 0.5762 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0005355/0.5627, allocations: 0.5244 MB / 0.7326 GB, free: 3.516 MB / 0.5762 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.565e-06/0.5627, allocations: 0 / 0.7326 GB, free: 3.516 MB / 0.5762 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 2.054e-05/0.5627, allocations: 7.938 kB / 0.7326 GB, free: 3.508 MB / 0.5762 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.0001228/0.5628, allocations: 45.59 kB / 0.7327 GB, free: 3.457 MB / 0.5762 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.235e-05/0.5629, allocations: 4 kB / 0.7327 GB, free: 3.453 MB / 0.5762 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001857/0.5647, allocations: 2.753 MB / 0.7354 GB, free: 428 kB / 0.5762 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.894e-06/0.5647, allocations: 7.969 kB / 0.7354 GB, free: 420 kB / 0.5762 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0003255/0.5651, allocations: 330 kB / 0.7357 GB, free: 60 kB / 0.5762 GB Notification: Performance of postOpt removeConstants (simulation): time 0.3118/0.8769, allocations: 102.8 kB / 0.7358 GB, free: 154.3 MB / 0.5762 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 6.101e-05/0.877, allocations: 8.328 kB / 0.7358 GB, free: 154.3 MB / 0.5762 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001797/0.8772, allocations: 1.75 kB / 0.7358 GB, free: 154.3 MB / 0.5762 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.659e-05/0.8773, allocations: 14.69 kB / 0.7358 GB, free: 154.3 MB / 0.5762 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.334e-05/0.8773, allocations: 2.766 kB / 0.7358 GB, free: 154.3 MB / 0.5762 GB Notification: Performance of sorting global known variables: time 0.0002946/0.8776, allocations: 232.3 kB / 0.736 GB, free: 154.2 MB / 0.5762 GB Notification: Performance of sort global known variables: time 3.01e-07/0.8776, allocations: 0 / 0.736 GB, free: 154.2 MB / 0.5762 GB Notification: Performance of remove unused functions: time 0.0005176/0.8781, allocations: 45.42 kB / 0.7361 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.0002424/0.8784, allocations: 150.5 kB / 0.7362 GB, free: 154.1 MB / 0.5762 GB Notification: Performance of simCode: created initialization part: time 0.0004447/0.8788, allocations: 291.9 kB / 0.7365 GB, free: 153.9 MB / 0.5762 GB Notification: Performance of simCode: created event and clocks part: time 2.956e-06/0.8788, allocations: 0 / 0.7365 GB, free: 153.9 MB / 0.5762 GB Notification: Performance of simCode: created simulation system equations: time 0.0002085/0.879, allocations: 258.6 kB / 0.7368 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.0005769/0.8796, allocations: 63.58 kB / 0.7368 GB, free: 153.7 MB / 0.5762 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0008996/0.8805, allocations: 0.5602 MB / 0.7374 GB, free: 153.4 MB / 0.5762 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.000239/0.8808, allocations: 0.7587 MB / 0.7381 GB, free: 152.7 MB / 0.5762 GB Notification: Performance of simCode: alias equations: time 8.07e-05/0.8809, allocations: 24.97 kB / 0.7381 GB, free: 152.7 MB / 0.5762 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 3.814e-05/0.8809, allocations: 21.73 kB / 0.7381 GB, free: 152.7 MB / 0.5762 GB Notification: Performance of SimCode: time 2e-07/0.8809, allocations: 0 / 0.7381 GB, free: 152.7 MB / 0.5762 GB Notification: Performance of Templates: time 0.008417/0.8893, allocations: 3.395 MB / 0.7415 GB, free: 152.1 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/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/ThermofluidStream_ThermofluidStream.Boundaries.Tests.SourceSink.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches