Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr ThermofluidStream_dev_ThermofluidStream.Boundaries.Tests.TerminalSourceSink.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.1.0+maint.om/package.mo): time 0.001574/0.001574, allocations: 99.64 kB / 18.95 MB, free: 2.668 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo): time 0.001746/0.001746, allocations: 210.5 kB / 22.24 MB, free: 5.262 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo): time 1.389/1.389, allocations: 230.6 MB / 256 MB, free: 7.797 MB / 206.1 MB " [Timeout remaining time 178] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ThermofluidStream main/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ThermofluidStream main/package.mo): time 0.7248/0.7248, allocations: 100.9 MB / 413.3 MB, free: 2.887 MB / 318.1 MB " [Timeout remaining time 179] Using package ThermofluidStream with version 1.2.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ThermofluidStream main/package.mo) Using package Modelica with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo) Using package Complex with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo) Using package ModelicaServices with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.1.0+maint.om/package.mo) Running command: translateModel(ThermofluidStream.Boundaries.Tests.TerminalSourceSink,tolerance=1e-06,outputFormat="mat",numberOfIntervals=1000,variableFilter="Time|pulse.T_start|pulse.count|terminalSource.p",fileNamePrefix="ThermofluidStream_dev_ThermofluidStream.Boundaries.Tests.TerminalSourceSink") translateModel(ThermofluidStream.Boundaries.Tests.TerminalSourceSink,tolerance=1e-06,outputFormat="mat",numberOfIntervals=1000,variableFilter="Time|pulse.T_start|pulse.count|terminalSource.p",fileNamePrefix="ThermofluidStream_dev_ThermofluidStream.Boundaries.Tests.TerminalSourceSink") [Timeout 660] "Notification: ThermofluidStream requested package Modelica of version 4.0.0. Modelica 4.1.0 is used instead which states that it is fully compatible without conversion script needed. Notification: ThermofluidStream requested package Complex of version 4.0.0. Complex 4.1.0 is used instead which states that it is fully compatible without conversion script needed. Notification: Performance of FrontEnd - loaded program: time 0.002387/0.002387, allocations: 90.02 kB / 0.5646 GB, free: 35.2 MB / 446.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1097/0.1121, allocations: 74.61 MB / 0.6374 GB, free: 5.977 MB / 478.1 MB Notification: Performance of NFInst.instantiate(ThermofluidStream.Boundaries.Tests.TerminalSourceSink): time 0.4225/0.5346, allocations: 120.9 MB / 0.7555 GB, free: 3.52 MB / 0.5762 GB Notification: Performance of NFInst.instExpressions: time 0.001885/0.5364, allocations: 1.957 MB / 0.7574 GB, free: 3.504 MB / 0.5762 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001523/0.5366, allocations: 20.41 kB / 0.7574 GB, free: 3.504 MB / 0.5762 GB Notification: Performance of NFTyping.typeComponents: time 0.0003948/0.537, allocations: 109.7 kB / 0.7576 GB, free: 3.5 MB / 0.5762 GB Notification: Performance of NFTyping.typeBindings: time 0.0003191/0.5373, allocations: 148.3 kB / 0.7577 GB, free: 3.496 MB / 0.5762 GB Notification: Performance of NFTyping.typeClassSections: time 0.0003596/0.5377, allocations: 174.7 kB / 0.7579 GB, free: 3.492 MB / 0.5762 GB Notification: Performance of NFFlatten.flatten: time 0.0002961/0.538, allocations: 321.5 kB / 0.7582 GB, free: 3.492 MB / 0.5762 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0001283/0.5381, allocations: 46.64 kB / 0.7582 GB, free: 3.477 MB / 0.5762 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0004155/0.5385, allocations: 223.8 kB / 0.7584 GB, free: 3.473 MB / 0.5762 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0001764/0.5387, allocations: 119.4 kB / 0.7585 GB, free: 3.473 MB / 0.5762 GB Notification: Performance of NFPackage.collectConstants: time 3.107e-05/0.5387, allocations: 12.66 kB / 0.7586 GB, free: 3.473 MB / 0.5762 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0003068/0.539, allocations: 171.9 kB / 0.7587 GB, free: 3.469 MB / 0.5762 GB Notification: Performance of NFScalarize.scalarize: time 6.611e-05/0.5391, allocations: 38.19 kB / 0.7588 GB, free: 3.469 MB / 0.5762 GB Notification: Performance of NFVerifyModel.verify: time 0.0001002/0.5392, allocations: 84.2 kB / 0.7588 GB, free: 3.469 MB / 0.5762 GB Notification: Performance of NFConvertDAE.convert: time 0.0004166/0.5396, allocations: 289 kB / 0.7591 GB, free: 3.453 MB / 0.5762 GB Notification: Performance of FrontEnd - DAE generated: time 3.948e-06/0.5396, allocations: 5.156 kB / 0.7591 GB, free: 3.453 MB / 0.5762 GB Notification: Performance of FrontEnd: time 1.252e-06/0.5396, allocations: 0 / 0.7591 GB, free: 3.453 MB / 0.5762 GB Notification: Performance of Transformations before backend: time 5.5e-06/0.5396, allocations: 0.9062 kB / 0.7591 GB, free: 3.453 MB / 0.5762 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.000914/0.5405, allocations: 0.5147 MB / 0.7596 GB, free: 19.06 MB / 0.5919 GB Notification: Performance of prepare preOptimizeDAE: time 3.073e-05/0.5406, allocations: 11.62 kB / 0.7596 GB, free: 19.06 MB / 0.5919 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 5.376e-05/0.5406, allocations: 30.81 kB / 0.7597 GB, free: 19.05 MB / 0.5919 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004429/0.5411, allocations: 259 kB / 0.7599 GB, free: 18.89 MB / 0.5919 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.665e-05/0.5411, allocations: 10.62 kB / 0.7599 GB, free: 18.89 MB / 0.5919 GB Notification: Performance of preOpt expandDerOperator (simulation): time 3.414e-05/0.5411, allocations: 14.06 kB / 0.7599 GB, free: 18.89 MB / 0.5919 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003288/0.5414, allocations: 172.2 kB / 0.7601 GB, free: 18.82 MB / 0.5919 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.236e-05/0.5414, allocations: 4.094 kB / 0.7601 GB, free: 18.82 MB / 0.5919 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.521e-05/0.5415, allocations: 4.562 kB / 0.7601 GB, free: 18.82 MB / 0.5919 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.953e-06/0.5415, allocations: 4.406 kB / 0.7601 GB, free: 18.82 MB / 0.5919 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002825/0.5418, allocations: 100 kB / 0.7602 GB, free: 18.82 MB / 0.5919 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0008923/0.5426, allocations: 0.6831 MB / 0.7609 GB, free: 18.32 MB / 0.5919 GB Notification: Performance of preOpt comSubExp (simulation): time 0.000283/0.5429, allocations: 87.7 kB / 0.7609 GB, free: 18.29 MB / 0.5919 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001195/0.543, allocations: 38.58 kB / 0.761 GB, free: 18.29 MB / 0.5919 GB Notification: Performance of preOpt evalFunc (simulation): time 5.743e-05/0.5431, allocations: 6.172 kB / 0.761 GB, free: 18.29 MB / 0.5919 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002324/0.5433, allocations: 90.56 kB / 0.7611 GB, free: 18.24 MB / 0.5919 GB Notification: Performance of pre-optimization done (n=7): time 1.342e-06/0.5433, allocations: 0.875 kB / 0.7611 GB, free: 18.24 MB / 0.5919 GB Notification: Performance of matching and sorting (n=7): time 0.0004616/0.5438, allocations: 151.4 kB / 0.7612 GB, free: 18.2 MB / 0.5919 GB Notification: Performance of inlineWhenForInitialization (initialization): time 4.852e-05/0.5438, allocations: 65 kB / 0.7613 GB, free: 18.13 MB / 0.5919 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002463/0.5441, allocations: 255.7 kB / 0.7615 GB, free: 18.02 MB / 0.5919 GB Notification: Performance of collectPreVariables (initialization): time 2.319e-05/0.5441, allocations: 30.61 kB / 0.7616 GB, free: 17.98 MB / 0.5919 GB Notification: Performance of collectInitialEqns (initialization): time 0.0001184/0.5442, allocations: 180.3 kB / 0.7617 GB, free: 17.87 MB / 0.5919 GB Notification: Performance of collectInitialBindings (initialization): time 2.118e-05/0.5443, allocations: 27.11 kB / 0.7618 GB, free: 17.86 MB / 0.5919 GB Notification: Performance of simplifyInitialFunctions (initialization): time 5.457e-05/0.5443, allocations: 37.36 kB / 0.7618 GB, free: 17.84 MB / 0.5919 GB Notification: Performance of setup shared object (initialization): time 0.0001476/0.5445, allocations: 336.8 kB / 0.7621 GB, free: 17.53 MB / 0.5919 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001626/0.5446, allocations: 69.08 kB / 0.7622 GB, free: 17.5 MB / 0.5919 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001699/0.5448, allocations: 113.5 kB / 0.7623 GB, free: 17.42 MB / 0.5919 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.000307/0.5451, allocations: 150.8 kB / 0.7624 GB, free: 17.34 MB / 0.5919 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.745e-06/0.5451, allocations: 1.375 kB / 0.7624 GB, free: 17.34 MB / 0.5919 GB Notification: Performance of matching and sorting (n=17) (initialization): time 0.0004523/0.5456, allocations: 240 kB / 0.7627 GB, free: 17.23 MB / 0.5919 GB Notification: Performance of prepare postOptimizeDAE: time 3.677e-05/0.5456, allocations: 34.5 kB / 0.7627 GB, free: 17.2 MB / 0.5919 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.059e-06/0.5456, allocations: 0.9688 kB / 0.7627 GB, free: 17.2 MB / 0.5919 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.388e-05/0.5456, allocations: 4.312 kB / 0.7627 GB, free: 17.2 MB / 0.5919 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001545/0.5458, allocations: 30.52 kB / 0.7627 GB, free: 17.2 MB / 0.5919 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 8.205e-06/0.5458, allocations: 6.844 kB / 0.7627 GB, free: 17.2 MB / 0.5919 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001379/0.5459, allocations: 28.77 kB / 0.7628 GB, free: 17.19 MB / 0.5919 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.431e-05/0.5459, allocations: 6.375 kB / 0.7628 GB, free: 17.19 MB / 0.5919 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.0001258/0.5461, allocations: 132.8 kB / 0.7629 GB, free: 17.08 MB / 0.5919 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.825e-05/0.5461, allocations: 23.48 kB / 0.7629 GB, free: 17.07 MB / 0.5919 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0003403/0.5464, allocations: 135.6 kB / 0.763 GB, free: 17.02 MB / 0.5919 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.655e-06/0.5464, allocations: 0.7188 kB / 0.763 GB, free: 17.02 MB / 0.5919 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.889e-06/0.5464, allocations: 7.219 kB / 0.7631 GB, free: 17.02 MB / 0.5919 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.986e-06/0.5464, allocations: 0.6094 kB / 0.7631 GB, free: 17.02 MB / 0.5919 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001572/0.5466, allocations: 180.1 kB / 0.7632 GB, free: 16.89 MB / 0.5919 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.503e-06/0.5466, allocations: 0.875 kB / 0.7632 GB, free: 16.89 MB / 0.5919 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.000104/0.5467, allocations: 18.11 kB / 0.7632 GB, free: 16.89 MB / 0.5919 GB Notification: Performance of postOpt tearingSystem (simulation): time 1.904e-06/0.5467, allocations: 0.9062 kB / 0.7632 GB, free: 16.89 MB / 0.5919 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.095e-05/0.5467, allocations: 0.8438 kB / 0.7632 GB, free: 16.89 MB / 0.5919 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.793e-06/0.5467, allocations: 2.547 kB / 0.7632 GB, free: 16.89 MB / 0.5919 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.433e-06/0.5467, allocations: 1.438 kB / 0.7633 GB, free: 16.89 MB / 0.5919 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0004365/0.5471, allocations: 199.8 kB / 0.7634 GB, free: 16.81 MB / 0.5919 GB Notification: Performance of postOpt removeConstants (simulation): time 3.398e-05/0.5472, allocations: 24.75 kB / 0.7635 GB, free: 16.8 MB / 0.5919 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.935e-05/0.5472, allocations: 1.875 kB / 0.7635 GB, free: 16.8 MB / 0.5919 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001022/0.5473, allocations: 10.77 kB / 0.7635 GB, free: 16.8 MB / 0.5919 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.371e-05/0.5474, allocations: 17.47 kB / 0.7635 GB, free: 16.79 MB / 0.5919 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 8.216e-06/0.5474, allocations: 2.625 kB / 0.7635 GB, free: 16.79 MB / 0.5919 GB Notification: Performance of sorting global known variables: time 0.0001745/0.5475, allocations: 183.2 kB / 0.7637 GB, free: 16.71 MB / 0.5919 GB Notification: Performance of sort global known variables: time 8.1e-08/0.5475, allocations: 0 / 0.7637 GB, free: 16.71 MB / 0.5919 GB Notification: Performance of remove unused functions: time 0.0002601/0.5478, allocations: 43.3 kB / 0.7637 GB, free: 16.71 MB / 0.5919 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.0002142/0.548, allocations: 142.5 kB / 0.7638 GB, free: 16.61 MB / 0.5919 GB Notification: Performance of simCode: created initialization part: time 0.0003897/0.5484, allocations: 190.3 kB / 0.764 GB, free: 16.52 MB / 0.5919 GB Notification: Performance of simCode: created event and clocks part: time 1.663e-06/0.5484, allocations: 0 / 0.764 GB, free: 16.52 MB / 0.5919 GB Notification: Performance of simCode: created simulation system equations: time 0.0001328/0.5485, allocations: 40.17 kB / 0.7641 GB, free: 16.52 MB / 0.5919 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002954/0.5488, allocations: 43.19 kB / 0.7641 GB, free: 16.52 MB / 0.5919 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0007697/0.5496, allocations: 446 kB / 0.7645 GB, free: 16.28 MB / 0.5919 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001544/0.5498, allocations: 139.4 kB / 0.7647 GB, free: 16.2 MB / 0.5919 GB Notification: Performance of simCode: alias equations: time 8.378e-05/0.5498, allocations: 30.86 kB / 0.7647 GB, free: 16.19 MB / 0.5919 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 4.164e-05/0.5499, allocations: 19.61 kB / 0.7647 GB, free: 16.19 MB / 0.5919 GB Notification: Performance of SimCode: time 2.8e-07/0.5499, allocations: 2.109 kB / 0.7647 GB, free: 16.19 MB / 0.5919 GB Notification: Performance of Templates: time 0.00618/0.5561, allocations: 2.642 MB / 0.7673 GB, free: 16.02 MB / 0.5919 GB " [Timeout remaining time 659] make -j1 -f ThermofluidStream_dev_ThermofluidStream.Boundaries.Tests.TerminalSourceSink.makefile [Timeout 660] (rm -f ThermofluidStream_dev_ThermofluidStream.Boundaries.Tests.TerminalSourceSink.pipe ; mkfifo ThermofluidStream_dev_ThermofluidStream.Boundaries.Tests.TerminalSourceSink.pipe ; head -c 1048576 < ThermofluidStream_dev_ThermofluidStream.Boundaries.Tests.TerminalSourceSink.pipe >> ../files/ThermofluidStream_dev_ThermofluidStream.Boundaries.Tests.TerminalSourceSink.sim & ./ThermofluidStream_dev_ThermofluidStream.Boundaries.Tests.TerminalSourceSink -abortSlowSimulation -alarm=1200 -emit_protected -lv LOG_STATS > ThermofluidStream_dev_ThermofluidStream.Boundaries.Tests.TerminalSourceSink.pipe 2>&1) [Timeout 1200] diffSimulationResults("ThermofluidStream_dev_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_dev_ThermofluidStream.Boundaries.Tests.TerminalSourceSink.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) [Timeout 660] "" [Timeout remaining time 660] Reference file matches [Calling sys.exit(0), Time elapsed: 5.454911621287465]