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.00142/0.00142, allocations: 108 kB / 15.61 MB, free: 152 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: 193.8 kB / 16.53 MB, free: 6.664 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.374/1.374, allocations: 222.9 MB / 240.2 MB, free: 4.367 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ThermofluidStream 1.1.0-main/package.mo): time 0.7013/0.7013, allocations: 91.18 MB / 381.6 MB, free: 9.398 MB / 318.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001506/0.001506, allocations: 78.34 kB / 460.3 MB, free: 23.12 MB / 350.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.151/0.1526, allocations: 67.69 MB / 0.5156 GB, free: 10.2 MB / 398.1 MB Notification: Performance of NFInst.instantiate(ThermofluidStream.Boundaries.Tests.TerminalSourceSink): time 0.4338/0.5865, allocations: 140.5 MB / 0.6528 GB, free: 9.602 MB / 478.1 MB Notification: Performance of NFInst.instExpressions: time 0.002631/0.5892, allocations: 2.104 MB / 0.6548 GB, free: 7.891 MB / 478.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0002734/0.5895, allocations: 15.69 kB / 0.6548 GB, free: 7.883 MB / 478.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0005341/0.59, allocations: 117.7 kB / 0.6549 GB, free: 7.789 MB / 478.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0004632/0.5905, allocations: 139.3 kB / 0.6551 GB, free: 7.672 MB / 478.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0004996/0.591, allocations: 175.4 kB / 0.6552 GB, free: 7.539 MB / 478.1 MB Notification: Performance of NFFlatten.flatten: time 0.0004039/0.5915, allocations: 291.6 kB / 0.6555 GB, free: 7.371 MB / 478.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001819/0.5917, allocations: 72.05 kB / 0.6556 GB, free: 7.332 MB / 478.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0004805/0.5921, allocations: 195.1 kB / 0.6558 GB, free: 7.207 MB / 478.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002131/0.5924, allocations: 120.6 kB / 0.6559 GB, free: 7.137 MB / 478.1 MB Notification: Performance of NFPackage.collectConstants: time 3.018e-05/0.5924, allocations: 12.72 kB / 0.6559 GB, free: 7.137 MB / 478.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0004405/0.5929, allocations: 207 kB / 0.6561 GB, free: 7.047 MB / 478.1 MB Notification: Performance of NFScalarize.scalarize: time 6.946e-05/0.5929, allocations: 41.39 kB / 0.6561 GB, free: 7.012 MB / 478.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001122/0.5931, allocations: 96.11 kB / 0.6562 GB, free: 6.949 MB / 478.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0005006/0.5936, allocations: 282.8 kB / 0.6565 GB, free: 6.77 MB / 478.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.569e-06/0.5936, allocations: 0 / 0.6565 GB, free: 6.77 MB / 478.1 MB Notification: Performance of FrontEnd: time 1.954e-06/0.5936, allocations: 0 / 0.6565 GB, free: 6.77 MB / 478.1 MB Notification: Performance of Transformations before backend: time 9.749e-06/0.5936, allocations: 0 / 0.6565 GB, free: 6.77 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.001052/0.5947, allocations: 0.5699 MB / 0.6571 GB, free: 6.227 MB / 478.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.828e-05/0.5947, allocations: 9.062 kB / 0.6571 GB, free: 6.227 MB / 478.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 9.084e-05/0.5948, allocations: 29.47 kB / 0.6571 GB, free: 6.211 MB / 478.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004011/0.5952, allocations: 287.3 kB / 0.6574 GB, free: 5.93 MB / 478.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.925e-05/0.5953, allocations: 9.688 kB / 0.6574 GB, free: 5.926 MB / 478.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 3.991e-05/0.5953, allocations: 13.84 kB / 0.6574 GB, free: 5.922 MB / 478.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003526/0.5957, allocations: 170.8 kB / 0.6576 GB, free: 5.789 MB / 478.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.088e-05/0.5957, allocations: 0 / 0.6576 GB, free: 5.789 MB / 478.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.921e-05/0.5957, allocations: 10.25 kB / 0.6576 GB, free: 5.781 MB / 478.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.372e-06/0.5957, allocations: 3.031 kB / 0.6576 GB, free: 5.781 MB / 478.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.000308/0.596, allocations: 91.38 kB / 0.6577 GB, free: 5.742 MB / 478.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001125/0.5972, allocations: 0.9134 MB / 0.6586 GB, free: 4.832 MB / 478.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0003207/0.5975, allocations: 87.11 kB / 0.6586 GB, free: 4.777 MB / 478.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.00014/0.5977, allocations: 43.11 kB / 0.6587 GB, free: 4.75 MB / 478.1 MB Notification: Performance of preOpt evalFunc (simulation): time 9.966e-05/0.5978, allocations: 80.2 kB / 0.6588 GB, free: 4.656 MB / 478.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.000315/0.5981, allocations: 88.92 kB / 0.6588 GB, free: 4.582 MB / 478.1 MB Notification: Performance of pre-optimization done (n=7): time 2.094e-06/0.5981, allocations: 0 / 0.6588 GB, free: 4.582 MB / 478.1 MB Notification: Performance of matching and sorting (n=7): time 0.0005543/0.5987, allocations: 155.8 kB / 0.659 GB, free: 4.488 MB / 478.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.037e-05/0.5987, allocations: 56.72 kB / 0.659 GB, free: 4.422 MB / 478.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003357/0.5991, allocations: 264.9 kB / 0.6593 GB, free: 4.238 MB / 478.1 MB Notification: Performance of collectPreVariables (initialization): time 2.558e-05/0.5991, allocations: 31.23 kB / 0.6593 GB, free: 4.203 MB / 478.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001417/0.5992, allocations: 169.2 kB / 0.6595 GB, free: 4.047 MB / 478.1 MB Notification: Performance of collectInitialBindings (initialization): time 2.727e-05/0.5993, allocations: 22.52 kB / 0.6595 GB, free: 4.027 MB / 478.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 7.82e-05/0.5994, allocations: 41.55 kB / 0.6595 GB, free: 3.992 MB / 478.1 MB Notification: Performance of setup shared object (initialization): time 0.000142/0.5995, allocations: 332.7 kB / 0.6599 GB, free: 3.664 MB / 478.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001566/0.5997, allocations: 43.06 kB / 0.6599 GB, free: 3.645 MB / 478.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.000182/0.5999, allocations: 82.47 kB / 0.66 GB, free: 3.574 MB / 478.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003135/0.6002, allocations: 151.5 kB / 0.6601 GB, free: 3.449 MB / 478.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.765e-06/0.6002, allocations: 0 / 0.6601 GB, free: 3.449 MB / 478.1 MB Notification: Performance of matching and sorting (n=17) (initialization): time 0.0004406/0.6007, allocations: 206.3 kB / 0.6603 GB, free: 3.316 MB / 478.1 MB Notification: Performance of prepare postOptimizeDAE: time 3.779e-05/0.6007, allocations: 36.48 kB / 0.6604 GB, free: 3.281 MB / 478.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.642e-06/0.6007, allocations: 2.594 kB / 0.6604 GB, free: 3.281 MB / 478.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.828e-05/0.6007, allocations: 6.75 kB / 0.6604 GB, free: 3.277 MB / 478.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001606/0.6009, allocations: 40.22 kB / 0.6604 GB, free: 3.258 MB / 478.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 7.144e-06/0.6009, allocations: 2.75 kB / 0.6604 GB, free: 3.258 MB / 478.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001736/0.6011, allocations: 25.33 kB / 0.6604 GB, free: 3.242 MB / 478.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.679e-05/0.6011, allocations: 4.938 kB / 0.6604 GB, free: 3.242 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.000138/0.6013, allocations: 144.1 kB / 0.6606 GB, free: 3.102 MB / 478.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.243e-05/0.6013, allocations: 21.91 kB / 0.6606 GB, free: 3.09 MB / 478.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0003584/0.6017, allocations: 134.2 kB / 0.6607 GB, free: 3 MB / 478.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.031e-06/0.6017, allocations: 6.188 kB / 0.6607 GB, free: 2.996 MB / 478.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.489e-06/0.6017, allocations: 0 / 0.6607 GB, free: 2.996 MB / 478.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.837e-06/0.6017, allocations: 0 / 0.6607 GB, free: 2.996 MB / 478.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.000238/0.6019, allocations: 236.8 kB / 0.661 GB, free: 2.75 MB / 478.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.306e-06/0.602, allocations: 3.031 kB / 0.661 GB, free: 2.75 MB / 478.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001151/0.6021, allocations: 21.36 kB / 0.661 GB, free: 2.742 MB / 478.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 4.238e-06/0.6021, allocations: 2.5 kB / 0.661 GB, free: 2.742 MB / 478.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.249e-05/0.6021, allocations: 0 / 0.661 GB, free: 2.742 MB / 478.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.787e-06/0.6021, allocations: 3.938 kB / 0.661 GB, free: 2.738 MB / 478.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.874e-06/0.6021, allocations: 6.969 kB / 0.661 GB, free: 2.734 MB / 478.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0004909/0.6026, allocations: 186.8 kB / 0.6612 GB, free: 2.605 MB / 478.1 MB Notification: Performance of postOpt removeConstants (simulation): time 7.198e-05/0.6027, allocations: 97.97 kB / 0.6613 GB, free: 2.496 MB / 478.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.312e-05/0.6027, allocations: 2.688 kB / 0.6613 GB, free: 2.496 MB / 478.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001168/0.6029, allocations: 16.98 kB / 0.6613 GB, free: 2.484 MB / 478.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 6.378e-05/0.6029, allocations: 16.95 kB / 0.6613 GB, free: 2.473 MB / 478.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 8.315e-06/0.603, allocations: 2.75 kB / 0.6613 GB, free: 2.473 MB / 478.1 MB Notification: Performance of sorting global known variables: time 0.0001747/0.6031, allocations: 186.1 kB / 0.6615 GB, free: 2.344 MB / 478.1 MB Notification: Performance of sort global known variables: time 1.2e-07/0.6031, allocations: 0 / 0.6615 GB, free: 2.344 MB / 478.1 MB Notification: Performance of remove unused functions: time 0.0002958/0.6034, allocations: 47 kB / 0.6615 GB, free: 2.332 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.0002446/0.6037, allocations: 140.6 kB / 0.6617 GB, free: 2.223 MB / 478.1 MB Notification: Performance of simCode: created initialization part: time 0.000415/0.6041, allocations: 162.5 kB / 0.6618 GB, free: 2.113 MB / 478.1 MB Notification: Performance of simCode: created event and clocks part: time 2.906e-06/0.6041, allocations: 0 / 0.6618 GB, free: 2.113 MB / 478.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0001417/0.6043, allocations: 38.16 kB / 0.6618 GB, free: 2.098 MB / 478.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003668/0.6047, allocations: 46.88 kB / 0.6619 GB, free: 2.074 MB / 478.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0008731/0.6055, allocations: 448.9 kB / 0.6623 GB, free: 1.746 MB / 478.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003186/0.6059, allocations: 0.7463 MB / 0.663 GB, free: 1.016 MB / 478.1 MB Notification: Performance of simCode: alias equations: time 0.0001001/0.606, allocations: 20.05 kB / 0.6631 GB, free: 1.008 MB / 478.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 4.552e-05/0.606, allocations: 20.06 kB / 0.6631 GB, free: 1 MB / 478.1 MB Notification: Performance of SimCode: time 2.51e-07/0.606, allocations: 0 / 0.6631 GB, free: 1 MB / 478.1 MB Notification: Performance of Templates: time 0.006497/0.6125, allocations: 2.475 MB / 0.6655 GB, free: 15.75 MB / 494.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