Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr ThermofluidStream_OM_adaptions_ThermofluidStream.Boundaries.Tests.SourceSink.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: translateModel(ThermofluidStream.Boundaries.Tests.SourceSink,tolerance=1e-06,outputFormat="mat",numberOfIntervals=2000,variableFilter="Time|source.outlet.m_flow|source1.outlet.m_flow",fileNamePrefix="ThermofluidStream_OM_adaptions_ThermofluidStream.Boundaries.Tests.SourceSink") translateModel(ThermofluidStream.Boundaries.Tests.SourceSink,tolerance=1e-06,outputFormat="mat",numberOfIntervals=2000,variableFilter="Time|source.outlet.m_flow|source1.outlet.m_flow",fileNamePrefix="ThermofluidStream_OM_adaptions_ThermofluidStream.Boundaries.Tests.SourceSink") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo): time 0.001228/0.001228, allocations: 177.2 kB / 15.78 MB, free: 6.352 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.542/1.542, allocations: 205.4 MB / 221.9 MB, free: 13.73 MB / 186.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo): time 0.0009116/0.0009116, allocations: 98.22 kB / 270.3 MB, free: 13.26 MB / 234.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ThermofluidStream 0.4.0-OM_adaptions/package.mo): time 0.8313/0.8313, allocations: 90.61 MB / 409.1 MB, free: 14.98 MB / 298.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0003794/0.0003796, allocations: 8 kB / 485.9 MB, free: 2.074 MB / 362.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.4241/0.4245, allocations: 66.27 MB / 0.5392 GB, free: 45.47 MB / 426.7 MB Notification: Performance of NFInst.instantiate(ThermofluidStream.Boundaries.Tests.SourceSink): time 0.1517/0.5762, allocations: 127.5 MB / 0.6637 GB, free: 12.21 MB / 490.7 MB Notification: Performance of NFInst.instExpressions: time 0.004105/0.5804, allocations: 3.063 MB / 0.6667 GB, free: 9.148 MB / 490.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0003124/0.5807, allocations: 11.88 kB / 0.6667 GB, free: 9.137 MB / 490.7 MB Notification: Performance of NFTyping.typeComponents: time 0.0005812/0.5813, allocations: 107.4 kB / 0.6668 GB, free: 9.031 MB / 490.7 MB Notification: Performance of NFTyping.typeBindings: time 0.0006404/0.582, allocations: 174.9 kB / 0.667 GB, free: 8.859 MB / 490.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0005146/0.5825, allocations: 143.5 kB / 0.6671 GB, free: 8.719 MB / 490.7 MB Notification: Performance of NFFlatten.flatten: time 0.000441/0.583, allocations: 306.6 kB / 0.6674 GB, free: 8.418 MB / 490.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001574/0.5832, allocations: 43.75 kB / 0.6674 GB, free: 8.379 MB / 490.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0004542/0.5836, allocations: 140.3 kB / 0.6676 GB, free: 8.242 MB / 490.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002347/0.5839, allocations: 107.5 kB / 0.6677 GB, free: 8.137 MB / 490.7 MB Notification: Performance of NFPackage.collectConstants: time 2.956e-05/0.5839, allocations: 4 kB / 0.6677 GB, free: 8.133 MB / 490.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0006448/0.5846, allocations: 263.4 kB / 0.6679 GB, free: 7.875 MB / 490.7 MB Notification: Performance of NFScalarize.scalarize: time 4.039e-05/0.5846, allocations: 15.92 kB / 0.6679 GB, free: 7.859 MB / 490.7 MB Notification: Performance of NFVerifyModel.verify: time 7.498e-05/0.5847, allocations: 61.58 kB / 0.668 GB, free: 7.793 MB / 490.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0003151/0.585, allocations: 167.6 kB / 0.6682 GB, free: 7.629 MB / 490.7 MB Notification: Performance of FrontEnd - DAE generated: time 5.391e-06/0.5851, allocations: 4 kB / 0.6682 GB, free: 7.625 MB / 490.7 MB Notification: Performance of FrontEnd: time 2.514e-06/0.5851, allocations: 0 / 0.6682 GB, free: 7.625 MB / 490.7 MB Notification: Performance of Transformations before backend: time 1.009e-05/0.5851, allocations: 0 / 0.6682 GB, free: 7.625 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: 28 * Number of variables: 28 Notification: Performance of Generate backend data structure: time 0.0008165/0.5859, allocations: 464.7 kB / 0.6686 GB, free: 7.129 MB / 490.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.096e-05/0.5859, allocations: 12.02 kB / 0.6686 GB, free: 7.117 MB / 490.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 6.898e-05/0.586, allocations: 19.81 kB / 0.6686 GB, free: 7.098 MB / 490.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002951/0.5863, allocations: 222.6 kB / 0.6688 GB, free: 6.84 MB / 490.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.355e-05/0.5864, allocations: 8 kB / 0.6688 GB, free: 6.832 MB / 490.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 3.309e-05/0.5864, allocations: 13.25 kB / 0.6689 GB, free: 6.82 MB / 490.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002731/0.5867, allocations: 136.1 kB / 0.669 GB, free: 6.672 MB / 490.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.007e-05/0.5867, allocations: 3.938 kB / 0.669 GB, free: 6.668 MB / 490.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.793e-05/0.5867, allocations: 8 kB / 0.669 GB, free: 6.66 MB / 490.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.06e-05/0.5867, allocations: 4 kB / 0.669 GB, free: 6.656 MB / 490.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001603/0.5869, allocations: 83.02 kB / 0.6691 GB, free: 6.578 MB / 490.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0009158/0.5878, allocations: 0.7559 MB / 0.6698 GB, free: 5.719 MB / 490.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0002042/0.5881, allocations: 121.2 kB / 0.6699 GB, free: 5.582 MB / 490.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 8.093e-05/0.5881, allocations: 49.83 kB / 0.67 GB, free: 5.527 MB / 490.7 MB Notification: Performance of preOpt evalFunc (simulation): time 4.903e-05/0.5882, allocations: 7.984 kB / 0.67 GB, free: 5.52 MB / 490.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.849e-05/0.5883, allocations: 49.67 kB / 0.67 GB, free: 5.465 MB / 490.7 MB Notification: Performance of pre-optimization done (n=12): time 1.543e-06/0.5883, allocations: 0 / 0.67 GB, free: 5.465 MB / 490.7 MB Notification: Performance of matching and sorting (n=12): time 0.0007846/0.5891, allocations: 361.3 kB / 0.6704 GB, free: 5.062 MB / 490.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.403e-05/0.5891, allocations: 93.56 kB / 0.6705 GB, free: 4.953 MB / 490.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.000183/0.5893, allocations: 187.8 kB / 0.6707 GB, free: 4.754 MB / 490.7 MB Notification: Performance of collectPreVariables (initialization): time 2.483e-05/0.5894, allocations: 25.7 kB / 0.6707 GB, free: 4.723 MB / 490.7 MB Notification: Performance of collectInitialEqns (initialization): time 7.857e-05/0.5894, allocations: 128 kB / 0.6708 GB, free: 4.594 MB / 490.7 MB Notification: Performance of collectInitialBindings (initialization): time 4.641e-05/0.5895, allocations: 47.38 kB / 0.6708 GB, free: 4.547 MB / 490.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 5.77e-06/0.5895, allocations: 0 / 0.6708 GB, free: 4.547 MB / 490.7 MB Notification: Performance of setup shared object (initialization): time 0.0001466/0.5897, allocations: 328.8 kB / 0.6712 GB, free: 4.219 MB / 490.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 6.367e-05/0.5897, allocations: 36.11 kB / 0.6712 GB, free: 4.184 MB / 490.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 7.974e-05/0.5898, allocations: 68.08 kB / 0.6713 GB, free: 4.105 MB / 490.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 7.42e-05/0.5899, allocations: 36 kB / 0.6713 GB, free: 4.07 MB / 490.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.914e-06/0.5899, allocations: 0 / 0.6713 GB, free: 4.07 MB / 490.7 MB Notification: Performance of matching and sorting (n=14) (initialization): time 0.0003022/0.5902, allocations: 179 kB / 0.6715 GB, free: 3.883 MB / 490.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.847e-05/0.5903, allocations: 13.11 kB / 0.6715 GB, free: 3.871 MB / 490.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.714e-06/0.5903, allocations: 0 / 0.6715 GB, free: 3.871 MB / 490.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0002055/0.5905, allocations: 41.69 kB / 0.6715 GB, free: 3.824 MB / 490.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 6.703e-05/0.5906, allocations: 12.75 kB / 0.6715 GB, free: 3.812 MB / 490.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001941/0.5925, allocations: 2.558 MB / 0.674 GB, free: 0.9883 MB / 490.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 9.188e-05/0.5926, allocations: 7.969 kB / 0.674 GB, free: 0.9805 MB / 490.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.313e-05/0.5926, allocations: 4 kB / 0.674 GB, free: 0.9766 MB / 490.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 4 * Number of states: 0 () * Number of discrete variables: 0 () * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (10): * Single equations (assignments): 6 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 2 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 0 * Torn equation systems: 2 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 2 {(1,100.0%) 1,(1,100.0%) 1} * Non-linear torn systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.0001349/0.5928, allocations: 133.6 kB / 0.6742 GB, free: 0.8359 MB / 490.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 5.549e-05/0.5928, allocations: 33.52 kB / 0.6742 GB, free: 0.8047 MB / 490.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0003443/0.5932, allocations: 165.9 kB / 0.6744 GB, free: 0.6328 MB / 490.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.145e-06/0.5932, allocations: 0 / 0.6744 GB, free: 0.6328 MB / 490.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.026e-06/0.5932, allocations: 0 / 0.6744 GB, free: 0.6328 MB / 490.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 8.406e-06/0.5932, allocations: 7.984 kB / 0.6744 GB, free: 0.625 MB / 490.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0003166/0.5935, allocations: 237.5 kB / 0.6746 GB, free: 352 kB / 490.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.047e-06/0.5936, allocations: 4 kB / 0.6746 GB, free: 348 kB / 490.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 3.092e-05/0.5936, allocations: 4 kB / 0.6746 GB, free: 344 kB / 490.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0001298/0.5937, allocations: 49.59 kB / 0.6746 GB, free: 288 kB / 490.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.785e-05/0.5938, allocations: 5.906 kB / 0.6746 GB, free: 284 kB / 490.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001773/0.5955, allocations: 2.562 MB / 0.6772 GB, free: 13.45 MB / 0.4948 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.232e-06/0.5956, allocations: 4.031 kB / 0.6772 GB, free: 13.45 MB / 0.4948 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0004245/0.596, allocations: 372.2 kB / 0.6775 GB, free: 13.06 MB / 0.4948 GB Notification: Performance of postOpt removeConstants (simulation): time 6.299e-05/0.5961, allocations: 93.09 kB / 0.6776 GB, free: 12.95 MB / 0.4948 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.386e-05/0.5961, allocations: 12.5 kB / 0.6776 GB, free: 12.94 MB / 0.4948 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.000159/0.5963, allocations: 3.953 kB / 0.6776 GB, free: 12.94 MB / 0.4948 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.606e-05/0.5963, allocations: 15.92 kB / 0.6776 GB, free: 12.92 MB / 0.4948 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 8.055e-06/0.5963, allocations: 5.406 kB / 0.6776 GB, free: 12.92 MB / 0.4948 GB Notification: Performance of sorting global known variables: time 0.0001218/0.5964, allocations: 137.5 kB / 0.6778 GB, free: 12.79 MB / 0.4948 GB Notification: Performance of sort global known variables: time 1.3e-07/0.5964, allocations: 0 / 0.6778 GB, free: 12.79 MB / 0.4948 GB Notification: Performance of remove unused functions: time 0.0003759/0.5968, allocations: 51.91 kB / 0.6778 GB, free: 12.73 MB / 0.4948 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 2 * Number of states: 2 (sink.inlet.m_flow,sink1.inlet.m_flow) * Number of discrete variables: 0 () * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (8): * Single equations (assignments): 4 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 2 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 0 * Torn equation systems: 2 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 2 {(1,100.0%) 1,(1,100.0%) 1} * Non-linear torn systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.0002487/0.5971, allocations: 158.5 kB / 0.678 GB, free: 12.57 MB / 0.4948 GB Notification: Performance of simCode: created initialization part: time 0.0005816/0.5977, allocations: 385 kB / 0.6783 GB, free: 12.16 MB / 0.4948 GB Notification: Performance of simCode: created event and clocks part: time 2.124e-06/0.5977, allocations: 4.125 kB / 0.6783 GB, free: 12.16 MB / 0.4948 GB Notification: Performance of simCode: created simulation system equations: time 0.0003268/0.598, allocations: 336.7 kB / 0.6787 GB, free: 11.79 MB / 0.4948 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0005493/0.5986, allocations: 55.33 kB / 0.6787 GB, free: 11.74 MB / 0.4948 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0008345/0.5994, allocations: 0.5789 MB / 0.6793 GB, free: 11.14 MB / 0.4948 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003431/0.5998, allocations: 0.7281 MB / 0.68 GB, free: 10.39 MB / 0.4948 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 3.074e-05/0.5998, allocations: 15.44 kB / 0.68 GB, free: 10.37 MB / 0.4948 GB Notification: Performance of SimCode: time 2.81e-07/0.5998, allocations: 3.938 kB / 0.68 GB, free: 10.37 MB / 0.4948 GB Notification: Performance of Templates: time 0.006579/0.6064, allocations: 4.441 MB / 0.6843 GB, free: 6.02 MB / 0.4948 GB make -j1 -f ThermofluidStream_OM_adaptions_ThermofluidStream.Boundaries.Tests.SourceSink.makefile (rm -f ThermofluidStream_OM_adaptions_ThermofluidStream.Boundaries.Tests.SourceSink.pipe ; mkfifo ThermofluidStream_OM_adaptions_ThermofluidStream.Boundaries.Tests.SourceSink.pipe ; head -c 1048576 < ThermofluidStream_OM_adaptions_ThermofluidStream.Boundaries.Tests.SourceSink.pipe >> ../files/ThermofluidStream_OM_adaptions_ThermofluidStream.Boundaries.Tests.SourceSink.sim & ./ThermofluidStream_OM_adaptions_ThermofluidStream.Boundaries.Tests.SourceSink -abortSlowSimulation -alarm=1200 -emit_protected -lv LOG_STATS > ThermofluidStream_OM_adaptions_ThermofluidStream.Boundaries.Tests.SourceSink.pipe 2>&1) diffSimulationResults("ThermofluidStream_OM_adaptions_ThermofluidStream.Boundaries.Tests.SourceSink_res.mat","/mnt/ReferenceFiles/ThermofluidStream-OM-regression/ReferenceData/ThermofluidStream.Boundaries.Tests.SourceSink_ref.mat","../files/ThermofluidStream_OM_adaptions_ThermofluidStream.Boundaries.Tests.SourceSink.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches