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.006006/0.006006, allocations: 167.1 kB / 15.13 MB, free: 6.02 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.359/1.359, allocations: 205.4 MB / 221.3 MB, free: 13.81 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.0006957/0.0006957, allocations: 94.3 kB / 269.6 MB, free: 13.34 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.7336/0.7336, allocations: 90.6 MB / 408.5 MB, free: 14.95 MB / 298.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0003488/0.0003489, allocations: 8 kB / 485.3 MB, free: 1.945 MB / 362.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3585/0.3588, allocations: 66.28 MB / 0.5387 GB, free: 45.09 MB / 426.7 MB Notification: Performance of NFInst.instantiate(ThermofluidStream.Undirected.Boundaries.Tests.Reservoir): time 0.02686/0.3857, allocations: 38.21 MB / 0.576 GB, free: 22.49 MB / 426.7 MB Notification: Performance of NFInst.instExpressions: time 0.006157/0.3919, allocations: 4.99 MB / 0.5809 GB, free: 18.88 MB / 426.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0008675/0.3928, allocations: 14.38 kB / 0.5809 GB, free: 18.88 MB / 426.7 MB Notification: Performance of NFTyping.typeComponents: time 0.001093/0.3939, allocations: 437.5 kB / 0.5813 GB, free: 18.64 MB / 426.7 MB Notification: Performance of NFTyping.typeBindings: time 0.003058/0.397, allocations: 1.175 MB / 0.5825 GB, free: 17.92 MB / 426.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.002071/0.3991, allocations: 0.6287 MB / 0.5831 GB, free: 17.59 MB / 426.7 MB Notification: Performance of NFFlatten.flatten: time 0.003376/0.4025, allocations: 2.239 MB / 0.5853 GB, free: 16.62 MB / 426.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0004564/0.403, allocations: 210.7 kB / 0.5855 GB, free: 16.56 MB / 426.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.002505/0.4055, allocations: 0.8515 MB / 0.5863 GB, free: 16.21 MB / 426.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.001264/0.4067, allocations: 0.6693 MB / 0.587 GB, free: 15.93 MB / 426.7 MB Notification: Performance of NFPackage.collectConstants: time 0.0001388/0.4069, allocations: 46.75 kB / 0.587 GB, free: 15.93 MB / 426.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.002487/0.4094, allocations: 0.581 MB / 0.5876 GB, free: 15.78 MB / 426.7 MB Notification: Performance of NFScalarize.scalarize: time 0.0002233/0.4096, allocations: 187.1 kB / 0.5877 GB, free: 15.68 MB / 426.7 MB Notification: Performance of NFVerifyModel.verify: time 0.0003324/0.41, allocations: 235.8 kB / 0.588 GB, free: 15.55 MB / 426.7 MB Notification: Performance of NFConvertDAE.convert: time 0.001692/0.4117, allocations: 1.168 MB / 0.5891 GB, free: 15.23 MB / 426.7 MB Notification: Performance of FrontEnd - DAE generated: time 4.748e-06/0.4117, allocations: 1.031 kB / 0.5891 GB, free: 15.23 MB / 426.7 MB Notification: Performance of FrontEnd: time 2.004e-06/0.4117, allocations: 0 / 0.5891 GB, free: 15.23 MB / 426.7 MB Notification: Performance of Transformations before backend: time 1.553e-05/0.4117, allocations: 0 / 0.5891 GB, free: 15.23 MB / 426.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.002688/0.4144, allocations: 1.323 MB / 0.5904 GB, free: 14.37 MB / 426.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.109e-05/0.4145, allocations: 8.75 kB / 0.5904 GB, free: 14.37 MB / 426.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001841/0.4147, allocations: 140.5 kB / 0.5905 GB, free: 14.27 MB / 426.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0003182/0.415, allocations: 127.6 kB / 0.5907 GB, free: 14.21 MB / 426.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0008523/0.4158, allocations: 0.5851 MB / 0.5912 GB, free: 13.8 MB / 426.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.697e-05/0.4159, allocations: 65.75 kB / 0.5913 GB, free: 13.77 MB / 426.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001306/0.416, allocations: 98.38 kB / 0.5914 GB, free: 13.73 MB / 426.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001811/0.4179, allocations: 1.078 MB / 0.5924 GB, free: 13.27 MB / 426.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.17e-05/0.4179, allocations: 1.281 kB / 0.5924 GB, free: 13.27 MB / 426.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 8.259e-05/0.418, allocations: 41.31 kB / 0.5925 GB, free: 13.23 MB / 426.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.874e-05/0.418, allocations: 28.16 kB / 0.5925 GB, free: 13.23 MB / 426.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001723/0.4197, allocations: 1.028 MB / 0.5935 GB, free: 12.88 MB / 426.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.004935/0.4247, allocations: 4.809 MB / 0.5982 GB, free: 8.719 MB / 426.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001854/0.4266, allocations: 1.16 MB / 0.5993 GB, free: 8.094 MB / 426.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0008154/0.4274, allocations: 0.5496 MB / 0.5999 GB, free: 7.812 MB / 426.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.003652/0.4311, allocations: 3.181 MB / 0.603 GB, free: 4.82 MB / 426.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.602e-05/0.4311, allocations: 52.88 kB / 0.603 GB, free: 4.766 MB / 426.7 MB Notification: Performance of pre-optimization done (n=117): time 3.617e-06/0.4311, allocations: 0 / 0.603 GB, free: 4.766 MB / 426.7 MB Notification: Performance of matching and sorting (n=131): time 0.009769/0.4409, allocations: 4.784 MB / 0.6077 GB, free: 1.805 MB / 426.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.71e-05/0.441, allocations: 90.2 kB / 0.6078 GB, free: 1.707 MB / 426.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.000552/0.4415, allocations: 0.5318 MB / 0.6083 GB, free: 1.383 MB / 426.7 MB Notification: Performance of collectPreVariables (initialization): time 7.852e-05/0.4416, allocations: 47.02 kB / 0.6084 GB, free: 1.336 MB / 426.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001705/0.4418, allocations: 381.6 kB / 0.6087 GB, free: 1 MB / 426.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0002169/0.442, allocations: 452.6 kB / 0.6092 GB, free: 0.6016 MB / 426.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 5.721e-05/0.4421, allocations: 20.75 kB / 0.6092 GB, free: 0.5859 MB / 426.7 MB Notification: Performance of setup shared object (initialization): time 9.268e-05/0.4422, allocations: 402.1 kB / 0.6096 GB, free: 208 kB / 426.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0009085/0.4431, allocations: 478.6 kB / 0.61 GB, free: 15.98 MB / 442.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.00115/0.4442, allocations: 0.6216 MB / 0.6106 GB, free: 15.59 MB / 442.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001217/0.4455, allocations: 0.5379 MB / 0.6111 GB, free: 15.32 MB / 442.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.627e-06/0.4455, allocations: 0 / 0.6111 GB, free: 15.32 MB / 442.7 MB Notification: Performance of matching and sorting (n=150) (initialization): time 0.00371/0.4492, allocations: 1.608 MB / 0.6127 GB, free: 14.47 MB / 442.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.019e-05/0.4492, allocations: 4.812 kB / 0.6127 GB, free: 14.47 MB / 442.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.07e-05/0.4492, allocations: 4.625 kB / 0.6127 GB, free: 14.47 MB / 442.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001073/0.4503, allocations: 313.9 kB / 0.613 GB, free: 14.27 MB / 442.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.000905/0.4512, allocations: 245.9 kB / 0.6133 GB, free: 14.04 MB / 442.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.008701/0.46, allocations: 11.23 MB / 0.6242 GB, free: 1.762 MB / 442.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001169/0.4612, allocations: 93.47 kB / 0.6243 GB, free: 1.672 MB / 442.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001371/0.4613, allocations: 47.98 kB / 0.6244 GB, free: 1.625 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 (linear and non-linear blocks): 0 * Torn equation systems: 8 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 8 {(1,100.0%) 2,(1,100.0%) 2,(2,100.0%) 5,(1,100.0%) 2,(1,100.0%) 2,(1,100.0%) 2,(1,100.0%) 2,(1,100.0%) 2} * Non-linear torn systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.0006034/0.4619, allocations: 250.1 kB / 0.6246 GB, free: 1.371 MB / 442.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002446/0.4622, allocations: 90.88 kB / 0.6247 GB, free: 1.281 MB / 442.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.004174/0.4663, allocations: 1.854 MB / 0.6265 GB, free: 15.43 MB / 458.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.485e-05/0.4664, allocations: 19.98 kB / 0.6265 GB, free: 15.41 MB / 458.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.053e-05/0.4664, allocations: 4 kB / 0.6265 GB, free: 15.41 MB / 458.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.79e-05/0.4664, allocations: 11.92 kB / 0.6265 GB, free: 15.4 MB / 458.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.005752/0.4722, allocations: 3.171 MB / 0.6296 GB, free: 12.13 MB / 458.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.132e-05/0.4722, allocations: 4 kB / 0.6296 GB, free: 12.12 MB / 458.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0009932/0.4732, allocations: 247.8 kB / 0.6299 GB, free: 11.88 MB / 458.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.001055/0.4743, allocations: 326.1 kB / 0.6302 GB, free: 11.54 MB / 458.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 9.749e-05/0.4744, allocations: 39.98 kB / 0.6302 GB, free: 11.5 MB / 458.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.009409/0.4838, allocations: 11.24 MB / 0.6412 GB, free: 15.23 MB / 474.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.659e-06/0.4839, allocations: 4.062 kB / 0.6412 GB, free: 15.22 MB / 474.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.005187/0.4891, allocations: 2.515 MB / 0.6437 GB, free: 12.66 MB / 474.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0004603/0.4896, allocations: 163.8 kB / 0.6438 GB, free: 12.48 MB / 474.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001404/0.4897, allocations: 32 kB / 0.6438 GB, free: 12.45 MB / 474.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0008781/0.4906, allocations: 99.77 kB / 0.6439 GB, free: 12.35 MB / 474.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002845/0.4909, allocations: 125.2 kB / 0.6441 GB, free: 12.23 MB / 474.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001301/0.491, allocations: 51.97 kB / 0.6441 GB, free: 12.18 MB / 474.7 MB Notification: Performance of sorting global known variables: time 0.0005127/0.4915, allocations: 363.1 kB / 0.6445 GB, free: 11.82 MB / 474.7 MB Notification: Performance of sort global known variables: time 1.964e-06/0.4916, allocations: 0 / 0.6445 GB, free: 11.82 MB / 474.7 MB Notification: Performance of remove unused functions: time 0.001722/0.4933, allocations: 463.8 kB / 0.6449 GB, free: 11.37 MB / 474.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 (linear and non-linear blocks): 0 * Torn equation systems: 8 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 6 {(1,100.0%) 2,(1,100.0%) 2,(1,100.0%) 2,(2,100.0%) 5,(1,100.0%) 2,(1,100.0%) 2} * Non-linear torn systems: 2 {1 2,1 2} Notification: Performance of Backend phase and start with SimCode phase: time 0.005689/0.499, allocations: 3.398 MB / 0.6482 GB, free: 7.914 MB / 474.7 MB Notification: Performance of simCode: created initialization part: time 0.003862/0.5029, allocations: 2.334 MB / 0.6505 GB, free: 5.465 MB / 474.7 MB Notification: Performance of simCode: created event and clocks part: time 7.625e-06/0.5029, allocations: 7.938 kB / 0.6505 GB, free: 5.457 MB / 474.7 MB Notification: Performance of simCode: created simulation system equations: time 0.002589/0.5055, allocations: 1.782 MB / 0.6522 GB, free: 3.559 MB / 474.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001736/0.5073, allocations: 290.7 kB / 0.6525 GB, free: 3.285 MB / 474.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01244/0.5197, allocations: 7.036 MB / 0.6594 GB, free: 12.03 MB / 490.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0009272/0.5207, allocations: 1.061 MB / 0.6604 GB, free: 10.94 MB / 490.7 MB Notification: Performance of simCode: alias equations: time 0.001024/0.5217, allocations: 220.4 kB / 0.6606 GB, free: 10.75 MB / 490.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0005911/0.5223, allocations: 423.3 kB / 0.661 GB, free: 10.33 MB / 490.7 MB Notification: Performance of SimCode: time 1.002e-06/0.5224, allocations: 0 / 0.661 GB, free: 10.33 MB / 490.7 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.05547/0.5778, allocations: 31.64 MB / 0.6919 GB, free: 10.96 MB / 0.5105 GB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0002276/0.5781, allocations: 248.5 kB / 0.6922 GB, free: 10.68 MB / 0.5105 GB Notification: Performance of buildModelFMU: Generate platform static: time 3.031/3.609, allocations: 0 / 0.6922 GB, free: 10.68 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) TODO: How the !@#!# did the simulation report success but simulation result ThermofluidStream_OM_adaptions_ThermofluidStream.Undirected.Boundaries.Tests.Reservoir_res.mat does not exist to compare? outputFormat=mat