Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr ThermofluidStream_dev_ThermofluidStream.Boundaries.Tests.TerminalSourceSink.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo", uses=false) [Timeout 90] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo", uses=false) [Timeout 90] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo", uses=false) [Timeout 90] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ThermofluidStream 1.1.0-main/package.mo", uses=false) [Timeout 90] 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=1000,variableFilter="Time|pulse.T_start|pulse.count|terminalSource.p",fileNamePrefix="ThermofluidStream_dev_ThermofluidStream.Boundaries.Tests.TerminalSourceSink") translateModel(ThermofluidStream.Boundaries.Tests.TerminalSourceSink,tolerance=1e-06,outputFormat="mat",numberOfIntervals=1000,variableFilter="Time|pulse.T_start|pulse.count|terminalSource.p",fileNamePrefix="ThermofluidStream_dev_ThermofluidStream.Boundaries.Tests.TerminalSourceSink") [Timeout 660] Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.008269/0.008269, allocations: 96.69 kB / 15.73 MB, free: 6.031 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.001908/0.001908, allocations: 197.2 kB / 16.68 MB, free: 5.961 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.529/1.529, allocations: 222.9 MB / 240.4 MB, free: 4.328 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ThermofluidStream 1.1.0-main/package.mo): time 0.758/0.758, allocations: 93.71 MB / 384.2 MB, free: 6.926 MB / 318.1 MB Notification: Performance of FrontEnd - loaded program: time 0.002439/0.002439, allocations: 79.88 kB / 0.5204 GB, free: 5.824 MB / 398.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1677/0.1701, allocations: 68.27 MB / 0.5871 GB, free: 1.48 MB / 462.1 MB Notification: Performance of NFInst.instantiate(ThermofluidStream.Boundaries.Tests.TerminalSourceSink): time 0.5216/0.6918, allocations: 140.5 MB / 0.7242 GB, free: 5.988 MB / 0.5606 GB Notification: Performance of NFInst.instExpressions: time 0.003086/0.6949, allocations: 2.12 MB / 0.7263 GB, free: 3.859 MB / 0.5606 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.0003274/0.6952, allocations: 11.94 kB / 0.7263 GB, free: 3.848 MB / 0.5606 GB Notification: Performance of NFTyping.typeComponents: time 0.0006555/0.6959, allocations: 123.2 kB / 0.7264 GB, free: 3.727 MB / 0.5606 GB Notification: Performance of NFTyping.typeBindings: time 0.0005532/0.6965, allocations: 151 kB / 0.7266 GB, free: 3.578 MB / 0.5606 GB Notification: Performance of NFTyping.typeClassSections: time 0.0005142/0.6971, allocations: 167.4 kB / 0.7268 GB, free: 3.414 MB / 0.5606 GB Notification: Performance of NFFlatten.flatten: time 0.0005495/0.6976, allocations: 323.8 kB / 0.7271 GB, free: 3.098 MB / 0.5606 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0002025/0.6979, allocations: 77 kB / 0.7271 GB, free: 3.016 MB / 0.5606 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0005883/0.6985, allocations: 207.1 kB / 0.7273 GB, free: 2.812 MB / 0.5606 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0002429/0.6987, allocations: 123.4 kB / 0.7274 GB, free: 2.691 MB / 0.5606 GB Notification: Performance of NFPackage.collectConstants: time 4.44e-05/0.6988, allocations: 16 kB / 0.7275 GB, free: 2.676 MB / 0.5606 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0004655/0.6992, allocations: 207.6 kB / 0.7277 GB, free: 2.473 MB / 0.5606 GB Notification: Performance of NFScalarize.scalarize: time 8.966e-05/0.6993, allocations: 39.78 kB / 0.7277 GB, free: 2.434 MB / 0.5606 GB Notification: Performance of NFVerifyModel.verify: time 0.0001527/0.6995, allocations: 99.41 kB / 0.7278 GB, free: 2.336 MB / 0.5606 GB Notification: Performance of NFConvertDAE.convert: time 0.0006131/0.7001, allocations: 299.5 kB / 0.7281 GB, free: 2.051 MB / 0.5606 GB Notification: Performance of FrontEnd - DAE generated: time 7.073e-06/0.7001, allocations: 3.984 kB / 0.7281 GB, free: 2.047 MB / 0.5606 GB Notification: Performance of FrontEnd: time 1.684e-06/0.7001, allocations: 0 / 0.7281 GB, free: 2.047 MB / 0.5606 GB Notification: Performance of Transformations before backend: time 1.059e-05/0.7002, allocations: 0 / 0.7281 GB, free: 2.047 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: 29 * Number of variables: 29 Notification: Performance of Generate backend data structure: time 0.001169/0.7013, allocations: 0.5971 MB / 0.7287 GB, free: 1.395 MB / 0.5606 GB Notification: Performance of prepare preOptimizeDAE: time 4.283e-05/0.7014, allocations: 8.031 kB / 0.7287 GB, free: 1.387 MB / 0.5606 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001063/0.7015, allocations: 28.75 kB / 0.7287 GB, free: 1.359 MB / 0.5606 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0005957/0.7021, allocations: 319.7 kB / 0.729 GB, free: 1.008 MB / 0.5606 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.501e-05/0.7021, allocations: 8.375 kB / 0.729 GB, free: 1 MB / 0.5606 GB Notification: Performance of preOpt expandDerOperator (simulation): time 4.3e-05/0.7022, allocations: 12.38 kB / 0.729 GB, free: 0.9883 MB / 0.5606 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003884/0.7026, allocations: 177.2 kB / 0.7292 GB, free: 0.7969 MB / 0.5606 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.094e-05/0.7026, allocations: 0 / 0.7292 GB, free: 0.7969 MB / 0.5606 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.909e-05/0.7026, allocations: 4 kB / 0.7292 GB, free: 0.793 MB / 0.5606 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.059e-05/0.7026, allocations: 4 kB / 0.7292 GB, free: 0.7891 MB / 0.5606 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0003205/0.703, allocations: 99.86 kB / 0.7293 GB, free: 0.6914 MB / 0.5606 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001348/0.7043, allocations: 0.9066 MB / 0.7302 GB, free: 15.69 MB / 0.5762 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0003197/0.7047, allocations: 82.53 kB / 0.7303 GB, free: 15.6 MB / 0.5762 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001449/0.7048, allocations: 48.89 kB / 0.7303 GB, free: 15.55 MB / 0.5762 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0001332/0.705, allocations: 85.09 kB / 0.7304 GB, free: 15.45 MB / 0.5762 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002416/0.7052, allocations: 87.36 kB / 0.7305 GB, free: 15.35 MB / 0.5762 GB Notification: Performance of pre-optimization done (n=7): time 1.974e-06/0.7052, allocations: 0 / 0.7305 GB, free: 15.35 MB / 0.5762 GB Notification: Performance of matching and sorting (n=7): time 0.0005351/0.7058, allocations: 157.4 kB / 0.7306 GB, free: 15.19 MB / 0.5762 GB Notification: Performance of inlineWhenForInitialization (initialization): time 5.324e-05/0.7058, allocations: 59.41 kB / 0.7307 GB, free: 15.12 MB / 0.5762 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003182/0.7061, allocations: 267.3 kB / 0.7309 GB, free: 14.85 MB / 0.5762 GB Notification: Performance of collectPreVariables (initialization): time 9.148e-05/0.7062, allocations: 25.7 kB / 0.731 GB, free: 14.82 MB / 0.5762 GB Notification: Performance of collectInitialEqns (initialization): time 0.0001525/0.7064, allocations: 175.8 kB / 0.7311 GB, free: 14.64 MB / 0.5762 GB Notification: Performance of collectInitialBindings (initialization): time 3.421e-05/0.7064, allocations: 27.83 kB / 0.7312 GB, free: 14.61 MB / 0.5762 GB Notification: Performance of simplifyInitialFunctions (initialization): time 7.768e-05/0.7065, allocations: 37.64 kB / 0.7312 GB, free: 14.57 MB / 0.5762 GB Notification: Performance of setup shared object (initialization): time 0.0002261/0.7068, allocations: 334.8 kB / 0.7315 GB, free: 14.23 MB / 0.5762 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001614/0.7069, allocations: 47.97 kB / 0.7316 GB, free: 14.19 MB / 0.5762 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001789/0.7071, allocations: 79.31 kB / 0.7316 GB, free: 14.09 MB / 0.5762 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003247/0.7075, allocations: 158.7 kB / 0.7318 GB, free: 13.91 MB / 0.5762 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.265e-06/0.7075, allocations: 0 / 0.7318 GB, free: 13.91 MB / 0.5762 GB Notification: Performance of matching and sorting (n=17) (initialization): time 0.0004724/0.708, allocations: 211.1 kB / 0.732 GB, free: 13.7 MB / 0.5762 GB Notification: Performance of prepare postOptimizeDAE: time 4.44e-05/0.708, allocations: 37.7 kB / 0.732 GB, free: 13.65 MB / 0.5762 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.174e-06/0.708, allocations: 0 / 0.732 GB, free: 13.65 MB / 0.5762 GB Notification: Performance of postOpt tearingSystem (initialization): time 2.377e-05/0.7081, allocations: 7.938 kB / 0.732 GB, free: 13.64 MB / 0.5762 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001621/0.7082, allocations: 31.91 kB / 0.7321 GB, free: 13.61 MB / 0.5762 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 8.215e-06/0.7082, allocations: 4 kB / 0.7321 GB, free: 13.61 MB / 0.5762 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001565/0.7084, allocations: 19.88 kB / 0.7321 GB, free: 13.59 MB / 0.5762 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.266e-05/0.7084, allocations: 12 kB / 0.7321 GB, free: 13.58 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.0001482/0.7086, allocations: 141.8 kB / 0.7322 GB, free: 13.43 MB / 0.5762 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 9.793e-05/0.7087, allocations: 23.86 kB / 0.7323 GB, free: 13.41 MB / 0.5762 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0003725/0.7091, allocations: 132.8 kB / 0.7324 GB, free: 13.27 MB / 0.5762 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.791e-06/0.7091, allocations: 4 kB / 0.7324 GB, free: 13.27 MB / 0.5762 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 8.235e-06/0.7091, allocations: 3.984 kB / 0.7324 GB, free: 13.27 MB / 0.5762 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.577e-06/0.7091, allocations: 3.938 kB / 0.7324 GB, free: 13.26 MB / 0.5762 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002479/0.7094, allocations: 241.6 kB / 0.7326 GB, free: 12.98 MB / 0.5762 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.254e-06/0.7094, allocations: 0.875 kB / 0.7326 GB, free: 12.98 MB / 0.5762 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001138/0.7095, allocations: 19.98 kB / 0.7326 GB, free: 12.96 MB / 0.5762 GB Notification: Performance of postOpt tearingSystem (simulation): time 1.49e-05/0.7095, allocations: 4 kB / 0.7326 GB, free: 12.95 MB / 0.5762 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.476e-05/0.7095, allocations: 7.875 kB / 0.7326 GB, free: 12.95 MB / 0.5762 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.104e-06/0.7095, allocations: 0 / 0.7326 GB, free: 12.95 MB / 0.5762 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.759e-06/0.7095, allocations: 5.234 kB / 0.7327 GB, free: 12.94 MB / 0.5762 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0004955/0.71, allocations: 192.9 kB / 0.7328 GB, free: 12.73 MB / 0.5762 GB Notification: Performance of postOpt removeConstants (simulation): time 7.141e-05/0.7101, allocations: 93 kB / 0.7329 GB, free: 12.62 MB / 0.5762 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.652e-05/0.7102, allocations: 7.938 kB / 0.7329 GB, free: 12.62 MB / 0.5762 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001094/0.7103, allocations: 11.98 kB / 0.7329 GB, free: 12.61 MB / 0.5762 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 6.874e-05/0.7104, allocations: 11.98 kB / 0.733 GB, free: 12.59 MB / 0.5762 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.056e-05/0.7104, allocations: 4 kB / 0.733 GB, free: 12.59 MB / 0.5762 GB Notification: Performance of sorting global known variables: time 0.0002038/0.7106, allocations: 186 kB / 0.7331 GB, free: 12.41 MB / 0.5762 GB Notification: Performance of sort global known variables: time 1.51e-07/0.7106, allocations: 0 / 0.7331 GB, free: 12.41 MB / 0.5762 GB Notification: Performance of remove unused functions: time 0.0002835/0.7109, allocations: 51.88 kB / 0.7332 GB, free: 12.36 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.0002388/0.7111, allocations: 139.2 kB / 0.7333 GB, free: 12.21 MB / 0.5762 GB Notification: Performance of simCode: created initialization part: time 0.0004645/0.7116, allocations: 158.6 kB / 0.7335 GB, free: 12.04 MB / 0.5762 GB Notification: Performance of simCode: created event and clocks part: time 4.97e-06/0.7116, allocations: 4.312 kB / 0.7335 GB, free: 12.04 MB / 0.5762 GB Notification: Performance of simCode: created simulation system equations: time 0.000157/0.7118, allocations: 39.97 kB / 0.7335 GB, free: 12 MB / 0.5762 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.000376/0.7122, allocations: 50.31 kB / 0.7336 GB, free: 11.96 MB / 0.5762 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0009491/0.7131, allocations: 459 kB / 0.734 GB, free: 11.48 MB / 0.5762 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004023/0.7135, allocations: 0.7402 MB / 0.7347 GB, free: 10.72 MB / 0.5762 GB Notification: Performance of simCode: alias equations: time 9.196e-05/0.7136, allocations: 27.36 kB / 0.7347 GB, free: 10.7 MB / 0.5762 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 4.947e-05/0.7137, allocations: 19.44 kB / 0.7348 GB, free: 10.68 MB / 0.5762 GB Notification: Performance of SimCode: time 4.01e-07/0.7137, allocations: 0 / 0.7348 GB, free: 10.68 MB / 0.5762 GB Notification: Performance of Templates: time 0.007211/0.7209, allocations: 2.513 MB / 0.7372 GB, free: 8.195 MB / 0.5762 GB make -j1 -f ThermofluidStream_dev_ThermofluidStream.Boundaries.Tests.TerminalSourceSink.makefile [Timeout 660] (rm -f ThermofluidStream_dev_ThermofluidStream.Boundaries.Tests.TerminalSourceSink.pipe ; mkfifo ThermofluidStream_dev_ThermofluidStream.Boundaries.Tests.TerminalSourceSink.pipe ; head -c 1048576 < ThermofluidStream_dev_ThermofluidStream.Boundaries.Tests.TerminalSourceSink.pipe >> ../files/ThermofluidStream_dev_ThermofluidStream.Boundaries.Tests.TerminalSourceSink.sim & ./ThermofluidStream_dev_ThermofluidStream.Boundaries.Tests.TerminalSourceSink -abortSlowSimulation -alarm=1200 -emit_protected -lv LOG_STATS > ThermofluidStream_dev_ThermofluidStream.Boundaries.Tests.TerminalSourceSink.pipe 2>&1) [Timeout 1200] diffSimulationResults("ThermofluidStream_dev_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_dev_ThermofluidStream.Boundaries.Tests.TerminalSourceSink.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) [Timeout 660] Reference file matches