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.009881/0.009881, allocations: 173.9 kB / 15.12 MB, free: 5.559 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.939/1.939, allocations: 205.4 MB / 221.3 MB, free: 13.82 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.0009813/0.0009813, allocations: 86.86 kB / 269.6 MB, free: 13.36 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.8348/0.8348, allocations: 90.6 MB / 408.5 MB, free: 14.97 MB / 298.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0005292/0.0005295, allocations: 8 kB / 485.3 MB, free: 1.977 MB / 362.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.4576/0.4582, allocations: 66.27 MB / 0.5387 GB, free: 45.63 MB / 426.7 MB Notification: Performance of NFInst.instantiate(ThermofluidStream.Undirected.Boundaries.Tests.Reservoir): time 0.02658/0.4849, allocations: 27.35 MB / 0.5654 GB, free: 30.88 MB / 426.7 MB Notification: Performance of NFInst.instExpressions: time 0.007676/0.4926, allocations: 5.358 MB / 0.5706 GB, free: 27.08 MB / 426.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.001343/0.494, allocations: 15.22 kB / 0.5706 GB, free: 27.08 MB / 426.7 MB Notification: Performance of NFTyping.typeComponents: time 0.001484/0.4955, allocations: 440.2 kB / 0.571 GB, free: 26.84 MB / 426.7 MB Notification: Performance of NFTyping.typeBindings: time 0.003575/0.4991, allocations: 1.169 MB / 0.5722 GB, free: 26.04 MB / 426.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.00209/0.5012, allocations: 0.6521 MB / 0.5728 GB, free: 25.68 MB / 426.7 MB Notification: Performance of NFFlatten.flatten: time 0.002539/0.5037, allocations: 1.227 MB / 0.574 GB, free: 25.02 MB / 426.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.000432/0.5042, allocations: 214.5 kB / 0.5742 GB, free: 24.95 MB / 426.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.001928/0.5061, allocations: 0.7197 MB / 0.5749 GB, free: 24.63 MB / 426.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0007575/0.5069, allocations: 0.5309 MB / 0.5754 GB, free: 24.41 MB / 426.7 MB Notification: Performance of NFPackage.collectConstants: time 0.0001161/0.507, allocations: 47 kB / 0.5755 GB, free: 24.41 MB / 426.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.00259/0.5096, allocations: 0.7174 MB / 0.5762 GB, free: 24.25 MB / 426.7 MB Notification: Performance of NFScalarize.scalarize: time 0.0002277/0.5098, allocations: 185.5 kB / 0.5764 GB, free: 24.15 MB / 426.7 MB Notification: Performance of NFVerifyModel.verify: time 0.0003543/0.5102, allocations: 237.2 kB / 0.5766 GB, free: 24.02 MB / 426.7 MB Notification: Performance of NFConvertDAE.convert: time 0.002176/0.5124, allocations: 1.156 MB / 0.5777 GB, free: 23.71 MB / 426.7 MB Notification: Performance of FrontEnd - DAE generated: time 3.576e-06/0.5124, allocations: 0 / 0.5777 GB, free: 23.71 MB / 426.7 MB Notification: Performance of FrontEnd: time 2.795e-06/0.5124, allocations: 4 kB / 0.5777 GB, free: 23.7 MB / 426.7 MB Notification: Performance of Transformations before backend: time 1.895e-05/0.5124, allocations: 0 / 0.5777 GB, free: 23.7 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.003032/0.5155, allocations: 1.315 MB / 0.579 GB, free: 22.85 MB / 426.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.422e-05/0.5155, allocations: 8.75 kB / 0.579 GB, free: 22.85 MB / 426.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0002263/0.5158, allocations: 144 kB / 0.5791 GB, free: 22.75 MB / 426.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0003643/0.5161, allocations: 126.7 kB / 0.5793 GB, free: 22.7 MB / 426.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001025/0.5172, allocations: 0.5795 MB / 0.5798 GB, free: 22.28 MB / 426.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 6.219e-05/0.5172, allocations: 71.97 kB / 0.5799 GB, free: 22.25 MB / 426.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001559/0.5174, allocations: 97.77 kB / 0.58 GB, free: 22.21 MB / 426.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001951/0.5194, allocations: 1.076 MB / 0.581 GB, free: 21.74 MB / 426.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.136e-05/0.5194, allocations: 3.938 kB / 0.5811 GB, free: 21.74 MB / 426.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 9.188e-05/0.5195, allocations: 37.16 kB / 0.5811 GB, free: 21.71 MB / 426.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.679e-05/0.5195, allocations: 29.56 kB / 0.5811 GB, free: 21.71 MB / 426.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001775/0.5213, allocations: 1.032 MB / 0.5821 GB, free: 21.36 MB / 426.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.005647/0.527, allocations: 4.88 MB / 0.5869 GB, free: 17.47 MB / 426.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.002027/0.529, allocations: 1.152 MB / 0.588 GB, free: 16.94 MB / 426.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.004137/0.5332, allocations: 3.251 MB / 0.5912 GB, free: 14.3 MB / 426.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.496e-05/0.5332, allocations: 52.03 kB / 0.5912 GB, free: 14.25 MB / 426.7 MB Notification: Performance of pre-optimization done (n=117): time 3.407e-06/0.5332, allocations: 3.938 kB / 0.5912 GB, free: 14.25 MB / 426.7 MB Notification: Performance of matching and sorting (n=131): time 0.01061/0.5439, allocations: 5.02 MB / 0.5961 GB, free: 11.38 MB / 426.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.742e-05/0.5439, allocations: 91.86 kB / 0.5962 GB, free: 11.29 MB / 426.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0006819/0.5446, allocations: 0.5276 MB / 0.5967 GB, free: 10.97 MB / 426.7 MB Notification: Performance of collectPreVariables (initialization): time 8.557e-05/0.5447, allocations: 46.83 kB / 0.5968 GB, free: 10.92 MB / 426.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0002089/0.5449, allocations: 380.8 kB / 0.5972 GB, free: 10.59 MB / 426.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0002663/0.5452, allocations: 452.5 kB / 0.5976 GB, free: 10.19 MB / 426.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 6.082e-05/0.5453, allocations: 25.78 kB / 0.5976 GB, free: 10.17 MB / 426.7 MB Notification: Performance of setup shared object (initialization): time 0.0001386/0.5454, allocations: 397.8 kB / 0.598 GB, free: 9.789 MB / 426.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001004/0.5464, allocations: 482.8 kB / 0.5985 GB, free: 9.562 MB / 426.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001159/0.5476, allocations: 0.6125 MB / 0.5991 GB, free: 9.18 MB / 426.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001143/0.5488, allocations: 0.5341 MB / 0.5996 GB, free: 8.918 MB / 426.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.3e-06/0.5488, allocations: 5.188 kB / 0.5996 GB, free: 8.914 MB / 426.7 MB Notification: Performance of matching and sorting (n=150) (initialization): time 0.003515/0.5523, allocations: 1.607 MB / 0.6011 GB, free: 8.059 MB / 426.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.934e-05/0.5523, allocations: 5.562 kB / 0.6012 GB, free: 8.059 MB / 426.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.587e-05/0.5524, allocations: 3.562 kB / 0.6012 GB, free: 8.059 MB / 426.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001072/0.5534, allocations: 314.4 kB / 0.6015 GB, free: 7.863 MB / 426.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0009475/0.5544, allocations: 242.2 kB / 0.6017 GB, free: 7.805 MB / 426.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.008187/0.5626, allocations: 11.32 MB / 0.6127 GB, free: 12.4 MB / 442.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001104/0.5637, allocations: 91.16 kB / 0.6128 GB, free: 12.35 MB / 442.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.000125/0.5639, allocations: 50.36 kB / 0.6129 GB, free: 12.34 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.0005729/0.5645, allocations: 244 kB / 0.6131 GB, free: 12.13 MB / 442.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001977/0.5647, allocations: 96.38 kB / 0.6132 GB, free: 12.08 MB / 442.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.004238/0.5689, allocations: 1.856 MB / 0.615 GB, free: 11.04 MB / 442.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.789e-05/0.5689, allocations: 18.09 kB / 0.615 GB, free: 11.04 MB / 442.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 8.506e-06/0.569, allocations: 3.906 kB / 0.615 GB, free: 11.04 MB / 442.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.902e-05/0.569, allocations: 9.188 kB / 0.615 GB, free: 11.03 MB / 442.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.005963/0.575, allocations: 3.218 MB / 0.6182 GB, free: 7.969 MB / 442.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 9.277e-06/0.575, allocations: 0.9844 kB / 0.6182 GB, free: 7.969 MB / 442.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0009593/0.576, allocations: 247.8 kB / 0.6184 GB, free: 7.727 MB / 442.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.001025/0.577, allocations: 324.1 kB / 0.6187 GB, free: 7.387 MB / 442.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001037/0.5771, allocations: 39.97 kB / 0.6188 GB, free: 7.348 MB / 442.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.009295/0.5864, allocations: 11.32 MB / 0.6298 GB, free: 10.98 MB / 458.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.206e-06/0.5864, allocations: 0 / 0.6298 GB, free: 10.98 MB / 458.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.006459/0.5929, allocations: 2.576 MB / 0.6323 GB, free: 8.328 MB / 458.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0006726/0.5936, allocations: 167.8 kB / 0.6325 GB, free: 8.145 MB / 458.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0002286/0.5939, allocations: 31.95 kB / 0.6325 GB, free: 8.113 MB / 458.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001378/0.5953, allocations: 103.8 kB / 0.6326 GB, free: 8.012 MB / 458.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0003887/0.5957, allocations: 113.3 kB / 0.6327 GB, free: 7.902 MB / 458.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001912/0.5959, allocations: 55.95 kB / 0.6328 GB, free: 7.848 MB / 458.7 MB Notification: Performance of sorting global known variables: time 0.0007337/0.5966, allocations: 367.1 kB / 0.6331 GB, free: 7.492 MB / 458.7 MB Notification: Performance of sort global known variables: time 2.1e-07/0.5966, allocations: 4 kB / 0.6331 GB, free: 7.488 MB / 458.7 MB Notification: Performance of remove unused functions: time 0.002815/0.5995, allocations: 455.8 kB / 0.6336 GB, free: 7.043 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 (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.00889/0.6084, allocations: 3.792 MB / 0.6373 GB, free: 3.18 MB / 458.7 MB Notification: Performance of simCode: created initialization part: time 0.005628/0.614, allocations: 2.326 MB / 0.6396 GB, free: 0.7422 MB / 458.7 MB Notification: Performance of simCode: created event and clocks part: time 1.347e-05/0.6141, allocations: 8 kB / 0.6396 GB, free: 0.7344 MB / 458.7 MB Notification: Performance of simCode: created simulation system equations: time 0.003916/0.618, allocations: 1.79 MB / 0.6413 GB, free: 14.83 MB / 474.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.00232/0.6204, allocations: 267 kB / 0.6416 GB, free: 14.58 MB / 474.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01947/0.6398, allocations: 8.819 MB / 0.6502 GB, free: 5.52 MB / 474.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0009804/0.6409, allocations: 1.072 MB / 0.6512 GB, free: 4.418 MB / 474.7 MB Notification: Performance of simCode: alias equations: time 0.001568/0.6425, allocations: 217.7 kB / 0.6514 GB, free: 4.219 MB / 474.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0008804/0.6434, allocations: 419.3 kB / 0.6518 GB, free: 3.809 MB / 474.7 MB Notification: Performance of SimCode: time 1.062e-06/0.6434, allocations: 0 / 0.6518 GB, free: 3.809 MB / 474.7 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.05745/0.7008, allocations: 31.5 MB / 0.6826 GB, free: 4.57 MB / 0.4949 GB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0002599/0.7011, allocations: 239.7 kB / 0.6828 GB, free: 4.328 MB / 0.4949 GB Notification: Performance of buildModelFMU: Generate platform static: time 3.184/3.886, allocations: 0 / 0.6828 GB, free: 4.328 MB / 0.4949 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