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: "" <> buildModelFMU(ThermofluidStream.Boundaries.Tests.TerminalSourceSink,fileNamePrefix="ThermofluidStream_ThermofluidStream_Boundaries_Tests_TerminalSourceSink",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(ThermofluidStream.Boundaries.Tests.TerminalSourceSink,fileNamePrefix="ThermofluidStream_ThermofluidStream_Boundaries_Tests_TerminalSourceSink",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.00109/0.00109, allocations: 108 kB / 15.6 MB, free: 132 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.001134/0.001134, allocations: 193.1 kB / 16.53 MB, free: 6.391 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.344/1.344, allocations: 222.9 MB / 240.2 MB, free: 4.41 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ThermofluidStream 1.1.0-main/package.mo): time 0.6327/0.6327, allocations: 91.19 MB / 381.6 MB, free: 9.414 MB / 318.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001545/0.001545, allocations: 84.08 kB / 460.4 MB, free: 23.16 MB / 350.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1229/0.1244, allocations: 67.69 MB / 0.5157 GB, free: 10.12 MB / 398.1 MB Notification: Performance of NFInst.instantiate(ThermofluidStream.Boundaries.Tests.TerminalSourceSink): time 0.4102/0.5346, allocations: 140.5 MB / 0.6529 GB, free: 9.531 MB / 478.1 MB Notification: Performance of NFInst.instExpressions: time 0.002338/0.537, allocations: 2.109 MB / 0.6549 GB, free: 7.82 MB / 478.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001594/0.5372, allocations: 12.69 kB / 0.655 GB, free: 7.812 MB / 478.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0004477/0.5377, allocations: 121.9 kB / 0.6551 GB, free: 7.719 MB / 478.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0003161/0.538, allocations: 126.8 kB / 0.6552 GB, free: 7.613 MB / 478.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0003727/0.5384, allocations: 179.9 kB / 0.6554 GB, free: 7.477 MB / 478.1 MB Notification: Performance of NFFlatten.flatten: time 0.0003118/0.5387, allocations: 291.6 kB / 0.6556 GB, free: 7.309 MB / 478.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001577/0.5389, allocations: 74.38 kB / 0.6557 GB, free: 7.266 MB / 478.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0004341/0.5393, allocations: 193.4 kB / 0.6559 GB, free: 7.145 MB / 478.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001554/0.5395, allocations: 125.6 kB / 0.656 GB, free: 7.07 MB / 478.1 MB Notification: Performance of NFPackage.collectConstants: time 2.566e-05/0.5396, allocations: 10.69 kB / 0.656 GB, free: 7.07 MB / 478.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0003994/0.54, allocations: 212.7 kB / 0.6562 GB, free: 6.977 MB / 478.1 MB Notification: Performance of NFScalarize.scalarize: time 5.948e-05/0.54, allocations: 33.09 kB / 0.6563 GB, free: 6.949 MB / 478.1 MB Notification: Performance of NFVerifyModel.verify: time 9.271e-05/0.5401, allocations: 99.42 kB / 0.6564 GB, free: 6.883 MB / 478.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0004078/0.5405, allocations: 286.4 kB / 0.6566 GB, free: 6.699 MB / 478.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.359e-06/0.5406, allocations: 1.219 kB / 0.6566 GB, free: 6.699 MB / 478.1 MB Notification: Performance of FrontEnd: time 1.393e-06/0.5406, allocations: 0 / 0.6566 GB, free: 6.699 MB / 478.1 MB Notification: Performance of Transformations before backend: time 5.47e-06/0.5406, allocations: 0 / 0.6566 GB, free: 6.699 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.000853/0.5414, allocations: 0.5541 MB / 0.6572 GB, free: 6.172 MB / 478.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.425e-05/0.5415, allocations: 13 kB / 0.6572 GB, free: 6.168 MB / 478.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 4.102e-05/0.5415, allocations: 48.11 kB / 0.6572 GB, free: 6.117 MB / 478.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 5.215e-05/0.5416, allocations: 29.09 kB / 0.6573 GB, free: 6.102 MB / 478.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003278/0.5419, allocations: 287.3 kB / 0.6575 GB, free: 5.82 MB / 478.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.669e-05/0.5419, allocations: 10.28 kB / 0.6575 GB, free: 5.816 MB / 478.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 3.103e-05/0.542, allocations: 14.16 kB / 0.6576 GB, free: 5.812 MB / 478.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003432/0.5423, allocations: 169.2 kB / 0.6577 GB, free: 5.68 MB / 478.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.048e-05/0.5423, allocations: 3.938 kB / 0.6577 GB, free: 5.676 MB / 478.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.712e-05/0.5424, allocations: 5.562 kB / 0.6577 GB, free: 5.672 MB / 478.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.203e-06/0.5424, allocations: 3.219 kB / 0.6577 GB, free: 5.672 MB / 478.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0003092/0.5427, allocations: 103.8 kB / 0.6578 GB, free: 5.621 MB / 478.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001031/0.5437, allocations: 0.901 MB / 0.6587 GB, free: 4.723 MB / 478.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0003015/0.5441, allocations: 94.33 kB / 0.6588 GB, free: 4.66 MB / 478.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001305/0.5442, allocations: 39.61 kB / 0.6588 GB, free: 4.637 MB / 478.1 MB Notification: Performance of preOpt evalFunc (simulation): time 9.632e-05/0.5443, allocations: 80.92 kB / 0.6589 GB, free: 4.543 MB / 478.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.00029/0.5446, allocations: 90.66 kB / 0.659 GB, free: 4.465 MB / 478.1 MB Notification: Performance of pre-optimization done (n=7): time 1.773e-06/0.5446, allocations: 5.5 kB / 0.659 GB, free: 4.461 MB / 478.1 MB Notification: Performance of matching and sorting (n=7): time 0.0005031/0.5451, allocations: 153 kB / 0.6591 GB, free: 4.371 MB / 478.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.105e-05/0.5452, allocations: 52.97 kB / 0.6592 GB, free: 4.309 MB / 478.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002631/0.5454, allocations: 261 kB / 0.6594 GB, free: 4.129 MB / 478.1 MB Notification: Performance of collectPreVariables (initialization): time 2.214e-05/0.5455, allocations: 30.89 kB / 0.6595 GB, free: 4.094 MB / 478.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001152/0.5456, allocations: 168.5 kB / 0.6596 GB, free: 3.938 MB / 478.1 MB Notification: Performance of collectInitialBindings (initialization): time 2.318e-05/0.5456, allocations: 23.8 kB / 0.6597 GB, free: 3.918 MB / 478.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 6.324e-05/0.5457, allocations: 40.23 kB / 0.6597 GB, free: 3.883 MB / 478.1 MB Notification: Performance of setup shared object (initialization): time 0.000125/0.5458, allocations: 332.8 kB / 0.66 GB, free: 3.555 MB / 478.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001514/0.546, allocations: 46.69 kB / 0.6601 GB, free: 3.531 MB / 478.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001697/0.5462, allocations: 76.78 kB / 0.6601 GB, free: 3.465 MB / 478.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002922/0.5465, allocations: 154.2 kB / 0.6603 GB, free: 3.336 MB / 478.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.174e-06/0.5465, allocations: 0 / 0.6603 GB, free: 3.336 MB / 478.1 MB Notification: Performance of matching and sorting (n=17) (initialization): time 0.0004003/0.5469, allocations: 213.2 kB / 0.6605 GB, free: 3.199 MB / 478.1 MB Notification: Performance of prepare postOptimizeDAE: time 3.389e-05/0.5469, allocations: 35.61 kB / 0.6605 GB, free: 3.168 MB / 478.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.561e-06/0.5469, allocations: 3.938 kB / 0.6605 GB, free: 3.164 MB / 478.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.67e-05/0.547, allocations: 6.406 kB / 0.6605 GB, free: 3.16 MB / 478.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001532/0.5471, allocations: 30.28 kB / 0.6606 GB, free: 3.152 MB / 478.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 6.071e-06/0.5471, allocations: 2.562 kB / 0.6606 GB, free: 3.152 MB / 478.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001545/0.5473, allocations: 30.39 kB / 0.6606 GB, free: 3.133 MB / 478.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.393e-05/0.5473, allocations: 8.844 kB / 0.6606 GB, free: 3.129 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.000114/0.5474, allocations: 144.7 kB / 0.6607 GB, free: 2.988 MB / 478.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.863e-05/0.5475, allocations: 22 kB / 0.6608 GB, free: 2.977 MB / 478.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.000328/0.5478, allocations: 131.9 kB / 0.6609 GB, free: 2.891 MB / 478.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.875e-06/0.5478, allocations: 0 / 0.6609 GB, free: 2.891 MB / 478.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.04e-06/0.5478, allocations: 4.875 kB / 0.6609 GB, free: 2.887 MB / 478.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.805e-06/0.5478, allocations: 0 / 0.6609 GB, free: 2.887 MB / 478.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001859/0.548, allocations: 239.6 kB / 0.6611 GB, free: 2.641 MB / 478.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.142e-06/0.548, allocations: 0 / 0.6611 GB, free: 2.641 MB / 478.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001055/0.5481, allocations: 20.64 kB / 0.6611 GB, free: 2.633 MB / 478.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.964e-06/0.5482, allocations: 0 / 0.6611 GB, free: 2.633 MB / 478.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.351e-05/0.5482, allocations: 6 kB / 0.6611 GB, free: 2.629 MB / 478.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.884e-06/0.5482, allocations: 2.219 kB / 0.6611 GB, free: 2.629 MB / 478.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 8.41e-07/0.5482, allocations: 0 / 0.6611 GB, free: 2.629 MB / 478.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0004671/0.5487, allocations: 192.3 kB / 0.6613 GB, free: 2.496 MB / 478.1 MB Notification: Performance of postOpt removeConstants (simulation): time 6.481e-05/0.5487, allocations: 95.56 kB / 0.6614 GB, free: 2.387 MB / 478.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.33e-05/0.5488, allocations: 10.25 kB / 0.6614 GB, free: 2.379 MB / 478.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001102/0.5489, allocations: 11.27 kB / 0.6614 GB, free: 2.375 MB / 478.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.728e-05/0.549, allocations: 10.8 kB / 0.6614 GB, free: 2.367 MB / 478.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 7.594e-06/0.549, allocations: 2.094 kB / 0.6615 GB, free: 2.367 MB / 478.1 MB Notification: Performance of sorting global known variables: time 0.0001725/0.5491, allocations: 193.4 kB / 0.6616 GB, free: 2.234 MB / 478.1 MB Notification: Performance of sort global known variables: time 1.21e-07/0.5492, allocations: 0 / 0.6616 GB, free: 2.234 MB / 478.1 MB Notification: Performance of remove unused functions: time 0.0002695/0.5494, allocations: 51.12 kB / 0.6617 GB, free: 2.219 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.000839/0.5503, allocations: 0.7607 MB / 0.6624 GB, free: 1.539 MB / 478.1 MB Notification: Performance of simCode: created initialization part: time 0.0003696/0.5507, allocations: 166 kB / 0.6626 GB, free: 1.426 MB / 478.1 MB Notification: Performance of simCode: created event and clocks part: time 2.053e-06/0.5507, allocations: 320 / 0.6626 GB, free: 1.426 MB / 478.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0001333/0.5508, allocations: 42.5 kB / 0.6626 GB, free: 1.406 MB / 478.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003324/0.5512, allocations: 51.62 kB / 0.6627 GB, free: 1.383 MB / 478.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002596/0.5538, allocations: 2.236 MB / 0.6649 GB, free: 15.59 MB / 494.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002463/0.554, allocations: 0.734 MB / 0.6656 GB, free: 14.87 MB / 494.1 MB Notification: Performance of simCode: alias equations: time 8.377e-05/0.5541, allocations: 22.5 kB / 0.6656 GB, free: 14.86 MB / 494.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 8.852e-05/0.5542, allocations: 69.52 kB / 0.6657 GB, free: 14.8 MB / 494.1 MB Notification: Performance of SimCode: time 2.7e-07/0.5542, allocations: 4 kB / 0.6657 GB, free: 14.8 MB / 494.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02212/0.5763, allocations: 5.037 MB / 0.6706 GB, free: 12.28 MB / 494.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 7.573/8.149, allocations: 6.859 kB / 0.6706 GB, free: 12.27 MB / 494.1 MB (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 & python3 -m fmpy simulate --output-file ThermofluidStream_ThermofluidStream.Boundaries.Tests.TerminalSourceSink_res.csv --start-time 0 --stop-time 10 --timeout 1200 --relative-tolerance 1e-06 --interface-type ModelExchange --solver CVode --output-interval 0.01 ThermofluidStream_ThermofluidStream_Boundaries_Tests_TerminalSourceSink.fmu > ThermofluidStream_ThermofluidStream.Boundaries.Tests.TerminalSourceSink.pipe 2>&1) diffSimulationResults("ThermofluidStream_ThermofluidStream.Boundaries.Tests.TerminalSourceSink_res.csv","/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