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.001458/0.001458, allocations: 103.4 kB / 15.33 MB, free: 0.5078 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.001876/0.001876, allocations: 195.9 kB / 16.25 MB, free: 6.629 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.387/1.387, allocations: 222.9 MB / 239.9 MB, free: 4.535 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ThermofluidStream 1.1.0-main/package.mo): time 0.6523/0.6523, allocations: 91.19 MB / 381.3 MB, free: 9.527 MB / 318.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001437/0.001437, allocations: 81.03 kB / 459.8 MB, free: 23.32 MB / 350.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1093/0.1108, allocations: 67.7 MB / 0.5151 GB, free: 10.53 MB / 398.1 MB Notification: Performance of NFInst.instantiate(ThermofluidStream.Boundaries.Tests.TerminalSourceSink): time 0.361/0.4718, allocations: 138.8 MB / 0.6507 GB, free: 11.09 MB / 478.1 MB Notification: Performance of NFInst.instExpressions: time 0.002401/0.4742, allocations: 2.132 MB / 0.6527 GB, free: 9.605 MB / 478.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0002406/0.4745, allocations: 11.31 kB / 0.6527 GB, free: 9.602 MB / 478.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0004427/0.4749, allocations: 111.3 kB / 0.6529 GB, free: 9.516 MB / 478.1 MB Notification: Performance of NFTyping.typeBindings: time 0.000312/0.4753, allocations: 121.2 kB / 0.653 GB, free: 9.418 MB / 478.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0003339/0.4756, allocations: 149.3 kB / 0.6531 GB, free: 9.309 MB / 478.1 MB Notification: Performance of NFFlatten.flatten: time 0.0002852/0.4759, allocations: 298.3 kB / 0.6534 GB, free: 9.137 MB / 478.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001402/0.4761, allocations: 75.17 kB / 0.6535 GB, free: 9.094 MB / 478.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0003761/0.4765, allocations: 197.4 kB / 0.6537 GB, free: 8.969 MB / 478.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001676/0.4767, allocations: 129 kB / 0.6538 GB, free: 8.891 MB / 478.1 MB Notification: Performance of NFPackage.collectConstants: time 2.222e-05/0.4767, allocations: 12.75 kB / 0.6538 GB, free: 8.891 MB / 478.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0003237/0.477, allocations: 207.3 kB / 0.654 GB, free: 8.801 MB / 478.1 MB Notification: Performance of NFScalarize.scalarize: time 5.497e-05/0.4771, allocations: 37.58 kB / 0.654 GB, free: 8.77 MB / 478.1 MB Notification: Performance of NFVerifyModel.verify: time 9.001e-05/0.4772, allocations: 103.9 kB / 0.6541 GB, free: 8.699 MB / 478.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0003572/0.4775, allocations: 280.3 kB / 0.6544 GB, free: 8.523 MB / 478.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.008e-06/0.4776, allocations: 4 kB / 0.6544 GB, free: 8.52 MB / 478.1 MB Notification: Performance of FrontEnd: time 1.263e-06/0.4776, allocations: 0 / 0.6544 GB, free: 8.52 MB / 478.1 MB Notification: Performance of Transformations before backend: time 5.56e-06/0.4776, allocations: 0 / 0.6544 GB, free: 8.52 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.0009139/0.4785, allocations: 0.5619 MB / 0.6549 GB, free: 7.984 MB / 478.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.508e-05/0.4785, allocations: 9.906 kB / 0.655 GB, free: 7.984 MB / 478.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 6.431e-05/0.4786, allocations: 28.44 kB / 0.655 GB, free: 7.969 MB / 478.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003131/0.4789, allocations: 287 kB / 0.6553 GB, free: 7.691 MB / 478.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.638e-05/0.479, allocations: 14.47 kB / 0.6553 GB, free: 7.684 MB / 478.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 3.792e-05/0.479, allocations: 19.69 kB / 0.6553 GB, free: 7.676 MB / 478.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003222/0.4793, allocations: 170.3 kB / 0.6555 GB, free: 7.543 MB / 478.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 8.075e-06/0.4793, allocations: 3.938 kB / 0.6555 GB, free: 7.539 MB / 478.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.797e-05/0.4794, allocations: 6.812 kB / 0.6555 GB, free: 7.535 MB / 478.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.3e-06/0.4794, allocations: 2.844 kB / 0.6555 GB, free: 7.535 MB / 478.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.000287/0.4797, allocations: 103 kB / 0.6556 GB, free: 7.484 MB / 478.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0009631/0.4806, allocations: 0.903 MB / 0.6564 GB, free: 6.582 MB / 478.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0003022/0.481, allocations: 94.34 kB / 0.6565 GB, free: 6.52 MB / 478.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001366/0.4811, allocations: 40.55 kB / 0.6566 GB, free: 6.496 MB / 478.1 MB Notification: Performance of preOpt evalFunc (simulation): time 9.455e-05/0.4812, allocations: 88.41 kB / 0.6567 GB, free: 6.395 MB / 478.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.000307/0.4815, allocations: 83.2 kB / 0.6567 GB, free: 6.324 MB / 478.1 MB Notification: Performance of pre-optimization done (n=7): time 1.763e-06/0.4815, allocations: 0 / 0.6567 GB, free: 6.324 MB / 478.1 MB Notification: Performance of matching and sorting (n=7): time 0.0005033/0.482, allocations: 158.3 kB / 0.6569 GB, free: 6.23 MB / 478.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.826e-05/0.4821, allocations: 52.53 kB / 0.6569 GB, free: 6.168 MB / 478.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002788/0.4824, allocations: 260.4 kB / 0.6572 GB, free: 5.984 MB / 478.1 MB Notification: Performance of collectPreVariables (initialization): time 2.157e-05/0.4824, allocations: 27.23 kB / 0.6572 GB, free: 5.953 MB / 478.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.000119/0.4825, allocations: 177.1 kB / 0.6574 GB, free: 5.789 MB / 478.1 MB Notification: Performance of collectInitialBindings (initialization): time 2.299e-05/0.4826, allocations: 16.12 kB / 0.6574 GB, free: 5.777 MB / 478.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 6.371e-05/0.4826, allocations: 40.23 kB / 0.6574 GB, free: 5.742 MB / 478.1 MB Notification: Performance of setup shared object (initialization): time 0.0001147/0.4828, allocations: 332.8 kB / 0.6578 GB, free: 5.414 MB / 478.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001506/0.4829, allocations: 42.5 kB / 0.6578 GB, free: 5.395 MB / 478.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001645/0.4831, allocations: 85.23 kB / 0.6579 GB, free: 5.32 MB / 478.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003018/0.4834, allocations: 154.9 kB / 0.658 GB, free: 5.191 MB / 478.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.416e-06/0.4834, allocations: 4.875 kB / 0.658 GB, free: 5.191 MB / 478.1 MB Notification: Performance of matching and sorting (n=17) (initialization): time 0.0004188/0.4838, allocations: 208.4 kB / 0.6582 GB, free: 5.059 MB / 478.1 MB Notification: Performance of prepare postOptimizeDAE: time 3.153e-05/0.4839, allocations: 38.94 kB / 0.6583 GB, free: 5.02 MB / 478.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.67e-06/0.4839, allocations: 6.875 kB / 0.6583 GB, free: 5.016 MB / 478.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.202e-05/0.4839, allocations: 3.938 kB / 0.6583 GB, free: 5.012 MB / 478.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001497/0.4841, allocations: 26.27 kB / 0.6583 GB, free: 5.008 MB / 478.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 5.52e-06/0.4841, allocations: 2.562 kB / 0.6583 GB, free: 5.008 MB / 478.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001655/0.4842, allocations: 22.2 kB / 0.6583 GB, free: 4.996 MB / 478.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.643e-05/0.4843, allocations: 12.72 kB / 0.6583 GB, free: 4.988 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.0001079/0.4844, allocations: 137.9 kB / 0.6585 GB, free: 4.855 MB / 478.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.546e-05/0.4844, allocations: 30.16 kB / 0.6585 GB, free: 4.836 MB / 478.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0003402/0.4848, allocations: 127.1 kB / 0.6586 GB, free: 4.75 MB / 478.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.359e-06/0.4848, allocations: 5.969 kB / 0.6586 GB, free: 4.746 MB / 478.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.847e-06/0.4848, allocations: 3.938 kB / 0.6586 GB, free: 4.742 MB / 478.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.368e-06/0.4848, allocations: 3.984 kB / 0.6586 GB, free: 4.738 MB / 478.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001933/0.485, allocations: 241.9 kB / 0.6589 GB, free: 4.488 MB / 478.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.273e-06/0.485, allocations: 0 / 0.6589 GB, free: 4.488 MB / 478.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001117/0.4851, allocations: 20.34 kB / 0.6589 GB, free: 4.48 MB / 478.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.504e-06/0.4851, allocations: 5.375 kB / 0.6589 GB, free: 4.477 MB / 478.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.069e-05/0.4852, allocations: 0 / 0.6589 GB, free: 4.477 MB / 478.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.016e-06/0.4852, allocations: 5.312 kB / 0.6589 GB, free: 4.473 MB / 478.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 9.62e-07/0.4852, allocations: 0 / 0.6589 GB, free: 4.473 MB / 478.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0004553/0.4856, allocations: 183.8 kB / 0.6591 GB, free: 4.348 MB / 478.1 MB Notification: Performance of postOpt removeConstants (simulation): time 5.349e-05/0.4857, allocations: 93.58 kB / 0.6592 GB, free: 4.242 MB / 478.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.24e-05/0.4857, allocations: 4.844 kB / 0.6592 GB, free: 4.238 MB / 478.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001258/0.4859, allocations: 23.08 kB / 0.6592 GB, free: 4.223 MB / 478.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.682e-05/0.4859, allocations: 9.141 kB / 0.6592 GB, free: 4.219 MB / 478.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 9.448e-06/0.4859, allocations: 2.562 kB / 0.6592 GB, free: 4.219 MB / 478.1 MB Notification: Performance of sorting global known variables: time 0.000162/0.4861, allocations: 188.9 kB / 0.6594 GB, free: 4.094 MB / 478.1 MB Notification: Performance of sort global known variables: time 1.41e-07/0.4861, allocations: 0 / 0.6594 GB, free: 4.094 MB / 478.1 MB Notification: Performance of remove unused functions: time 0.0002889/0.4864, allocations: 49.02 kB / 0.6594 GB, free: 4.078 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.0001839/0.4866, allocations: 134.4 kB / 0.6595 GB, free: 3.973 MB / 478.1 MB Notification: Performance of simCode: created initialization part: time 0.0004054/0.487, allocations: 161.6 kB / 0.6597 GB, free: 3.863 MB / 478.1 MB Notification: Performance of simCode: created event and clocks part: time 2.615e-06/0.487, allocations: 320 / 0.6597 GB, free: 3.863 MB / 478.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0001398/0.4872, allocations: 48.81 kB / 0.6597 GB, free: 3.84 MB / 478.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003379/0.4875, allocations: 39.86 kB / 0.6598 GB, free: 3.824 MB / 478.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0007708/0.4883, allocations: 0.4984 MB / 0.6603 GB, free: 3.438 MB / 478.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002593/0.4886, allocations: 0.7345 MB / 0.661 GB, free: 2.719 MB / 478.1 MB Notification: Performance of simCode: alias equations: time 9.099e-05/0.4887, allocations: 28.06 kB / 0.661 GB, free: 2.699 MB / 478.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 4.229e-05/0.4887, allocations: 20.25 kB / 0.661 GB, free: 2.691 MB / 478.1 MB Notification: Performance of SimCode: time 2.3e-07/0.4887, allocations: 0 / 0.661 GB, free: 2.691 MB / 478.1 MB Notification: Performance of Templates: time 0.005356/0.4941, allocations: 2.428 MB / 0.6634 GB, free: 1.48 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/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/ThermofluidStream_ThermofluidStream.Boundaries.Tests.TerminalSourceSink.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches