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.001509/0.001509, allocations: 115.3 kB / 15.34 MB, free: 0.5156 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.002045/0.002045, allocations: 192.7 kB / 16.25 MB, free: 6.637 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.449/1.449, allocations: 222.9 MB / 239.9 MB, free: 4.512 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ThermofluidStream 1.1.0-main/package.mo): time 0.6221/0.6221, allocations: 91.2 MB / 381.3 MB, free: 9.512 MB / 318.1 MB Notification: Performance of FrontEnd - loaded program: time 0.002729/0.002729, allocations: 81.03 kB / 459.9 MB, free: 23.3 MB / 350.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1162/0.119, allocations: 67.69 MB / 0.5152 GB, free: 10.43 MB / 398.1 MB Notification: Performance of NFInst.instantiate(ThermofluidStream.Boundaries.Tests.TerminalSourceSink): time 0.3324/0.4514, allocations: 138.8 MB / 0.6508 GB, free: 11.04 MB / 478.1 MB Notification: Performance of NFInst.instExpressions: time 0.002244/0.4537, allocations: 2.144 MB / 0.6529 GB, free: 9.492 MB / 478.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0002639/0.454, allocations: 12.22 kB / 0.6529 GB, free: 9.488 MB / 478.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0004563/0.4545, allocations: 97.58 kB / 0.653 GB, free: 9.414 MB / 478.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0003632/0.4549, allocations: 127.7 kB / 0.6531 GB, free: 9.309 MB / 478.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0003906/0.4553, allocations: 160.1 kB / 0.6532 GB, free: 9.191 MB / 478.1 MB Notification: Performance of NFFlatten.flatten: time 0.0003313/0.4556, allocations: 287.8 kB / 0.6535 GB, free: 9.027 MB / 478.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001534/0.4558, allocations: 84.14 kB / 0.6536 GB, free: 8.977 MB / 478.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0003956/0.4562, allocations: 193.7 kB / 0.6538 GB, free: 8.855 MB / 478.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001774/0.4564, allocations: 122.9 kB / 0.6539 GB, free: 8.781 MB / 478.1 MB Notification: Performance of NFPackage.collectConstants: time 2.56e-05/0.4564, allocations: 17 kB / 0.6539 GB, free: 8.777 MB / 478.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0003415/0.4567, allocations: 212.2 kB / 0.6541 GB, free: 8.684 MB / 478.1 MB Notification: Performance of NFScalarize.scalarize: time 5.952e-05/0.4568, allocations: 41.66 kB / 0.6541 GB, free: 8.648 MB / 478.1 MB Notification: Performance of NFVerifyModel.verify: time 9.67e-05/0.4569, allocations: 95.39 kB / 0.6542 GB, free: 8.586 MB / 478.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0003732/0.4573, allocations: 280.2 kB / 0.6545 GB, free: 8.41 MB / 478.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.026e-06/0.4573, allocations: 0 / 0.6545 GB, free: 8.41 MB / 478.1 MB Notification: Performance of FrontEnd: time 1.543e-06/0.4573, allocations: 0 / 0.6545 GB, free: 8.41 MB / 478.1 MB Notification: Performance of Transformations before backend: time 6.733e-06/0.4573, allocations: 1.312 kB / 0.6545 GB, free: 8.41 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.0008635/0.4582, allocations: 0.563 MB / 0.6551 GB, free: 7.875 MB / 478.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.569e-05/0.4582, allocations: 8.812 kB / 0.6551 GB, free: 7.875 MB / 478.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 4.726e-05/0.4583, allocations: 48.14 kB / 0.6551 GB, free: 7.824 MB / 478.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 5.141e-05/0.4583, allocations: 27.44 kB / 0.6551 GB, free: 7.809 MB / 478.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003263/0.4587, allocations: 291.7 kB / 0.6554 GB, free: 7.527 MB / 478.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.455e-05/0.4587, allocations: 12.84 kB / 0.6554 GB, free: 7.52 MB / 478.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 3.31e-05/0.4587, allocations: 13.84 kB / 0.6554 GB, free: 7.516 MB / 478.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003221/0.4591, allocations: 174.8 kB / 0.6556 GB, free: 7.379 MB / 478.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 8.866e-06/0.4591, allocations: 1.406 kB / 0.6556 GB, free: 7.379 MB / 478.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.685e-05/0.4591, allocations: 1.062 kB / 0.6556 GB, free: 7.379 MB / 478.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.223e-06/0.4591, allocations: 3.781 kB / 0.6556 GB, free: 7.379 MB / 478.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0003033/0.4594, allocations: 99.05 kB / 0.6557 GB, free: 7.332 MB / 478.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0009704/0.4604, allocations: 0.9129 MB / 0.6566 GB, free: 6.422 MB / 478.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.000288/0.4607, allocations: 93.52 kB / 0.6567 GB, free: 6.359 MB / 478.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001232/0.4609, allocations: 40.67 kB / 0.6567 GB, free: 6.336 MB / 478.1 MB Notification: Performance of preOpt evalFunc (simulation): time 8.664e-05/0.4609, allocations: 83.89 kB / 0.6568 GB, free: 6.238 MB / 478.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002752/0.4612, allocations: 86.98 kB / 0.6569 GB, free: 6.164 MB / 478.1 MB Notification: Performance of pre-optimization done (n=7): time 3.487e-06/0.4612, allocations: 0 / 0.6569 GB, free: 6.164 MB / 478.1 MB Notification: Performance of matching and sorting (n=7): time 0.0004717/0.4617, allocations: 159.4 kB / 0.657 GB, free: 6.07 MB / 478.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.188e-05/0.4618, allocations: 53.25 kB / 0.6571 GB, free: 6.008 MB / 478.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002363/0.462, allocations: 259.5 kB / 0.6573 GB, free: 5.824 MB / 478.1 MB Notification: Performance of collectPreVariables (initialization): time 1.804e-05/0.462, allocations: 27.83 kB / 0.6574 GB, free: 5.793 MB / 478.1 MB Notification: Performance of collectInitialEqns (initialization): time 9.939e-05/0.4621, allocations: 174.6 kB / 0.6575 GB, free: 5.633 MB / 478.1 MB Notification: Performance of collectInitialBindings (initialization): time 2.482e-05/0.4622, allocations: 26.62 kB / 0.6576 GB, free: 5.609 MB / 478.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 5.978e-05/0.4622, allocations: 31.61 kB / 0.6576 GB, free: 5.582 MB / 478.1 MB Notification: Performance of setup shared object (initialization): time 0.0001004/0.4623, allocations: 335.6 kB / 0.6579 GB, free: 5.25 MB / 478.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001426/0.4625, allocations: 40.91 kB / 0.658 GB, free: 5.234 MB / 478.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001653/0.4627, allocations: 95.06 kB / 0.658 GB, free: 5.156 MB / 478.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002767/0.4629, allocations: 149.9 kB / 0.6582 GB, free: 5.031 MB / 478.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.984e-06/0.463, allocations: 0 / 0.6582 GB, free: 5.031 MB / 478.1 MB Notification: Performance of matching and sorting (n=17) (initialization): time 0.0004256/0.4634, allocations: 212.1 kB / 0.6584 GB, free: 4.895 MB / 478.1 MB Notification: Performance of prepare postOptimizeDAE: time 3.319e-05/0.4634, allocations: 31.95 kB / 0.6584 GB, free: 4.863 MB / 478.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.59e-06/0.4634, allocations: 1.125 kB / 0.6584 GB, free: 4.863 MB / 478.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.528e-05/0.4635, allocations: 7.188 kB / 0.6584 GB, free: 4.859 MB / 478.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001553/0.4636, allocations: 34.47 kB / 0.6585 GB, free: 4.848 MB / 478.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 7.975e-06/0.4636, allocations: 5.312 kB / 0.6585 GB, free: 4.844 MB / 478.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001709/0.4638, allocations: 26.23 kB / 0.6585 GB, free: 4.828 MB / 478.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.664e-05/0.4638, allocations: 5.312 kB / 0.6585 GB, free: 4.828 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.0001124/0.464, allocations: 137.6 kB / 0.6586 GB, free: 4.695 MB / 478.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.148e-05/0.464, allocations: 25.42 kB / 0.6586 GB, free: 4.68 MB / 478.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0003487/0.4643, allocations: 140.8 kB / 0.6588 GB, free: 4.582 MB / 478.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.736e-06/0.4644, allocations: 0.8125 kB / 0.6588 GB, free: 4.582 MB / 478.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.727e-06/0.4644, allocations: 1.312 kB / 0.6588 GB, free: 4.582 MB / 478.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.005e-06/0.4644, allocations: 0 / 0.6588 GB, free: 4.582 MB / 478.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001904/0.4646, allocations: 239.3 kB / 0.659 GB, free: 4.336 MB / 478.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.663e-06/0.4646, allocations: 0 / 0.659 GB, free: 4.336 MB / 478.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001098/0.4647, allocations: 16.14 kB / 0.659 GB, free: 4.332 MB / 478.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.285e-06/0.4647, allocations: 3.938 kB / 0.659 GB, free: 4.328 MB / 478.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.566e-05/0.4647, allocations: 10.62 kB / 0.659 GB, free: 4.32 MB / 478.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.643e-06/0.4647, allocations: 0 / 0.659 GB, free: 4.32 MB / 478.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.335e-06/0.4647, allocations: 4 kB / 0.659 GB, free: 4.316 MB / 478.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0004247/0.4652, allocations: 189.9 kB / 0.6592 GB, free: 4.184 MB / 478.1 MB Notification: Performance of postOpt removeConstants (simulation): time 5.609e-05/0.4652, allocations: 97.88 kB / 0.6593 GB, free: 4.074 MB / 478.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.158e-05/0.4653, allocations: 5.719 kB / 0.6593 GB, free: 4.07 MB / 478.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001182/0.4654, allocations: 9.828 kB / 0.6593 GB, free: 4.066 MB / 478.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.386e-05/0.4655, allocations: 18.89 kB / 0.6594 GB, free: 4.055 MB / 478.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 7.494e-06/0.4655, allocations: 0 / 0.6594 GB, free: 4.055 MB / 478.1 MB Notification: Performance of sorting global known variables: time 0.000147/0.4656, allocations: 185.8 kB / 0.6595 GB, free: 3.934 MB / 478.1 MB Notification: Performance of sort global known variables: time 1.2e-07/0.4656, allocations: 0 / 0.6595 GB, free: 3.934 MB / 478.1 MB Notification: Performance of remove unused functions: time 0.0002598/0.4659, allocations: 47.03 kB / 0.6596 GB, free: 3.922 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.0007571/0.4667, allocations: 0.7566 MB / 0.6603 GB, free: 3.246 MB / 478.1 MB Notification: Performance of simCode: created initialization part: time 0.0003659/0.467, allocations: 170.2 kB / 0.6605 GB, free: 3.129 MB / 478.1 MB Notification: Performance of simCode: created event and clocks part: time 2.114e-06/0.4671, allocations: 0 / 0.6605 GB, free: 3.129 MB / 478.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0001323/0.4672, allocations: 38.61 kB / 0.6605 GB, free: 3.113 MB / 478.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003396/0.4675, allocations: 50.81 kB / 0.6606 GB, free: 3.094 MB / 478.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002657/0.4702, allocations: 2.28 MB / 0.6628 GB, free: 1.266 MB / 478.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002375/0.4705, allocations: 0.7361 MB / 0.6635 GB, free: 0.543 MB / 478.1 MB Notification: Performance of simCode: alias equations: time 0.0001126/0.4706, allocations: 35.08 kB / 0.6635 GB, free: 0.5195 MB / 478.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 9.202e-05/0.4707, allocations: 68.95 kB / 0.6636 GB, free: 472 kB / 478.1 MB Notification: Performance of SimCode: time 3.21e-07/0.4707, allocations: 0 / 0.6636 GB, free: 472 kB / 478.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.5272/0.9979, allocations: 4.937 MB / 0.6684 GB, free: 14.07 MB / 494.1 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0002047/0.9981, allocations: 209.1 kB / 0.6686 GB, free: 13.82 MB / 494.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 1.979/2.977, allocations: 3.938 kB / 0.6686 GB, free: 13.81 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