Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr ThermofluidStream_OM_adaptions_ThermofluidStream.Undirected.Boundaries.Tests.Reservoir.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.Undirected.Boundaries.Tests.Reservoir,fileNamePrefix="ThermofluidStream_OM_adaptions_ThermofluidStream_Undirected_Boundaries_Tests_Reservoir",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(ThermofluidStream.Undirected.Boundaries.Tests.Reservoir,fileNamePrefix="ThermofluidStream_OM_adaptions_ThermofluidStream_Undirected_Boundaries_Tests_Reservoir",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.0007877/0.0007877, allocations: 180.6 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.13/1.13, allocations: 205 MB / 221.2 MB, free: 1.855 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.0006731/0.0006731, allocations: 102.2 kB / 269.2 MB, free: 1.785 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.4656/0.4656, allocations: 90.53 MB / 407.6 MB, free: 15.09 MB / 314.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0002535/0.0002535, allocations: 11.98 kB / 484.3 MB, free: 3.473 MB / 314.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09099/0.09126, allocations: 65.81 MB / 0.5372 GB, free: 1.594 MB / 378.7 MB Notification: Performance of NFInst.instantiate(ThermofluidStream.Undirected.Boundaries.Tests.Reservoir): time 0.1987/0.2899, allocations: 40.97 MB / 0.5772 GB, free: 4.637 MB / 394.7 MB Notification: Performance of NFInst.instExpressions: time 0.005817/0.2958, allocations: 5.307 MB / 0.5824 GB, free: 0.793 MB / 394.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0005303/0.2963, allocations: 19.16 kB / 0.5824 GB, free: 0.7852 MB / 394.7 MB Notification: Performance of NFTyping.typeComponents: time 0.001068/0.2974, allocations: 468.2 kB / 0.5829 GB, free: 0.543 MB / 394.7 MB Notification: Performance of NFTyping.typeBindings: time 0.002332/0.2998, allocations: 1.195 MB / 0.584 GB, free: 15.82 MB / 410.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.001834/0.3016, allocations: 0.7865 MB / 0.5848 GB, free: 15.39 MB / 410.7 MB Notification: Performance of NFFlatten.flatten: time 0.002144/0.3038, allocations: 2.584 MB / 0.5873 GB, free: 14.39 MB / 410.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0003211/0.3041, allocations: 242.5 kB / 0.5876 GB, free: 14.27 MB / 410.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.001534/0.3056, allocations: 0.9095 MB / 0.5884 GB, free: 13.88 MB / 410.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0006629/0.3063, allocations: 0.7031 MB / 0.5891 GB, free: 13.59 MB / 410.7 MB Notification: Performance of NFPackage.collectConstants: time 0.0001014/0.3064, allocations: 49.7 kB / 0.5892 GB, free: 13.58 MB / 410.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.001769/0.3082, allocations: 0.781 MB / 0.5899 GB, free: 13.3 MB / 410.7 MB Notification: Performance of NFScalarize.scalarize: time 0.0001809/0.3084, allocations: 201.3 kB / 0.5901 GB, free: 13.14 MB / 410.7 MB Notification: Performance of NFVerifyModel.verify: time 0.000451/0.3088, allocations: 0.5431 MB / 0.5907 GB, free: 12.81 MB / 410.7 MB Notification: Performance of NFConvertDAE.convert: time 0.001741/0.3106, allocations: 1.671 MB / 0.5923 GB, free: 11.75 MB / 410.7 MB Notification: Performance of FrontEnd - DAE generated: time 2.715e-06/0.3106, allocations: 0 / 0.5923 GB, free: 11.75 MB / 410.7 MB Notification: Performance of FrontEnd: time 1.403e-06/0.3106, allocations: 0 / 0.5923 GB, free: 11.75 MB / 410.7 MB Notification: Performance of Transformations before backend: time 1.019e-05/0.3106, allocations: 0 / 0.5923 GB, free: 11.75 MB / 410.7 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 230 * Number of variables: 230 Notification: Performance of Generate backend data structure: time 0.002171/0.3128, allocations: 1.308 MB / 0.5936 GB, free: 10.75 MB / 410.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.459e-05/0.3129, allocations: 9.875 kB / 0.5936 GB, free: 10.75 MB / 410.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.000144/0.313, allocations: 141.4 kB / 0.5937 GB, free: 10.64 MB / 410.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0003016/0.3133, allocations: 130.7 kB / 0.5938 GB, free: 10.57 MB / 410.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0007099/0.314, allocations: 0.6084 MB / 0.5944 GB, free: 10.04 MB / 410.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 5.119e-05/0.3141, allocations: 71.91 kB / 0.5945 GB, free: 10.01 MB / 410.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.000124/0.3142, allocations: 97.83 kB / 0.5946 GB, free: 9.977 MB / 410.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001531/0.3158, allocations: 1.081 MB / 0.5957 GB, free: 9.324 MB / 410.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.844e-05/0.3158, allocations: 3.938 kB / 0.5957 GB, free: 9.32 MB / 410.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 7.957e-05/0.3159, allocations: 38.16 kB / 0.5957 GB, free: 9.293 MB / 410.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.821e-05/0.3159, allocations: 21.19 kB / 0.5957 GB, free: 9.293 MB / 410.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001559/0.3175, allocations: 1.04 MB / 0.5967 GB, free: 8.797 MB / 410.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.004599/0.3221, allocations: 4.811 MB / 0.6014 GB, free: 4.324 MB / 410.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001669/0.3238, allocations: 1.149 MB / 0.6026 GB, free: 3.703 MB / 410.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0007456/0.3245, allocations: 0.5514 MB / 0.6031 GB, free: 3.422 MB / 410.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.003398/0.3279, allocations: 3.197 MB / 0.6062 GB, free: 424 kB / 410.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.411e-05/0.328, allocations: 48.47 kB / 0.6063 GB, free: 372 kB / 410.7 MB Notification: Performance of pre-optimization done (n=117): time 2.164e-06/0.328, allocations: 0 / 0.6063 GB, free: 372 kB / 410.7 MB Notification: Performance of matching and sorting (n=131): time 0.008793/0.3368, allocations: 4.798 MB / 0.6109 GB, free: 12.13 MB / 426.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.754e-05/0.3368, allocations: 98.19 kB / 0.611 GB, free: 12.02 MB / 426.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0004956/0.3373, allocations: 0.5274 MB / 0.6116 GB, free: 11.48 MB / 426.7 MB Notification: Performance of collectPreVariables (initialization): time 6.837e-05/0.3374, allocations: 49.7 kB / 0.6116 GB, free: 11.43 MB / 426.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0002139/0.3376, allocations: 384.9 kB / 0.612 GB, free: 11.04 MB / 426.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0002634/0.3379, allocations: 453.4 kB / 0.6124 GB, free: 10.59 MB / 426.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 5.819e-05/0.338, allocations: 24 kB / 0.6124 GB, free: 10.57 MB / 426.7 MB Notification: Performance of setup shared object (initialization): time 0.0001441/0.3381, allocations: 394.7 kB / 0.6128 GB, free: 10.18 MB / 426.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0008347/0.339, allocations: 486.4 kB / 0.6133 GB, free: 9.699 MB / 426.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0009252/0.3399, allocations: 0.6261 MB / 0.6139 GB, free: 9.035 MB / 426.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001805/0.3417, allocations: 1.167 MB / 0.615 GB, free: 7.832 MB / 426.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.485e-06/0.3417, allocations: 0 / 0.615 GB, free: 7.832 MB / 426.7 MB Notification: Performance of matching and sorting (n=150) (initialization): time 0.003005/0.3447, allocations: 1.628 MB / 0.6166 GB, free: 6.168 MB / 426.7 MB Notification: Performance of prepare postOptimizeDAE: time 3.509e-05/0.3448, allocations: 8 kB / 0.6166 GB, free: 6.16 MB / 426.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.117e-06/0.3448, allocations: 0 / 0.6166 GB, free: 6.16 MB / 426.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0009263/0.3457, allocations: 314.9 kB / 0.6169 GB, free: 5.828 MB / 426.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0007892/0.3465, allocations: 239.7 kB / 0.6171 GB, free: 5.594 MB / 426.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.007169/0.3537, allocations: 11.24 MB / 0.6281 GB, free: 9.281 MB / 442.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0007202/0.3544, allocations: 83.98 kB / 0.6282 GB, free: 9.199 MB / 442.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 8.742e-05/0.3545, allocations: 51.98 kB / 0.6282 GB, free: 9.148 MB / 442.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 13 * 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 (127): * Single equations (assignments): 116 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 3 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 8 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 8 systems {(1,2,100.0%), (1,2,100.0%), (2,5,100.0%), (1,2,100.0%), (1,2,100.0%), (1,2,100.0%), (1,2,100.0%), (1,2,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of prepare postOptimizeDAE: time 0.0003473/0.3549, allocations: 244.9 kB / 0.6285 GB, free: 8.902 MB / 442.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001839/0.3551, allocations: 98.75 kB / 0.6286 GB, free: 8.805 MB / 442.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.003465/0.3586, allocations: 1.861 MB / 0.6304 GB, free: 6.918 MB / 442.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.459e-05/0.3586, allocations: 16 kB / 0.6304 GB, free: 6.902 MB / 442.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.512e-06/0.3586, allocations: 8 kB / 0.6304 GB, free: 6.895 MB / 442.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.364e-05/0.3586, allocations: 7.969 kB / 0.6304 GB, free: 6.887 MB / 442.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.004756/0.3634, allocations: 3.182 MB / 0.6335 GB, free: 3.617 MB / 442.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.02e-06/0.3634, allocations: 0 / 0.6335 GB, free: 3.617 MB / 442.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.000833/0.3642, allocations: 255.8 kB / 0.6338 GB, free: 3.367 MB / 442.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0008988/0.3651, allocations: 318.8 kB / 0.6341 GB, free: 3.031 MB / 442.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 8.202e-05/0.3652, allocations: 51.97 kB / 0.6341 GB, free: 2.98 MB / 442.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.007195/0.3724, allocations: 11.25 MB / 0.6451 GB, free: 6.66 MB / 458.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.927e-06/0.3725, allocations: 8.391 kB / 0.6451 GB, free: 6.652 MB / 458.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.004354/0.3768, allocations: 2.535 MB / 0.6476 GB, free: 4.07 MB / 458.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0002851/0.3771, allocations: 159.8 kB / 0.6477 GB, free: 3.895 MB / 458.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001629/0.3773, allocations: 35.98 kB / 0.6478 GB, free: 3.859 MB / 458.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0008049/0.3781, allocations: 87.94 kB / 0.6479 GB, free: 3.773 MB / 458.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002529/0.3784, allocations: 129.1 kB / 0.648 GB, free: 3.645 MB / 458.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 9.877e-05/0.3785, allocations: 51.97 kB / 0.648 GB, free: 3.594 MB / 458.7 MB Notification: Performance of sorting global known variables: time 0.0003781/0.3789, allocations: 375 kB / 0.6484 GB, free: 3.23 MB / 458.7 MB Notification: Performance of sort global known variables: time 1.3e-07/0.3789, allocations: 0 / 0.6484 GB, free: 3.23 MB / 458.7 MB Notification: Performance of remove unused functions: time 0.00149/0.3804, allocations: 459.8 kB / 0.6488 GB, free: 2.781 MB / 458.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 6 * Number of states: 8 (reservoir.M,reservoir.U_med,flowResistance1.rear.m_flow,flowResistance2.rear.m_flow,reservoir2.M,reservoir2.U_med,flowResistance4.inlet.m_flow,flowResistance5.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 (122): * Single equations (assignments): 111 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 3 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 8 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 6 systems {(1,2,100.0%), (1,2,100.0%), (1,2,100.0%), (2,5,100.0%), (1,2,100.0%), (1,2,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 2 systems {(1,2), (1,2)} Notification: Performance of Backend phase and start with SimCode phase: time 0.004886/0.3853, allocations: 3.402 MB / 0.6522 GB, free: 15.31 MB / 474.7 MB Notification: Performance of simCode: created initialization part: time 0.003338/0.3886, allocations: 2.345 MB / 0.6544 GB, free: 12.85 MB / 474.7 MB Notification: Performance of simCode: created event and clocks part: time 4.478e-06/0.3886, allocations: 0 / 0.6544 GB, free: 12.85 MB / 474.7 MB Notification: Performance of simCode: created simulation system equations: time 0.002566/0.3912, allocations: 1.782 MB / 0.6562 GB, free: 10.95 MB / 474.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001898/0.3931, allocations: 295.2 kB / 0.6565 GB, free: 10.66 MB / 474.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01414/0.4073, allocations: 10.18 MB / 0.6664 GB, free: 128 kB / 474.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0005567/0.4078, allocations: 1.064 MB / 0.6675 GB, free: 15.03 MB / 490.7 MB Notification: Performance of simCode: alias equations: time 0.0007496/0.4086, allocations: 223.3 kB / 0.6677 GB, free: 14.8 MB / 490.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0005327/0.4091, allocations: 427.2 kB / 0.6681 GB, free: 14.39 MB / 490.7 MB Notification: Performance of SimCode: time 6.92e-07/0.4092, allocations: 0 / 0.6681 GB, free: 14.39 MB / 490.7 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.04553/0.4547, allocations: 31.86 MB / 0.6992 GB, free: 14.73 MB / 0.5105 GB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0002137/0.4549, allocations: 266.7 kB / 0.6994 GB, free: 14.4 MB / 0.5105 GB Notification: Performance of buildModelFMU: Generate platform static: time 2.81/3.265, allocations: 4 kB / 0.6994 GB, free: 14.39 MB / 0.5105 GB (rm -f ThermofluidStream_OM_adaptions_ThermofluidStream.Undirected.Boundaries.Tests.Reservoir.pipe ; mkfifo ThermofluidStream_OM_adaptions_ThermofluidStream.Undirected.Boundaries.Tests.Reservoir.pipe ; head -c 1048576 < ThermofluidStream_OM_adaptions_ThermofluidStream.Undirected.Boundaries.Tests.Reservoir.pipe >> ../files/ThermofluidStream_OM_adaptions_ThermofluidStream.Undirected.Boundaries.Tests.Reservoir.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=ThermofluidStream_OM_adaptions_ThermofluidStream.Undirected.Boundaries.Tests.Reservoir_res.mat --tempDir=temp_ThermofluidStream_OM_adaptions_ThermofluidStream_Undirected_Boundaries_Tests_Reservoir_fmu --startTime=0 --stopTime=10 --timeout=1200 --tolerance=1e-06 ThermofluidStream_OM_adaptions_ThermofluidStream_Undirected_Boundaries_Tests_Reservoir.fmu > ThermofluidStream_OM_adaptions_ThermofluidStream.Undirected.Boundaries.Tests.Reservoir.pipe 2>&1) diffSimulationResults("ThermofluidStream_OM_adaptions_ThermofluidStream.Undirected.Boundaries.Tests.Reservoir_res.mat","/mnt/ReferenceFiles/ThermofluidStream-OM-regression/ReferenceData/ThermofluidStream.Undirected.Boundaries.Tests.Reservoir_ref.mat","../files/ThermofluidStream_OM_adaptions_ThermofluidStream.Undirected.Boundaries.Tests.Reservoir.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches