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.001315/0.001315, allocations: 100.1 kB / 15.88 MB, free: 12 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.00174/0.00174, allocations: 199.8 kB / 16.8 MB, free: 6.828 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.305/1.305, allocations: 222.9 MB / 240.5 MB, free: 4.543 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ThermofluidStream 1.1.0-main/package.mo): time 0.6304/0.6304, allocations: 89.52 MB / 380.1 MB, free: 11.26 MB / 318.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001447/0.001447, allocations: 80.38 kB / 458.2 MB, free: 23.88 MB / 350.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1069/0.1084, allocations: 67.32 MB / 0.5132 GB, free: 12.92 MB / 398.1 MB Notification: Performance of NFInst.instantiate(ThermofluidStream.Boundaries.Tests.TerminalSourceSink): time 0.3602/0.4686, allocations: 138.4 MB / 0.6483 GB, free: 13.88 MB / 478.1 MB Notification: Performance of NFInst.instExpressions: time 0.002253/0.4709, allocations: 2.104 MB / 0.6504 GB, free: 12.55 MB / 478.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001789/0.4711, allocations: 2.281 kB / 0.6504 GB, free: 12.55 MB / 478.1 MB Notification: Performance of NFTyping.typeComponents: time 0.00044/0.4715, allocations: 107.5 kB / 0.6505 GB, free: 12.47 MB / 478.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0002991/0.4719, allocations: 104.9 kB / 0.6506 GB, free: 12.4 MB / 478.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0004016/0.4723, allocations: 164.2 kB / 0.6507 GB, free: 12.3 MB / 478.1 MB Notification: Performance of NFFlatten.flatten: time 0.0002785/0.4726, allocations: 292.2 kB / 0.651 GB, free: 12.2 MB / 478.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001315/0.4727, allocations: 56.14 kB / 0.6511 GB, free: 12.18 MB / 478.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0003768/0.4731, allocations: 156.1 kB / 0.6512 GB, free: 12.11 MB / 478.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001577/0.4733, allocations: 118.2 kB / 0.6513 GB, free: 12.06 MB / 478.1 MB Notification: Performance of NFPackage.collectConstants: time 2.344e-05/0.4733, allocations: 8.188 kB / 0.6513 GB, free: 12.06 MB / 478.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0003828/0.4737, allocations: 207.2 kB / 0.6515 GB, free: 11.97 MB / 478.1 MB Notification: Performance of NFScalarize.scalarize: time 3.904e-05/0.4737, allocations: 29.45 kB / 0.6516 GB, free: 11.95 MB / 478.1 MB Notification: Performance of NFVerifyModel.verify: time 8.019e-05/0.4738, allocations: 81.22 kB / 0.6516 GB, free: 11.9 MB / 478.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0002256/0.474, allocations: 165.4 kB / 0.6518 GB, free: 11.79 MB / 478.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.737e-06/0.4741, allocations: 0 / 0.6518 GB, free: 11.79 MB / 478.1 MB Notification: Performance of FrontEnd: time 7.42e-07/0.4741, allocations: 1.875 kB / 0.6518 GB, free: 11.79 MB / 478.1 MB Notification: Performance of Transformations before backend: time 4.548e-06/0.4741, allocations: 0 / 0.6518 GB, free: 11.79 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.000822/0.4749, allocations: 0.5091 MB / 0.6523 GB, free: 11.3 MB / 478.1 MB Notification: Performance of prepare preOptimizeDAE: time 2.988e-05/0.4749, allocations: 11.81 kB / 0.6523 GB, free: 11.29 MB / 478.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 5.104e-05/0.475, allocations: 18.81 kB / 0.6523 GB, free: 11.29 MB / 478.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002137/0.4752, allocations: 229.1 kB / 0.6525 GB, free: 11.04 MB / 478.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.396e-05/0.4752, allocations: 9.531 kB / 0.6526 GB, free: 11.04 MB / 478.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 3.209e-05/0.4753, allocations: 11.44 kB / 0.6526 GB, free: 11.03 MB / 478.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003182/0.4756, allocations: 169.5 kB / 0.6527 GB, free: 10.9 MB / 478.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 8.295e-06/0.4756, allocations: 4 kB / 0.6527 GB, free: 10.9 MB / 478.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.656e-05/0.4756, allocations: 4 kB / 0.6527 GB, free: 10.89 MB / 478.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.653e-06/0.4757, allocations: 4.969 kB / 0.6527 GB, free: 10.89 MB / 478.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002849/0.476, allocations: 98.53 kB / 0.6528 GB, free: 10.85 MB / 478.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0008971/0.4769, allocations: 0.89 MB / 0.6537 GB, free: 9.953 MB / 478.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0002898/0.4772, allocations: 90.52 kB / 0.6538 GB, free: 9.895 MB / 478.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.000122/0.4773, allocations: 39.02 kB / 0.6538 GB, free: 9.871 MB / 478.1 MB Notification: Performance of preOpt evalFunc (simulation): time 8.582e-05/0.4774, allocations: 86.11 kB / 0.6539 GB, free: 9.773 MB / 478.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002686/0.4777, allocations: 85.83 kB / 0.654 GB, free: 9.699 MB / 478.1 MB Notification: Performance of pre-optimization done (n=7): time 1.493e-06/0.4777, allocations: 0 / 0.654 GB, free: 9.699 MB / 478.1 MB Notification: Performance of matching and sorting (n=7): time 0.0004503/0.4781, allocations: 156 kB / 0.6541 GB, free: 9.605 MB / 478.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.362e-05/0.4782, allocations: 53.62 kB / 0.6542 GB, free: 9.543 MB / 478.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.00016/0.4783, allocations: 201 kB / 0.6544 GB, free: 9.387 MB / 478.1 MB Notification: Performance of collectPreVariables (initialization): time 1.964e-05/0.4784, allocations: 28.2 kB / 0.6544 GB, free: 9.355 MB / 478.1 MB Notification: Performance of collectInitialEqns (initialization): time 8.086e-05/0.4785, allocations: 149.8 kB / 0.6546 GB, free: 9.215 MB / 478.1 MB Notification: Performance of collectInitialBindings (initialization): time 1.946e-05/0.4785, allocations: 18.06 kB / 0.6546 GB, free: 9.199 MB / 478.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 5.879e-05/0.4785, allocations: 34.39 kB / 0.6546 GB, free: 9.172 MB / 478.1 MB Notification: Performance of setup shared object (initialization): time 0.0001011/0.4787, allocations: 328.9 kB / 0.6549 GB, free: 8.844 MB / 478.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001462/0.4788, allocations: 42.31 kB / 0.655 GB, free: 8.824 MB / 478.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001548/0.479, allocations: 81.52 kB / 0.655 GB, free: 8.754 MB / 478.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002933/0.4793, allocations: 146.7 kB / 0.6552 GB, free: 8.633 MB / 478.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.024e-06/0.4793, allocations: 0 / 0.6552 GB, free: 8.633 MB / 478.1 MB Notification: Performance of matching and sorting (n=17) (initialization): time 0.0003988/0.4797, allocations: 209.9 kB / 0.6554 GB, free: 8.496 MB / 478.1 MB Notification: Performance of prepare postOptimizeDAE: time 3.44e-05/0.4797, allocations: 34.02 kB / 0.6554 GB, free: 8.461 MB / 478.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.44e-06/0.4797, allocations: 3.219 kB / 0.6554 GB, free: 8.461 MB / 478.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.33e-05/0.4798, allocations: 6.625 kB / 0.6554 GB, free: 8.457 MB / 478.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.00015/0.4799, allocations: 30.23 kB / 0.6554 GB, free: 8.449 MB / 478.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 5.57e-06/0.4799, allocations: 0 / 0.6554 GB, free: 8.449 MB / 478.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001607/0.4801, allocations: 26.17 kB / 0.6555 GB, free: 8.434 MB / 478.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.816e-05/0.4801, allocations: 8.875 kB / 0.6555 GB, free: 8.43 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.0001011/0.4802, allocations: 135.8 kB / 0.6556 GB, free: 8.297 MB / 478.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.544e-05/0.4803, allocations: 15.19 kB / 0.6556 GB, free: 8.289 MB / 478.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0003297/0.4806, allocations: 119.8 kB / 0.6557 GB, free: 8.215 MB / 478.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.101e-06/0.4806, allocations: 6.906 kB / 0.6557 GB, free: 8.211 MB / 478.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.057e-06/0.4806, allocations: 0 / 0.6557 GB, free: 8.211 MB / 478.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.406e-06/0.4806, allocations: 4 kB / 0.6557 GB, free: 8.207 MB / 478.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.000177/0.4808, allocations: 225.1 kB / 0.656 GB, free: 7.965 MB / 478.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.963e-06/0.4808, allocations: 1.75 kB / 0.656 GB, free: 7.965 MB / 478.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001095/0.4809, allocations: 16.7 kB / 0.656 GB, free: 7.961 MB / 478.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.853e-06/0.4809, allocations: 0 / 0.656 GB, free: 7.961 MB / 478.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.152e-05/0.481, allocations: 2.438 kB / 0.656 GB, free: 7.961 MB / 478.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 5.34e-06/0.481, allocations: 3.938 kB / 0.656 GB, free: 7.957 MB / 478.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 8.22e-07/0.481, allocations: 3.938 kB / 0.656 GB, free: 7.953 MB / 478.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0004268/0.4814, allocations: 177.7 kB / 0.6562 GB, free: 7.832 MB / 478.1 MB Notification: Performance of postOpt removeConstants (simulation): time 5.491e-05/0.4815, allocations: 96.19 kB / 0.6563 GB, free: 7.723 MB / 478.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.83e-05/0.4815, allocations: 1.719 kB / 0.6563 GB, free: 7.723 MB / 478.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001122/0.4816, allocations: 14.33 kB / 0.6563 GB, free: 7.715 MB / 478.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.732e-05/0.4817, allocations: 12.61 kB / 0.6563 GB, free: 7.707 MB / 478.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 8.426e-06/0.4817, allocations: 2.438 kB / 0.6563 GB, free: 7.707 MB / 478.1 MB Notification: Performance of sorting global known variables: time 0.0001033/0.4818, allocations: 148.9 kB / 0.6564 GB, free: 7.598 MB / 478.1 MB Notification: Performance of sort global known variables: time 1.5e-07/0.4818, allocations: 3.938 kB / 0.6564 GB, free: 7.594 MB / 478.1 MB Notification: Performance of remove unused functions: time 0.0002518/0.4821, allocations: 43.75 kB / 0.6565 GB, free: 7.582 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.0001716/0.4823, allocations: 137.1 kB / 0.6566 GB, free: 7.473 MB / 478.1 MB Notification: Performance of simCode: created initialization part: time 0.0003574/0.4826, allocations: 163 kB / 0.6568 GB, free: 7.359 MB / 478.1 MB Notification: Performance of simCode: created event and clocks part: time 2.625e-06/0.4826, allocations: 0.7188 kB / 0.6568 GB, free: 7.359 MB / 478.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0001331/0.4828, allocations: 35.98 kB / 0.6568 GB, free: 7.348 MB / 478.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.000334/0.4831, allocations: 39.27 kB / 0.6568 GB, free: 7.328 MB / 478.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0007024/0.4838, allocations: 454.2 kB / 0.6573 GB, free: 6.965 MB / 478.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.000232/0.4841, allocations: 0.7173 MB / 0.658 GB, free: 6.25 MB / 478.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 4.507e-05/0.4841, allocations: 15.25 kB / 0.658 GB, free: 6.242 MB / 478.1 MB Notification: Performance of SimCode: time 3.1e-07/0.4841, allocations: 0 / 0.658 GB, free: 6.242 MB / 478.1 MB Notification: Performance of Templates: time 0.003883/0.488, allocations: 2.374 MB / 0.6603 GB, free: 5.012 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