Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr ThermofluidStream_ThermofluidStream.Boundaries.Tests.TerminalSourceSink.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.TerminalSourceSink,tolerance=1e-06,outputFormat="mat",numberOfIntervals=2000,variableFilter="Time|pulse.T_start|pulse.count|terminalSource.p",fileNamePrefix="ThermofluidStream_ThermofluidStream.Boundaries.Tests.TerminalSourceSink") translateModel(ThermofluidStream.Boundaries.Tests.TerminalSourceSink,tolerance=1e-06,outputFormat="mat",numberOfIntervals=2000,variableFilter="Time|pulse.T_start|pulse.count|terminalSource.p",fileNamePrefix="ThermofluidStream_ThermofluidStream.Boundaries.Tests.TerminalSourceSink") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.005379/0.005379, allocations: 99.56 kB / 15.73 MB, free: 6.059 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.001161/0.001162, allocations: 196.9 kB / 16.67 MB, free: 5.969 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.331/1.331, allocations: 222.9 MB / 240.4 MB, free: 15.09 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ThermofluidStream 1.1.0-main/package.mo): time 0.7839/0.7839, allocations: 91.19 MB / 381.7 MB, free: 7.484 MB / 302.1 MB Notification: Performance of FrontEnd - loaded program: time 0.00149/0.00149, allocations: 79.81 kB / 0.5168 GB, free: 4.105 MB / 446.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.4139/0.4154, allocations: 67.68 MB / 0.5829 GB, free: 13.92 MB / 446.1 MB Notification: Performance of NFInst.instantiate(ThermofluidStream.Boundaries.Tests.TerminalSourceSink): time 0.1587/0.5741, allocations: 140.5 MB / 0.7201 GB, free: 1.156 MB / 0.5606 GB Notification: Performance of NFInst.instExpressions: time 0.002278/0.5764, allocations: 2.103 MB / 0.7222 GB, free: 15.04 MB / 0.5762 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001643/0.5766, allocations: 11.94 kB / 0.7222 GB, free: 15.03 MB / 0.5762 GB Notification: Performance of NFTyping.typeComponents: time 0.0004673/0.5771, allocations: 119.2 kB / 0.7223 GB, free: 14.91 MB / 0.5762 GB Notification: Performance of NFTyping.typeBindings: time 0.0003125/0.5775, allocations: 139.1 kB / 0.7224 GB, free: 14.78 MB / 0.5762 GB Notification: Performance of NFTyping.typeClassSections: time 0.0003584/0.5779, allocations: 167.4 kB / 0.7226 GB, free: 14.61 MB / 0.5762 GB Notification: Performance of NFFlatten.flatten: time 0.0003317/0.5782, allocations: 294.7 kB / 0.7229 GB, free: 14.32 MB / 0.5762 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0002269/0.5784, allocations: 75.55 kB / 0.7229 GB, free: 14.25 MB / 0.5762 GB Notification: Performance of NFEvalConstants.evaluate: time 0.000408/0.5788, allocations: 191.2 kB / 0.7231 GB, free: 14.06 MB / 0.5762 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0002334/0.5791, allocations: 131.4 kB / 0.7232 GB, free: 13.93 MB / 0.5762 GB Notification: Performance of NFPackage.collectConstants: time 2.61e-05/0.5791, allocations: 20 kB / 0.7233 GB, free: 13.91 MB / 0.5762 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0003889/0.5795, allocations: 203.6 kB / 0.7235 GB, free: 13.71 MB / 0.5762 GB Notification: Performance of NFScalarize.scalarize: time 6.518e-05/0.5796, allocations: 35.8 kB / 0.7235 GB, free: 13.68 MB / 0.5762 GB Notification: Performance of NFVerifyModel.verify: time 0.0001026/0.5797, allocations: 103.4 kB / 0.7236 GB, free: 13.58 MB / 0.5762 GB Notification: Performance of NFConvertDAE.convert: time 0.0004416/0.5802, allocations: 292.2 kB / 0.7239 GB, free: 13.3 MB / 0.5762 GB Notification: Performance of FrontEnd - DAE generated: time 4.318e-06/0.5802, allocations: 3.938 kB / 0.7239 GB, free: 13.3 MB / 0.5762 GB Notification: Performance of FrontEnd: time 1.934e-06/0.5802, allocations: 0 / 0.7239 GB, free: 13.3 MB / 0.5762 GB Notification: Performance of Transformations before backend: time 1.191e-05/0.5802, allocations: 0 / 0.7239 GB, free: 13.3 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: 29 * Number of variables: 29 Notification: Performance of Generate backend data structure: time 0.001009/0.5812, allocations: 0.5778 MB / 0.7244 GB, free: 12.66 MB / 0.5762 GB Notification: Performance of prepare preOptimizeDAE: time 7.662e-05/0.5813, allocations: 11.97 kB / 0.7244 GB, free: 12.65 MB / 0.5762 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 5.859e-05/0.5814, allocations: 28.75 kB / 0.7245 GB, free: 12.62 MB / 0.5762 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004415/0.5818, allocations: 311.8 kB / 0.7248 GB, free: 12.28 MB / 0.5762 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.625e-05/0.5818, allocations: 8.375 kB / 0.7248 GB, free: 12.27 MB / 0.5762 GB Notification: Performance of preOpt expandDerOperator (simulation): time 3.654e-05/0.5819, allocations: 12.38 kB / 0.7248 GB, free: 12.26 MB / 0.5762 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003295/0.5822, allocations: 177.1 kB / 0.725 GB, free: 12.07 MB / 0.5762 GB Notification: Performance of preOpt findStateOrder (simulation): time 8.716e-06/0.5822, allocations: 4 kB / 0.725 GB, free: 12.07 MB / 0.5762 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.695e-05/0.5823, allocations: 4 kB / 0.725 GB, free: 12.06 MB / 0.5762 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 8.085e-06/0.5823, allocations: 4 kB / 0.725 GB, free: 12.06 MB / 0.5762 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002863/0.5826, allocations: 99.86 kB / 0.7251 GB, free: 11.96 MB / 0.5762 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.000951/0.5835, allocations: 0.8988 MB / 0.7259 GB, free: 10.96 MB / 0.5762 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0002913/0.5838, allocations: 82.53 kB / 0.726 GB, free: 10.88 MB / 0.5762 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001286/0.584, allocations: 48.95 kB / 0.7261 GB, free: 10.82 MB / 0.5762 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0001144/0.5841, allocations: 85.05 kB / 0.7261 GB, free: 10.72 MB / 0.5762 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002134/0.5843, allocations: 91.28 kB / 0.7262 GB, free: 10.62 MB / 0.5762 GB Notification: Performance of pre-optimization done (n=7): time 1.232e-06/0.5843, allocations: 0 / 0.7262 GB, free: 10.62 MB / 0.5762 GB Notification: Performance of matching and sorting (n=7): time 0.0005324/0.5849, allocations: 153.4 kB / 0.7264 GB, free: 10.46 MB / 0.5762 GB Notification: Performance of inlineWhenForInitialization (initialization): time 5.308e-05/0.5849, allocations: 59.39 kB / 0.7264 GB, free: 10.39 MB / 0.5762 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.000303/0.5852, allocations: 263 kB / 0.7267 GB, free: 10.12 MB / 0.5762 GB Notification: Performance of collectPreVariables (initialization): time 8.477e-05/0.5853, allocations: 25.7 kB / 0.7267 GB, free: 10.09 MB / 0.5762 GB Notification: Performance of collectInitialEqns (initialization): time 0.0001082/0.5854, allocations: 167.8 kB / 0.7269 GB, free: 9.926 MB / 0.5762 GB Notification: Performance of collectInitialBindings (initialization): time 2.394e-05/0.5855, allocations: 23.8 kB / 0.7269 GB, free: 9.902 MB / 0.5762 GB Notification: Performance of simplifyInitialFunctions (initialization): time 6.48e-05/0.5855, allocations: 37.66 kB / 0.7269 GB, free: 9.859 MB / 0.5762 GB Notification: Performance of setup shared object (initialization): time 0.0001091/0.5857, allocations: 334.8 kB / 0.7272 GB, free: 9.523 MB / 0.5762 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001389/0.5858, allocations: 43.97 kB / 0.7273 GB, free: 9.48 MB / 0.5762 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001585/0.586, allocations: 89.05 kB / 0.7274 GB, free: 9.375 MB / 0.5762 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002763/0.5862, allocations: 150.8 kB / 0.7275 GB, free: 9.203 MB / 0.5762 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.884e-06/0.5863, allocations: 0 / 0.7275 GB, free: 9.203 MB / 0.5762 GB Notification: Performance of matching and sorting (n=17) (initialization): time 0.0004005/0.5867, allocations: 207 kB / 0.7277 GB, free: 8.988 MB / 0.5762 GB Notification: Performance of prepare postOptimizeDAE: time 3.24e-05/0.5867, allocations: 37.86 kB / 0.7278 GB, free: 8.945 MB / 0.5762 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.039e-06/0.5867, allocations: 0 / 0.7278 GB, free: 8.945 MB / 0.5762 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.497e-05/0.5867, allocations: 7.938 kB / 0.7278 GB, free: 8.938 MB / 0.5762 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001571/0.5869, allocations: 35.91 kB / 0.7278 GB, free: 8.902 MB / 0.5762 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 8.356e-06/0.5869, allocations: 4 kB / 0.7278 GB, free: 8.898 MB / 0.5762 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001414/0.5871, allocations: 19.88 kB / 0.7278 GB, free: 8.879 MB / 0.5762 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.718e-05/0.5871, allocations: 12 kB / 0.7278 GB, free: 8.867 MB / 0.5762 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 6 * Number of states: 0 () * Number of discrete variables: 5 (pulse.count,$PRE.pulse.count,pulse.T_start,$PRE.pulse.T_start,$whenCondition1) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (16): * Single equations (assignments): 15 * Array equations: 0 * Algorithm blocks: 1 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.0001119/0.5872, allocations: 137.7 kB / 0.728 GB, free: 8.723 MB / 0.5762 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.824e-05/0.5872, allocations: 23.86 kB / 0.728 GB, free: 8.699 MB / 0.5762 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0004196/0.5877, allocations: 139.3 kB / 0.7281 GB, free: 8.555 MB / 0.5762 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.697e-06/0.5877, allocations: 3.984 kB / 0.7281 GB, free: 8.551 MB / 0.5762 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.619e-06/0.5877, allocations: 4 kB / 0.7281 GB, free: 8.547 MB / 0.5762 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.005e-06/0.5877, allocations: 0 / 0.7281 GB, free: 8.547 MB / 0.5762 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002674/0.588, allocations: 241.5 kB / 0.7284 GB, free: 8.262 MB / 0.5762 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 9.32e-07/0.588, allocations: 0 / 0.7284 GB, free: 8.262 MB / 0.5762 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001092/0.5881, allocations: 19.98 kB / 0.7284 GB, free: 8.242 MB / 0.5762 GB Notification: Performance of postOpt tearingSystem (simulation): time 2.003e-06/0.5881, allocations: 4 kB / 0.7284 GB, free: 8.238 MB / 0.5762 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.201e-05/0.5881, allocations: 3.938 kB / 0.7284 GB, free: 8.234 MB / 0.5762 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.663e-05/0.5881, allocations: 7.984 kB / 0.7284 GB, free: 8.227 MB / 0.5762 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 8.22e-07/0.5881, allocations: 0 / 0.7284 GB, free: 8.227 MB / 0.5762 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0004395/0.5886, allocations: 188.8 kB / 0.7286 GB, free: 8.023 MB / 0.5762 GB Notification: Performance of postOpt removeConstants (simulation): time 5.615e-05/0.5887, allocations: 101.1 kB / 0.7287 GB, free: 7.906 MB / 0.5762 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.823e-05/0.5887, allocations: 3.938 kB / 0.7287 GB, free: 7.902 MB / 0.5762 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.000103/0.5888, allocations: 7.984 kB / 0.7287 GB, free: 7.895 MB / 0.5762 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 6.383e-05/0.5889, allocations: 15.98 kB / 0.7287 GB, free: 7.879 MB / 0.5762 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 7.654e-06/0.5889, allocations: 0 / 0.7287 GB, free: 7.879 MB / 0.5762 GB Notification: Performance of sorting global known variables: time 0.0001541/0.589, allocations: 186 kB / 0.7289 GB, free: 7.699 MB / 0.5762 GB Notification: Performance of sort global known variables: time 1e-07/0.589, allocations: 0 / 0.7289 GB, free: 7.699 MB / 0.5762 GB Notification: Performance of remove unused functions: time 0.0002404/0.5893, allocations: 36 kB / 0.7289 GB, free: 7.664 MB / 0.5762 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 1 * Number of states: 1 (terminalSource.p) * Number of discrete variables: 3 ($whenCondition1,pulse.T_start,pulse.count) * Number of discrete states: 1 (pulse.count) * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (7): * Single equations (assignments): 5 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 2 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.0001956/0.5895, allocations: 143.2 kB / 0.729 GB, free: 7.512 MB / 0.5762 GB Notification: Performance of simCode: created initialization part: time 0.0003652/0.5899, allocations: 159.2 kB / 0.7292 GB, free: 7.344 MB / 0.5762 GB Notification: Performance of simCode: created event and clocks part: time 2.114e-06/0.5899, allocations: 0 / 0.7292 GB, free: 7.344 MB / 0.5762 GB Notification: Performance of simCode: created simulation system equations: time 0.0001412/0.59, allocations: 48.22 kB / 0.7292 GB, free: 7.297 MB / 0.5762 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003428/0.5904, allocations: 54.44 kB / 0.7293 GB, free: 7.246 MB / 0.5762 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0007704/0.5912, allocations: 441.2 kB / 0.7297 GB, free: 6.789 MB / 0.5762 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003768/0.5915, allocations: 0.7437 MB / 0.7304 GB, free: 6.02 MB / 0.5762 GB Notification: Performance of simCode: alias equations: time 7.412e-05/0.5916, allocations: 21.95 kB / 0.7305 GB, free: 6 MB / 0.5762 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 4.329e-05/0.5917, allocations: 19.44 kB / 0.7305 GB, free: 5.98 MB / 0.5762 GB Notification: Performance of SimCode: time 2.11e-07/0.5917, allocations: 0 / 0.7305 GB, free: 5.98 MB / 0.5762 GB Notification: Performance of Templates: time 0.005774/0.5975, allocations: 2.483 MB / 0.7329 GB, free: 3.523 MB / 0.5762 GB make -j1 -f ThermofluidStream_ThermofluidStream.Boundaries.Tests.TerminalSourceSink.makefile (rm -f ThermofluidStream_ThermofluidStream.Boundaries.Tests.TerminalSourceSink.pipe ; mkfifo ThermofluidStream_ThermofluidStream.Boundaries.Tests.TerminalSourceSink.pipe ; head -c 1048576 < ThermofluidStream_ThermofluidStream.Boundaries.Tests.TerminalSourceSink.pipe >> ../files/ThermofluidStream_ThermofluidStream.Boundaries.Tests.TerminalSourceSink.sim & ./ThermofluidStream_ThermofluidStream.Boundaries.Tests.TerminalSourceSink -abortSlowSimulation -alarm=1200 -emit_protected -lv LOG_STATS > ThermofluidStream_ThermofluidStream.Boundaries.Tests.TerminalSourceSink.pipe 2>&1) diffSimulationResults("ThermofluidStream_ThermofluidStream.Boundaries.Tests.TerminalSourceSink_res.mat","/mnt/ReferenceFiles/ThermofluidStream-main-regression/ReferenceData/ThermofluidStream.Boundaries.Tests.TerminalSourceSink_ref.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/ThermofluidStream_ThermofluidStream.Boundaries.Tests.TerminalSourceSink.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches