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.001107/0.001107, allocations: 105.6 kB / 16.27 MB, free: 6.414 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.001095/0.001095, allocations: 189.8 kB / 17.2 MB, free: 5.953 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.255/1.255, allocations: 222.9 MB / 240.9 MB, free: 15.26 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ThermofluidStream 1.1.0-main/package.mo): time 0.64/0.64, allocations: 91.18 MB / 382.2 MB, free: 7.598 MB / 302.1 MB Notification: Performance of FrontEnd - loaded program: time 0.00145/0.00145, allocations: 83.88 kB / 461 MB, free: 9.078 MB / 382.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1054/0.1069, allocations: 67.68 MB / 0.5163 GB, free: 5.32 MB / 446.1 MB Notification: Performance of NFInst.instantiate(ThermofluidStream.Boundaries.Tests.TerminalSourceSink): time 0.3171/0.424, allocations: 140.5 MB / 0.6534 GB, free: 7.871 MB / 0.4981 GB Notification: Performance of NFInst.instExpressions: time 0.002108/0.4262, allocations: 2.104 MB / 0.6555 GB, free: 5.766 MB / 0.4981 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001676/0.4264, allocations: 11.94 kB / 0.6555 GB, free: 5.754 MB / 0.4981 GB Notification: Performance of NFTyping.typeComponents: time 0.0004561/0.4268, allocations: 119.3 kB / 0.6556 GB, free: 5.641 MB / 0.4981 GB Notification: Performance of NFTyping.typeBindings: time 0.0002971/0.4272, allocations: 135.1 kB / 0.6557 GB, free: 5.508 MB / 0.4981 GB Notification: Performance of NFTyping.typeClassSections: time 0.000372/0.4276, allocations: 175.4 kB / 0.6559 GB, free: 5.336 MB / 0.4981 GB Notification: Performance of NFFlatten.flatten: time 0.0003134/0.4279, allocations: 294.8 kB / 0.6562 GB, free: 5.047 MB / 0.4981 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0001597/0.4281, allocations: 72.22 kB / 0.6563 GB, free: 4.984 MB / 0.4981 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0003966/0.4285, allocations: 195.1 kB / 0.6564 GB, free: 4.793 MB / 0.4981 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0001507/0.4286, allocations: 116 kB / 0.6566 GB, free: 4.68 MB / 0.4981 GB Notification: Performance of NFPackage.collectConstants: time 2.728e-05/0.4287, allocations: 12 kB / 0.6566 GB, free: 4.668 MB / 0.4981 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0003689/0.429, allocations: 215.6 kB / 0.6568 GB, free: 4.457 MB / 0.4981 GB Notification: Performance of NFScalarize.scalarize: time 7.134e-05/0.4291, allocations: 43.72 kB / 0.6568 GB, free: 4.414 MB / 0.4981 GB Notification: Performance of NFVerifyModel.verify: time 9.931e-05/0.4292, allocations: 95.42 kB / 0.6569 GB, free: 4.32 MB / 0.4981 GB Notification: Performance of NFConvertDAE.convert: time 0.0003775/0.4296, allocations: 279.1 kB / 0.6572 GB, free: 4.047 MB / 0.4981 GB Notification: Performance of FrontEnd - DAE generated: time 3.707e-06/0.4296, allocations: 0.5625 kB / 0.6572 GB, free: 4.047 MB / 0.4981 GB Notification: Performance of FrontEnd: time 1.282e-06/0.4296, allocations: 0 / 0.6572 GB, free: 4.047 MB / 0.4981 GB Notification: Performance of Transformations before backend: time 5.32e-06/0.4296, allocations: 0 / 0.6572 GB, free: 4.047 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.0008381/0.4305, allocations: 0.5658 MB / 0.6577 GB, free: 3.43 MB / 0.4981 GB Notification: Performance of prepare preOptimizeDAE: time 3.482e-05/0.4305, allocations: 8.031 kB / 0.6577 GB, free: 3.422 MB / 0.4981 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 5.814e-05/0.4306, allocations: 32.56 kB / 0.6578 GB, free: 3.391 MB / 0.4981 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003155/0.4309, allocations: 288.5 kB / 0.658 GB, free: 3.07 MB / 0.4981 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.52e-05/0.4309, allocations: 8.375 kB / 0.658 GB, free: 3.062 MB / 0.4981 GB Notification: Performance of preOpt expandDerOperator (simulation): time 3.425e-05/0.431, allocations: 12.38 kB / 0.6581 GB, free: 3.051 MB / 0.4981 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003204/0.4313, allocations: 177.9 kB / 0.6582 GB, free: 2.859 MB / 0.4981 GB Notification: Performance of preOpt findStateOrder (simulation): time 8.717e-06/0.4313, allocations: 3.938 kB / 0.6582 GB, free: 2.855 MB / 0.4981 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.615e-05/0.4313, allocations: 4 kB / 0.6582 GB, free: 2.852 MB / 0.4981 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.603e-06/0.4314, allocations: 4 kB / 0.6582 GB, free: 2.848 MB / 0.4981 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002798/0.4316, allocations: 96.72 kB / 0.6583 GB, free: 2.754 MB / 0.4981 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0009102/0.4326, allocations: 0.8996 MB / 0.6592 GB, free: 1.758 MB / 0.4981 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0002806/0.4329, allocations: 94.45 kB / 0.6593 GB, free: 1.656 MB / 0.4981 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001232/0.433, allocations: 45.98 kB / 0.6593 GB, free: 1.609 MB / 0.4981 GB Notification: Performance of preOpt evalFunc (simulation): time 8.426e-05/0.4331, allocations: 81.11 kB / 0.6594 GB, free: 1.512 MB / 0.4981 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002154/0.4333, allocations: 87.34 kB / 0.6595 GB, free: 1.414 MB / 0.4981 GB Notification: Performance of pre-optimization done (n=7): time 2.665e-06/0.4333, allocations: 6.297 kB / 0.6595 GB, free: 1.41 MB / 0.4981 GB Notification: Performance of matching and sorting (n=7): time 0.0004508/0.4338, allocations: 157.2 kB / 0.6597 GB, free: 1.25 MB / 0.4981 GB Notification: Performance of inlineWhenForInitialization (initialization): time 3.364e-05/0.4338, allocations: 55.41 kB / 0.6597 GB, free: 1.184 MB / 0.4981 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.000228/0.434, allocations: 259 kB / 0.66 GB, free: 0.9219 MB / 0.4981 GB Notification: Performance of collectPreVariables (initialization): time 1.543e-05/0.4341, allocations: 25.7 kB / 0.66 GB, free: 0.8906 MB / 0.4981 GB Notification: Performance of collectInitialEqns (initialization): time 0.0001033/0.4342, allocations: 171.5 kB / 0.6601 GB, free: 0.7188 MB / 0.4981 GB Notification: Performance of collectInitialBindings (initialization): time 2.396e-05/0.4342, allocations: 31.69 kB / 0.6602 GB, free: 0.6875 MB / 0.4981 GB Notification: Performance of simplifyInitialFunctions (initialization): time 5.341e-05/0.4343, allocations: 30.73 kB / 0.6602 GB, free: 0.6523 MB / 0.4981 GB Notification: Performance of setup shared object (initialization): time 0.0001016/0.4344, allocations: 334.8 kB / 0.6605 GB, free: 324 kB / 0.4981 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001394/0.4345, allocations: 43.95 kB / 0.6606 GB, free: 280 kB / 0.4981 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001474/0.4347, allocations: 81.12 kB / 0.6606 GB, free: 180 kB / 0.4981 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002809/0.435, allocations: 151.4 kB / 0.6608 GB, free: 4 kB / 0.4981 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.873e-06/0.435, allocations: 0 / 0.6608 GB, free: 4 kB / 0.4981 GB Notification: Performance of matching and sorting (n=17) (initialization): time 0.0004053/0.4354, allocations: 215.4 kB / 0.661 GB, free: 15.78 MB / 0.5137 GB Notification: Performance of prepare postOptimizeDAE: time 3.152e-05/0.4354, allocations: 29.7 kB / 0.661 GB, free: 15.75 MB / 0.5137 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.706e-06/0.4354, allocations: 4 kB / 0.661 GB, free: 15.74 MB / 0.5137 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.622e-05/0.4355, allocations: 3.938 kB / 0.661 GB, free: 15.74 MB / 0.5137 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001532/0.4356, allocations: 35.97 kB / 0.6611 GB, free: 15.7 MB / 0.5137 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 6.382e-06/0.4356, allocations: 1.594 kB / 0.6611 GB, free: 15.7 MB / 0.5137 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001501/0.4358, allocations: 27.98 kB / 0.6611 GB, free: 15.68 MB / 0.5137 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.598e-05/0.4358, allocations: 8 kB / 0.6611 GB, free: 15.67 MB / 0.5137 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.0001142/0.4359, allocations: 141.6 kB / 0.6612 GB, free: 15.52 MB / 0.5137 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.764e-05/0.436, allocations: 19.72 kB / 0.6613 GB, free: 15.5 MB / 0.5137 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0003305/0.4363, allocations: 128.1 kB / 0.6614 GB, free: 15.37 MB / 0.5137 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.348e-06/0.4363, allocations: 7.938 kB / 0.6614 GB, free: 15.36 MB / 0.5137 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.869e-06/0.4363, allocations: 4 kB / 0.6614 GB, free: 15.36 MB / 0.5137 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.956e-06/0.4363, allocations: 3.938 kB / 0.6614 GB, free: 15.35 MB / 0.5137 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001748/0.4365, allocations: 234.1 kB / 0.6616 GB, free: 15.07 MB / 0.5137 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.152e-06/0.4365, allocations: 2.062 kB / 0.6616 GB, free: 15.07 MB / 0.5137 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001024/0.4366, allocations: 19.98 kB / 0.6616 GB, free: 15.05 MB / 0.5137 GB Notification: Performance of postOpt tearingSystem (simulation): time 2.715e-06/0.4367, allocations: 1 kB / 0.6616 GB, free: 15.05 MB / 0.5137 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.264e-05/0.4367, allocations: 4 kB / 0.6616 GB, free: 15.05 MB / 0.5137 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 4.188e-06/0.4367, allocations: 3.938 kB / 0.6616 GB, free: 15.05 MB / 0.5137 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 8.32e-07/0.4367, allocations: 0 / 0.6616 GB, free: 15.05 MB / 0.5137 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0004272/0.4371, allocations: 189.4 kB / 0.6618 GB, free: 14.84 MB / 0.5137 GB Notification: Performance of postOpt removeConstants (simulation): time 5.564e-05/0.4372, allocations: 100.8 kB / 0.6619 GB, free: 14.73 MB / 0.5137 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.878e-05/0.4372, allocations: 0 / 0.6619 GB, free: 14.73 MB / 0.5137 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001093/0.4373, allocations: 12.92 kB / 0.6619 GB, free: 14.71 MB / 0.5137 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.934e-05/0.4374, allocations: 19.92 kB / 0.662 GB, free: 14.7 MB / 0.5137 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 8.085e-06/0.4374, allocations: 0 / 0.662 GB, free: 14.7 MB / 0.5137 GB Notification: Performance of sorting global known variables: time 0.000148/0.4376, allocations: 194 kB / 0.6621 GB, free: 14.51 MB / 0.5137 GB Notification: Performance of sort global known variables: time 1e-07/0.4376, allocations: 0 / 0.6621 GB, free: 14.51 MB / 0.5137 GB Notification: Performance of remove unused functions: time 0.0002459/0.4378, allocations: 43.91 kB / 0.6622 GB, free: 14.46 MB / 0.5137 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.0001968/0.438, allocations: 141.2 kB / 0.6623 GB, free: 14.32 MB / 0.5137 GB Notification: Performance of simCode: created initialization part: time 0.0003741/0.4384, allocations: 163.3 kB / 0.6625 GB, free: 14.15 MB / 0.5137 GB Notification: Performance of simCode: created event and clocks part: time 3.056e-06/0.4384, allocations: 0 / 0.6625 GB, free: 14.15 MB / 0.5137 GB Notification: Performance of simCode: created simulation system equations: time 0.0001305/0.4385, allocations: 40.53 kB / 0.6625 GB, free: 14.11 MB / 0.5137 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003388/0.4389, allocations: 47.34 kB / 0.6626 GB, free: 14.07 MB / 0.5137 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0007697/0.4397, allocations: 479.2 kB / 0.663 GB, free: 13.58 MB / 0.5137 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.000247/0.4399, allocations: 0.7398 MB / 0.6637 GB, free: 12.81 MB / 0.5137 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 4.466e-05/0.44, allocations: 19.44 kB / 0.6637 GB, free: 12.79 MB / 0.5137 GB Notification: Performance of SimCode: time 3.4e-07/0.44, allocations: 0 / 0.6637 GB, free: 12.79 MB / 0.5137 GB Notification: Performance of Templates: time 0.004543/0.4445, allocations: 2.92 MB / 0.6666 GB, free: 9.961 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