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.0009141/0.0009142, allocations: 99.42 kB / 16.02 MB, free: 76 kB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.0009768/0.0009768, allocations: 181.4 kB / 16.92 MB, free: 6.918 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.303/1.303, allocations: 223.3 MB / 241 MB, free: 5.262 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ThermofluidStream 1.1.0-main/package.mo): time 0.6292/0.6292, allocations: 89.65 MB / 381.7 MB, free: 11.32 MB / 318.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0003394/0.0003394, allocations: 20.88 kB / 461.3 MB, free: 24.18 MB / 350.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1042/0.1045, allocations: 68.83 MB / 0.5177 GB, free: 11.39 MB / 398.1 MB Notification: Performance of NFInst.instantiate(ThermofluidStream.Boundaries.Tests.TerminalSourceSink): time 0.3524/0.457, allocations: 136.5 MB / 0.651 GB, free: 12.56 MB / 478.1 MB Notification: Performance of NFInst.instExpressions: time 0.002048/0.4591, allocations: 2.074 MB / 0.6531 GB, free: 10.88 MB / 478.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 9.522e-05/0.4592, allocations: 2.906 kB / 0.6531 GB, free: 10.88 MB / 478.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0003823/0.4596, allocations: 102.3 kB / 0.6532 GB, free: 10.8 MB / 478.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0002477/0.4598, allocations: 103.3 kB / 0.6533 GB, free: 10.72 MB / 478.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0003424/0.4602, allocations: 161.5 kB / 0.6534 GB, free: 10.6 MB / 478.1 MB Notification: Performance of NFFlatten.flatten: time 0.000253/0.4604, allocations: 290.9 kB / 0.6537 GB, free: 10.43 MB / 478.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001255/0.4606, allocations: 58.27 kB / 0.6538 GB, free: 10.4 MB / 478.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.000321/0.4609, allocations: 151.5 kB / 0.6539 GB, free: 10.31 MB / 478.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.000136/0.461, allocations: 102 kB / 0.654 GB, free: 10.26 MB / 478.1 MB Notification: Performance of NFPackage.collectConstants: time 1.623e-05/0.4611, allocations: 2.938 kB / 0.654 GB, free: 10.26 MB / 478.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0003222/0.4614, allocations: 205.4 kB / 0.6542 GB, free: 10.16 MB / 478.1 MB Notification: Performance of NFScalarize.scalarize: time 3.446e-05/0.4614, allocations: 26.73 kB / 0.6542 GB, free: 10.14 MB / 478.1 MB Notification: Performance of NFVerifyModel.verify: time 9.368e-05/0.4615, allocations: 100.1 kB / 0.6543 GB, free: 10.07 MB / 478.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0002263/0.4618, allocations: 161.5 kB / 0.6545 GB, free: 9.965 MB / 478.1 MB Notification: Performance of FrontEnd - DAE generated: time 2.675e-06/0.4618, allocations: 0 / 0.6545 GB, free: 9.965 MB / 478.1 MB Notification: Performance of FrontEnd: time 1.323e-06/0.4618, allocations: 0 / 0.6545 GB, free: 9.965 MB / 478.1 MB Notification: Performance of Transformations before backend: time 6.803e-06/0.4618, allocations: 0 / 0.6545 GB, free: 9.965 MB / 478.1 MB 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.0007425/0.4626, allocations: 500 kB / 0.655 GB, free: 9.484 MB / 478.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.194e-05/0.4626, allocations: 14.97 kB / 0.655 GB, free: 9.48 MB / 478.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 4.713e-05/0.4627, allocations: 16.72 kB / 0.655 GB, free: 9.473 MB / 478.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002022/0.4629, allocations: 208.7 kB / 0.6552 GB, free: 9.246 MB / 478.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.141e-05/0.4629, allocations: 13.39 kB / 0.6552 GB, free: 9.238 MB / 478.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 3.7e-05/0.4629, allocations: 13.59 kB / 0.6552 GB, free: 9.234 MB / 478.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003292/0.4633, allocations: 189.8 kB / 0.6554 GB, free: 9.09 MB / 478.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 7.845e-06/0.4633, allocations: 0 / 0.6554 GB, free: 9.09 MB / 478.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.619e-05/0.4633, allocations: 4 kB / 0.6554 GB, free: 9.086 MB / 478.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.785e-06/0.4633, allocations: 9.266 kB / 0.6554 GB, free: 9.082 MB / 478.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002867/0.4636, allocations: 104.5 kB / 0.6555 GB, free: 9.039 MB / 478.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0009182/0.4645, allocations: 0.904 MB / 0.6564 GB, free: 8.137 MB / 478.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0002927/0.4648, allocations: 96.25 kB / 0.6565 GB, free: 8.082 MB / 478.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001301/0.465, allocations: 49.84 kB / 0.6565 GB, free: 8.055 MB / 478.1 MB Notification: Performance of preOpt evalFunc (simulation): time 8.45e-05/0.4651, allocations: 82.84 kB / 0.6566 GB, free: 7.957 MB / 478.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002424/0.4653, allocations: 99.33 kB / 0.6567 GB, free: 7.875 MB / 478.1 MB Notification: Performance of pre-optimization done (n=7): time 1.493e-06/0.4653, allocations: 0 / 0.6567 GB, free: 7.875 MB / 478.1 MB Notification: Performance of matching and sorting (n=7): time 0.0004568/0.4658, allocations: 165.3 kB / 0.6569 GB, free: 7.789 MB / 478.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.274e-05/0.4658, allocations: 55.41 kB / 0.6569 GB, free: 7.723 MB / 478.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001651/0.466, allocations: 198.7 kB / 0.6571 GB, free: 7.57 MB / 478.1 MB Notification: Performance of collectPreVariables (initialization): time 1.829e-05/0.466, allocations: 29.69 kB / 0.6571 GB, free: 7.535 MB / 478.1 MB Notification: Performance of collectInitialEqns (initialization): time 7.866e-05/0.4661, allocations: 142.6 kB / 0.6573 GB, free: 7.402 MB / 478.1 MB Notification: Performance of collectInitialBindings (initialization): time 2.185e-05/0.4662, allocations: 22.52 kB / 0.6573 GB, free: 7.383 MB / 478.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 3.899e-05/0.4662, allocations: 22.81 kB / 0.6573 GB, free: 7.359 MB / 478.1 MB Notification: Performance of setup shared object (initialization): time 0.0001037/0.4663, allocations: 325.8 kB / 0.6576 GB, free: 7.035 MB / 478.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001447/0.4665, allocations: 51.94 kB / 0.6577 GB, free: 7.012 MB / 478.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001557/0.4666, allocations: 92.06 kB / 0.6578 GB, free: 6.938 MB / 478.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.000296/0.4669, allocations: 162.2 kB / 0.6579 GB, free: 6.809 MB / 478.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.074e-06/0.4669, allocations: 0 / 0.6579 GB, free: 6.809 MB / 478.1 MB Notification: Performance of matching and sorting (n=17) (initialization): time 0.0003952/0.4673, allocations: 217.8 kB / 0.6581 GB, free: 6.676 MB / 478.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.897e-05/0.4674, allocations: 36.08 kB / 0.6581 GB, free: 6.641 MB / 478.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.64e-06/0.4674, allocations: 2.469 kB / 0.6582 GB, free: 6.641 MB / 478.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.213e-05/0.4674, allocations: 3.938 kB / 0.6582 GB, free: 6.637 MB / 478.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001449/0.4676, allocations: 36.91 kB / 0.6582 GB, free: 6.625 MB / 478.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 6.131e-06/0.4676, allocations: 2.625 kB / 0.6582 GB, free: 6.625 MB / 478.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001581/0.4677, allocations: 28.92 kB / 0.6582 GB, free: 6.609 MB / 478.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.469e-05/0.4678, allocations: 6.188 kB / 0.6582 GB, free: 6.609 MB / 478.1 MB 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 9.461e-05/0.4679, allocations: 125.8 kB / 0.6583 GB, free: 6.484 MB / 478.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.066e-05/0.4679, allocations: 13.62 kB / 0.6584 GB, free: 6.477 MB / 478.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0003408/0.4682, allocations: 142.1 kB / 0.6585 GB, free: 6.391 MB / 478.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.487e-06/0.4683, allocations: 11.88 kB / 0.6585 GB, free: 6.379 MB / 478.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.727e-06/0.4683, allocations: 2.812 kB / 0.6585 GB, free: 6.379 MB / 478.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.645e-06/0.4683, allocations: 0 / 0.6585 GB, free: 6.379 MB / 478.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001698/0.4684, allocations: 220 kB / 0.6587 GB, free: 6.141 MB / 478.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.595e-06/0.4685, allocations: 3.984 kB / 0.6587 GB, free: 6.137 MB / 478.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001046/0.4686, allocations: 21.08 kB / 0.6587 GB, free: 6.133 MB / 478.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.814e-06/0.4686, allocations: 0 / 0.6587 GB, free: 6.133 MB / 478.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.177e-05/0.4686, allocations: 4 kB / 0.6587 GB, free: 6.129 MB / 478.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.866e-06/0.4686, allocations: 3.938 kB / 0.6587 GB, free: 6.125 MB / 478.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.253e-06/0.4686, allocations: 2.906 kB / 0.6588 GB, free: 6.125 MB / 478.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0004428/0.4691, allocations: 206.9 kB / 0.6589 GB, free: 5.988 MB / 478.1 MB Notification: Performance of postOpt removeConstants (simulation): time 5.309e-05/0.4691, allocations: 87.86 kB / 0.659 GB, free: 5.887 MB / 478.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.69e-05/0.4691, allocations: 2.812 kB / 0.659 GB, free: 5.887 MB / 478.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001157/0.4693, allocations: 19.89 kB / 0.6591 GB, free: 5.875 MB / 478.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.809e-05/0.4693, allocations: 13.36 kB / 0.6591 GB, free: 5.867 MB / 478.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 8.355e-06/0.4693, allocations: 3.984 kB / 0.6591 GB, free: 5.863 MB / 478.1 MB Notification: Performance of sorting global known variables: time 9.919e-05/0.4694, allocations: 149.4 kB / 0.6592 GB, free: 5.754 MB / 478.1 MB Notification: Performance of sort global known variables: time 1.2e-07/0.4694, allocations: 0 / 0.6592 GB, free: 5.754 MB / 478.1 MB Notification: Performance of remove unused functions: time 0.0002385/0.4697, allocations: 36.69 kB / 0.6592 GB, free: 5.75 MB / 478.1 MB 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.0001606/0.4699, allocations: 136.2 kB / 0.6594 GB, free: 5.641 MB / 478.1 MB Notification: Performance of simCode: created initialization part: time 0.0003515/0.4702, allocations: 172.2 kB / 0.6595 GB, free: 5.527 MB / 478.1 MB Notification: Performance of simCode: created event and clocks part: time 1.613e-06/0.4702, allocations: 0 / 0.6595 GB, free: 5.527 MB / 478.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0001322/0.4704, allocations: 45.66 kB / 0.6596 GB, free: 5.512 MB / 478.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.000328/0.4707, allocations: 40.97 kB / 0.6596 GB, free: 5.488 MB / 478.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0006769/0.4714, allocations: 497.7 kB / 0.6601 GB, free: 5.086 MB / 478.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002545/0.4717, allocations: 0.7126 MB / 0.6608 GB, free: 4.375 MB / 478.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 3.88e-05/0.4717, allocations: 18.98 kB / 0.6608 GB, free: 4.367 MB / 478.1 MB Notification: Performance of SimCode: time 3.5e-07/0.4717, allocations: 4 kB / 0.6608 GB, free: 4.363 MB / 478.1 MB Notification: Performance of Templates: time 0.003639/0.4754, allocations: 2.343 MB / 0.6631 GB, free: 3.16 MB / 478.1 MB 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