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: "" <> buildModelFMU(ThermofluidStream.Boundaries.Tests.SourceSink,fileNamePrefix="ThermofluidStream_OM_adaptions_ThermofluidStream_Boundaries_Tests_SourceSink",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(ThermofluidStream.Boundaries.Tests.SourceSink,fileNamePrefix="ThermofluidStream_OM_adaptions_ThermofluidStream_Boundaries_Tests_SourceSink",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.0007667/0.0007668, allocations: 179.7 kB / 15.45 MB, free: 6.227 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.067/1.067, allocations: 205 MB / 221.2 MB, free: 1.844 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.0006552/0.0006552, allocations: 110.2 kB / 269.2 MB, free: 1.789 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.4645/0.4645, allocations: 90.52 MB / 407.6 MB, free: 15.11 MB / 314.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0002505/0.0002506, allocations: 8 kB / 484.3 MB, free: 3.508 MB / 314.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.08479/0.08506, allocations: 65.83 MB / 0.5372 GB, free: 1.613 MB / 378.7 MB Notification: Performance of NFInst.instantiate(ThermofluidStream.Boundaries.Tests.SourceSink): time 0.2782/0.3632, allocations: 136.9 MB / 0.6709 GB, free: 15.27 MB / 490.7 MB Notification: Performance of NFInst.instExpressions: time 0.002802/0.3661, allocations: 3.258 MB / 0.6741 GB, free: 12.01 MB / 490.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001394/0.3662, allocations: 7.938 kB / 0.6741 GB, free: 12 MB / 490.7 MB Notification: Performance of NFTyping.typeComponents: time 0.0003862/0.3666, allocations: 111.4 kB / 0.6742 GB, free: 11.89 MB / 490.7 MB Notification: Performance of NFTyping.typeBindings: time 0.0003106/0.367, allocations: 155.1 kB / 0.6743 GB, free: 11.74 MB / 490.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0003516/0.3673, allocations: 171.4 kB / 0.6745 GB, free: 11.57 MB / 490.7 MB Notification: Performance of NFFlatten.flatten: time 0.0002867/0.3676, allocations: 354.5 kB / 0.6749 GB, free: 11.23 MB / 490.7 MB Notification: Performance of NFFlatten.resolveConnections: time 9.939e-05/0.3677, allocations: 44.45 kB / 0.6749 GB, free: 11.19 MB / 490.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.000307/0.368, allocations: 163.3 kB / 0.675 GB, free: 11.03 MB / 490.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001443/0.3682, allocations: 119.5 kB / 0.6752 GB, free: 10.91 MB / 490.7 MB Notification: Performance of NFPackage.collectConstants: time 1.724e-05/0.3682, allocations: 15.88 kB / 0.6752 GB, free: 10.89 MB / 490.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0004624/0.3687, allocations: 327.3 kB / 0.6755 GB, free: 10.57 MB / 490.7 MB Notification: Performance of NFScalarize.scalarize: time 2.687e-05/0.3687, allocations: 23.92 kB / 0.6755 GB, free: 10.55 MB / 490.7 MB Notification: Performance of NFVerifyModel.verify: time 6.674e-05/0.3688, allocations: 75.55 kB / 0.6756 GB, free: 10.48 MB / 490.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0003384/0.3691, allocations: 291.1 kB / 0.6759 GB, free: 10.19 MB / 490.7 MB Notification: Performance of FrontEnd - DAE generated: time 2.444e-06/0.3692, allocations: 0 / 0.6759 GB, free: 10.19 MB / 490.7 MB Notification: Performance of FrontEnd: time 1.313e-06/0.3692, allocations: 0 / 0.6759 GB, free: 10.19 MB / 490.7 MB Notification: Performance of Transformations before backend: time 4.628e-06/0.3692, allocations: 0 / 0.6759 GB, free: 10.19 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.0005428/0.3697, allocations: 459.6 kB / 0.6763 GB, free: 9.695 MB / 490.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.442e-05/0.3698, allocations: 8.031 kB / 0.6763 GB, free: 9.688 MB / 490.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 3.665e-05/0.3698, allocations: 46.73 kB / 0.6764 GB, free: 9.633 MB / 490.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.673e-05/0.3699, allocations: 20.75 kB / 0.6764 GB, free: 9.613 MB / 490.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001809/0.37, allocations: 235.8 kB / 0.6766 GB, free: 9.344 MB / 490.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.552e-05/0.3701, allocations: 12.31 kB / 0.6766 GB, free: 9.332 MB / 490.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 2.326e-05/0.3701, allocations: 12.56 kB / 0.6766 GB, free: 9.32 MB / 490.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002062/0.3703, allocations: 147.9 kB / 0.6768 GB, free: 9.16 MB / 490.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 7.264e-06/0.3703, allocations: 0 / 0.6768 GB, free: 9.16 MB / 490.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.339e-05/0.3703, allocations: 8 kB / 0.6768 GB, free: 9.152 MB / 490.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.621e-06/0.3703, allocations: 0 / 0.6768 GB, free: 9.152 MB / 490.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001333/0.3705, allocations: 75.97 kB / 0.6768 GB, free: 9.078 MB / 490.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0006619/0.3712, allocations: 0.7596 MB / 0.6776 GB, free: 8.215 MB / 490.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0001586/0.3713, allocations: 117.2 kB / 0.6777 GB, free: 8.082 MB / 490.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 7.065e-05/0.3714, allocations: 57.83 kB / 0.6778 GB, free: 8.02 MB / 490.7 MB Notification: Performance of preOpt evalFunc (simulation): time 3.44e-05/0.3714, allocations: 0 / 0.6778 GB, free: 8.02 MB / 490.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.262e-05/0.3715, allocations: 49.62 kB / 0.6778 GB, free: 7.965 MB / 490.7 MB Notification: Performance of pre-optimization done (n=12): time 1.072e-06/0.3715, allocations: 0 / 0.6778 GB, free: 7.965 MB / 490.7 MB Notification: Performance of matching and sorting (n=12): time 0.0006133/0.3721, allocations: 369.3 kB / 0.6782 GB, free: 7.555 MB / 490.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.16e-05/0.3721, allocations: 77.11 kB / 0.6782 GB, free: 7.461 MB / 490.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001438/0.3723, allocations: 195.8 kB / 0.6784 GB, free: 7.254 MB / 490.7 MB Notification: Performance of collectPreVariables (initialization): time 1.318e-05/0.3723, allocations: 25.7 kB / 0.6784 GB, free: 7.223 MB / 490.7 MB Notification: Performance of collectInitialEqns (initialization): time 5.658e-05/0.3724, allocations: 124 kB / 0.6786 GB, free: 7.098 MB / 490.7 MB Notification: Performance of collectInitialBindings (initialization): time 3.398e-05/0.3724, allocations: 43.3 kB / 0.6786 GB, free: 7.055 MB / 490.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 6.422e-06/0.3724, allocations: 4 kB / 0.6786 GB, free: 7.051 MB / 490.7 MB Notification: Performance of setup shared object (initialization): time 8.596e-05/0.3725, allocations: 338.8 kB / 0.6789 GB, free: 6.711 MB / 490.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 5.619e-05/0.3726, allocations: 28 kB / 0.6789 GB, free: 6.684 MB / 490.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 6.848e-05/0.3727, allocations: 67.34 kB / 0.679 GB, free: 6.605 MB / 490.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.000126/0.3728, allocations: 95.44 kB / 0.6791 GB, free: 6.5 MB / 490.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.913e-06/0.3728, allocations: 7.938 kB / 0.6791 GB, free: 6.492 MB / 490.7 MB Notification: Performance of matching and sorting (n=14) (initialization): time 0.000251/0.3731, allocations: 174.8 kB / 0.6793 GB, free: 6.312 MB / 490.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.216e-05/0.3731, allocations: 4 kB / 0.6793 GB, free: 6.309 MB / 490.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.66e-06/0.3731, allocations: 4 kB / 0.6793 GB, free: 6.305 MB / 490.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0001641/0.3733, allocations: 49.62 kB / 0.6793 GB, free: 6.25 MB / 490.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 5.227e-05/0.3733, allocations: 15.94 kB / 0.6793 GB, free: 6.234 MB / 490.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001432/0.3748, allocations: 2.568 MB / 0.6819 GB, free: 3.398 MB / 490.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 6.717e-05/0.3748, allocations: 12 kB / 0.6819 GB, free: 3.387 MB / 490.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.115e-05/0.3749, allocations: 15.94 kB / 0.6819 GB, free: 3.371 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 (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 8.024e-05/0.3749, allocations: 121.8 kB / 0.682 GB, free: 3.242 MB / 490.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 5.019e-05/0.375, allocations: 15.81 kB / 0.682 GB, free: 3.227 MB / 490.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0002798/0.3753, allocations: 168.7 kB / 0.6822 GB, free: 3.043 MB / 490.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.059e-06/0.3753, allocations: 8.812 kB / 0.6822 GB, free: 3.035 MB / 490.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.835e-06/0.3753, allocations: 0 / 0.6822 GB, free: 3.035 MB / 490.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.677e-06/0.3753, allocations: 4 kB / 0.6822 GB, free: 3.031 MB / 490.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002426/0.3756, allocations: 237.5 kB / 0.6824 GB, free: 2.75 MB / 490.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.543e-06/0.3756, allocations: 0 / 0.6824 GB, free: 2.75 MB / 490.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 2.752e-05/0.3756, allocations: 11.94 kB / 0.6824 GB, free: 2.738 MB / 490.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0001105/0.3757, allocations: 42.56 kB / 0.6825 GB, free: 2.691 MB / 490.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.037e-05/0.3757, allocations: 0 / 0.6825 GB, free: 2.691 MB / 490.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001314/0.3771, allocations: 2.573 MB / 0.685 GB, free: 15.86 MB / 0.4948 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.425e-06/0.3771, allocations: 4 kB / 0.685 GB, free: 15.85 MB / 0.4948 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.000335/0.3774, allocations: 380.3 kB / 0.6853 GB, free: 15.46 MB / 0.4948 GB Notification: Performance of postOpt removeConstants (simulation): time 4.429e-05/0.3775, allocations: 96.84 kB / 0.6854 GB, free: 15.34 MB / 0.4948 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.848e-05/0.3775, allocations: 4 kB / 0.6854 GB, free: 15.34 MB / 0.4948 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.000109/0.3776, allocations: 4 kB / 0.6854 GB, free: 15.34 MB / 0.4948 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.084e-05/0.3776, allocations: 15.92 kB / 0.6855 GB, free: 15.32 MB / 0.4948 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 8.897e-06/0.3777, allocations: 8.062 kB / 0.6855 GB, free: 15.31 MB / 0.4948 GB Notification: Performance of sorting global known variables: time 8.59e-05/0.3778, allocations: 137.5 kB / 0.6856 GB, free: 15.18 MB / 0.4948 GB Notification: Performance of sort global known variables: time 1.4e-07/0.3778, allocations: 3.938 kB / 0.6856 GB, free: 15.18 MB / 0.4948 GB Notification: Performance of remove unused functions: time 0.0002899/0.3781, allocations: 48 kB / 0.6856 GB, free: 15.13 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.0006079/0.3787, allocations: 0.9681 MB / 0.6866 GB, free: 14.13 MB / 0.4948 GB Notification: Performance of simCode: created initialization part: time 0.0004182/0.3791, allocations: 381 kB / 0.687 GB, free: 13.72 MB / 0.4948 GB Notification: Performance of simCode: created event and clocks part: time 2.114e-06/0.3791, allocations: 4 kB / 0.687 GB, free: 13.71 MB / 0.4948 GB Notification: Performance of simCode: created simulation system equations: time 0.00027/0.3794, allocations: 340.7 kB / 0.6873 GB, free: 13.34 MB / 0.4948 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004192/0.3798, allocations: 36.59 kB / 0.6873 GB, free: 13.31 MB / 0.4948 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001925/0.3817, allocations: 2.236 MB / 0.6895 GB, free: 10.96 MB / 0.4948 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002163/0.382, allocations: 0.7281 MB / 0.6902 GB, free: 10.21 MB / 0.4948 GB Notification: Performance of simCode: alias equations: time 5.272e-05/0.382, allocations: 21.36 kB / 0.6902 GB, free: 10.19 MB / 0.4948 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 5.549e-05/0.3821, allocations: 55.42 kB / 0.6903 GB, free: 10.13 MB / 0.4948 GB Notification: Performance of SimCode: time 2.31e-07/0.3821, allocations: 0 / 0.6903 GB, free: 10.13 MB / 0.4948 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.01416/0.3963, allocations: 5.456 MB / 0.6956 GB, free: 4.801 MB / 0.4948 GB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.000211/0.3965, allocations: 237.9 kB / 0.6958 GB, free: 4.547 MB / 0.4948 GB Notification: Performance of buildModelFMU: Generate platform static: time 1.653/2.05, allocations: 64 / 0.6958 GB, free: 4.547 MB / 0.4948 GB (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 & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=ThermofluidStream_OM_adaptions_ThermofluidStream.Boundaries.Tests.SourceSink_res.mat --tempDir=temp_ThermofluidStream_OM_adaptions_ThermofluidStream_Boundaries_Tests_SourceSink_fmu --startTime=0 --stopTime=1 --timeout=1200 --tolerance=1e-06 ThermofluidStream_OM_adaptions_ThermofluidStream_Boundaries_Tests_SourceSink.fmu > 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