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/package.mo", uses=false) Using package ThermofluidStream with version 1.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ThermofluidStream 1.1.0/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: "" <> buildModelFMU(ThermofluidStream.Boundaries.Tests.SourceSink,fileNamePrefix="ThermofluidStream_ThermofluidStream_Boundaries_Tests_SourceSink",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(ThermofluidStream.Boundaries.Tests.SourceSink,fileNamePrefix="ThermofluidStream_ThermofluidStream_Boundaries_Tests_SourceSink",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.005857/0.005857, allocations: 96.48 kB / 15.73 MB, free: 6.062 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.001505/0.001505, allocations: 197.9 kB / 16.68 MB, free: 5.984 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.413/1.413, allocations: 222.9 MB / 240.4 MB, free: 4.316 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ThermofluidStream 1.1.0/package.mo): time 0.6931/0.6931, allocations: 89.46 MB / 380 MB, free: 10.97 MB / 318.1 MB Notification: Performance of FrontEnd - loaded program: time 0.002221/0.002221, allocations: 79.88 kB / 0.5139 GB, free: 11.77 MB / 398.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1287/0.1309, allocations: 67.3 MB / 0.5796 GB, free: 8.395 MB / 462.1 MB Notification: Performance of NFInst.instantiate(ThermofluidStream.Boundaries.Tests.SourceSink): time 0.416/0.5469, allocations: 140.4 MB / 0.7167 GB, free: 96 kB / 0.545 GB Notification: Performance of NFInst.instExpressions: time 0.003972/0.5509, allocations: 3.258 MB / 0.7199 GB, free: 12.83 MB / 0.5606 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001992/0.5512, allocations: 4 kB / 0.7199 GB, free: 12.82 MB / 0.5606 GB Notification: Performance of NFTyping.typeComponents: time 0.0005691/0.5518, allocations: 131.2 kB / 0.72 GB, free: 12.7 MB / 0.5606 GB Notification: Performance of NFTyping.typeBindings: time 0.0004684/0.5523, allocations: 139.1 kB / 0.7202 GB, free: 12.56 MB / 0.5606 GB Notification: Performance of NFTyping.typeClassSections: time 0.0005141/0.5528, allocations: 199.2 kB / 0.7204 GB, free: 12.36 MB / 0.5606 GB Notification: Performance of NFFlatten.flatten: time 0.0003914/0.5532, allocations: 271.2 kB / 0.7206 GB, free: 12.1 MB / 0.5606 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0001481/0.5534, allocations: 54.16 kB / 0.7207 GB, free: 12.04 MB / 0.5606 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0004237/0.5538, allocations: 164 kB / 0.7208 GB, free: 11.88 MB / 0.5606 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0001675/0.554, allocations: 95.62 kB / 0.7209 GB, free: 11.79 MB / 0.5606 GB Notification: Performance of NFPackage.collectConstants: time 2.354e-05/0.554, allocations: 12 kB / 0.7209 GB, free: 11.78 MB / 0.5606 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0005016/0.5545, allocations: 259.5 kB / 0.7212 GB, free: 11.52 MB / 0.5606 GB Notification: Performance of NFScalarize.scalarize: time 3.683e-05/0.5546, allocations: 31.86 kB / 0.7212 GB, free: 11.49 MB / 0.5606 GB Notification: Performance of NFVerifyModel.verify: time 9.091e-05/0.5547, allocations: 79.61 kB / 0.7213 GB, free: 11.41 MB / 0.5606 GB Notification: Performance of NFConvertDAE.convert: time 0.000395/0.5551, allocations: 238.9 kB / 0.7215 GB, free: 11.19 MB / 0.5606 GB Notification: Performance of FrontEnd - DAE generated: time 4.268e-06/0.5551, allocations: 1.5 kB / 0.7215 GB, free: 11.19 MB / 0.5606 GB Notification: Performance of FrontEnd: time 1.382e-06/0.5551, allocations: 4 kB / 0.7215 GB, free: 11.18 MB / 0.5606 GB Notification: Performance of Transformations before backend: time 5.3e-06/0.5551, allocations: 0 / 0.7215 GB, free: 11.18 MB / 0.5606 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.0006604/0.5558, allocations: 482.7 kB / 0.722 GB, free: 10.66 MB / 0.5606 GB Notification: Performance of prepare preOptimizeDAE: time 3.901e-05/0.5558, allocations: 12.03 kB / 0.722 GB, free: 10.65 MB / 0.5606 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 4.177e-05/0.5559, allocations: 38.75 kB / 0.722 GB, free: 10.6 MB / 0.5606 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.95e-05/0.5559, allocations: 24.84 kB / 0.7221 GB, free: 10.58 MB / 0.5606 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002398/0.5562, allocations: 232 kB / 0.7223 GB, free: 10.31 MB / 0.5606 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.789e-05/0.5562, allocations: 12.61 kB / 0.7223 GB, free: 10.3 MB / 0.5606 GB Notification: Performance of preOpt expandDerOperator (simulation): time 2.964e-05/0.5562, allocations: 8.562 kB / 0.7223 GB, free: 10.29 MB / 0.5606 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002472/0.5565, allocations: 158.6 kB / 0.7225 GB, free: 10.12 MB / 0.5606 GB Notification: Performance of preOpt findStateOrder (simulation): time 9.738e-06/0.5565, allocations: 4 kB / 0.7225 GB, free: 10.12 MB / 0.5606 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.337e-05/0.5565, allocations: 4 kB / 0.7225 GB, free: 10.11 MB / 0.5606 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.103e-06/0.5565, allocations: 4 kB / 0.7225 GB, free: 10.11 MB / 0.5606 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001355/0.5567, allocations: 71.91 kB / 0.7225 GB, free: 10.04 MB / 0.5606 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0008381/0.5575, allocations: 0.7038 MB / 0.7232 GB, free: 9.273 MB / 0.5606 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0001414/0.5577, allocations: 85.11 kB / 0.7233 GB, free: 9.172 MB / 0.5606 GB Notification: Performance of preOpt resolveLoops (simulation): time 6.384e-05/0.5577, allocations: 45.67 kB / 0.7233 GB, free: 9.121 MB / 0.5606 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0001638/0.5579, allocations: 162.2 kB / 0.7235 GB, free: 8.926 MB / 0.5606 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.78e-05/0.5579, allocations: 34.55 kB / 0.7235 GB, free: 8.883 MB / 0.5606 GB Notification: Performance of pre-optimization done (n=8): time 1.082e-06/0.5579, allocations: 0 / 0.7235 GB, free: 8.883 MB / 0.5606 GB Notification: Performance of matching and sorting (n=8): time 0.000682/0.5586, allocations: 325.7 kB / 0.7238 GB, free: 8.516 MB / 0.5606 GB Notification: Performance of inlineWhenForInitialization (initialization): time 5.698e-05/0.5587, allocations: 85.09 kB / 0.7239 GB, free: 8.414 MB / 0.5606 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002254/0.5589, allocations: 217 kB / 0.7241 GB, free: 8.191 MB / 0.5606 GB Notification: Performance of collectPreVariables (initialization): time 2.797e-05/0.559, allocations: 29.7 kB / 0.7242 GB, free: 8.156 MB / 0.5606 GB Notification: Performance of collectInitialEqns (initialization): time 7.95e-05/0.5591, allocations: 116.1 kB / 0.7243 GB, free: 8.039 MB / 0.5606 GB Notification: Performance of collectInitialBindings (initialization): time 3.678e-05/0.5591, allocations: 35.73 kB / 0.7243 GB, free: 8.004 MB / 0.5606 GB Notification: Performance of simplifyInitialFunctions (initialization): time 4.357e-05/0.5592, allocations: 29.66 kB / 0.7243 GB, free: 7.969 MB / 0.5606 GB Notification: Performance of setup shared object (initialization): time 0.0001621/0.5593, allocations: 330.8 kB / 0.7246 GB, free: 7.637 MB / 0.5606 GB Notification: Performance of preBalanceInitialSystem (initialization): time 4.042e-05/0.5594, allocations: 12 kB / 0.7247 GB, free: 7.625 MB / 0.5606 GB Notification: Performance of partitionIndependentBlocks (initialization): time 6.467e-05/0.5594, allocations: 55.41 kB / 0.7247 GB, free: 7.559 MB / 0.5606 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001118/0.5596, allocations: 75.36 kB / 0.7248 GB, free: 7.473 MB / 0.5606 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.974e-06/0.5596, allocations: 0 / 0.7248 GB, free: 7.473 MB / 0.5606 GB Notification: Performance of matching and sorting (n=10) (initialization): time 0.0002594/0.5598, allocations: 147.1 kB / 0.7249 GB, free: 7.316 MB / 0.5606 GB Notification: Performance of prepare postOptimizeDAE: time 1.612e-05/0.5598, allocations: 7.938 kB / 0.7249 GB, free: 7.309 MB / 0.5606 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.54e-06/0.5599, allocations: 0 / 0.7249 GB, free: 7.309 MB / 0.5606 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.0002022/0.5601, allocations: 45.77 kB / 0.725 GB, free: 7.258 MB / 0.5606 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 6.096e-05/0.5601, allocations: 11.98 kB / 0.725 GB, free: 7.246 MB / 0.5606 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002139/0.5623, allocations: 2.768 MB / 0.7277 GB, free: 4.203 MB / 0.5606 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 6.378e-05/0.5624, allocations: 11.89 kB / 0.7277 GB, free: 4.191 MB / 0.5606 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 8.466e-06/0.5624, allocations: 0 / 0.7277 GB, free: 4.191 MB / 0.5606 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.0001188/0.5625, allocations: 130.5 kB / 0.7278 GB, free: 4.055 MB / 0.5606 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 5.653e-05/0.5626, allocations: 23.8 kB / 0.7278 GB, free: 4.031 MB / 0.5606 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0002839/0.5628, allocations: 150.3 kB / 0.728 GB, free: 3.863 MB / 0.5606 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.974e-06/0.5629, allocations: 0 / 0.728 GB, free: 3.863 MB / 0.5606 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.415e-06/0.5629, allocations: 0 / 0.728 GB, free: 3.863 MB / 0.5606 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.615e-06/0.5629, allocations: 0 / 0.728 GB, free: 3.863 MB / 0.5606 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0005252/0.5634, allocations: 0.5048 MB / 0.7285 GB, free: 3.289 MB / 0.5606 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.054e-06/0.5634, allocations: 0 / 0.7285 GB, free: 3.289 MB / 0.5606 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 1.917e-05/0.5634, allocations: 4.875 kB / 0.7285 GB, free: 3.285 MB / 0.5606 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.0001324/0.5636, allocations: 41.69 kB / 0.7285 GB, free: 3.238 MB / 0.5606 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.258e-05/0.5636, allocations: 8.125 kB / 0.7285 GB, free: 3.23 MB / 0.5606 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.002059/0.5657, allocations: 2.763 MB / 0.7312 GB, free: 196 kB / 0.5606 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.347e-06/0.5657, allocations: 7.969 kB / 0.7312 GB, free: 188 kB / 0.5606 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0003518/0.566, allocations: 322 kB / 0.7315 GB, free: 15.84 MB / 0.5762 GB Notification: Performance of postOpt removeConstants (simulation): time 6.618e-05/0.5661, allocations: 97.05 kB / 0.7316 GB, free: 15.73 MB / 0.5762 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.419e-05/0.5661, allocations: 6.922 kB / 0.7316 GB, free: 15.72 MB / 0.5762 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001104/0.5663, allocations: 0 / 0.7316 GB, free: 15.72 MB / 0.5762 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 2.997e-05/0.5663, allocations: 11.94 kB / 0.7317 GB, free: 15.71 MB / 0.5762 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 8.095e-06/0.5663, allocations: 7.984 kB / 0.7317 GB, free: 15.7 MB / 0.5762 GB Notification: Performance of sorting global known variables: time 0.0001613/0.5665, allocations: 168.4 kB / 0.7318 GB, free: 15.54 MB / 0.5762 GB Notification: Performance of sort global known variables: time 1.3e-07/0.5665, allocations: 64 / 0.7318 GB, free: 15.54 MB / 0.5762 GB Notification: Performance of remove unused functions: time 0.0003605/0.5669, allocations: 55.92 kB / 0.7319 GB, free: 15.48 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.0007664/0.5676, allocations: 0.9004 MB / 0.7328 GB, free: 14.54 MB / 0.5762 GB Notification: Performance of simCode: created initialization part: time 0.0004277/0.5681, allocations: 285.2 kB / 0.733 GB, free: 14.24 MB / 0.5762 GB Notification: Performance of simCode: created event and clocks part: time 2.324e-06/0.5681, allocations: 0 / 0.733 GB, free: 14.24 MB / 0.5762 GB Notification: Performance of simCode: created simulation system equations: time 0.0002566/0.5683, allocations: 257.4 kB / 0.7333 GB, free: 13.96 MB / 0.5762 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0005966/0.5689, allocations: 58.89 kB / 0.7333 GB, free: 13.91 MB / 0.5762 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002594/0.5715, allocations: 2.248 MB / 0.7355 GB, free: 11.54 MB / 0.5762 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003712/0.5719, allocations: 0.7281 MB / 0.7362 GB, free: 10.78 MB / 0.5762 GB Notification: Performance of simCode: alias equations: time 5.677e-05/0.572, allocations: 17.48 kB / 0.7363 GB, free: 10.76 MB / 0.5762 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 6.43e-05/0.5721, allocations: 51.36 kB / 0.7363 GB, free: 10.71 MB / 0.5762 GB Notification: Performance of SimCode: time 2.6e-07/0.5721, allocations: 0 / 0.7363 GB, free: 10.71 MB / 0.5762 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.03888/0.611, allocations: 5.497 MB / 0.7417 GB, free: 5.344 MB / 0.5762 GB Notification: Performance of buildModelFMU: Generate platform static: time 10.04/10.66, allocations: 3.984 kB / 0.7417 GB, free: 5.34 MB / 0.5762 GB (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 & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=ThermofluidStream_ThermofluidStream.Boundaries.Tests.SourceSink_res.mat --tempDir=temp_ThermofluidStream_ThermofluidStream_Boundaries_Tests_SourceSink_fmu --startTime=0 --stopTime=1 --timeout=1200 --tolerance=1e-06 ThermofluidStream_ThermofluidStream_Boundaries_Tests_SourceSink.fmu > 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