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.001153/0.001153, allocations: 109.1 kB / 16.41 MB, free: 6.461 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.001134/0.001134, allocations: 189.5 kB / 17.34 MB, free: 5.719 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.378/1.378, allocations: 222.9 MB / 241 MB, free: 15.14 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ThermofluidStream 1.1.0-main/package.mo): time 0.6847/0.6847, allocations: 91.19 MB / 382.4 MB, free: 7.52 MB / 302.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001654/0.001654, allocations: 79.88 kB / 0.5175 GB, free: 4.109 MB / 446.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3066/0.3083, allocations: 67.68 MB / 0.5836 GB, free: 13.99 MB / 446.1 MB Notification: Performance of NFInst.instantiate(ThermofluidStream.Boundaries.Tests.TerminalSourceSink): time 0.1425/0.4508, allocations: 140.5 MB / 0.7208 GB, free: 1.148 MB / 0.5606 GB Notification: Performance of NFInst.instExpressions: time 0.002719/0.4536, allocations: 2.103 MB / 0.7228 GB, free: 15.04 MB / 0.5762 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.0002925/0.4539, allocations: 15.88 kB / 0.7228 GB, free: 15.02 MB / 0.5762 GB Notification: Performance of NFTyping.typeComponents: time 0.0005974/0.4546, allocations: 115.2 kB / 0.7229 GB, free: 14.91 MB / 0.5762 GB Notification: Performance of NFTyping.typeBindings: time 0.0004885/0.4551, allocations: 135.1 kB / 0.7231 GB, free: 14.77 MB / 0.5762 GB Notification: Performance of NFTyping.typeClassSections: time 0.0004756/0.4556, allocations: 171.3 kB / 0.7232 GB, free: 14.61 MB / 0.5762 GB Notification: Performance of NFFlatten.flatten: time 0.0004606/0.456, allocations: 294.8 kB / 0.7235 GB, free: 14.32 MB / 0.5762 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0002058/0.4563, allocations: 75.83 kB / 0.7236 GB, free: 14.24 MB / 0.5762 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0005588/0.4568, allocations: 203.1 kB / 0.7238 GB, free: 14.04 MB / 0.5762 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0002379/0.4571, allocations: 123.5 kB / 0.7239 GB, free: 13.92 MB / 0.5762 GB Notification: Performance of NFPackage.collectConstants: time 3.837e-05/0.4571, allocations: 12 kB / 0.7239 GB, free: 13.91 MB / 0.5762 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0004239/0.4576, allocations: 207.6 kB / 0.7241 GB, free: 13.71 MB / 0.5762 GB Notification: Performance of NFScalarize.scalarize: time 7.519e-05/0.4577, allocations: 39.78 kB / 0.7242 GB, free: 13.67 MB / 0.5762 GB Notification: Performance of NFVerifyModel.verify: time 0.0001186/0.4578, allocations: 99.41 kB / 0.7242 GB, free: 13.57 MB / 0.5762 GB Notification: Performance of NFConvertDAE.convert: time 0.0004941/0.4583, allocations: 292.7 kB / 0.7245 GB, free: 13.29 MB / 0.5762 GB Notification: Performance of FrontEnd - DAE generated: time 4.688e-06/0.4583, allocations: 7.938 kB / 0.7245 GB, free: 13.28 MB / 0.5762 GB Notification: Performance of FrontEnd: time 1.803e-06/0.4583, allocations: 0 / 0.7245 GB, free: 13.28 MB / 0.5762 GB Notification: Performance of Transformations before backend: time 2.169e-05/0.4583, allocations: 4 kB / 0.7245 GB, free: 13.28 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.001028/0.4594, allocations: 0.5585 MB / 0.7251 GB, free: 12.66 MB / 0.5762 GB Notification: Performance of prepare preOptimizeDAE: time 3.811e-05/0.4594, allocations: 12.03 kB / 0.7251 GB, free: 12.65 MB / 0.5762 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 6.799e-05/0.4595, allocations: 24.66 kB / 0.7251 GB, free: 12.63 MB / 0.5762 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004902/0.46, allocations: 307.4 kB / 0.7254 GB, free: 12.29 MB / 0.5762 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.937e-05/0.46, allocations: 16.36 kB / 0.7254 GB, free: 12.27 MB / 0.5762 GB Notification: Performance of preOpt expandDerOperator (simulation): time 5.158e-05/0.4601, allocations: 12.38 kB / 0.7254 GB, free: 12.26 MB / 0.5762 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003758/0.4605, allocations: 177.1 kB / 0.7256 GB, free: 12.07 MB / 0.5762 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.313e-05/0.4605, allocations: 0 / 0.7256 GB, free: 12.07 MB / 0.5762 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.014e-05/0.4605, allocations: 8 kB / 0.7256 GB, free: 12.06 MB / 0.5762 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.253e-06/0.4605, allocations: 4 kB / 0.7256 GB, free: 12.06 MB / 0.5762 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.000317/0.4608, allocations: 99.86 kB / 0.7257 GB, free: 11.96 MB / 0.5762 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001086/0.4619, allocations: 0.8987 MB / 0.7266 GB, free: 10.96 MB / 0.5762 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0003149/0.4623, allocations: 90.45 kB / 0.7267 GB, free: 10.87 MB / 0.5762 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001392/0.4624, allocations: 36.97 kB / 0.7267 GB, free: 10.83 MB / 0.5762 GB Notification: Performance of preOpt evalFunc (simulation): time 9.727e-05/0.4625, allocations: 85.09 kB / 0.7268 GB, free: 10.73 MB / 0.5762 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.000236/0.4628, allocations: 87.27 kB / 0.7269 GB, free: 10.63 MB / 0.5762 GB Notification: Performance of pre-optimization done (n=7): time 1.562e-06/0.4628, allocations: 0 / 0.7269 GB, free: 10.63 MB / 0.5762 GB Notification: Performance of matching and sorting (n=7): time 0.0004957/0.4633, allocations: 165.3 kB / 0.727 GB, free: 10.46 MB / 0.5762 GB Notification: Performance of inlineWhenForInitialization (initialization): time 4.669e-05/0.4633, allocations: 59.34 kB / 0.7271 GB, free: 10.39 MB / 0.5762 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002621/0.4636, allocations: 258.9 kB / 0.7273 GB, free: 10.12 MB / 0.5762 GB Notification: Performance of collectPreVariables (initialization): time 2.122e-05/0.4636, allocations: 29.7 kB / 0.7274 GB, free: 10.09 MB / 0.5762 GB Notification: Performance of collectInitialEqns (initialization): time 0.0001196/0.4638, allocations: 167.6 kB / 0.7275 GB, free: 9.922 MB / 0.5762 GB Notification: Performance of collectInitialBindings (initialization): time 2.556e-05/0.4638, allocations: 23.7 kB / 0.7275 GB, free: 9.898 MB / 0.5762 GB Notification: Performance of simplifyInitialFunctions (initialization): time 6.076e-05/0.4639, allocations: 33.72 kB / 0.7276 GB, free: 9.859 MB / 0.5762 GB Notification: Performance of setup shared object (initialization): time 0.000125/0.464, allocations: 330.8 kB / 0.7279 GB, free: 9.527 MB / 0.5762 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001512/0.4642, allocations: 47.97 kB / 0.7279 GB, free: 9.48 MB / 0.5762 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001805/0.4643, allocations: 82.2 kB / 0.728 GB, free: 9.383 MB / 0.5762 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.000308/0.4647, allocations: 146.7 kB / 0.7282 GB, free: 9.215 MB / 0.5762 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.827e-06/0.4647, allocations: 4 kB / 0.7282 GB, free: 9.211 MB / 0.5762 GB Notification: Performance of matching and sorting (n=17) (initialization): time 0.0004427/0.4651, allocations: 214.9 kB / 0.7284 GB, free: 8.988 MB / 0.5762 GB Notification: Performance of prepare postOptimizeDAE: time 3.729e-05/0.4652, allocations: 33.69 kB / 0.7284 GB, free: 8.949 MB / 0.5762 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.805e-06/0.4652, allocations: 4 kB / 0.7284 GB, free: 8.945 MB / 0.5762 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.75e-05/0.4652, allocations: 3.938 kB / 0.7284 GB, free: 8.941 MB / 0.5762 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001602/0.4654, allocations: 31.98 kB / 0.7284 GB, free: 8.91 MB / 0.5762 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 9.207e-06/0.4654, allocations: 3.938 kB / 0.7284 GB, free: 8.906 MB / 0.5762 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001634/0.4656, allocations: 31.73 kB / 0.7285 GB, free: 8.875 MB / 0.5762 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.833e-05/0.4656, allocations: 4 kB / 0.7285 GB, free: 8.871 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.0001364/0.4657, allocations: 149.8 kB / 0.7286 GB, free: 8.715 MB / 0.5762 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.024e-05/0.4658, allocations: 15.81 kB / 0.7286 GB, free: 8.699 MB / 0.5762 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0003551/0.4661, allocations: 139.2 kB / 0.7288 GB, free: 8.555 MB / 0.5762 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.226e-06/0.4661, allocations: 0 / 0.7288 GB, free: 8.555 MB / 0.5762 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.579e-06/0.4661, allocations: 0 / 0.7288 GB, free: 8.555 MB / 0.5762 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.552e-06/0.4662, allocations: 3.984 kB / 0.7288 GB, free: 8.551 MB / 0.5762 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002466/0.4664, allocations: 237.5 kB / 0.729 GB, free: 8.27 MB / 0.5762 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.456e-06/0.4664, allocations: 7.984 kB / 0.729 GB, free: 8.262 MB / 0.5762 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.00011/0.4665, allocations: 15.98 kB / 0.729 GB, free: 8.246 MB / 0.5762 GB Notification: Performance of postOpt tearingSystem (simulation): time 6.282e-06/0.4666, allocations: 4 kB / 0.729 GB, free: 8.242 MB / 0.5762 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.397e-05/0.4666, allocations: 3.938 kB / 0.729 GB, free: 8.238 MB / 0.5762 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.773e-06/0.4666, allocations: 0 / 0.729 GB, free: 8.238 MB / 0.5762 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 9.72e-07/0.4666, allocations: 0 / 0.729 GB, free: 8.238 MB / 0.5762 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0004701/0.4671, allocations: 192.8 kB / 0.7292 GB, free: 8.031 MB / 0.5762 GB Notification: Performance of postOpt removeConstants (simulation): time 6.069e-05/0.4671, allocations: 100.8 kB / 0.7293 GB, free: 7.914 MB / 0.5762 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.596e-05/0.4672, allocations: 7.938 kB / 0.7293 GB, free: 7.906 MB / 0.5762 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001129/0.4673, allocations: 11.98 kB / 0.7293 GB, free: 7.895 MB / 0.5762 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 6.573e-05/0.4674, allocations: 7.984 kB / 0.7293 GB, free: 7.887 MB / 0.5762 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.128e-05/0.4674, allocations: 7.984 kB / 0.7293 GB, free: 7.879 MB / 0.5762 GB Notification: Performance of sorting global known variables: time 0.0001755/0.4676, allocations: 182 kB / 0.7295 GB, free: 7.703 MB / 0.5762 GB Notification: Performance of sort global known variables: time 2.3e-07/0.4676, allocations: 0 / 0.7295 GB, free: 7.703 MB / 0.5762 GB Notification: Performance of remove unused functions: time 0.0002697/0.4678, allocations: 47.92 kB / 0.7296 GB, free: 7.656 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.0002545/0.4681, allocations: 131.3 kB / 0.7297 GB, free: 7.516 MB / 0.5762 GB Notification: Performance of simCode: created initialization part: time 0.0004097/0.4685, allocations: 167.5 kB / 0.7298 GB, free: 7.34 MB / 0.5762 GB Notification: Performance of simCode: created event and clocks part: time 2.375e-06/0.4685, allocations: 8.062 kB / 0.7299 GB, free: 7.332 MB / 0.5762 GB Notification: Performance of simCode: created simulation system equations: time 0.0001408/0.4687, allocations: 43.91 kB / 0.7299 GB, free: 7.289 MB / 0.5762 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003576/0.4691, allocations: 40.7 kB / 0.7299 GB, free: 7.254 MB / 0.5762 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0009149/0.47, allocations: 468.1 kB / 0.7304 GB, free: 6.766 MB / 0.5762 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003756/0.4704, allocations: 0.7398 MB / 0.7311 GB, free: 6 MB / 0.5762 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 5.527e-05/0.4704, allocations: 15.44 kB / 0.7311 GB, free: 5.984 MB / 0.5762 GB Notification: Performance of SimCode: time 6.91e-07/0.4704, allocations: 4 kB / 0.7311 GB, free: 5.98 MB / 0.5762 GB Notification: Performance of Templates: time 0.005608/0.4761, allocations: 2.95 MB / 0.734 GB, free: 3.035 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/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/ThermofluidStream_ThermofluidStream.Boundaries.Tests.TerminalSourceSink.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches