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.001398/0.001398, allocations: 111.4 kB / 16.37 MB, free: 6.469 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.001378/0.001378, allocations: 196.6 kB / 17.31 MB, free: 5.824 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.323/1.323, allocations: 222.9 MB / 241 MB, free: 15.18 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ThermofluidStream 1.1.0-main/package.mo): time 0.6829/0.6829, allocations: 89.48 MB / 380.6 MB, free: 8.734 MB / 302.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001479/0.001479, allocations: 72.11 kB / 459.7 MB, free: 10.61 MB / 382.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1146/0.1161, allocations: 67.31 MB / 0.5146 GB, free: 7.219 MB / 446.1 MB Notification: Performance of NFInst.instantiate(ThermofluidStream.Boundaries.Tests.TerminalSourceSink): time 0.338/0.4541, allocations: 140.4 MB / 0.6517 GB, free: 10.91 MB / 0.4981 GB Notification: Performance of NFInst.instExpressions: time 0.002233/0.4564, allocations: 2.064 MB / 0.6537 GB, free: 8.844 MB / 0.4981 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.000102/0.4565, allocations: 11.88 kB / 0.6537 GB, free: 8.832 MB / 0.4981 GB Notification: Performance of NFTyping.typeComponents: time 0.0004252/0.457, allocations: 119 kB / 0.6539 GB, free: 8.719 MB / 0.4981 GB Notification: Performance of NFTyping.typeBindings: time 0.0002827/0.4573, allocations: 117.8 kB / 0.654 GB, free: 8.605 MB / 0.4981 GB Notification: Performance of NFTyping.typeClassSections: time 0.0003514/0.4577, allocations: 171.4 kB / 0.6541 GB, free: 8.438 MB / 0.4981 GB Notification: Performance of NFFlatten.flatten: time 0.0002859/0.458, allocations: 243 kB / 0.6544 GB, free: 8.199 MB / 0.4981 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0001489/0.4581, allocations: 71.78 kB / 0.6544 GB, free: 8.129 MB / 0.4981 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0003597/0.4585, allocations: 168 kB / 0.6546 GB, free: 7.965 MB / 0.4981 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0001553/0.4587, allocations: 111.5 kB / 0.6547 GB, free: 7.855 MB / 0.4981 GB Notification: Performance of NFPackage.collectConstants: time 2.317e-05/0.4587, allocations: 12 kB / 0.6547 GB, free: 7.844 MB / 0.4981 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0003552/0.4591, allocations: 207.6 kB / 0.6549 GB, free: 7.641 MB / 0.4981 GB Notification: Performance of NFScalarize.scalarize: time 4.087e-05/0.4591, allocations: 35.83 kB / 0.6549 GB, free: 7.605 MB / 0.4981 GB Notification: Performance of NFVerifyModel.verify: time 9.83e-05/0.4592, allocations: 83.61 kB / 0.655 GB, free: 7.523 MB / 0.4981 GB Notification: Performance of NFConvertDAE.convert: time 0.0003639/0.4596, allocations: 249 kB / 0.6553 GB, free: 7.285 MB / 0.4981 GB Notification: Performance of FrontEnd - DAE generated: time 3.327e-06/0.4596, allocations: 0.5625 kB / 0.6553 GB, free: 7.285 MB / 0.4981 GB Notification: Performance of FrontEnd: time 1.724e-06/0.4596, allocations: 0 / 0.6553 GB, free: 7.285 MB / 0.4981 GB Notification: Performance of Transformations before backend: time 5.66e-06/0.4596, allocations: 0 / 0.6553 GB, free: 7.285 MB / 0.4981 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.0008037/0.4604, allocations: 0.5046 MB / 0.6558 GB, free: 6.73 MB / 0.4981 GB Notification: Performance of prepare preOptimizeDAE: time 3.031e-05/0.4605, allocations: 8.031 kB / 0.6558 GB, free: 6.723 MB / 0.4981 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 5.36e-05/0.4605, allocations: 20.75 kB / 0.6558 GB, free: 6.703 MB / 0.4981 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002036/0.4607, allocations: 224.4 kB / 0.656 GB, free: 6.445 MB / 0.4981 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.319e-05/0.4608, allocations: 4.375 kB / 0.656 GB, free: 6.441 MB / 0.4981 GB Notification: Performance of preOpt expandDerOperator (simulation): time 3.796e-05/0.4608, allocations: 22.56 kB / 0.656 GB, free: 6.422 MB / 0.4981 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.000319/0.4611, allocations: 166.9 kB / 0.6562 GB, free: 6.242 MB / 0.4981 GB Notification: Performance of preOpt findStateOrder (simulation): time 9.448e-06/0.4611, allocations: 3.938 kB / 0.6562 GB, free: 6.238 MB / 0.4981 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.509e-05/0.4612, allocations: 4 kB / 0.6562 GB, free: 6.234 MB / 0.4981 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.272e-06/0.4612, allocations: 4.656 kB / 0.6562 GB, free: 6.23 MB / 0.4981 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002888/0.4615, allocations: 95.92 kB / 0.6563 GB, free: 6.137 MB / 0.4981 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.000941/0.4624, allocations: 0.8831 MB / 0.6571 GB, free: 5.156 MB / 0.4981 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0002768/0.4627, allocations: 90.47 kB / 0.6572 GB, free: 5.059 MB / 0.4981 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001191/0.4628, allocations: 40.95 kB / 0.6573 GB, free: 5.016 MB / 0.4981 GB Notification: Performance of preOpt evalFunc (simulation): time 9.737e-05/0.4629, allocations: 89.09 kB / 0.6574 GB, free: 4.91 MB / 0.4981 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002568/0.4632, allocations: 84.39 kB / 0.6574 GB, free: 4.816 MB / 0.4981 GB Notification: Performance of pre-optimization done (n=7): time 2.946e-06/0.4632, allocations: 0 / 0.6574 GB, free: 4.816 MB / 0.4981 GB Notification: Performance of matching and sorting (n=7): time 0.0004607/0.4637, allocations: 159.3 kB / 0.6576 GB, free: 4.656 MB / 0.4981 GB Notification: Performance of inlineWhenForInitialization (initialization): time 4.151e-05/0.4637, allocations: 59.34 kB / 0.6576 GB, free: 4.586 MB / 0.4981 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001698/0.4639, allocations: 195.7 kB / 0.6578 GB, free: 4.383 MB / 0.4981 GB Notification: Performance of collectPreVariables (initialization): time 1.71e-05/0.4639, allocations: 25.7 kB / 0.6579 GB, free: 4.352 MB / 0.4981 GB Notification: Performance of collectInitialEqns (initialization): time 9.362e-05/0.464, allocations: 147.6 kB / 0.658 GB, free: 4.203 MB / 0.4981 GB Notification: Performance of collectInitialBindings (initialization): time 2.129e-05/0.4641, allocations: 23.7 kB / 0.658 GB, free: 4.18 MB / 0.4981 GB Notification: Performance of simplifyInitialFunctions (initialization): time 5.729e-05/0.4641, allocations: 29.7 kB / 0.658 GB, free: 4.145 MB / 0.4981 GB Notification: Performance of setup shared object (initialization): time 0.0001086/0.4642, allocations: 330.8 kB / 0.6584 GB, free: 3.812 MB / 0.4981 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001542/0.4644, allocations: 43.97 kB / 0.6584 GB, free: 3.77 MB / 0.4981 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001519/0.4646, allocations: 82.95 kB / 0.6585 GB, free: 3.672 MB / 0.4981 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002789/0.4649, allocations: 146.8 kB / 0.6586 GB, free: 3.504 MB / 0.4981 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.914e-06/0.4649, allocations: 0 / 0.6586 GB, free: 3.504 MB / 0.4981 GB Notification: Performance of matching and sorting (n=17) (initialization): time 0.0004082/0.4653, allocations: 203 kB / 0.6588 GB, free: 3.293 MB / 0.4981 GB Notification: Performance of prepare postOptimizeDAE: time 3.478e-05/0.4653, allocations: 42.62 kB / 0.6589 GB, free: 3.246 MB / 0.4981 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.12e-06/0.4653, allocations: 0 / 0.6589 GB, free: 3.246 MB / 0.4981 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.643e-05/0.4654, allocations: 7.938 kB / 0.6589 GB, free: 3.238 MB / 0.4981 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001529/0.4655, allocations: 27.92 kB / 0.6589 GB, free: 3.211 MB / 0.4981 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 6.221e-06/0.4655, allocations: 4 kB / 0.6589 GB, free: 3.207 MB / 0.4981 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001451/0.4657, allocations: 20.52 kB / 0.6589 GB, free: 3.188 MB / 0.4981 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.651e-05/0.4657, allocations: 16.16 kB / 0.6589 GB, free: 3.172 MB / 0.4981 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.0001079/0.4658, allocations: 135.8 kB / 0.6591 GB, free: 3.031 MB / 0.4981 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.333e-05/0.4658, allocations: 15.81 kB / 0.6591 GB, free: 3.016 MB / 0.4981 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0003226/0.4662, allocations: 123 kB / 0.6592 GB, free: 2.891 MB / 0.4981 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.7e-06/0.4662, allocations: 7.938 kB / 0.6592 GB, free: 2.883 MB / 0.4981 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.667e-06/0.4662, allocations: 0 / 0.6592 GB, free: 2.883 MB / 0.4981 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.108e-06/0.4662, allocations: 0.625 kB / 0.6592 GB, free: 2.883 MB / 0.4981 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001804/0.4664, allocations: 226.2 kB / 0.6594 GB, free: 2.613 MB / 0.4981 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.022e-06/0.4664, allocations: 0 / 0.6594 GB, free: 2.613 MB / 0.4981 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001108/0.4665, allocations: 19.92 kB / 0.6594 GB, free: 2.594 MB / 0.4981 GB Notification: Performance of postOpt tearingSystem (simulation): time 2.554e-06/0.4665, allocations: 0.5625 kB / 0.6594 GB, free: 2.594 MB / 0.4981 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.085e-05/0.4665, allocations: 0 / 0.6594 GB, free: 2.594 MB / 0.4981 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.026e-06/0.4666, allocations: 3.938 kB / 0.6594 GB, free: 2.59 MB / 0.4981 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 8.22e-07/0.4666, allocations: 4 kB / 0.6594 GB, free: 2.586 MB / 0.4981 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0004286/0.467, allocations: 179.1 kB / 0.6596 GB, free: 2.395 MB / 0.4981 GB Notification: Performance of postOpt removeConstants (simulation): time 5.134e-05/0.4671, allocations: 92.95 kB / 0.6597 GB, free: 2.285 MB / 0.4981 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.826e-05/0.4671, allocations: 7.984 kB / 0.6597 GB, free: 2.277 MB / 0.4981 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001078/0.4672, allocations: 11.92 kB / 0.6597 GB, free: 2.266 MB / 0.4981 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.163e-05/0.4673, allocations: 12.61 kB / 0.6597 GB, free: 2.254 MB / 0.4981 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 9.148e-06/0.4673, allocations: 4 kB / 0.6597 GB, free: 2.25 MB / 0.4981 GB Notification: Performance of sorting global known variables: time 0.0001116/0.4674, allocations: 141.5 kB / 0.6599 GB, free: 2.113 MB / 0.4981 GB Notification: Performance of sort global known variables: time 1.41e-07/0.4674, allocations: 64 / 0.6599 GB, free: 2.113 MB / 0.4981 GB Notification: Performance of remove unused functions: time 0.0002604/0.4677, allocations: 43.91 kB / 0.6599 GB, free: 2.07 MB / 0.4981 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.0001846/0.4679, allocations: 139.7 kB / 0.66 GB, free: 1.93 MB / 0.4981 GB Notification: Performance of simCode: created initialization part: time 0.0003651/0.4682, allocations: 171.9 kB / 0.6602 GB, free: 1.75 MB / 0.4981 GB Notification: Performance of simCode: created event and clocks part: time 1.773e-06/0.4682, allocations: 0 / 0.6602 GB, free: 1.75 MB / 0.4981 GB Notification: Performance of simCode: created simulation system equations: time 0.0001338/0.4684, allocations: 35.97 kB / 0.6602 GB, free: 1.715 MB / 0.4981 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003424/0.4687, allocations: 42.17 kB / 0.6603 GB, free: 1.684 MB / 0.4981 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0006793/0.4694, allocations: 376.1 kB / 0.6606 GB, free: 1.297 MB / 0.4981 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002597/0.4697, allocations: 0.7162 MB / 0.6613 GB, free: 0.5547 MB / 0.4981 GB Notification: Performance of simCode: alias equations: time 6.939e-05/0.4698, allocations: 18.72 kB / 0.6614 GB, free: 0.5352 MB / 0.4981 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 3.383e-05/0.4698, allocations: 19.38 kB / 0.6614 GB, free: 0.5156 MB / 0.4981 GB Notification: Performance of SimCode: time 2.51e-07/0.4698, allocations: 0 / 0.6614 GB, free: 0.5156 MB / 0.4981 GB Notification: Performance of Templates: time 0.005346/0.4752, allocations: 2.331 MB / 0.6637 GB, free: 14.29 MB / 0.5137 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 -s gbode -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