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) 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_dev_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_dev_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.001137/0.001137, allocations: 107.4 kB / 15.23 MB, free: 0.6406 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.001176/0.001176, allocations: 191.7 kB / 16.14 MB, free: 6.715 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.544/1.544, allocations: 222.9 MB / 239.8 MB, free: 4.629 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ThermofluidStream 1.1.0-main/package.mo): time 0.8152/0.8152, allocations: 93.71 MB / 383.7 MB, free: 7.195 MB / 318.1 MB Notification: Performance of FrontEnd - loaded program: time 0.00149/0.00149, allocations: 79.69 kB / 462.7 MB, free: 22.27 MB / 350.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1399/0.1414, allocations: 68.27 MB / 0.5185 GB, free: 7.496 MB / 398.1 MB Notification: Performance of NFInst.instantiate(ThermofluidStream.Boundaries.Tests.TerminalSourceSink): time 0.4772/0.6186, allocations: 138.6 MB / 0.6539 GB, free: 7.145 MB / 478.1 MB Notification: Performance of NFInst.instExpressions: time 0.002615/0.6213, allocations: 2.161 MB / 0.656 GB, free: 5.398 MB / 478.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0003013/0.6216, allocations: 12.97 kB / 0.656 GB, free: 5.395 MB / 478.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0005039/0.6221, allocations: 114.1 kB / 0.6561 GB, free: 5.305 MB / 478.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0003618/0.6226, allocations: 126.8 kB / 0.6563 GB, free: 5.199 MB / 478.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0003976/0.623, allocations: 157.5 kB / 0.6564 GB, free: 5.082 MB / 478.1 MB Notification: Performance of NFFlatten.flatten: time 0.0003869/0.6234, allocations: 355.4 kB / 0.6567 GB, free: 4.883 MB / 478.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001783/0.6236, allocations: 76.23 kB / 0.6568 GB, free: 4.836 MB / 478.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0004794/0.624, allocations: 189.7 kB / 0.657 GB, free: 4.723 MB / 478.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001788/0.6242, allocations: 130.8 kB / 0.6571 GB, free: 4.641 MB / 478.1 MB Notification: Performance of NFPackage.collectConstants: time 2.987e-05/0.6243, allocations: 10.41 kB / 0.6571 GB, free: 4.641 MB / 478.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0004191/0.6247, allocations: 205.5 kB / 0.6573 GB, free: 4.547 MB / 478.1 MB Notification: Performance of NFScalarize.scalarize: time 6.805e-05/0.6248, allocations: 30.55 kB / 0.6574 GB, free: 4.523 MB / 478.1 MB Notification: Performance of NFVerifyModel.verify: time 0.000117/0.6249, allocations: 108 kB / 0.6575 GB, free: 4.449 MB / 478.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0004127/0.6253, allocations: 264.2 kB / 0.6577 GB, free: 4.277 MB / 478.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.278e-06/0.6253, allocations: 5.406 kB / 0.6577 GB, free: 4.273 MB / 478.1 MB Notification: Performance of FrontEnd: time 4.028e-06/0.6253, allocations: 0 / 0.6577 GB, free: 4.273 MB / 478.1 MB Notification: Performance of Transformations before backend: time 6.122e-06/0.6254, allocations: 3.938 kB / 0.6577 GB, free: 4.27 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.001022/0.6264, allocations: 0.5724 MB / 0.6583 GB, free: 3.727 MB / 478.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.874e-05/0.6264, allocations: 8.375 kB / 0.6583 GB, free: 3.727 MB / 478.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 6.755e-05/0.6265, allocations: 26 kB / 0.6583 GB, free: 3.715 MB / 478.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003604/0.6269, allocations: 290.9 kB / 0.6586 GB, free: 3.434 MB / 478.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.148e-05/0.6269, allocations: 13 kB / 0.6586 GB, free: 3.426 MB / 478.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 3.558e-05/0.6269, allocations: 18.47 kB / 0.6586 GB, free: 3.418 MB / 478.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003808/0.6273, allocations: 171 kB / 0.6588 GB, free: 3.285 MB / 478.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 8.997e-06/0.6274, allocations: 0 / 0.6588 GB, free: 3.285 MB / 478.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.765e-05/0.6274, allocations: 5.438 kB / 0.6588 GB, free: 3.281 MB / 478.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.374e-06/0.6274, allocations: 4.594 kB / 0.6588 GB, free: 3.281 MB / 478.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.000306/0.6277, allocations: 98.83 kB / 0.6589 GB, free: 3.234 MB / 478.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001072/0.6288, allocations: 0.9133 MB / 0.6598 GB, free: 2.32 MB / 478.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0003062/0.6291, allocations: 90.39 kB / 0.6599 GB, free: 2.262 MB / 478.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001363/0.6292, allocations: 40.2 kB / 0.6599 GB, free: 2.238 MB / 478.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0001021/0.6294, allocations: 79.86 kB / 0.66 GB, free: 2.145 MB / 478.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0003094/0.6297, allocations: 88.05 kB / 0.6601 GB, free: 2.07 MB / 478.1 MB Notification: Performance of pre-optimization done (n=7): time 1.883e-06/0.6297, allocations: 4 kB / 0.6601 GB, free: 2.066 MB / 478.1 MB Notification: Performance of matching and sorting (n=7): time 0.0004959/0.6302, allocations: 154 kB / 0.6602 GB, free: 1.977 MB / 478.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.606e-05/0.6303, allocations: 52.78 kB / 0.6603 GB, free: 1.914 MB / 478.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002674/0.6305, allocations: 278 kB / 0.6605 GB, free: 1.723 MB / 478.1 MB Notification: Performance of collectPreVariables (initialization): time 1.954e-05/0.6306, allocations: 31.02 kB / 0.6606 GB, free: 1.688 MB / 478.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001188/0.6307, allocations: 177.3 kB / 0.6607 GB, free: 1.523 MB / 478.1 MB Notification: Performance of collectInitialBindings (initialization): time 2.186e-05/0.6307, allocations: 19.84 kB / 0.6607 GB, free: 1.508 MB / 478.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 6.839e-05/0.6308, allocations: 36.7 kB / 0.6608 GB, free: 1.477 MB / 478.1 MB Notification: Performance of setup shared object (initialization): time 0.0001238/0.6309, allocations: 336.3 kB / 0.6611 GB, free: 1.145 MB / 478.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001565/0.6311, allocations: 41.06 kB / 0.6611 GB, free: 1.129 MB / 478.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001695/0.6313, allocations: 90.92 kB / 0.6612 GB, free: 1.051 MB / 478.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.000304/0.6316, allocations: 148 kB / 0.6614 GB, free: 0.9258 MB / 478.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.437e-06/0.6316, allocations: 2.406 kB / 0.6614 GB, free: 0.9258 MB / 478.1 MB Notification: Performance of matching and sorting (n=17) (initialization): time 0.000446/0.632, allocations: 208.5 kB / 0.6616 GB, free: 0.793 MB / 478.1 MB Notification: Performance of prepare postOptimizeDAE: time 3.299e-05/0.6321, allocations: 30.52 kB / 0.6616 GB, free: 0.7617 MB / 478.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.841e-06/0.6321, allocations: 6.594 kB / 0.6616 GB, free: 0.7578 MB / 478.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.686e-05/0.6321, allocations: 9.984 kB / 0.6616 GB, free: 0.75 MB / 478.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001603/0.6323, allocations: 28.39 kB / 0.6616 GB, free: 0.7422 MB / 478.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 9.457e-06/0.6323, allocations: 6.984 kB / 0.6616 GB, free: 0.7422 MB / 478.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001736/0.6325, allocations: 31.39 kB / 0.6617 GB, free: 0.7188 MB / 478.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.659e-05/0.6325, allocations: 4.656 kB / 0.6617 GB, free: 0.7188 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 0.0001238/0.6326, allocations: 138.6 kB / 0.6618 GB, free: 0.5859 MB / 478.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.013e-05/0.6327, allocations: 21.78 kB / 0.6618 GB, free: 0.5742 MB / 478.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0003637/0.633, allocations: 133.8 kB / 0.662 GB, free: 496 kB / 478.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.951e-06/0.6331, allocations: 11.92 kB / 0.662 GB, free: 484 kB / 478.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.541e-06/0.6331, allocations: 0 / 0.662 GB, free: 484 kB / 478.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.378e-06/0.6331, allocations: 3.812 kB / 0.662 GB, free: 484 kB / 478.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002201/0.6333, allocations: 242.9 kB / 0.6622 GB, free: 228 kB / 478.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.233e-06/0.6333, allocations: 2.25 kB / 0.6622 GB, free: 228 kB / 478.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001129/0.6334, allocations: 18.75 kB / 0.6622 GB, free: 220 kB / 478.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 3.567e-06/0.6334, allocations: 1.781 kB / 0.6622 GB, free: 220 kB / 478.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.192e-05/0.6335, allocations: 0 / 0.6622 GB, free: 220 kB / 478.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 5e-06/0.6335, allocations: 6.562 kB / 0.6622 GB, free: 216 kB / 478.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.343e-06/0.6335, allocations: 0 / 0.6622 GB, free: 216 kB / 478.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0004674/0.6339, allocations: 190.5 kB / 0.6624 GB, free: 80 kB / 478.1 MB Notification: Performance of postOpt removeConstants (simulation): time 7.979e-05/0.634, allocations: 93.55 kB / 0.6625 GB, free: 15.97 MB / 494.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.252e-05/0.6341, allocations: 2.906 kB / 0.6625 GB, free: 15.97 MB / 494.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001286/0.6342, allocations: 16.77 kB / 0.6625 GB, free: 15.96 MB / 494.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.748e-05/0.6343, allocations: 13.2 kB / 0.6625 GB, free: 15.95 MB / 494.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 9.909e-06/0.6343, allocations: 10.77 kB / 0.6625 GB, free: 15.95 MB / 494.1 MB Notification: Performance of sorting global known variables: time 0.0001843/0.6345, allocations: 191.5 kB / 0.6627 GB, free: 15.82 MB / 494.1 MB Notification: Performance of sort global known variables: time 1.4e-07/0.6345, allocations: 0 / 0.6627 GB, free: 15.82 MB / 494.1 MB Notification: Performance of remove unused functions: time 0.0002741/0.6348, allocations: 47.06 kB / 0.6628 GB, free: 15.8 MB / 494.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.0001866/0.635, allocations: 136.1 kB / 0.6629 GB, free: 15.7 MB / 494.1 MB Notification: Performance of simCode: created initialization part: time 0.0003937/0.6354, allocations: 161.7 kB / 0.6631 GB, free: 15.59 MB / 494.1 MB Notification: Performance of simCode: created event and clocks part: time 2.365e-06/0.6354, allocations: 0 / 0.6631 GB, free: 15.59 MB / 494.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0001449/0.6355, allocations: 40.81 kB / 0.6631 GB, free: 15.57 MB / 494.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003834/0.6359, allocations: 50.95 kB / 0.6631 GB, free: 15.54 MB / 494.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0008483/0.6368, allocations: 0.4992 MB / 0.6636 GB, free: 15.16 MB / 494.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002952/0.6371, allocations: 0.7431 MB / 0.6644 GB, free: 14.43 MB / 494.1 MB Notification: Performance of simCode: alias equations: time 9.421e-05/0.6372, allocations: 22.8 kB / 0.6644 GB, free: 14.42 MB / 494.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 4.579e-05/0.6373, allocations: 23.7 kB / 0.6644 GB, free: 14.41 MB / 494.1 MB Notification: Performance of SimCode: time 2.4e-07/0.6373, allocations: 0 / 0.6644 GB, free: 14.41 MB / 494.1 MB Notification: Performance of Templates: time 0.005718/0.643, allocations: 2.352 MB / 0.6667 GB, free: 13.23 MB / 494.1 MB make -j1 -f ThermofluidStream_dev_ThermofluidStream.Boundaries.Tests.TerminalSourceSink.makefile (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) 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) Reference file matches