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.001238/0.001238, allocations: 117.2 kB / 16.37 MB, free: 6.004 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.001037/0.001037, allocations: 193.2 kB / 17.31 MB, free: 5.613 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.322/1.322, allocations: 222.9 MB / 241 MB, free: 15.15 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ThermofluidStream 1.1.0-main/package.mo): time 0.675/0.675, allocations: 89.49 MB / 380.7 MB, free: 8.621 MB / 302.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001503/0.001504, allocations: 79.89 kB / 459.7 MB, free: 10.57 MB / 382.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1138/0.1153, allocations: 67.3 MB / 0.5146 GB, free: 7.188 MB / 446.1 MB Notification: Performance of NFInst.instantiate(ThermofluidStream.Boundaries.Tests.SourceSink): time 0.3373/0.4526, allocations: 140.4 MB / 0.6517 GB, free: 10.84 MB / 0.4981 GB Notification: Performance of NFInst.instExpressions: time 0.003131/0.4558, allocations: 3.261 MB / 0.6549 GB, free: 7.578 MB / 0.4981 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001334/0.4559, allocations: 0 / 0.6549 GB, free: 7.578 MB / 0.4981 GB Notification: Performance of NFTyping.typeComponents: time 0.0004626/0.4564, allocations: 133.1 kB / 0.655 GB, free: 7.453 MB / 0.4981 GB Notification: Performance of NFTyping.typeBindings: time 0.0003336/0.4568, allocations: 147.1 kB / 0.6552 GB, free: 7.309 MB / 0.4981 GB Notification: Performance of NFTyping.typeClassSections: time 0.0004228/0.4572, allocations: 195.2 kB / 0.6554 GB, free: 7.117 MB / 0.4981 GB Notification: Performance of NFFlatten.flatten: time 0.0003148/0.4575, allocations: 267.3 kB / 0.6556 GB, free: 6.855 MB / 0.4981 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0001246/0.4577, allocations: 48.62 kB / 0.6557 GB, free: 6.812 MB / 0.4981 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0003367/0.458, allocations: 167.3 kB / 0.6558 GB, free: 6.648 MB / 0.4981 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0001406/0.4582, allocations: 95.62 kB / 0.6559 GB, free: 6.555 MB / 0.4981 GB Notification: Performance of NFPackage.collectConstants: time 1.835e-05/0.4582, allocations: 16 kB / 0.6559 GB, free: 6.539 MB / 0.4981 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0004215/0.4586, allocations: 255.5 kB / 0.6562 GB, free: 6.289 MB / 0.4981 GB Notification: Performance of NFScalarize.scalarize: time 3.292e-05/0.4587, allocations: 36.5 kB / 0.6562 GB, free: 6.254 MB / 0.4981 GB Notification: Performance of NFVerifyModel.verify: time 8.162e-05/0.4588, allocations: 79.55 kB / 0.6563 GB, free: 6.176 MB / 0.4981 GB Notification: Performance of NFConvertDAE.convert: time 0.0003342/0.4591, allocations: 237.1 kB / 0.6565 GB, free: 5.949 MB / 0.4981 GB Notification: Performance of FrontEnd - DAE generated: time 4.087e-06/0.4591, allocations: 0 / 0.6565 GB, free: 5.949 MB / 0.4981 GB Notification: Performance of FrontEnd: time 1.543e-06/0.4591, allocations: 4 kB / 0.6565 GB, free: 5.945 MB / 0.4981 GB Notification: Performance of Transformations before backend: time 9.688e-06/0.4591, allocations: 0 / 0.6565 GB, free: 5.945 MB / 0.4981 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.0006092/0.4598, allocations: 475.2 kB / 0.657 GB, free: 5.434 MB / 0.4981 GB Notification: Performance of prepare preOptimizeDAE: time 3.07e-05/0.4598, allocations: 8.875 kB / 0.657 GB, free: 5.426 MB / 0.4981 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 4.516e-05/0.4598, allocations: 24.66 kB / 0.657 GB, free: 5.402 MB / 0.4981 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002055/0.4601, allocations: 224 kB / 0.6572 GB, free: 5.145 MB / 0.4981 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.397e-05/0.4601, allocations: 12.61 kB / 0.6572 GB, free: 5.133 MB / 0.4981 GB Notification: Performance of preOpt expandDerOperator (simulation): time 2.727e-05/0.4601, allocations: 9.266 kB / 0.6572 GB, free: 5.125 MB / 0.4981 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002168/0.4603, allocations: 159 kB / 0.6574 GB, free: 4.953 MB / 0.4981 GB Notification: Performance of preOpt findStateOrder (simulation): time 7.935e-06/0.4604, allocations: 7.938 kB / 0.6574 GB, free: 4.945 MB / 0.4981 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.258e-05/0.4604, allocations: 4 kB / 0.6574 GB, free: 4.941 MB / 0.4981 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.841e-06/0.4604, allocations: 4 kB / 0.6574 GB, free: 4.938 MB / 0.4981 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001225/0.4605, allocations: 72.56 kB / 0.6575 GB, free: 4.867 MB / 0.4981 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0008047/0.4613, allocations: 0.7022 MB / 0.6582 GB, free: 4.105 MB / 0.4981 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0001816/0.4615, allocations: 81.16 kB / 0.6582 GB, free: 4.008 MB / 0.4981 GB Notification: Performance of preOpt resolveLoops (simulation): time 6.537e-05/0.4616, allocations: 41.8 kB / 0.6583 GB, free: 3.961 MB / 0.4981 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0001337/0.4617, allocations: 158.2 kB / 0.6584 GB, free: 3.77 MB / 0.4981 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.127e-05/0.4618, allocations: 38.5 kB / 0.6585 GB, free: 3.723 MB / 0.4981 GB Notification: Performance of pre-optimization done (n=8): time 1.372e-06/0.4618, allocations: 0 / 0.6585 GB, free: 3.723 MB / 0.4981 GB Notification: Performance of matching and sorting (n=8): time 0.0006646/0.4624, allocations: 322 kB / 0.6588 GB, free: 3.359 MB / 0.4981 GB Notification: Performance of inlineWhenForInitialization (initialization): time 4.46e-05/0.4625, allocations: 81.11 kB / 0.6588 GB, free: 3.262 MB / 0.4981 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002025/0.4627, allocations: 225 kB / 0.6591 GB, free: 3.027 MB / 0.4981 GB Notification: Performance of collectPreVariables (initialization): time 1.437e-05/0.4627, allocations: 25.7 kB / 0.6591 GB, free: 2.996 MB / 0.4981 GB Notification: Performance of collectInitialEqns (initialization): time 6.892e-05/0.4628, allocations: 120 kB / 0.6592 GB, free: 2.875 MB / 0.4981 GB Notification: Performance of collectInitialBindings (initialization): time 2.851e-05/0.4628, allocations: 27.64 kB / 0.6592 GB, free: 2.848 MB / 0.4981 GB Notification: Performance of simplifyInitialFunctions (initialization): time 4.027e-05/0.4629, allocations: 25.72 kB / 0.6593 GB, free: 2.816 MB / 0.4981 GB Notification: Performance of setup shared object (initialization): time 0.0001053/0.463, allocations: 336 kB / 0.6596 GB, free: 2.48 MB / 0.4981 GB Notification: Performance of preBalanceInitialSystem (initialization): time 3.923e-05/0.463, allocations: 16 kB / 0.6596 GB, free: 2.465 MB / 0.4981 GB Notification: Performance of partitionIndependentBlocks (initialization): time 6.345e-05/0.4631, allocations: 55.36 kB / 0.6596 GB, free: 2.398 MB / 0.4981 GB Notification: Performance of analyzeInitialSystem (initialization): time 9.513e-05/0.4632, allocations: 75.02 kB / 0.6597 GB, free: 2.316 MB / 0.4981 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.923e-06/0.4632, allocations: 0 / 0.6597 GB, free: 2.316 MB / 0.4981 GB Notification: Performance of matching and sorting (n=10) (initialization): time 0.000237/0.4635, allocations: 147.1 kB / 0.6599 GB, free: 2.16 MB / 0.4981 GB Notification: Performance of prepare postOptimizeDAE: time 1.852e-05/0.4635, allocations: 7.938 kB / 0.6599 GB, free: 2.152 MB / 0.4981 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.021e-06/0.4635, allocations: 0.9375 kB / 0.6599 GB, free: 2.152 MB / 0.4981 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.0002025/0.4637, allocations: 45.64 kB / 0.6599 GB, free: 2.102 MB / 0.4981 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 6.054e-05/0.4638, allocations: 8 kB / 0.6599 GB, free: 2.094 MB / 0.4981 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001779/0.4656, allocations: 2.756 MB / 0.6626 GB, free: 15.06 MB / 0.5137 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 6.986e-05/0.4657, allocations: 11.84 kB / 0.6626 GB, free: 15.05 MB / 0.5137 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 8.966e-06/0.4657, allocations: 4.156 kB / 0.6626 GB, free: 15.04 MB / 0.5137 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.000107/0.4658, allocations: 136.7 kB / 0.6628 GB, free: 14.9 MB / 0.5137 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 5.705e-05/0.4658, allocations: 23.75 kB / 0.6628 GB, free: 14.88 MB / 0.5137 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0002739/0.4661, allocations: 142.4 kB / 0.6629 GB, free: 14.73 MB / 0.5137 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.757e-06/0.4661, allocations: 3.984 kB / 0.6629 GB, free: 14.72 MB / 0.5137 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.344e-06/0.4661, allocations: 4 kB / 0.6629 GB, free: 14.72 MB / 0.5137 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.897e-06/0.4662, allocations: 0 / 0.6629 GB, free: 14.72 MB / 0.5137 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0004716/0.4666, allocations: 0.497 MB / 0.6634 GB, free: 14.15 MB / 0.5137 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.477e-06/0.4666, allocations: 7.875 kB / 0.6634 GB, free: 14.14 MB / 0.5137 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 1.933e-05/0.4667, allocations: 12.67 kB / 0.6634 GB, free: 14.13 MB / 0.5137 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.0001168/0.4668, allocations: 37.61 kB / 0.6635 GB, free: 14.09 MB / 0.5137 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.207e-05/0.4668, allocations: 7.984 kB / 0.6635 GB, free: 14.08 MB / 0.5137 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001492/0.4683, allocations: 2.754 MB / 0.6662 GB, free: 11.05 MB / 0.5137 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.208e-06/0.4683, allocations: 4.656 kB / 0.6662 GB, free: 11.05 MB / 0.5137 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.000298/0.4686, allocations: 325.9 kB / 0.6665 GB, free: 10.7 MB / 0.5137 GB Notification: Performance of postOpt removeConstants (simulation): time 5.753e-05/0.4687, allocations: 92.95 kB / 0.6666 GB, free: 10.59 MB / 0.5137 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.316e-05/0.4687, allocations: 0.6875 kB / 0.6666 GB, free: 10.59 MB / 0.5137 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001187/0.4689, allocations: 4 kB / 0.6666 GB, free: 10.59 MB / 0.5137 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.113e-05/0.4689, allocations: 15.98 kB / 0.6666 GB, free: 10.57 MB / 0.5137 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 6.372e-06/0.4689, allocations: 4 kB / 0.6666 GB, free: 10.57 MB / 0.5137 GB Notification: Performance of sorting global known variables: time 0.0001366/0.4691, allocations: 172.5 kB / 0.6667 GB, free: 10.39 MB / 0.5137 GB Notification: Performance of sort global known variables: time 1.3e-07/0.4691, allocations: 0 / 0.6667 GB, free: 10.39 MB / 0.5137 GB Notification: Performance of remove unused functions: time 0.00039/0.4695, allocations: 40 kB / 0.6668 GB, free: 10.36 MB / 0.5137 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.0002212/0.4697, allocations: 165.6 kB / 0.6669 GB, free: 10.2 MB / 0.5137 GB Notification: Performance of simCode: created initialization part: time 0.0004029/0.4701, allocations: 286.8 kB / 0.6672 GB, free: 9.891 MB / 0.5137 GB Notification: Performance of simCode: created event and clocks part: time 2.765e-06/0.4701, allocations: 0 / 0.6672 GB, free: 9.891 MB / 0.5137 GB Notification: Performance of simCode: created simulation system equations: time 0.0002277/0.4703, allocations: 249.3 kB / 0.6675 GB, free: 9.621 MB / 0.5137 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0005993/0.471, allocations: 61.66 kB / 0.6675 GB, free: 9.57 MB / 0.5137 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0007267/0.4717, allocations: 462.7 kB / 0.668 GB, free: 9.098 MB / 0.5137 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002561/0.472, allocations: 0.7242 MB / 0.6687 GB, free: 8.348 MB / 0.5137 GB Notification: Performance of simCode: alias equations: time 5.798e-05/0.472, allocations: 18.64 kB / 0.6687 GB, free: 8.328 MB / 0.5137 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 1.954e-05/0.472, allocations: 11.44 kB / 0.6687 GB, free: 8.316 MB / 0.5137 GB Notification: Performance of SimCode: time 6.71e-07/0.4721, allocations: 0 / 0.6687 GB, free: 8.316 MB / 0.5137 GB Notification: Performance of Templates: time 0.006566/0.4786, allocations: 3.148 MB / 0.6718 GB, free: 5.285 MB / 0.5137 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 -s cvode -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