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.007684/0.007684, allocations: 107.8 kB / 15.74 MB, free: 6.441 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.001522/0.001523, allocations: 192.6 kB / 16.67 MB, free: 6.355 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.42/1.42, allocations: 222.9 MB / 240.4 MB, free: 4.293 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ThermofluidStream 1.1.0-main/package.mo): time 0.7429/0.7429, allocations: 91.19 MB / 381.7 MB, free: 9.328 MB / 318.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001621/0.001622, allocations: 75.88 kB / 0.5168 GB, free: 8.992 MB / 398.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1526/0.1542, allocations: 67.69 MB / 0.5829 GB, free: 5.227 MB / 462.1 MB Notification: Performance of NFInst.instantiate(ThermofluidStream.Boundaries.Tests.TerminalSourceSink): time 0.5919/0.7461, allocations: 140.5 MB / 0.7201 GB, free: 11.66 MB / 0.5606 GB Notification: Performance of NFInst.instExpressions: time 0.002846/0.749, allocations: 2.104 MB / 0.7222 GB, free: 9.551 MB / 0.5606 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.0002317/0.7492, allocations: 13.44 kB / 0.7222 GB, free: 9.539 MB / 0.5606 GB Notification: Performance of NFTyping.typeComponents: time 0.00054/0.7498, allocations: 125.7 kB / 0.7223 GB, free: 9.418 MB / 0.5606 GB Notification: Performance of NFTyping.typeBindings: time 0.0003456/0.7502, allocations: 129.5 kB / 0.7224 GB, free: 9.293 MB / 0.5606 GB Notification: Performance of NFTyping.typeClassSections: time 0.0003864/0.7506, allocations: 175.4 kB / 0.7226 GB, free: 9.121 MB / 0.5606 GB Notification: Performance of NFFlatten.flatten: time 0.000399/0.7511, allocations: 298.7 kB / 0.7229 GB, free: 8.828 MB / 0.5606 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0002042/0.7513, allocations: 61.03 kB / 0.7229 GB, free: 8.762 MB / 0.5606 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0005104/0.7518, allocations: 199.1 kB / 0.7231 GB, free: 8.566 MB / 0.5606 GB Notification: Performance of NFSimplifyModel.simplify: time 0.000204/0.752, allocations: 131.4 kB / 0.7232 GB, free: 8.438 MB / 0.5606 GB Notification: Performance of NFPackage.collectConstants: time 3.166e-05/0.752, allocations: 12 kB / 0.7233 GB, free: 8.426 MB / 0.5606 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0003934/0.7524, allocations: 203.6 kB / 0.7234 GB, free: 8.227 MB / 0.5606 GB Notification: Performance of NFScalarize.scalarize: time 8.036e-05/0.7525, allocations: 39.78 kB / 0.7235 GB, free: 8.188 MB / 0.5606 GB Notification: Performance of NFVerifyModel.verify: time 0.0001263/0.7527, allocations: 103.4 kB / 0.7236 GB, free: 8.086 MB / 0.5606 GB Notification: Performance of NFConvertDAE.convert: time 0.0005461/0.7532, allocations: 296.8 kB / 0.7239 GB, free: 7.801 MB / 0.5606 GB Notification: Performance of FrontEnd - DAE generated: time 7.434e-06/0.7532, allocations: 0 / 0.7239 GB, free: 7.801 MB / 0.5606 GB Notification: Performance of FrontEnd: time 2.765e-06/0.7533, allocations: 0 / 0.7239 GB, free: 7.801 MB / 0.5606 GB Notification: Performance of Transformations before backend: time 9.668e-06/0.7533, allocations: 0 / 0.7239 GB, free: 7.801 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.001308/0.7546, allocations: 0.5668 MB / 0.7244 GB, free: 7.18 MB / 0.5606 GB Notification: Performance of prepare preOptimizeDAE: time 5.304e-05/0.7546, allocations: 8.031 kB / 0.7244 GB, free: 7.172 MB / 0.5606 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 8.646e-05/0.7547, allocations: 28.66 kB / 0.7245 GB, free: 7.145 MB / 0.5606 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0005748/0.7553, allocations: 307.5 kB / 0.7247 GB, free: 6.805 MB / 0.5606 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.15e-05/0.7554, allocations: 8.375 kB / 0.7248 GB, free: 6.797 MB / 0.5606 GB Notification: Performance of preOpt expandDerOperator (simulation): time 4.705e-05/0.7554, allocations: 16.28 kB / 0.7248 GB, free: 6.781 MB / 0.5606 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.000387/0.7558, allocations: 177.3 kB / 0.7249 GB, free: 6.59 MB / 0.5606 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.201e-05/0.7558, allocations: 0 / 0.7249 GB, free: 6.59 MB / 0.5606 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.775e-05/0.7558, allocations: 0 / 0.7249 GB, free: 6.59 MB / 0.5606 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.192e-05/0.7559, allocations: 4 kB / 0.7249 GB, free: 6.586 MB / 0.5606 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002953/0.7562, allocations: 95.88 kB / 0.725 GB, free: 6.492 MB / 0.5606 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001246/0.7574, allocations: 0.9026 MB / 0.7259 GB, free: 5.492 MB / 0.5606 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0003104/0.7577, allocations: 90.52 kB / 0.726 GB, free: 5.395 MB / 0.5606 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001316/0.7579, allocations: 44.89 kB / 0.726 GB, free: 5.348 MB / 0.5606 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0001303/0.758, allocations: 85.11 kB / 0.7261 GB, free: 5.246 MB / 0.5606 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002372/0.7583, allocations: 83.36 kB / 0.7262 GB, free: 5.152 MB / 0.5606 GB Notification: Performance of pre-optimization done (n=7): time 1.683e-06/0.7583, allocations: 4 kB / 0.7262 GB, free: 5.148 MB / 0.5606 GB Notification: Performance of matching and sorting (n=7): time 0.0005234/0.7588, allocations: 157.8 kB / 0.7264 GB, free: 4.988 MB / 0.5606 GB Notification: Performance of inlineWhenForInitialization (initialization): time 5.445e-05/0.7589, allocations: 51.41 kB / 0.7264 GB, free: 4.926 MB / 0.5606 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002855/0.7592, allocations: 270.9 kB / 0.7267 GB, free: 4.648 MB / 0.5606 GB Notification: Performance of collectPreVariables (initialization): time 2.014e-05/0.7592, allocations: 25.7 kB / 0.7267 GB, free: 4.617 MB / 0.5606 GB Notification: Performance of collectInitialEqns (initialization): time 0.0001421/0.7593, allocations: 163.6 kB / 0.7268 GB, free: 4.453 MB / 0.5606 GB Notification: Performance of collectInitialBindings (initialization): time 2.746e-05/0.7594, allocations: 27.7 kB / 0.7269 GB, free: 4.426 MB / 0.5606 GB Notification: Performance of simplifyInitialFunctions (initialization): time 6.481e-05/0.7595, allocations: 33.7 kB / 0.7269 GB, free: 4.387 MB / 0.5606 GB Notification: Performance of setup shared object (initialization): time 0.0001618/0.7596, allocations: 338.8 kB / 0.7272 GB, free: 4.047 MB / 0.5606 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001457/0.7598, allocations: 35.97 kB / 0.7273 GB, free: 4.012 MB / 0.5606 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001662/0.76, allocations: 84 kB / 0.7273 GB, free: 3.914 MB / 0.5606 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003097/0.7603, allocations: 158.7 kB / 0.7275 GB, free: 3.734 MB / 0.5606 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.126e-06/0.7603, allocations: 0 / 0.7275 GB, free: 3.734 MB / 0.5606 GB Notification: Performance of matching and sorting (n=17) (initialization): time 0.0004097/0.7607, allocations: 206.9 kB / 0.7277 GB, free: 3.52 MB / 0.5606 GB Notification: Performance of prepare postOptimizeDAE: time 3.89e-05/0.7607, allocations: 33.7 kB / 0.7277 GB, free: 3.48 MB / 0.5606 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.17e-06/0.7608, allocations: 0 / 0.7277 GB, free: 3.48 MB / 0.5606 GB Notification: Performance of postOpt tearingSystem (initialization): time 2.126e-05/0.7608, allocations: 7.938 kB / 0.7277 GB, free: 3.473 MB / 0.5606 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001565/0.7609, allocations: 35.91 kB / 0.7278 GB, free: 3.438 MB / 0.5606 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 9.758e-06/0.761, allocations: 4 kB / 0.7278 GB, free: 3.434 MB / 0.5606 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001438/0.7611, allocations: 23.98 kB / 0.7278 GB, free: 3.41 MB / 0.5606 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.896e-05/0.7611, allocations: 12.86 kB / 0.7278 GB, free: 3.398 MB / 0.5606 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.0001603/0.7613, allocations: 141.6 kB / 0.7279 GB, free: 3.25 MB / 0.5606 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.102e-05/0.7613, allocations: 23.72 kB / 0.728 GB, free: 3.227 MB / 0.5606 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0003622/0.7617, allocations: 136.9 kB / 0.7281 GB, free: 3.09 MB / 0.5606 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 8.747e-06/0.7617, allocations: 11.88 kB / 0.7281 GB, free: 3.078 MB / 0.5606 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.659e-06/0.7617, allocations: 4 kB / 0.7281 GB, free: 3.074 MB / 0.5606 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.557e-06/0.7618, allocations: 0 / 0.7281 GB, free: 3.074 MB / 0.5606 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.00023/0.762, allocations: 237.5 kB / 0.7283 GB, free: 2.793 MB / 0.5606 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.314e-06/0.762, allocations: 3.188 kB / 0.7283 GB, free: 2.793 MB / 0.5606 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001083/0.7621, allocations: 15.98 kB / 0.7284 GB, free: 2.777 MB / 0.5606 GB Notification: Performance of postOpt tearingSystem (simulation): time 4.549e-06/0.7621, allocations: 0 / 0.7284 GB, free: 2.777 MB / 0.5606 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.413e-05/0.7621, allocations: 7.938 kB / 0.7284 GB, free: 2.77 MB / 0.5606 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 6.241e-06/0.7622, allocations: 7.938 kB / 0.7284 GB, free: 2.762 MB / 0.5606 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.82e-07/0.7622, allocations: 0 / 0.7284 GB, free: 2.762 MB / 0.5606 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0005045/0.7627, allocations: 188.8 kB / 0.7285 GB, free: 2.559 MB / 0.5606 GB Notification: Performance of postOpt removeConstants (simulation): time 9.147e-05/0.7628, allocations: 100.8 kB / 0.7286 GB, free: 2.441 MB / 0.5606 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.972e-05/0.7628, allocations: 0 / 0.7286 GB, free: 2.441 MB / 0.5606 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001101/0.7629, allocations: 11.92 kB / 0.7287 GB, free: 2.43 MB / 0.5606 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 7.349e-05/0.763, allocations: 15.98 kB / 0.7287 GB, free: 2.414 MB / 0.5606 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 6.943e-06/0.763, allocations: 0 / 0.7287 GB, free: 2.414 MB / 0.5606 GB Notification: Performance of sorting global known variables: time 0.0001862/0.7632, allocations: 190 kB / 0.7289 GB, free: 2.23 MB / 0.5606 GB Notification: Performance of sort global known variables: time 1.31e-07/0.7632, allocations: 0 / 0.7289 GB, free: 2.23 MB / 0.5606 GB Notification: Performance of remove unused functions: time 0.0002664/0.7635, allocations: 43.94 kB / 0.7289 GB, free: 2.188 MB / 0.5606 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.000255/0.7638, allocations: 136.6 kB / 0.729 GB, free: 2.043 MB / 0.5606 GB Notification: Performance of simCode: created initialization part: time 0.0004277/0.7642, allocations: 160 kB / 0.7292 GB, free: 1.879 MB / 0.5606 GB Notification: Performance of simCode: created event and clocks part: time 3.246e-06/0.7642, allocations: 0 / 0.7292 GB, free: 1.879 MB / 0.5606 GB Notification: Performance of simCode: created simulation system equations: time 0.0001409/0.7644, allocations: 43.95 kB / 0.7292 GB, free: 1.836 MB / 0.5606 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003536/0.7647, allocations: 50.67 kB / 0.7293 GB, free: 1.789 MB / 0.5606 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0008441/0.7656, allocations: 423.9 kB / 0.7297 GB, free: 1.352 MB / 0.5606 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.000331/0.7659, allocations: 0.732 MB / 0.7304 GB, free: 0.5938 MB / 0.5606 GB Notification: Performance of simCode: alias equations: time 8.291e-05/0.766, allocations: 25.94 kB / 0.7304 GB, free: 0.5664 MB / 0.5606 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 4.154e-05/0.7661, allocations: 19.44 kB / 0.7304 GB, free: 0.5469 MB / 0.5606 GB Notification: Performance of SimCode: time 2.4e-07/0.7661, allocations: 0 / 0.7304 GB, free: 0.5469 MB / 0.5606 GB Notification: Performance of Templates: time 0.006216/0.7723, allocations: 2.495 MB / 0.7329 GB, free: 14.09 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