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.001152/0.001152, allocations: 105.6 kB / 16.37 MB, free: 6.477 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.001111/0.001111, allocations: 193.8 kB / 17.31 MB, free: 5.824 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.319/1.319, allocations: 222.9 MB / 241 MB, free: 15.2 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ThermofluidStream 1.1.0-main/package.mo): time 0.6919/0.6919, allocations: 89.5 MB / 380.7 MB, free: 8.609 MB / 302.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001553/0.001553, allocations: 72.17 kB / 459.7 MB, free: 10.59 MB / 382.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1152/0.1168, allocations: 67.31 MB / 0.5146 GB, free: 7.195 MB / 446.1 MB Notification: Performance of NFInst.instantiate(ThermofluidStream.Boundaries.Tests.SourceSink): time 0.3233/0.4401, allocations: 140.4 MB / 0.6517 GB, free: 10.86 MB / 0.4981 GB Notification: Performance of NFInst.instExpressions: time 0.003248/0.4433, allocations: 3.255 MB / 0.6549 GB, free: 7.605 MB / 0.4981 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001167/0.4435, allocations: 4 kB / 0.6549 GB, free: 7.602 MB / 0.4981 GB Notification: Performance of NFTyping.typeComponents: time 0.0004487/0.4439, allocations: 130.3 kB / 0.655 GB, free: 7.477 MB / 0.4981 GB Notification: Performance of NFTyping.typeBindings: time 0.0003622/0.4444, allocations: 145.7 kB / 0.6552 GB, free: 7.336 MB / 0.4981 GB Notification: Performance of NFTyping.typeClassSections: time 0.0004074/0.4448, allocations: 195.3 kB / 0.6554 GB, free: 7.145 MB / 0.4981 GB Notification: Performance of NFFlatten.flatten: time 0.0002874/0.4451, allocations: 266.8 kB / 0.6556 GB, free: 6.883 MB / 0.4981 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0001482/0.4452, allocations: 56.39 kB / 0.6557 GB, free: 6.832 MB / 0.4981 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0003768/0.4456, allocations: 163.3 kB / 0.6558 GB, free: 6.672 MB / 0.4981 GB Notification: Performance of NFSimplifyModel.simplify: time 0.000157/0.4458, allocations: 99.61 kB / 0.6559 GB, free: 6.574 MB / 0.4981 GB Notification: Performance of NFPackage.collectConstants: time 1.958e-05/0.4458, allocations: 8 kB / 0.6559 GB, free: 6.566 MB / 0.4981 GB Notification: Performance of NFFlatten.collectFunctions: time 0.00043/0.4463, allocations: 264.1 kB / 0.6562 GB, free: 6.309 MB / 0.4981 GB Notification: Performance of NFScalarize.scalarize: time 3.951e-05/0.4463, allocations: 27.86 kB / 0.6562 GB, free: 6.281 MB / 0.4981 GB Notification: Performance of NFVerifyModel.verify: time 7.296e-05/0.4464, allocations: 83.55 kB / 0.6563 GB, free: 6.199 MB / 0.4981 GB Notification: Performance of NFConvertDAE.convert: time 0.0003453/0.4467, allocations: 241.1 kB / 0.6565 GB, free: 5.969 MB / 0.4981 GB Notification: Performance of FrontEnd - DAE generated: time 3.837e-06/0.4467, allocations: 0 / 0.6565 GB, free: 5.969 MB / 0.4981 GB Notification: Performance of FrontEnd: time 1.312e-06/0.4468, allocations: 0 / 0.6565 GB, free: 5.969 MB / 0.4981 GB Notification: Performance of Transformations before backend: time 8.446e-06/0.4468, allocations: 0.6562 kB / 0.6565 GB, free: 5.969 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.000619/0.4474, allocations: 471.2 kB / 0.657 GB, free: 5.461 MB / 0.4981 GB Notification: Performance of prepare preOptimizeDAE: time 3.106e-05/0.4474, allocations: 8.031 kB / 0.657 GB, free: 5.453 MB / 0.4981 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 4.225e-05/0.4475, allocations: 24.66 kB / 0.657 GB, free: 5.43 MB / 0.4981 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002104/0.4477, allocations: 224 kB / 0.6572 GB, free: 5.172 MB / 0.4981 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.308e-05/0.4477, allocations: 13.34 kB / 0.6572 GB, free: 5.16 MB / 0.4981 GB Notification: Performance of preOpt expandDerOperator (simulation): time 2.798e-05/0.4478, allocations: 12.38 kB / 0.6572 GB, free: 5.148 MB / 0.4981 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002238/0.448, allocations: 159.5 kB / 0.6574 GB, free: 4.977 MB / 0.4981 GB Notification: Performance of preOpt findStateOrder (simulation): time 8.276e-06/0.448, allocations: 0 / 0.6574 GB, free: 4.977 MB / 0.4981 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.701e-05/0.448, allocations: 4 kB / 0.6574 GB, free: 4.973 MB / 0.4981 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.831e-06/0.448, allocations: 8.844 kB / 0.6574 GB, free: 4.965 MB / 0.4981 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001238/0.4482, allocations: 67.91 kB / 0.6575 GB, free: 4.898 MB / 0.4981 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.000743/0.4489, allocations: 0.7035 MB / 0.6582 GB, free: 4.133 MB / 0.4981 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0001248/0.4491, allocations: 88.2 kB / 0.6582 GB, free: 4.031 MB / 0.4981 GB Notification: Performance of preOpt resolveLoops (simulation): time 5.426e-05/0.4491, allocations: 29.72 kB / 0.6583 GB, free: 3.996 MB / 0.4981 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0001349/0.4493, allocations: 170.3 kB / 0.6584 GB, free: 3.793 MB / 0.4981 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.274e-05/0.4493, allocations: 34.5 kB / 0.6585 GB, free: 3.75 MB / 0.4981 GB Notification: Performance of pre-optimization done (n=8): time 1.282e-06/0.4493, allocations: 0 / 0.6585 GB, free: 3.75 MB / 0.4981 GB Notification: Performance of matching and sorting (n=8): time 0.0006457/0.45, allocations: 325.3 kB / 0.6588 GB, free: 3.383 MB / 0.4981 GB Notification: Performance of inlineWhenForInitialization (initialization): time 4.308e-05/0.45, allocations: 77.11 kB / 0.6588 GB, free: 3.289 MB / 0.4981 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001975/0.4502, allocations: 221 kB / 0.6591 GB, free: 3.059 MB / 0.4981 GB Notification: Performance of collectPreVariables (initialization): time 1.658e-05/0.4502, allocations: 29.7 kB / 0.6591 GB, free: 3.023 MB / 0.4981 GB Notification: Performance of collectInitialEqns (initialization): time 7.113e-05/0.4503, allocations: 124 kB / 0.6592 GB, free: 2.898 MB / 0.4981 GB Notification: Performance of collectInitialBindings (initialization): time 2.884e-05/0.4503, allocations: 28.39 kB / 0.6592 GB, free: 2.871 MB / 0.4981 GB Notification: Performance of simplifyInitialFunctions (initialization): time 3.936e-05/0.4504, allocations: 21.72 kB / 0.6592 GB, free: 2.844 MB / 0.4981 GB Notification: Performance of setup shared object (initialization): time 0.0001162/0.4505, allocations: 334.8 kB / 0.6596 GB, free: 2.508 MB / 0.4981 GB Notification: Performance of preBalanceInitialSystem (initialization): time 3.903e-05/0.4506, allocations: 16 kB / 0.6596 GB, free: 2.492 MB / 0.4981 GB Notification: Performance of partitionIndependentBlocks (initialization): time 5.521e-05/0.4506, allocations: 51.92 kB / 0.6596 GB, free: 2.43 MB / 0.4981 GB Notification: Performance of analyzeInitialSystem (initialization): time 9.972e-05/0.4507, allocations: 72.5 kB / 0.6597 GB, free: 2.348 MB / 0.4981 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.196e-06/0.4507, allocations: 4 kB / 0.6597 GB, free: 2.344 MB / 0.4981 GB Notification: Performance of matching and sorting (n=10) (initialization): time 0.0002463/0.451, allocations: 140 kB / 0.6598 GB, free: 2.195 MB / 0.4981 GB Notification: Performance of prepare postOptimizeDAE: time 1.565e-05/0.451, allocations: 12.77 kB / 0.6599 GB, free: 2.184 MB / 0.4981 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.46e-06/0.451, allocations: 4 kB / 0.6599 GB, free: 2.18 MB / 0.4981 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.0001873/0.4512, allocations: 45.7 kB / 0.6599 GB, free: 2.129 MB / 0.4981 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 5.891e-05/0.4513, allocations: 8 kB / 0.6599 GB, free: 2.121 MB / 0.4981 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001826/0.4531, allocations: 2.763 MB / 0.6626 GB, free: 15.09 MB / 0.5137 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 6.631e-05/0.4532, allocations: 11.88 kB / 0.6626 GB, free: 15.07 MB / 0.5137 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.104e-05/0.4532, allocations: 4.812 kB / 0.6626 GB, free: 15.07 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.0001028/0.4533, allocations: 133.9 kB / 0.6627 GB, free: 14.93 MB / 0.5137 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 5.648e-05/0.4534, allocations: 19.75 kB / 0.6628 GB, free: 14.91 MB / 0.5137 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0002772/0.4537, allocations: 144.3 kB / 0.6629 GB, free: 14.75 MB / 0.5137 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.224e-06/0.4537, allocations: 3.938 kB / 0.6629 GB, free: 14.75 MB / 0.5137 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.535e-06/0.4537, allocations: 4 kB / 0.6629 GB, free: 14.75 MB / 0.5137 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.757e-06/0.4537, allocations: 3.984 kB / 0.6629 GB, free: 14.74 MB / 0.5137 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0004725/0.4542, allocations: 0.4902 MB / 0.6634 GB, free: 14.18 MB / 0.5137 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 7.163e-06/0.4542, allocations: 8.562 kB / 0.6634 GB, free: 14.18 MB / 0.5137 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 1.679e-05/0.4542, allocations: 3.938 kB / 0.6634 GB, free: 14.17 MB / 0.5137 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.0001245/0.4543, allocations: 53.72 kB / 0.6635 GB, free: 14.11 MB / 0.5137 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.204e-05/0.4544, allocations: 3.984 kB / 0.6635 GB, free: 14.11 MB / 0.5137 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001723/0.4561, allocations: 2.759 MB / 0.6662 GB, free: 11.07 MB / 0.5137 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.573e-06/0.4561, allocations: 0 / 0.6662 GB, free: 11.07 MB / 0.5137 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002976/0.4564, allocations: 326.7 kB / 0.6665 GB, free: 10.73 MB / 0.5137 GB Notification: Performance of postOpt removeConstants (simulation): time 6.145e-05/0.4565, allocations: 92.95 kB / 0.6666 GB, free: 10.62 MB / 0.5137 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.604e-05/0.4565, allocations: 4 kB / 0.6666 GB, free: 10.61 MB / 0.5137 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001216/0.4566, allocations: 0.9375 kB / 0.6666 GB, free: 10.61 MB / 0.5137 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 2.622e-05/0.4567, allocations: 15.92 kB / 0.6666 GB, free: 10.6 MB / 0.5137 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 7.224e-06/0.4567, allocations: 4.562 kB / 0.6666 GB, free: 10.59 MB / 0.5137 GB Notification: Performance of sorting global known variables: time 0.0001468/0.4568, allocations: 164.5 kB / 0.6667 GB, free: 10.43 MB / 0.5137 GB Notification: Performance of sort global known variables: time 1.4e-07/0.4569, allocations: 4.062 kB / 0.6667 GB, free: 10.43 MB / 0.5137 GB Notification: Performance of remove unused functions: time 0.000372/0.4572, allocations: 44 kB / 0.6668 GB, free: 10.38 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.0002237/0.4575, allocations: 154.2 kB / 0.6669 GB, free: 10.23 MB / 0.5137 GB Notification: Performance of simCode: created initialization part: time 0.0004/0.4579, allocations: 294.8 kB / 0.6672 GB, free: 9.918 MB / 0.5137 GB Notification: Performance of simCode: created event and clocks part: time 2.365e-06/0.4579, allocations: 0 / 0.6672 GB, free: 9.918 MB / 0.5137 GB Notification: Performance of simCode: created simulation system equations: time 0.0002368/0.4581, allocations: 253.3 kB / 0.6675 GB, free: 9.645 MB / 0.5137 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0005842/0.4587, allocations: 64.72 kB / 0.6675 GB, free: 9.594 MB / 0.5137 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0007492/0.4595, allocations: 464.6 kB / 0.668 GB, free: 9.117 MB / 0.5137 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002699/0.4598, allocations: 0.7203 MB / 0.6687 GB, free: 8.371 MB / 0.5137 GB Notification: Performance of simCode: alias equations: time 6.024e-05/0.4598, allocations: 18.53 kB / 0.6687 GB, free: 8.352 MB / 0.5137 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 2.157e-05/0.4599, allocations: 15.44 kB / 0.6687 GB, free: 8.336 MB / 0.5137 GB Notification: Performance of SimCode: time 4.1e-07/0.4599, allocations: 0 / 0.6687 GB, free: 8.336 MB / 0.5137 GB Notification: Performance of Templates: time 0.006418/0.4663, allocations: 3.149 MB / 0.6718 GB, free: 5.316 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 gbode -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