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.001506/0.001506, allocations: 110.9 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.001457/0.001458, allocations: 187 kB / 17.34 MB, free: 5.766 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.32/1.32, 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.7031/0.7031, allocations: 91.18 MB / 382.4 MB, free: 7.508 MB / 302.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001712/0.001712, allocations: 83.86 kB / 0.5175 GB, free: 4.105 MB / 446.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3085/0.3103, allocations: 67.68 MB / 0.5836 GB, free: 13.99 MB / 446.1 MB Notification: Performance of NFInst.instantiate(ThermofluidStream.Boundaries.Tests.SourceSink): time 0.1438/0.4541, allocations: 140.5 MB / 0.7208 GB, free: 1.094 MB / 0.5606 GB Notification: Performance of NFInst.instExpressions: time 0.003229/0.4574, allocations: 3.303 MB / 0.724 GB, free: 13.78 MB / 0.5762 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.0002165/0.4577, allocations: 15.88 kB / 0.7241 GB, free: 13.76 MB / 0.5762 GB Notification: Performance of NFTyping.typeComponents: time 0.000473/0.4581, allocations: 131.1 kB / 0.7242 GB, free: 13.63 MB / 0.5762 GB Notification: Performance of NFTyping.typeBindings: time 0.000394/0.4586, allocations: 178.9 kB / 0.7244 GB, free: 13.46 MB / 0.5762 GB Notification: Performance of NFTyping.typeClassSections: time 0.0004207/0.459, allocations: 199.2 kB / 0.7245 GB, free: 13.26 MB / 0.5762 GB Notification: Performance of NFFlatten.flatten: time 0.000342/0.4594, allocations: 338.5 kB / 0.7249 GB, free: 12.93 MB / 0.5762 GB Notification: Performance of NFFlatten.resolveConnections: time 0.000149/0.4595, allocations: 60.38 kB / 0.7249 GB, free: 12.87 MB / 0.5762 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0004312/0.46, allocations: 211 kB / 0.7251 GB, free: 12.66 MB / 0.5762 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0001704/0.4601, allocations: 119.4 kB / 0.7252 GB, free: 12.55 MB / 0.5762 GB Notification: Performance of NFPackage.collectConstants: time 2.382e-05/0.4602, allocations: 16 kB / 0.7253 GB, free: 12.53 MB / 0.5762 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0004325/0.4606, allocations: 251.5 kB / 0.7255 GB, free: 12.29 MB / 0.5762 GB Notification: Performance of NFScalarize.scalarize: time 6.156e-05/0.4607, allocations: 39.78 kB / 0.7255 GB, free: 12.25 MB / 0.5762 GB Notification: Performance of NFVerifyModel.verify: time 9.427e-05/0.4608, allocations: 107.3 kB / 0.7256 GB, free: 12.14 MB / 0.5762 GB Notification: Performance of NFConvertDAE.convert: time 0.0004096/0.4612, allocations: 312.9 kB / 0.7259 GB, free: 11.84 MB / 0.5762 GB Notification: Performance of FrontEnd - DAE generated: time 4.589e-06/0.4612, allocations: 4 kB / 0.7259 GB, free: 11.83 MB / 0.5762 GB Notification: Performance of FrontEnd: time 1.503e-06/0.4612, allocations: 0 / 0.7259 GB, free: 11.83 MB / 0.5762 GB Notification: Performance of Transformations before backend: time 7.544e-06/0.4612, 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.0007101/0.462, allocations: 0.5491 MB / 0.7265 GB, free: 11.23 MB / 0.5762 GB Notification: Performance of prepare preOptimizeDAE: time 3.641e-05/0.462, allocations: 8.031 kB / 0.7265 GB, free: 11.23 MB / 0.5762 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 6.318e-05/0.4621, allocations: 36.56 kB / 0.7265 GB, free: 11.19 MB / 0.5762 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0005173/0.4626, allocations: 363.8 kB / 0.7269 GB, free: 10.8 MB / 0.5762 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 9.628e-06/0.4626, allocations: 4.609 kB / 0.7269 GB, free: 10.79 MB / 0.5762 GB Notification: Performance of preOpt expandDerOperator (simulation): time 3.42e-05/0.4627, allocations: 12.38 kB / 0.7269 GB, free: 10.78 MB / 0.5762 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.000224/0.4629, allocations: 154.8 kB / 0.727 GB, free: 10.61 MB / 0.5762 GB Notification: Performance of preOpt findStateOrder (simulation): time 9.227e-06/0.4629, allocations: 0 / 0.727 GB, free: 10.61 MB / 0.5762 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.77e-05/0.4629, allocations: 7.984 kB / 0.727 GB, free: 10.61 MB / 0.5762 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.97e-06/0.4629, allocations: 4 kB / 0.727 GB, free: 10.6 MB / 0.5762 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001237/0.4631, allocations: 75.91 kB / 0.7271 GB, free: 10.53 MB / 0.5762 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0007569/0.4638, allocations: 0.7309 MB / 0.7278 GB, free: 9.734 MB / 0.5762 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0001143/0.464, allocations: 77.08 kB / 0.7279 GB, free: 9.641 MB / 0.5762 GB Notification: Performance of preOpt resolveLoops (simulation): time 5.573e-05/0.464, allocations: 41.89 kB / 0.7279 GB, free: 9.594 MB / 0.5762 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0001251/0.4641, allocations: 166.2 kB / 0.7281 GB, free: 9.395 MB / 0.5762 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.029e-05/0.4642, allocations: 38.5 kB / 0.7281 GB, free: 9.348 MB / 0.5762 GB Notification: Performance of pre-optimization done (n=8): time 1.172e-06/0.4642, allocations: 0 / 0.7281 GB, free: 9.348 MB / 0.5762 GB Notification: Performance of matching and sorting (n=8): time 0.0006314/0.4648, allocations: 333.1 kB / 0.7285 GB, free: 8.973 MB / 0.5762 GB Notification: Performance of inlineWhenForInitialization (initialization): time 4.082e-05/0.4649, allocations: 77.11 kB / 0.7285 GB, free: 8.879 MB / 0.5762 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002912/0.4652, allocations: 321.6 kB / 0.7288 GB, free: 8.559 MB / 0.5762 GB Notification: Performance of collectPreVariables (initialization): time 1.48e-05/0.4652, allocations: 29.7 kB / 0.7289 GB, free: 8.523 MB / 0.5762 GB Notification: Performance of collectInitialEqns (initialization): time 9.753e-05/0.4653, allocations: 152.1 kB / 0.729 GB, free: 8.371 MB / 0.5762 GB Notification: Performance of collectInitialBindings (initialization): time 3.183e-05/0.4653, allocations: 31.55 kB / 0.729 GB, free: 8.34 MB / 0.5762 GB Notification: Performance of simplifyInitialFunctions (initialization): time 3.79e-05/0.4654, allocations: 21.72 kB / 0.7291 GB, free: 8.312 MB / 0.5762 GB Notification: Performance of setup shared object (initialization): time 0.0001215/0.4655, allocations: 346.8 kB / 0.7294 GB, free: 7.965 MB / 0.5762 GB Notification: Performance of preBalanceInitialSystem (initialization): time 4.135e-05/0.4655, allocations: 23.98 kB / 0.7294 GB, free: 7.941 MB / 0.5762 GB Notification: Performance of partitionIndependentBlocks (initialization): time 5.375e-05/0.4656, allocations: 47.36 kB / 0.7295 GB, free: 7.883 MB / 0.5762 GB Notification: Performance of analyzeInitialSystem (initialization): time 9.421e-05/0.4657, allocations: 67.38 kB / 0.7295 GB, free: 7.805 MB / 0.5762 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.254e-06/0.4657, allocations: 0 / 0.7295 GB, free: 7.805 MB / 0.5762 GB Notification: Performance of matching and sorting (n=10) (initialization): time 0.0002388/0.466, allocations: 154.9 kB / 0.7297 GB, free: 7.641 MB / 0.5762 GB Notification: Performance of prepare postOptimizeDAE: time 1.638e-05/0.466, allocations: 11.94 kB / 0.7297 GB, free: 7.629 MB / 0.5762 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.559e-06/0.466, allocations: 0 / 0.7297 GB, free: 7.629 MB / 0.5762 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.0001992/0.4662, allocations: 45.62 kB / 0.7297 GB, free: 7.578 MB / 0.5762 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 6.069e-05/0.4663, allocations: 8.469 kB / 0.7297 GB, free: 7.57 MB / 0.5762 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.00173/0.468, allocations: 2.773 MB / 0.7324 GB, free: 4.52 MB / 0.5762 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 6.835e-05/0.4681, allocations: 11.88 kB / 0.7324 GB, free: 4.508 MB / 0.5762 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 9.588e-06/0.4681, allocations: 7.938 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.0001212/0.4682, allocations: 137.7 kB / 0.7326 GB, free: 4.355 MB / 0.5762 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 6.522e-05/0.4683, allocations: 35.55 kB / 0.7326 GB, free: 4.32 MB / 0.5762 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0002851/0.4686, allocations: 155.4 kB / 0.7328 GB, free: 4.141 MB / 0.5762 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.566e-06/0.4686, allocations: 4 kB / 0.7328 GB, free: 4.137 MB / 0.5762 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.504e-06/0.4686, allocations: 0 / 0.7328 GB, free: 4.137 MB / 0.5762 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.464e-06/0.4686, allocations: 0 / 0.7328 GB, free: 4.137 MB / 0.5762 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0004814/0.4691, allocations: 0.5166 MB / 0.7333 GB, free: 3.551 MB / 0.5762 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.609e-06/0.4691, allocations: 11.92 kB / 0.7333 GB, free: 3.539 MB / 0.5762 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 1.804e-05/0.4691, allocations: 4 kB / 0.7333 GB, free: 3.535 MB / 0.5762 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.0001158/0.4693, allocations: 45.59 kB / 0.7333 GB, free: 3.484 MB / 0.5762 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 9.768e-06/0.4693, allocations: 0 / 0.7333 GB, free: 3.484 MB / 0.5762 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001672/0.471, allocations: 2.761 MB / 0.736 GB, free: 452 kB / 0.5762 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.433e-06/0.471, allocations: 192 / 0.736 GB, free: 452 kB / 0.5762 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002901/0.4713, allocations: 337.9 kB / 0.7364 GB, free: 84 kB / 0.5762 GB Notification: Performance of postOpt removeConstants (simulation): time 0.2909/0.7622, allocations: 102.3 kB / 0.7365 GB, free: 154.3 MB / 0.5762 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 5.611e-05/0.7623, allocations: 6.531 kB / 0.7365 GB, free: 154.3 MB / 0.5762 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001778/0.7625, allocations: 5.469 kB / 0.7365 GB, free: 154.3 MB / 0.5762 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.604e-05/0.7625, allocations: 10.61 kB / 0.7365 GB, free: 154.3 MB / 0.5762 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.102e-05/0.7625, allocations: 6.25 kB / 0.7365 GB, free: 154.3 MB / 0.5762 GB Notification: Performance of sorting global known variables: time 0.0002966/0.7628, allocations: 229.5 kB / 0.7367 GB, free: 154.2 MB / 0.5762 GB Notification: Performance of sort global known variables: time 1e-07/0.7628, allocations: 0 / 0.7367 GB, free: 154.2 MB / 0.5762 GB Notification: Performance of remove unused functions: time 0.0005316/0.7634, allocations: 51.7 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.0002655/0.7636, allocations: 151.4 kB / 0.7369 GB, free: 154.2 MB / 0.5762 GB Notification: Performance of simCode: created initialization part: time 0.0004569/0.7641, allocations: 284.7 kB / 0.7372 GB, free: 153.9 MB / 0.5762 GB Notification: Performance of simCode: created event and clocks part: time 4.499e-06/0.7641, allocations: 0.6562 kB / 0.7372 GB, free: 153.9 MB / 0.5762 GB Notification: Performance of simCode: created simulation system equations: time 0.0002185/0.7644, allocations: 252 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.0006238/0.765, allocations: 69.33 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.0009886/0.766, allocations: 0.5964 MB / 0.7381 GB, free: 153.4 MB / 0.5762 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002307/0.7662, allocations: 0.7519 MB / 0.7388 GB, free: 152.7 MB / 0.5762 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 4.112e-05/0.7663, allocations: 25.77 kB / 0.7388 GB, free: 152.7 MB / 0.5762 GB Notification: Performance of SimCode: time 3.6e-07/0.7663, allocations: 0 / 0.7388 GB, free: 152.7 MB / 0.5762 GB Notification: Performance of Templates: time 0.009594/0.7759, allocations: 5.683 MB / 0.7444 GB, free: 150.8 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