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.001543/0.001543, 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.001817/0.001817, allocations: 192.5 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.282/1.282, 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.6266/0.6266, allocations: 91.2 MB / 381.6 MB, free: 9.422 MB / 318.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001597/0.001597, allocations: 77.78 kB / 460.4 MB, free: 23.07 MB / 350.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1197/0.1213, allocations: 67.69 MB / 0.5157 GB, free: 10.13 MB / 398.1 MB Notification: Performance of NFInst.instantiate(ThermofluidStream.Boundaries.Tests.TerminalSourceSink): time 0.3741/0.4954, allocations: 140.5 MB / 0.6529 GB, free: 9.562 MB / 478.1 MB Notification: Performance of NFInst.instExpressions: time 0.002169/0.4976, allocations: 2.112 MB / 0.6549 GB, free: 7.848 MB / 478.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001419/0.4978, allocations: 15.78 kB / 0.655 GB, free: 7.84 MB / 478.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0003959/0.4982, allocations: 119.4 kB / 0.6551 GB, free: 7.742 MB / 478.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0002808/0.4985, allocations: 135 kB / 0.6552 GB, free: 7.629 MB / 478.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0003312/0.4988, allocations: 167.2 kB / 0.6554 GB, free: 7.504 MB / 478.1 MB Notification: Performance of NFFlatten.flatten: time 0.0002751/0.4991, allocations: 298.5 kB / 0.6556 GB, free: 7.332 MB / 478.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.000139/0.4993, allocations: 73.44 kB / 0.6557 GB, free: 7.289 MB / 478.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0003728/0.4996, allocations: 190.8 kB / 0.6559 GB, free: 7.172 MB / 478.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001618/0.4998, allocations: 128.1 kB / 0.656 GB, free: 7.094 MB / 478.1 MB Notification: Performance of NFPackage.collectConstants: time 2.356e-05/0.4998, allocations: 12.66 kB / 0.656 GB, free: 7.094 MB / 478.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0003436/0.5002, allocations: 210.2 kB / 0.6562 GB, free: 7 MB / 478.1 MB Notification: Performance of NFScalarize.scalarize: time 5.45e-05/0.5003, allocations: 33.44 kB / 0.6563 GB, free: 6.973 MB / 478.1 MB Notification: Performance of NFVerifyModel.verify: time 8.838e-05/0.5004, allocations: 98.48 kB / 0.6564 GB, free: 6.906 MB / 478.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0003541/0.5007, allocations: 286.8 kB / 0.6566 GB, free: 6.723 MB / 478.1 MB Notification: Performance of FrontEnd - DAE generated: time 2.705e-06/0.5007, allocations: 1.094 kB / 0.6566 GB, free: 6.723 MB / 478.1 MB Notification: Performance of FrontEnd: time 1.222e-06/0.5007, allocations: 0 / 0.6566 GB, free: 6.723 MB / 478.1 MB Notification: Performance of Transformations before backend: time 5.991e-06/0.5007, allocations: 0 / 0.6566 GB, free: 6.723 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.0008348/0.5016, allocations: 0.5595 MB / 0.6572 GB, free: 6.191 MB / 478.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.15e-05/0.5016, allocations: 9.781 kB / 0.6572 GB, free: 6.191 MB / 478.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 4.29e-05/0.5017, allocations: 46.61 kB / 0.6572 GB, free: 6.141 MB / 478.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 5.833e-05/0.5017, allocations: 28.59 kB / 0.6573 GB, free: 6.125 MB / 478.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003122/0.5021, allocations: 291 kB / 0.6575 GB, free: 5.84 MB / 478.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.394e-05/0.5021, allocations: 9.062 kB / 0.6575 GB, free: 5.836 MB / 478.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 3.119e-05/0.5021, allocations: 14.31 kB / 0.6576 GB, free: 5.832 MB / 478.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003287/0.5024, allocations: 166.9 kB / 0.6577 GB, free: 5.703 MB / 478.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.045e-05/0.5025, allocations: 3.984 kB / 0.6577 GB, free: 5.699 MB / 478.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.63e-05/0.5025, allocations: 9.5 kB / 0.6577 GB, free: 5.691 MB / 478.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.681e-06/0.5025, allocations: 2.844 kB / 0.6577 GB, free: 5.691 MB / 478.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0003018/0.5028, allocations: 93.31 kB / 0.6578 GB, free: 5.652 MB / 478.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0009847/0.5038, allocations: 0.9075 MB / 0.6587 GB, free: 4.746 MB / 478.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0003073/0.5041, allocations: 90.73 kB / 0.6588 GB, free: 4.688 MB / 478.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001281/0.5043, allocations: 43.14 kB / 0.6588 GB, free: 4.66 MB / 478.1 MB Notification: Performance of preOpt evalFunc (simulation): time 9.515e-05/0.5044, allocations: 79.86 kB / 0.6589 GB, free: 4.566 MB / 478.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002757/0.5047, allocations: 88.11 kB / 0.659 GB, free: 4.492 MB / 478.1 MB Notification: Performance of pre-optimization done (n=7): time 1.633e-06/0.5047, allocations: 0 / 0.659 GB, free: 4.492 MB / 478.1 MB Notification: Performance of matching and sorting (n=7): time 0.0004761/0.5051, allocations: 157.7 kB / 0.6591 GB, free: 4.398 MB / 478.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.736e-05/0.5052, allocations: 58.34 kB / 0.6592 GB, free: 4.332 MB / 478.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002462/0.5054, allocations: 259.4 kB / 0.6594 GB, free: 4.152 MB / 478.1 MB Notification: Performance of collectPreVariables (initialization): time 1.999e-05/0.5055, allocations: 35.36 kB / 0.6595 GB, free: 4.113 MB / 478.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001097/0.5056, allocations: 172.7 kB / 0.6596 GB, free: 3.953 MB / 478.1 MB Notification: Performance of collectInitialBindings (initialization): time 2.169e-05/0.5056, allocations: 23.73 kB / 0.6597 GB, free: 3.934 MB / 478.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 5.83e-05/0.5057, allocations: 32.41 kB / 0.6597 GB, free: 3.906 MB / 478.1 MB Notification: Performance of setup shared object (initialization): time 0.0001078/0.5058, allocations: 336 kB / 0.66 GB, free: 3.574 MB / 478.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001463/0.5059, allocations: 48.17 kB / 0.6601 GB, free: 3.551 MB / 478.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001656/0.5061, allocations: 80.53 kB / 0.6601 GB, free: 3.48 MB / 478.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002855/0.5064, allocations: 149.4 kB / 0.6603 GB, free: 3.355 MB / 478.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.264e-06/0.5064, allocations: 0 / 0.6603 GB, free: 3.355 MB / 478.1 MB Notification: Performance of matching and sorting (n=17) (initialization): time 0.0004092/0.5068, allocations: 204.4 kB / 0.6605 GB, free: 3.227 MB / 478.1 MB Notification: Performance of prepare postOptimizeDAE: time 3.039e-05/0.5069, allocations: 36.95 kB / 0.6605 GB, free: 3.191 MB / 478.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.678e-06/0.5069, allocations: 0 / 0.6605 GB, free: 3.191 MB / 478.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.373e-05/0.5069, allocations: 6.781 kB / 0.6605 GB, free: 3.188 MB / 478.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001484/0.5071, allocations: 31.83 kB / 0.6606 GB, free: 3.18 MB / 478.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 9.778e-06/0.5071, allocations: 10.27 kB / 0.6606 GB, free: 3.172 MB / 478.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001518/0.5072, allocations: 25.88 kB / 0.6606 GB, free: 3.156 MB / 478.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.555e-05/0.5073, allocations: 8.703 kB / 0.6606 GB, free: 3.152 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.0001162/0.5074, allocations: 145.6 kB / 0.6607 GB, free: 3.012 MB / 478.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.868e-05/0.5074, allocations: 21.75 kB / 0.6608 GB, free: 3 MB / 478.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0003455/0.5078, allocations: 130.5 kB / 0.6609 GB, free: 2.914 MB / 478.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.996e-06/0.5078, allocations: 4 kB / 0.6609 GB, free: 2.91 MB / 478.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.897e-06/0.5078, allocations: 2.906 kB / 0.6609 GB, free: 2.91 MB / 478.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.447e-06/0.5078, allocations: 2.812 kB / 0.6609 GB, free: 2.91 MB / 478.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001923/0.508, allocations: 240.8 kB / 0.6611 GB, free: 2.66 MB / 478.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.052e-06/0.508, allocations: 0 / 0.6611 GB, free: 2.66 MB / 478.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001071/0.5081, allocations: 20.05 kB / 0.6611 GB, free: 2.652 MB / 478.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.054e-06/0.5081, allocations: 0 / 0.6611 GB, free: 2.652 MB / 478.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.218e-05/0.5081, allocations: 6.938 kB / 0.6611 GB, free: 2.648 MB / 478.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.443e-06/0.5082, allocations: 0 / 0.6611 GB, free: 2.648 MB / 478.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 8.12e-07/0.5082, allocations: 0 / 0.6611 GB, free: 2.648 MB / 478.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0004415/0.5086, allocations: 187.8 kB / 0.6613 GB, free: 2.52 MB / 478.1 MB Notification: Performance of postOpt removeConstants (simulation): time 5.598e-05/0.5087, allocations: 98.16 kB / 0.6614 GB, free: 2.41 MB / 478.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.086e-05/0.5087, allocations: 3.938 kB / 0.6614 GB, free: 2.406 MB / 478.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001123/0.5088, allocations: 13.02 kB / 0.6614 GB, free: 2.398 MB / 478.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.915e-05/0.5089, allocations: 11.8 kB / 0.6614 GB, free: 2.395 MB / 478.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 8.556e-06/0.5089, allocations: 12 kB / 0.6615 GB, free: 2.383 MB / 478.1 MB Notification: Performance of sorting global known variables: time 0.0001538/0.5091, allocations: 184.9 kB / 0.6616 GB, free: 2.258 MB / 478.1 MB Notification: Performance of sort global known variables: time 1.11e-07/0.5091, allocations: 0 / 0.6616 GB, free: 2.258 MB / 478.1 MB Notification: Performance of remove unused functions: time 0.0002546/0.5093, allocations: 51.12 kB / 0.6617 GB, free: 2.242 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.0007764/0.5101, allocations: 0.7554 MB / 0.6624 GB, free: 1.57 MB / 478.1 MB Notification: Performance of simCode: created initialization part: time 0.0003638/0.5105, allocations: 165.9 kB / 0.6626 GB, free: 1.457 MB / 478.1 MB Notification: Performance of simCode: created event and clocks part: time 2.044e-06/0.5105, allocations: 4.125 kB / 0.6626 GB, free: 1.453 MB / 478.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0001393/0.5106, allocations: 45.16 kB / 0.6626 GB, free: 1.434 MB / 478.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003467/0.511, allocations: 52.25 kB / 0.6627 GB, free: 1.406 MB / 478.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002745/0.5138, allocations: 2.237 MB / 0.6649 GB, free: 15.61 MB / 494.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002776/0.5141, allocations: 0.7379 MB / 0.6656 GB, free: 14.89 MB / 494.1 MB Notification: Performance of simCode: alias equations: time 0.0001048/0.5142, allocations: 16.73 kB / 0.6656 GB, free: 14.89 MB / 494.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 9.555e-05/0.5143, allocations: 79.62 kB / 0.6657 GB, free: 14.82 MB / 494.1 MB Notification: Performance of SimCode: time 3.61e-07/0.5143, allocations: 0 / 0.6657 GB, free: 14.82 MB / 494.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02197/0.5362, allocations: 5.039 MB / 0.6706 GB, free: 12.3 MB / 494.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 7.592/8.129, allocations: 6.422 kB / 0.6706 GB, free: 12.3 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 & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=ThermofluidStream_ThermofluidStream.Boundaries.Tests.TerminalSourceSink_res.mat --tempDir=temp_ThermofluidStream_ThermofluidStream_Boundaries_Tests_TerminalSourceSink_fmu --startTime=0 --stopTime=10 --timeout=1200 --tolerance=1e-06 ThermofluidStream_ThermofluidStream_Boundaries_Tests_TerminalSourceSink.fmu > 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