Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr ThermofluidStream_OM_adaptions_ThermofluidStream.Boundaries.Tests.TerminalSourceSink.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ThermofluidStream 0.4.0-OM_adaptions/package.mo", uses=false) Using package ThermofluidStream with version 0.4.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ThermofluidStream 0.4.0-OM_adaptions/package.mo) Using package ModelicaServices with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo) Using package Modelica with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo) Using package Complex with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo) Running command: "" <> buildModelFMU(ThermofluidStream.Boundaries.Tests.TerminalSourceSink,fileNamePrefix="ThermofluidStream_OM_adaptions_ThermofluidStream_Boundaries_Tests_TerminalSourceSink",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(ThermofluidStream.Boundaries.Tests.TerminalSourceSink,fileNamePrefix="ThermofluidStream_OM_adaptions_ThermofluidStream_Boundaries_Tests_TerminalSourceSink",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo): time 0.0007879/0.0007879, allocations: 179.8 kB / 15.45 MB, free: 6.234 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.088/1.088, allocations: 205 MB / 221.2 MB, free: 1.703 MB / 170.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo): time 0.000673/0.0006729, allocations: 94.22 kB / 269.2 MB, free: 1.652 MB / 218.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ThermofluidStream 0.4.0-OM_adaptions/package.mo): time 0.447/0.447, allocations: 90.52 MB / 407.6 MB, free: 15.08 MB / 314.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0002635/0.0002635, allocations: 8 kB / 484.3 MB, free: 3.5 MB / 314.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.08759/0.08786, allocations: 65.82 MB / 0.5372 GB, free: 1.609 MB / 378.7 MB Notification: Performance of NFInst.instantiate(ThermofluidStream.Boundaries.Tests.TerminalSourceSink): time 0.2756/0.3635, allocations: 136.7 MB / 0.6707 GB, free: 15.44 MB / 490.7 MB Notification: Performance of NFInst.instExpressions: time 0.001673/0.3652, allocations: 2.074 MB / 0.6728 GB, free: 13.36 MB / 490.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 6.923e-05/0.3652, allocations: 0 / 0.6728 GB, free: 13.36 MB / 490.7 MB Notification: Performance of NFTyping.typeComponents: time 0.0003316/0.3656, allocations: 99.44 kB / 0.6729 GB, free: 13.26 MB / 490.7 MB Notification: Performance of NFTyping.typeBindings: time 0.0002207/0.3658, allocations: 127.3 kB / 0.673 GB, free: 13.14 MB / 490.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0002755/0.3661, allocations: 151.5 kB / 0.6731 GB, free: 12.99 MB / 490.7 MB Notification: Performance of NFFlatten.flatten: time 0.0002352/0.3664, allocations: 318.7 kB / 0.6734 GB, free: 12.68 MB / 490.7 MB Notification: Performance of NFFlatten.resolveConnections: time 9.653e-05/0.3665, allocations: 56.31 kB / 0.6735 GB, free: 12.62 MB / 490.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0002859/0.3667, allocations: 155.3 kB / 0.6736 GB, free: 12.47 MB / 490.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001292/0.3669, allocations: 115.5 kB / 0.6737 GB, free: 12.36 MB / 490.7 MB Notification: Performance of NFPackage.collectConstants: time 1.643e-05/0.3669, allocations: 4 kB / 0.6738 GB, free: 12.36 MB / 490.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0003243/0.3672, allocations: 247.5 kB / 0.674 GB, free: 12.11 MB / 490.7 MB Notification: Performance of NFScalarize.scalarize: time 2.938e-05/0.3673, allocations: 23.8 kB / 0.674 GB, free: 12.09 MB / 490.7 MB Notification: Performance of NFVerifyModel.verify: time 6.751e-05/0.3674, allocations: 75.59 kB / 0.6741 GB, free: 12.02 MB / 490.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0002786/0.3676, allocations: 255.2 kB / 0.6743 GB, free: 11.77 MB / 490.7 MB Notification: Performance of FrontEnd - DAE generated: time 1.903e-06/0.3677, allocations: 0 / 0.6743 GB, free: 11.77 MB / 490.7 MB Notification: Performance of FrontEnd: time 8.61e-07/0.3677, allocations: 0 / 0.6743 GB, free: 11.77 MB / 490.7 MB Notification: Performance of Transformations before backend: time 3.407e-06/0.3677, allocations: 0 / 0.6743 GB, free: 11.77 MB / 490.7 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.0006263/0.3683, allocations: 0.4975 MB / 0.6748 GB, free: 11.21 MB / 490.7 MB Notification: Performance of prepare preOptimizeDAE: time 2.989e-05/0.3683, allocations: 8.031 kB / 0.6748 GB, free: 11.21 MB / 490.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 3.703e-05/0.3684, allocations: 50.67 kB / 0.6749 GB, free: 11.15 MB / 490.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.834e-05/0.3684, allocations: 20.75 kB / 0.6749 GB, free: 11.13 MB / 490.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001622/0.3686, allocations: 213 kB / 0.6751 GB, free: 10.88 MB / 490.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.172e-05/0.3686, allocations: 12.61 kB / 0.6751 GB, free: 10.87 MB / 490.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 2.727e-05/0.3686, allocations: 12.56 kB / 0.6751 GB, free: 10.86 MB / 490.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002859/0.3689, allocations: 180.1 kB / 0.6753 GB, free: 10.67 MB / 490.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 7.073e-06/0.3689, allocations: 0 / 0.6753 GB, free: 10.67 MB / 490.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.339e-05/0.369, allocations: 4 kB / 0.6753 GB, free: 10.67 MB / 490.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.312e-06/0.369, allocations: 4 kB / 0.6753 GB, free: 10.66 MB / 490.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002698/0.3693, allocations: 115.9 kB / 0.6754 GB, free: 10.55 MB / 490.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0007776/0.37, allocations: 0.7959 MB / 0.6762 GB, free: 9.648 MB / 490.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0002651/0.3703, allocations: 114.5 kB / 0.6763 GB, free: 9.527 MB / 490.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001213/0.3704, allocations: 52.83 kB / 0.6763 GB, free: 9.473 MB / 490.7 MB Notification: Performance of preOpt evalFunc (simulation): time 7.38e-05/0.3705, allocations: 85.09 kB / 0.6764 GB, free: 9.371 MB / 490.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002167/0.3708, allocations: 103.3 kB / 0.6765 GB, free: 9.258 MB / 490.7 MB Notification: Performance of pre-optimization done (n=9): time 1.313e-06/0.3708, allocations: 0 / 0.6765 GB, free: 9.258 MB / 490.7 MB Notification: Performance of matching and sorting (n=9): time 0.0004291/0.3712, allocations: 185.4 kB / 0.6767 GB, free: 9.07 MB / 490.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 2.793e-05/0.3712, allocations: 59.34 kB / 0.6768 GB, free: 9 MB / 490.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001374/0.3714, allocations: 190.6 kB / 0.6769 GB, free: 8.801 MB / 490.7 MB Notification: Performance of collectPreVariables (initialization): time 1.483e-05/0.3714, allocations: 29.7 kB / 0.677 GB, free: 8.766 MB / 490.7 MB Notification: Performance of collectInitialEqns (initialization): time 6.895e-05/0.3715, allocations: 148 kB / 0.6771 GB, free: 8.613 MB / 490.7 MB Notification: Performance of collectInitialBindings (initialization): time 1.93e-05/0.3715, allocations: 27.66 kB / 0.6771 GB, free: 8.586 MB / 490.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 6.893e-06/0.3715, allocations: 0 / 0.6771 GB, free: 8.586 MB / 490.7 MB Notification: Performance of setup shared object (initialization): time 8.065e-05/0.3716, allocations: 334.8 kB / 0.6774 GB, free: 8.25 MB / 490.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.000139/0.3717, allocations: 51.97 kB / 0.6775 GB, free: 8.199 MB / 490.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001484/0.3719, allocations: 101.1 kB / 0.6776 GB, free: 8.082 MB / 490.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.000266/0.3722, allocations: 166.8 kB / 0.6778 GB, free: 7.895 MB / 490.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.929e-06/0.3722, allocations: 7.984 kB / 0.6778 GB, free: 7.887 MB / 490.7 MB Notification: Performance of matching and sorting (n=19) (initialization): time 0.0003668/0.3726, allocations: 223 kB / 0.678 GB, free: 7.656 MB / 490.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.546e-05/0.3726, allocations: 33.86 kB / 0.678 GB, free: 7.617 MB / 490.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.719e-06/0.3726, allocations: 7.938 kB / 0.678 GB, free: 7.609 MB / 490.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 9.728e-06/0.3726, allocations: 4 kB / 0.678 GB, free: 7.605 MB / 490.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001333/0.3728, allocations: 35.97 kB / 0.6781 GB, free: 7.57 MB / 490.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 5.941e-06/0.3728, allocations: 4 kB / 0.6781 GB, free: 7.566 MB / 490.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001376/0.3729, allocations: 27.73 kB / 0.6781 GB, free: 7.539 MB / 490.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.433e-05/0.3729, allocations: 8 kB / 0.6781 GB, free: 7.531 MB / 490.7 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 ($whenCondition1,$PRE.pulse.T_start,pulse.T_start,$PRE.pulse.count,pulse.count) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (17): * Single equations (assignments): 15 * Array equations: 0 * Algorithm blocks: 1 * Record equations: 1 * 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 8.323e-05/0.373, allocations: 133.7 kB / 0.6782 GB, free: 7.391 MB / 490.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.871e-05/0.3731, allocations: 11.91 kB / 0.6782 GB, free: 7.379 MB / 490.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0003128/0.3734, allocations: 151 kB / 0.6784 GB, free: 7.23 MB / 490.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.506e-06/0.3734, allocations: 288 / 0.6784 GB, free: 7.23 MB / 490.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.529e-06/0.3734, allocations: 10.44 kB / 0.6784 GB, free: 7.223 MB / 490.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.394e-06/0.3734, allocations: 0 / 0.6784 GB, free: 7.223 MB / 490.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001505/0.3736, allocations: 237.4 kB / 0.6786 GB, free: 6.941 MB / 490.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.233e-06/0.3736, allocations: 0 / 0.6786 GB, free: 6.941 MB / 490.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001009/0.3737, allocations: 19.98 kB / 0.6786 GB, free: 6.922 MB / 490.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.683e-06/0.3737, allocations: 0 / 0.6786 GB, free: 6.922 MB / 490.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 9.618e-06/0.3737, allocations: 0 / 0.6786 GB, free: 6.922 MB / 490.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.152e-06/0.3737, allocations: 4 kB / 0.6786 GB, free: 6.918 MB / 490.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 7.41e-07/0.3737, allocations: 0 / 0.6786 GB, free: 6.918 MB / 490.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0004166/0.3741, allocations: 228.7 kB / 0.6789 GB, free: 6.676 MB / 490.7 MB Notification: Performance of postOpt removeConstants (simulation): time 4.331e-05/0.3742, allocations: 96.95 kB / 0.6789 GB, free: 6.562 MB / 490.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.248e-05/0.3742, allocations: 0 / 0.6789 GB, free: 6.562 MB / 490.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001046/0.3743, allocations: 19.98 kB / 0.679 GB, free: 6.543 MB / 490.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.746e-05/0.3744, allocations: 11.97 kB / 0.679 GB, free: 6.531 MB / 490.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 8.877e-06/0.3744, allocations: 4 kB / 0.679 GB, free: 6.527 MB / 490.7 MB Notification: Performance of sorting global known variables: time 8.615e-05/0.3745, allocations: 140.5 kB / 0.6791 GB, free: 6.391 MB / 490.7 MB Notification: Performance of sort global known variables: time 1.2e-07/0.3745, allocations: 0 / 0.6791 GB, free: 6.391 MB / 490.7 MB Notification: Performance of remove unused functions: time 0.0002041/0.3747, allocations: 36 kB / 0.6791 GB, free: 6.355 MB / 490.7 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 (8): * Single equations (assignments): 5 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 1 * 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.0006482/0.3754, allocations: 0.7957 MB / 0.6799 GB, free: 5.527 MB / 490.7 MB Notification: Performance of simCode: created initialization part: time 0.0003286/0.3757, allocations: 195.3 kB / 0.6801 GB, free: 5.324 MB / 490.7 MB Notification: Performance of simCode: created event and clocks part: time 1.463e-06/0.3757, allocations: 0 / 0.6801 GB, free: 5.324 MB / 490.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0001296/0.3758, allocations: 51.97 kB / 0.6802 GB, free: 5.273 MB / 490.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002654/0.3761, allocations: 41.19 kB / 0.6802 GB, free: 5.234 MB / 490.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002071/0.3782, allocations: 2.092 MB / 0.6822 GB, free: 3.027 MB / 490.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001806/0.3784, allocations: 0.7165 MB / 0.6829 GB, free: 2.285 MB / 490.7 MB Notification: Performance of simCode: alias equations: time 6.112e-05/0.3785, allocations: 13.98 kB / 0.683 GB, free: 2.273 MB / 490.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 6.422e-05/0.3785, allocations: 51.41 kB / 0.683 GB, free: 2.223 MB / 490.7 MB Notification: Performance of SimCode: time 1.282e-06/0.3785, allocations: 0 / 0.683 GB, free: 2.223 MB / 490.7 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.01214/0.3907, allocations: 4.179 MB / 0.6871 GB, free: 14.15 MB / 0.4948 GB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001752/0.3909, allocations: 226.1 kB / 0.6873 GB, free: 13.9 MB / 0.4948 GB Notification: Performance of buildModelFMU: Generate platform static: time 1.607/1.998, allocations: 7.938 kB / 0.6873 GB, free: 13.89 MB / 0.4948 GB (rm -f ThermofluidStream_OM_adaptions_ThermofluidStream.Boundaries.Tests.TerminalSourceSink.pipe ; mkfifo ThermofluidStream_OM_adaptions_ThermofluidStream.Boundaries.Tests.TerminalSourceSink.pipe ; head -c 1048576 < ThermofluidStream_OM_adaptions_ThermofluidStream.Boundaries.Tests.TerminalSourceSink.pipe >> ../files/ThermofluidStream_OM_adaptions_ThermofluidStream.Boundaries.Tests.TerminalSourceSink.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=ThermofluidStream_OM_adaptions_ThermofluidStream.Boundaries.Tests.TerminalSourceSink_res.mat --tempDir=temp_ThermofluidStream_OM_adaptions_ThermofluidStream_Boundaries_Tests_TerminalSourceSink_fmu --startTime=0 --stopTime=10 --timeout=1200 --tolerance=1e-06 ThermofluidStream_OM_adaptions_ThermofluidStream_Boundaries_Tests_TerminalSourceSink.fmu > ThermofluidStream_OM_adaptions_ThermofluidStream.Boundaries.Tests.TerminalSourceSink.pipe 2>&1) diffSimulationResults("ThermofluidStream_OM_adaptions_ThermofluidStream.Boundaries.Tests.TerminalSourceSink_res.mat","/mnt/ReferenceFiles/ThermofluidStream-OM-regression/ReferenceData/ThermofluidStream.Boundaries.Tests.TerminalSourceSink_ref.mat","../files/ThermofluidStream_OM_adaptions_ThermofluidStream.Boundaries.Tests.TerminalSourceSink.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches