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/package.mo", uses=false) Using package ThermofluidStream with version 1.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ThermofluidStream 1.1.0/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.001679/0.001679, allocations: 109.3 kB / 16.27 MB, free: 6.004 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.001546/0.001546, allocations: 187.4 kB / 17.2 MB, free: 5.617 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.433/1.433, allocations: 222.9 MB / 240.9 MB, free: 15.27 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ThermofluidStream 1.1.0/package.mo): time 0.7226/0.7226, allocations: 89.45 MB / 380.5 MB, free: 8.715 MB / 302.1 MB Notification: Performance of FrontEnd - loaded program: time 0.002517/0.002517, allocations: 79.88 kB / 458.9 MB, free: 11.28 MB / 382.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1209/0.1234, allocations: 67.3 MB / 0.5138 GB, free: 7.895 MB / 446.1 MB Notification: Performance of NFInst.instantiate(ThermofluidStream.Boundaries.Tests.TerminalSourceSink): time 0.3417/0.4651, allocations: 140.4 MB / 0.6509 GB, free: 11.39 MB / 0.4981 GB Notification: Performance of NFInst.instExpressions: time 0.002668/0.4678, allocations: 2.082 MB / 0.6529 GB, free: 9.316 MB / 0.4981 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001235/0.468, allocations: 4 kB / 0.6529 GB, free: 9.312 MB / 0.4981 GB Notification: Performance of NFTyping.typeComponents: time 0.0004636/0.4685, allocations: 111.1 kB / 0.653 GB, free: 9.207 MB / 0.4981 GB Notification: Performance of NFTyping.typeBindings: time 0.0003329/0.4688, allocations: 116.6 kB / 0.6532 GB, free: 9.094 MB / 0.4981 GB Notification: Performance of NFTyping.typeClassSections: time 0.0004303/0.4693, allocations: 176.7 kB / 0.6533 GB, free: 8.922 MB / 0.4981 GB Notification: Performance of NFFlatten.flatten: time 0.000326/0.4696, allocations: 247.6 kB / 0.6536 GB, free: 8.68 MB / 0.4981 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0001717/0.4698, allocations: 68.59 kB / 0.6536 GB, free: 8.617 MB / 0.4981 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0004096/0.4702, allocations: 171.2 kB / 0.6538 GB, free: 8.449 MB / 0.4981 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0001767/0.4704, allocations: 111.6 kB / 0.6539 GB, free: 8.34 MB / 0.4981 GB Notification: Performance of NFPackage.collectConstants: time 2.672e-05/0.4704, allocations: 12 kB / 0.6539 GB, free: 8.328 MB / 0.4981 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0004177/0.4709, allocations: 207.6 kB / 0.6541 GB, free: 8.125 MB / 0.4981 GB Notification: Performance of NFScalarize.scalarize: time 3.972e-05/0.4709, allocations: 27.92 kB / 0.6541 GB, free: 8.098 MB / 0.4981 GB Notification: Performance of NFVerifyModel.verify: time 0.000102/0.471, allocations: 88.19 kB / 0.6542 GB, free: 8.012 MB / 0.4981 GB Notification: Performance of NFConvertDAE.convert: time 0.0004057/0.4714, allocations: 237.3 kB / 0.6544 GB, free: 7.781 MB / 0.4981 GB Notification: Performance of FrontEnd - DAE generated: time 3.707e-06/0.4715, allocations: 0 / 0.6544 GB, free: 7.781 MB / 0.4981 GB Notification: Performance of FrontEnd: time 1.182e-06/0.4715, allocations: 0 / 0.6544 GB, free: 7.781 MB / 0.4981 GB Notification: Performance of Transformations before backend: time 5.741e-06/0.4715, allocations: 0 / 0.6544 GB, free: 7.781 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.0009637/0.4724, allocations: 0.5085 MB / 0.6549 GB, free: 7.223 MB / 0.4981 GB Notification: Performance of prepare preOptimizeDAE: time 3.828e-05/0.4725, allocations: 12.03 kB / 0.6549 GB, free: 7.211 MB / 0.4981 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 6.487e-05/0.4726, allocations: 17.41 kB / 0.655 GB, free: 7.195 MB / 0.4981 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002702/0.4728, allocations: 223.9 kB / 0.6552 GB, free: 6.938 MB / 0.4981 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.732e-05/0.4729, allocations: 8.375 kB / 0.6552 GB, free: 6.93 MB / 0.4981 GB Notification: Performance of preOpt expandDerOperator (simulation): time 4.044e-05/0.4729, allocations: 16.38 kB / 0.6552 GB, free: 6.914 MB / 0.4981 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003853/0.4733, allocations: 166.8 kB / 0.6554 GB, free: 6.734 MB / 0.4981 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.134e-05/0.4733, allocations: 0 / 0.6554 GB, free: 6.734 MB / 0.4981 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.249e-05/0.4734, allocations: 8 kB / 0.6554 GB, free: 6.727 MB / 0.4981 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.46e-06/0.4734, allocations: 8.781 kB / 0.6554 GB, free: 6.719 MB / 0.4981 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0003128/0.4737, allocations: 97.8 kB / 0.6555 GB, free: 6.625 MB / 0.4981 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001118/0.4748, allocations: 0.8842 MB / 0.6563 GB, free: 5.645 MB / 0.4981 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0003226/0.4752, allocations: 86.52 kB / 0.6564 GB, free: 5.551 MB / 0.4981 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001431/0.4753, allocations: 52.34 kB / 0.6565 GB, free: 5.5 MB / 0.4981 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0001085/0.4754, allocations: 77.11 kB / 0.6565 GB, free: 5.406 MB / 0.4981 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0003283/0.4758, allocations: 95.34 kB / 0.6566 GB, free: 5.301 MB / 0.4981 GB Notification: Performance of pre-optimization done (n=7): time 1.643e-06/0.4758, allocations: 0 / 0.6566 GB, free: 5.301 MB / 0.4981 GB Notification: Performance of matching and sorting (n=7): time 0.0005185/0.4763, allocations: 146 kB / 0.6568 GB, free: 5.152 MB / 0.4981 GB Notification: Performance of inlineWhenForInitialization (initialization): time 5.538e-05/0.4764, allocations: 59.34 kB / 0.6568 GB, free: 5.082 MB / 0.4981 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002189/0.4766, allocations: 203.7 kB / 0.657 GB, free: 4.871 MB / 0.4981 GB Notification: Performance of collectPreVariables (initialization): time 2.115e-05/0.4766, allocations: 29.64 kB / 0.657 GB, free: 4.836 MB / 0.4981 GB Notification: Performance of collectInitialEqns (initialization): time 0.0001091/0.4767, allocations: 147.6 kB / 0.6572 GB, free: 4.688 MB / 0.4981 GB Notification: Performance of collectInitialBindings (initialization): time 2.686e-05/0.4768, allocations: 11.72 kB / 0.6572 GB, free: 4.676 MB / 0.4981 GB Notification: Performance of simplifyInitialFunctions (initialization): time 6.684e-05/0.4768, allocations: 37.7 kB / 0.6572 GB, free: 4.633 MB / 0.4981 GB Notification: Performance of setup shared object (initialization): time 0.0001557/0.477, allocations: 335.4 kB / 0.6576 GB, free: 4.297 MB / 0.4981 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001598/0.4772, allocations: 39.97 kB / 0.6576 GB, free: 4.258 MB / 0.4981 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001793/0.4774, allocations: 82.56 kB / 0.6577 GB, free: 4.16 MB / 0.4981 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003169/0.4777, allocations: 151.9 kB / 0.6578 GB, free: 3.988 MB / 0.4981 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.845e-06/0.4777, allocations: 0 / 0.6578 GB, free: 3.988 MB / 0.4981 GB Notification: Performance of matching and sorting (n=17) (initialization): time 0.0004505/0.4781, allocations: 199 kB / 0.658 GB, free: 3.781 MB / 0.4981 GB Notification: Performance of prepare postOptimizeDAE: time 4.966e-05/0.4782, allocations: 35.45 kB / 0.658 GB, free: 3.742 MB / 0.4981 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.5e-06/0.4782, allocations: 3.938 kB / 0.658 GB, free: 3.738 MB / 0.4981 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.858e-05/0.4782, allocations: 7.938 kB / 0.6581 GB, free: 3.73 MB / 0.4981 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001657/0.4784, allocations: 35.91 kB / 0.6581 GB, free: 3.695 MB / 0.4981 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 8.325e-06/0.4784, allocations: 4 kB / 0.6581 GB, free: 3.691 MB / 0.4981 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001514/0.4786, allocations: 19.83 kB / 0.6581 GB, free: 3.672 MB / 0.4981 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.781e-05/0.4786, allocations: 8 kB / 0.6581 GB, free: 3.664 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.0001274/0.4787, allocations: 142.4 kB / 0.6583 GB, free: 3.516 MB / 0.4981 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.163e-05/0.4788, allocations: 11.81 kB / 0.6583 GB, free: 3.504 MB / 0.4981 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0003558/0.4791, allocations: 125 kB / 0.6584 GB, free: 3.379 MB / 0.4981 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.9e-06/0.4792, allocations: 3.938 kB / 0.6584 GB, free: 3.375 MB / 0.4981 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.578e-06/0.4792, allocations: 0.5625 kB / 0.6584 GB, free: 3.375 MB / 0.4981 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.781e-06/0.4792, allocations: 4 kB / 0.6584 GB, free: 3.371 MB / 0.4981 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.000232/0.4794, allocations: 217.5 kB / 0.6586 GB, free: 3.109 MB / 0.4981 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.475e-06/0.4794, allocations: 8.625 kB / 0.6586 GB, free: 3.102 MB / 0.4981 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001154/0.4796, allocations: 17.39 kB / 0.6586 GB, free: 3.086 MB / 0.4981 GB Notification: Performance of postOpt tearingSystem (simulation): time 2.054e-06/0.4796, allocations: 3.938 kB / 0.6586 GB, free: 3.082 MB / 0.4981 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.258e-05/0.4796, allocations: 3.984 kB / 0.6586 GB, free: 3.078 MB / 0.4981 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 4.278e-06/0.4796, allocations: 4.562 kB / 0.6586 GB, free: 3.074 MB / 0.4981 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.022e-06/0.4796, allocations: 0 / 0.6586 GB, free: 3.074 MB / 0.4981 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0004847/0.4801, allocations: 182.2 kB / 0.6588 GB, free: 2.879 MB / 0.4981 GB Notification: Performance of postOpt removeConstants (simulation): time 7.109e-05/0.4802, allocations: 88.95 kB / 0.6589 GB, free: 2.773 MB / 0.4981 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.898e-05/0.4802, allocations: 4 kB / 0.6589 GB, free: 2.77 MB / 0.4981 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.000115/0.4803, allocations: 16.8 kB / 0.6589 GB, free: 2.754 MB / 0.4981 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.198e-05/0.4804, allocations: 7.984 kB / 0.6589 GB, free: 2.746 MB / 0.4981 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.07e-05/0.4804, allocations: 8 kB / 0.6589 GB, free: 2.738 MB / 0.4981 GB Notification: Performance of sorting global known variables: time 0.0001249/0.4805, allocations: 141.5 kB / 0.6591 GB, free: 2.602 MB / 0.4981 GB Notification: Performance of sort global known variables: time 1.3e-07/0.4805, allocations: 0 / 0.6591 GB, free: 2.602 MB / 0.4981 GB Notification: Performance of remove unused functions: time 0.0002758/0.4808, allocations: 43.97 kB / 0.6591 GB, free: 2.559 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.0002258/0.481, allocations: 140.5 kB / 0.6592 GB, free: 2.418 MB / 0.4981 GB Notification: Performance of simCode: created initialization part: time 0.0004331/0.4815, allocations: 169.1 kB / 0.6594 GB, free: 2.242 MB / 0.4981 GB Notification: Performance of simCode: created event and clocks part: time 1.813e-06/0.4815, allocations: 0 / 0.6594 GB, free: 2.242 MB / 0.4981 GB Notification: Performance of simCode: created simulation system equations: time 0.0001432/0.4816, allocations: 39.97 kB / 0.6594 GB, free: 2.203 MB / 0.4981 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003346/0.482, allocations: 41.67 kB / 0.6595 GB, free: 2.168 MB / 0.4981 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0007866/0.4828, allocations: 405 kB / 0.6599 GB, free: 1.75 MB / 0.4981 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003624/0.4832, allocations: 0.7278 MB / 0.6606 GB, free: 0.9961 MB / 0.4981 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 4.215e-05/0.4832, allocations: 15.44 kB / 0.6606 GB, free: 0.9805 MB / 0.4981 GB Notification: Performance of SimCode: time 3.31e-07/0.4832, allocations: 0 / 0.6606 GB, free: 0.9805 MB / 0.4981 GB Notification: Performance of Templates: time 0.004863/0.4881, allocations: 2.37 MB / 0.6629 GB, free: 14.69 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 -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