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.0009754/0.0009807, allocations: 170.4 kB / 16.1 MB, free: 5.691 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.306/1.306, allocations: 205 MB / 221.9 MB, free: 9.059 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.0007896/0.0007894, allocations: 93.22 kB / 269.9 MB, free: 8.656 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.702/0.702, allocations: 90.51 MB / 408.3 MB, free: 3.938 MB / 298.7 MB Notification: Performance of FrontEnd - loaded program: time 0.000284/0.000284, allocations: 11.94 kB / 484.8 MB, free: 7.211 MB / 378.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2623/0.2626, allocations: 65.81 MB / 0.5378 GB, free: 34.88 MB / 394.7 MB Notification: Performance of NFInst.instantiate(ThermofluidStream.Boundaries.Tests.SourceSink): time 0.1211/0.3838, allocations: 136.9 MB / 0.6714 GB, free: 13.56 MB / 0.4948 GB Notification: Performance of NFInst.instExpressions: time 0.003132/0.3869, allocations: 3.257 MB / 0.6746 GB, free: 10.3 MB / 0.4948 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001652/0.3871, allocations: 0 / 0.6746 GB, free: 10.3 MB / 0.4948 GB Notification: Performance of NFTyping.typeComponents: time 0.0004136/0.3876, allocations: 111.4 kB / 0.6747 GB, free: 10.19 MB / 0.4948 GB Notification: Performance of NFTyping.typeBindings: time 0.0003535/0.3879, allocations: 155.1 kB / 0.6749 GB, free: 10.04 MB / 0.4948 GB Notification: Performance of NFTyping.typeClassSections: time 0.000382/0.3883, allocations: 179.3 kB / 0.675 GB, free: 9.863 MB / 0.4948 GB Notification: Performance of NFFlatten.flatten: time 0.0003212/0.3887, allocations: 350.6 kB / 0.6754 GB, free: 9.52 MB / 0.4948 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0001025/0.3888, allocations: 43.72 kB / 0.6754 GB, free: 9.48 MB / 0.4948 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0003274/0.3891, allocations: 159.3 kB / 0.6756 GB, free: 9.324 MB / 0.4948 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0001596/0.3893, allocations: 127.5 kB / 0.6757 GB, free: 9.199 MB / 0.4948 GB Notification: Performance of NFPackage.collectConstants: time 2.295e-05/0.3893, allocations: 4 kB / 0.6757 GB, free: 9.195 MB / 0.4948 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0005275/0.3898, allocations: 339.2 kB / 0.676 GB, free: 8.863 MB / 0.4948 GB Notification: Performance of NFScalarize.scalarize: time 2.75e-05/0.3899, allocations: 19.86 kB / 0.676 GB, free: 8.844 MB / 0.4948 GB Notification: Performance of NFVerifyModel.verify: time 6.985e-05/0.39, allocations: 75.61 kB / 0.6761 GB, free: 8.77 MB / 0.4948 GB Notification: Performance of NFConvertDAE.convert: time 0.0002565/0.3902, allocations: 191.6 kB / 0.6763 GB, free: 8.582 MB / 0.4948 GB Notification: Performance of FrontEnd - DAE generated: time 2.745e-06/0.3902, allocations: 4 kB / 0.6763 GB, free: 8.578 MB / 0.4948 GB Notification: Performance of FrontEnd: time 1.142e-06/0.3902, allocations: 0 / 0.6763 GB, free: 8.578 MB / 0.4948 GB Notification: Performance of Transformations before backend: time 6.743e-06/0.3902, allocations: 0 / 0.6763 GB, free: 8.578 MB / 0.4948 GB 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.0006315/0.3909, allocations: 470.7 kB / 0.6768 GB, free: 8.07 MB / 0.4948 GB Notification: Performance of prepare preOptimizeDAE: time 3.282e-05/0.3909, allocations: 12.03 kB / 0.6768 GB, free: 8.059 MB / 0.4948 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 5.344e-05/0.391, allocations: 16.75 kB / 0.6768 GB, free: 8.043 MB / 0.4948 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002021/0.3912, allocations: 231.8 kB / 0.677 GB, free: 7.777 MB / 0.4948 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.987e-05/0.3912, allocations: 16.31 kB / 0.677 GB, free: 7.762 MB / 0.4948 GB Notification: Performance of preOpt expandDerOperator (simulation): time 2.716e-05/0.3912, allocations: 8.375 kB / 0.677 GB, free: 7.754 MB / 0.4948 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002123/0.3915, allocations: 140.2 kB / 0.6772 GB, free: 7.602 MB / 0.4948 GB Notification: Performance of preOpt findStateOrder (simulation): time 8.876e-06/0.3915, allocations: 0 / 0.6772 GB, free: 7.602 MB / 0.4948 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.687e-05/0.3915, allocations: 15.98 kB / 0.6772 GB, free: 7.586 MB / 0.4948 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.366e-05/0.3915, allocations: 4 kB / 0.6772 GB, free: 7.582 MB / 0.4948 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001278/0.3917, allocations: 79.91 kB / 0.6773 GB, free: 7.504 MB / 0.4948 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.000732/0.3924, allocations: 0.7518 MB / 0.678 GB, free: 6.648 MB / 0.4948 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0001763/0.3926, allocations: 125.2 kB / 0.6781 GB, free: 6.508 MB / 0.4948 GB Notification: Performance of preOpt resolveLoops (simulation): time 7.387e-05/0.3927, allocations: 53.83 kB / 0.6782 GB, free: 6.449 MB / 0.4948 GB Notification: Performance of preOpt evalFunc (simulation): time 3.862e-05/0.3927, allocations: 7.984 kB / 0.6782 GB, free: 6.441 MB / 0.4948 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.901e-05/0.3928, allocations: 38.5 kB / 0.6782 GB, free: 6.395 MB / 0.4948 GB Notification: Performance of pre-optimization done (n=12): time 1.302e-06/0.3928, allocations: 0 / 0.6782 GB, free: 6.395 MB / 0.4948 GB Notification: Performance of matching and sorting (n=12): time 0.0006605/0.3934, allocations: 373.2 kB / 0.6786 GB, free: 5.98 MB / 0.4948 GB Notification: Performance of inlineWhenForInitialization (initialization): time 3.962e-05/0.3935, allocations: 81.11 kB / 0.6786 GB, free: 5.883 MB / 0.4948 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.000159/0.3936, allocations: 187.8 kB / 0.6788 GB, free: 5.68 MB / 0.4948 GB Notification: Performance of collectPreVariables (initialization): time 1.587e-05/0.3937, allocations: 29.7 kB / 0.6788 GB, free: 5.645 MB / 0.4948 GB Notification: Performance of collectInitialEqns (initialization): time 5.922e-05/0.3937, allocations: 120 kB / 0.679 GB, free: 5.523 MB / 0.4948 GB Notification: Performance of collectInitialBindings (initialization): time 4.487e-05/0.3938, allocations: 51.3 kB / 0.679 GB, free: 5.473 MB / 0.4948 GB Notification: Performance of simplifyInitialFunctions (initialization): time 4.899e-06/0.3938, allocations: 0 / 0.679 GB, free: 5.473 MB / 0.4948 GB Notification: Performance of setup shared object (initialization): time 9.851e-05/0.3939, allocations: 330.8 kB / 0.6793 GB, free: 5.141 MB / 0.4948 GB Notification: Performance of preBalanceInitialSystem (initialization): time 5.711e-05/0.394, allocations: 31.98 kB / 0.6794 GB, free: 5.109 MB / 0.4948 GB Notification: Performance of partitionIndependentBlocks (initialization): time 7.064e-05/0.394, allocations: 69.36 kB / 0.6794 GB, free: 5.031 MB / 0.4948 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001421/0.3942, allocations: 111.3 kB / 0.6795 GB, free: 4.91 MB / 0.4948 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.445e-06/0.3942, allocations: 0 / 0.6795 GB, free: 4.91 MB / 0.4948 GB Notification: Performance of matching and sorting (n=14) (initialization): time 0.0002801/0.3945, allocations: 175.6 kB / 0.6797 GB, free: 4.727 MB / 0.4948 GB Notification: Performance of prepare postOptimizeDAE: time 1.266e-05/0.3945, allocations: 4 kB / 0.6797 GB, free: 4.723 MB / 0.4948 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.164e-06/0.3945, allocations: 4.125 kB / 0.6797 GB, free: 4.719 MB / 0.4948 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.0001708/0.3947, allocations: 45.69 kB / 0.6797 GB, free: 4.668 MB / 0.4948 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 5.744e-05/0.3948, allocations: 12 kB / 0.6798 GB, free: 4.656 MB / 0.4948 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.00159/0.3964, allocations: 2.564 MB / 0.6823 GB, free: 1.824 MB / 0.4948 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 7.275e-05/0.3964, allocations: 7.844 kB / 0.6823 GB, free: 1.816 MB / 0.4948 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.115e-05/0.3965, allocations: 4 kB / 0.6823 GB, free: 1.812 MB / 0.4948 GB 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 (not torn): 0 * Torn equation systems: 2 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 2 systems {(1,1,100.0%), (1,1,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of prepare postOptimizeDAE: time 0.0001066/0.3966, allocations: 135.6 kB / 0.6824 GB, free: 1.672 MB / 0.4948 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 5.396e-05/0.3966, allocations: 15.81 kB / 0.6824 GB, free: 1.656 MB / 0.4948 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0003011/0.3969, allocations: 172.7 kB / 0.6826 GB, free: 1.477 MB / 0.4948 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 7.595e-06/0.397, allocations: 7.938 kB / 0.6826 GB, free: 1.469 MB / 0.4948 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.375e-06/0.397, allocations: 0 / 0.6826 GB, free: 1.469 MB / 0.4948 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.036e-06/0.397, allocations: 0 / 0.6826 GB, free: 1.469 MB / 0.4948 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002869/0.3973, allocations: 245.5 kB / 0.6828 GB, free: 1.18 MB / 0.4948 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.544e-06/0.3973, allocations: 128 / 0.6828 GB, free: 1.18 MB / 0.4948 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 3.133e-05/0.3973, allocations: 12 kB / 0.6828 GB, free: 1.168 MB / 0.4948 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.0001175/0.3974, allocations: 45.69 kB / 0.6829 GB, free: 1.117 MB / 0.4948 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.094e-05/0.3975, allocations: 0 / 0.6829 GB, free: 1.117 MB / 0.4948 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.186/0.5835, allocations: 2.56 MB / 0.6854 GB, free: 141.9 MB / 0.4948 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.264e-06/0.5835, allocations: 0.6875 kB / 0.6854 GB, free: 141.9 MB / 0.4948 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0004297/0.5839, allocations: 384 kB / 0.6857 GB, free: 141.7 MB / 0.4948 GB Notification: Performance of postOpt removeConstants (simulation): time 4.969e-05/0.584, allocations: 94.06 kB / 0.6858 GB, free: 141.6 MB / 0.4948 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.486e-05/0.584, allocations: 4.234 kB / 0.6858 GB, free: 141.6 MB / 0.4948 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001551/0.5842, allocations: 9.25 kB / 0.6858 GB, free: 141.6 MB / 0.4948 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.269e-05/0.5842, allocations: 18.41 kB / 0.6859 GB, free: 141.6 MB / 0.4948 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.409e-05/0.5843, allocations: 5.141 kB / 0.6859 GB, free: 141.6 MB / 0.4948 GB Notification: Performance of sorting global known variables: time 0.0001223/0.5844, allocations: 140.4 kB / 0.686 GB, free: 141.5 MB / 0.4948 GB Notification: Performance of sort global known variables: time 1.3e-07/0.5844, allocations: 6.875 kB / 0.686 GB, free: 141.5 MB / 0.4948 GB Notification: Performance of remove unused functions: time 0.0003959/0.5848, allocations: 46.88 kB / 0.6861 GB, free: 141.5 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 (not torn): 0 * Torn equation systems: 2 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 2 systems {(1,1,100.0%), (1,1,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of Backend phase and start with SimCode phase: time 0.0001927/0.585, allocations: 147 kB / 0.6862 GB, free: 141.4 MB / 0.4948 GB Notification: Performance of simCode: created initialization part: time 0.0004982/0.5855, allocations: 382.6 kB / 0.6866 GB, free: 141.1 MB / 0.4948 GB Notification: Performance of simCode: created event and clocks part: time 2.615e-06/0.5855, allocations: 0 / 0.6866 GB, free: 141.1 MB / 0.4948 GB Notification: Performance of simCode: created simulation system equations: time 0.0002674/0.5858, allocations: 343.4 kB / 0.6869 GB, free: 140.9 MB / 0.4948 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0005151/0.5863, allocations: 42.5 kB / 0.6869 GB, free: 140.9 MB / 0.4948 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0007541/0.5871, allocations: 0.5341 MB / 0.6874 GB, free: 140.5 MB / 0.4948 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.000168/0.5873, allocations: 0.7375 MB / 0.6882 GB, free: 139.8 MB / 0.4948 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 3.088e-05/0.5873, allocations: 19.66 kB / 0.6882 GB, free: 139.8 MB / 0.4948 GB Notification: Performance of SimCode: time 2.1e-07/0.5873, allocations: 0.9688 kB / 0.6882 GB, free: 139.8 MB / 0.4948 GB Notification: Performance of Templates: time 0.007158/0.5945, allocations: 4.467 MB / 0.6926 GB, free: 139.2 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