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.001178/0.001178, allocations: 111.3 kB / 15.23 MB, free: 0.6406 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.001446/0.001446, allocations: 198 kB / 16.14 MB, free: 6.711 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.314/1.314, allocations: 222.9 MB / 239.8 MB, free: 4.613 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ThermofluidStream 1.1.0-main/package.mo): time 0.646/0.646, allocations: 89.51 MB / 379.5 MB, free: 11.27 MB / 318.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001421/0.001422, allocations: 79.34 kB / 457.7 MB, free: 23.93 MB / 350.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1012/0.1026, allocations: 67.31 MB / 0.5127 GB, free: 12.84 MB / 398.1 MB Notification: Performance of NFInst.instantiate(ThermofluidStream.Boundaries.Tests.TerminalSourceSink): time 0.3549/0.4576, allocations: 138.4 MB / 0.6478 GB, free: 13.81 MB / 478.1 MB Notification: Performance of NFInst.instExpressions: time 0.002338/0.46, allocations: 2.094 MB / 0.6498 GB, free: 12.49 MB / 478.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001809/0.4602, allocations: 6.125 kB / 0.6498 GB, free: 12.49 MB / 478.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0004609/0.4607, allocations: 103 kB / 0.6499 GB, free: 12.41 MB / 478.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0003248/0.461, allocations: 100.1 kB / 0.65 GB, free: 12.34 MB / 478.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0004291/0.4615, allocations: 163 kB / 0.6502 GB, free: 12.25 MB / 478.1 MB Notification: Performance of NFFlatten.flatten: time 0.00032/0.4618, allocations: 291.2 kB / 0.6505 GB, free: 12.14 MB / 478.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001407/0.462, allocations: 62.17 kB / 0.6505 GB, free: 12.12 MB / 478.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0003914/0.4624, allocations: 161.9 kB / 0.6507 GB, free: 12.05 MB / 478.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001767/0.4626, allocations: 116.3 kB / 0.6508 GB, free: 11.98 MB / 478.1 MB Notification: Performance of NFPackage.collectConstants: time 2.359e-05/0.4626, allocations: 10.38 kB / 0.6508 GB, free: 11.98 MB / 478.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.000403/0.463, allocations: 200.2 kB / 0.651 GB, free: 11.89 MB / 478.1 MB Notification: Performance of NFScalarize.scalarize: time 3.873e-05/0.4631, allocations: 33.22 kB / 0.651 GB, free: 11.87 MB / 478.1 MB Notification: Performance of NFVerifyModel.verify: time 9.272e-05/0.4632, allocations: 79.3 kB / 0.6511 GB, free: 11.82 MB / 478.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0003714/0.4635, allocations: 237.7 kB / 0.6513 GB, free: 11.67 MB / 478.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.366e-06/0.4635, allocations: 0 / 0.6513 GB, free: 11.67 MB / 478.1 MB Notification: Performance of FrontEnd: time 1.022e-06/0.4636, allocations: 0 / 0.6513 GB, free: 11.67 MB / 478.1 MB Notification: Performance of Transformations before backend: time 5.41e-06/0.4636, allocations: 0 / 0.6513 GB, free: 11.67 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.0008622/0.4644, allocations: 0.5009 MB / 0.6518 GB, free: 11.18 MB / 478.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.649e-05/0.4645, allocations: 9.938 kB / 0.6518 GB, free: 11.18 MB / 478.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 4.568e-05/0.4645, allocations: 49.48 kB / 0.6519 GB, free: 11.12 MB / 478.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 5.074e-05/0.4646, allocations: 22.41 kB / 0.6519 GB, free: 11.11 MB / 478.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002165/0.4648, allocations: 227 kB / 0.6521 GB, free: 10.87 MB / 478.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.389e-05/0.4648, allocations: 11.81 kB / 0.6521 GB, free: 10.86 MB / 478.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 3.292e-05/0.4649, allocations: 12.25 kB / 0.6521 GB, free: 10.86 MB / 478.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003371/0.4652, allocations: 166.6 kB / 0.6523 GB, free: 10.73 MB / 478.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 8.816e-06/0.4652, allocations: 10.03 kB / 0.6523 GB, free: 10.72 MB / 478.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.685e-05/0.4653, allocations: 4 kB / 0.6523 GB, free: 10.72 MB / 478.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.841e-06/0.4653, allocations: 4.75 kB / 0.6523 GB, free: 10.72 MB / 478.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0003092/0.4656, allocations: 94.59 kB / 0.6524 GB, free: 10.68 MB / 478.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0009566/0.4665, allocations: 0.8905 MB / 0.6533 GB, free: 9.781 MB / 478.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0002959/0.4669, allocations: 90.08 kB / 0.6534 GB, free: 9.723 MB / 478.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001306/0.467, allocations: 43.14 kB / 0.6534 GB, free: 9.695 MB / 478.1 MB Notification: Performance of preOpt evalFunc (simulation): time 8.44e-05/0.4671, allocations: 79.45 kB / 0.6535 GB, free: 9.602 MB / 478.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002734/0.4674, allocations: 92.52 kB / 0.6536 GB, free: 9.523 MB / 478.1 MB Notification: Performance of pre-optimization done (n=7): time 1.482e-06/0.4674, allocations: 0 / 0.6536 GB, free: 9.523 MB / 478.1 MB Notification: Performance of matching and sorting (n=7): time 0.000473/0.4679, allocations: 151 kB / 0.6537 GB, free: 9.434 MB / 478.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.87e-05/0.4679, allocations: 53.66 kB / 0.6538 GB, free: 9.371 MB / 478.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001675/0.4681, allocations: 201.6 kB / 0.654 GB, free: 9.215 MB / 478.1 MB Notification: Performance of collectPreVariables (initialization): time 2.165e-05/0.4681, allocations: 29.7 kB / 0.654 GB, free: 9.18 MB / 478.1 MB Notification: Performance of collectInitialEqns (initialization): time 8.012e-05/0.4682, allocations: 146.2 kB / 0.6541 GB, free: 9.043 MB / 478.1 MB Notification: Performance of collectInitialBindings (initialization): time 2.051e-05/0.4682, allocations: 18.38 kB / 0.6541 GB, free: 9.027 MB / 478.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 6.081e-05/0.4683, allocations: 36.39 kB / 0.6542 GB, free: 8.996 MB / 478.1 MB Notification: Performance of setup shared object (initialization): time 0.0001009/0.4684, allocations: 328.3 kB / 0.6545 GB, free: 8.672 MB / 478.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001521/0.4686, allocations: 42.38 kB / 0.6545 GB, free: 8.652 MB / 478.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001588/0.4687, allocations: 80.98 kB / 0.6546 GB, free: 8.582 MB / 478.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.000293/0.469, allocations: 148.1 kB / 0.6547 GB, free: 8.457 MB / 478.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.033e-06/0.469, allocations: 2.125 kB / 0.6547 GB, free: 8.457 MB / 478.1 MB Notification: Performance of matching and sorting (n=17) (initialization): time 0.000426/0.4695, allocations: 209.7 kB / 0.6549 GB, free: 8.32 MB / 478.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.973e-05/0.4695, allocations: 37.03 kB / 0.655 GB, free: 8.285 MB / 478.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.921e-06/0.4695, allocations: 2.75 kB / 0.655 GB, free: 8.285 MB / 478.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.305e-05/0.4695, allocations: 3.938 kB / 0.655 GB, free: 8.281 MB / 478.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001536/0.4697, allocations: 30.27 kB / 0.655 GB, free: 8.273 MB / 478.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 6.322e-06/0.4697, allocations: 2.812 kB / 0.655 GB, free: 8.273 MB / 478.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001646/0.4699, allocations: 30.05 kB / 0.655 GB, free: 8.254 MB / 478.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.507e-05/0.4699, allocations: 5.062 kB / 0.6551 GB, free: 8.254 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.0001079/0.47, allocations: 135 kB / 0.6552 GB, free: 8.121 MB / 478.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.41e-05/0.4701, allocations: 17.41 kB / 0.6552 GB, free: 8.113 MB / 478.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.000334/0.4704, allocations: 120.4 kB / 0.6553 GB, free: 8.039 MB / 478.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.444e-06/0.4704, allocations: 0 / 0.6553 GB, free: 8.039 MB / 478.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.848e-06/0.4704, allocations: 3.938 kB / 0.6553 GB, free: 8.035 MB / 478.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.947e-06/0.4704, allocations: 10.66 kB / 0.6553 GB, free: 8.031 MB / 478.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001761/0.4706, allocations: 224.8 kB / 0.6555 GB, free: 7.789 MB / 478.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.593e-06/0.4706, allocations: 0 / 0.6555 GB, free: 7.789 MB / 478.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001145/0.4707, allocations: 16.98 kB / 0.6556 GB, free: 7.785 MB / 478.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.504e-06/0.4707, allocations: 0 / 0.6556 GB, free: 7.785 MB / 478.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.406e-05/0.4708, allocations: 7.938 kB / 0.6556 GB, free: 7.777 MB / 478.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 4.228e-06/0.4708, allocations: 0 / 0.6556 GB, free: 7.777 MB / 478.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.032e-06/0.4708, allocations: 9.688 kB / 0.6556 GB, free: 7.77 MB / 478.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0004517/0.4712, allocations: 182.3 kB / 0.6557 GB, free: 7.645 MB / 478.1 MB Notification: Performance of postOpt removeConstants (simulation): time 5.003e-05/0.4713, allocations: 88.06 kB / 0.6558 GB, free: 7.543 MB / 478.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.967e-05/0.4713, allocations: 3.938 kB / 0.6558 GB, free: 7.539 MB / 478.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001197/0.4715, allocations: 10.73 kB / 0.6558 GB, free: 7.535 MB / 478.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.95e-05/0.4715, allocations: 12.98 kB / 0.6559 GB, free: 7.527 MB / 478.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 8.165e-06/0.4715, allocations: 1.219 kB / 0.6559 GB, free: 7.527 MB / 478.1 MB Notification: Performance of sorting global known variables: time 0.0001088/0.4717, allocations: 154.2 kB / 0.656 GB, free: 7.414 MB / 478.1 MB Notification: Performance of sort global known variables: time 2.3e-07/0.4717, allocations: 0 / 0.656 GB, free: 7.414 MB / 478.1 MB Notification: Performance of remove unused functions: time 0.0002691/0.4719, allocations: 47.16 kB / 0.6561 GB, free: 7.398 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.0007733/0.4727, allocations: 0.7498 MB / 0.6568 GB, free: 6.723 MB / 478.1 MB Notification: Performance of simCode: created initialization part: time 0.0003649/0.4731, allocations: 168.5 kB / 0.6569 GB, free: 6.605 MB / 478.1 MB Notification: Performance of simCode: created event and clocks part: time 1.854e-06/0.4731, allocations: 0 / 0.6569 GB, free: 6.605 MB / 478.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0001442/0.4733, allocations: 47.06 kB / 0.657 GB, free: 6.582 MB / 478.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003501/0.4736, allocations: 37.66 kB / 0.657 GB, free: 6.566 MB / 478.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002507/0.4761, allocations: 2.023 MB / 0.659 GB, free: 4.859 MB / 478.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002296/0.4764, allocations: 0.717 MB / 0.6597 GB, free: 4.145 MB / 478.1 MB Notification: Performance of simCode: alias equations: time 9.393e-05/0.4765, allocations: 20.2 kB / 0.6597 GB, free: 4.133 MB / 478.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 7.253e-05/0.4766, allocations: 47.23 kB / 0.6598 GB, free: 4.094 MB / 478.1 MB Notification: Performance of SimCode: time 4.6e-07/0.4766, allocations: 0 / 0.6598 GB, free: 4.094 MB / 478.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.01387/0.4904, allocations: 4.085 MB / 0.6638 GB, free: 2.09 MB / 478.1 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001881/0.4907, allocations: 213.4 kB / 0.664 GB, free: 1.836 MB / 478.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 1.765/2.256, allocations: 0 / 0.664 GB, free: 1.836 MB / 478.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