Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr ThermofluidStream_ThermofluidStream.Undirected.Boundaries.Tests.Reservoir.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ThermofluidStream 1.1.0/package.mo", uses=false) Using package ThermofluidStream with version 1.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ThermofluidStream 1.1.0/package.mo) Using package Modelica with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo) Using package Complex with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo) Using package ModelicaServices with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo) Running command: "" <> buildModelFMU(ThermofluidStream.Undirected.Boundaries.Tests.Reservoir,fileNamePrefix="ThermofluidStream_ThermofluidStream_Undirected_Boundaries_Tests_Reservoir",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(ThermofluidStream.Undirected.Boundaries.Tests.Reservoir,fileNamePrefix="ThermofluidStream_ThermofluidStream_Undirected_Boundaries_Tests_Reservoir",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.005856/0.005856, allocations: 99.69 kB / 15.73 MB, free: 6.039 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001508/0.001508, allocations: 192.2 kB / 16.67 MB, free: 5.949 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.374/1.374, allocations: 222.9 MB / 240.4 MB, free: 4.176 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ThermofluidStream 1.1.0/package.mo): time 0.6829/0.6829, allocations: 89.46 MB / 380 MB, free: 10.94 MB / 318.1 MB Notification: Performance of FrontEnd - loaded program: time 0.002241/0.002241, allocations: 79.88 kB / 0.5139 GB, free: 11.75 MB / 398.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1348/0.1371, allocations: 67.3 MB / 0.5796 GB, free: 8.375 MB / 462.1 MB Notification: Performance of NFInst.instantiate(ThermofluidStream.Undirected.Boundaries.Tests.Reservoir): time 0.3254/0.4625, allocations: 40.93 MB / 0.6196 GB, free: 4.254 MB / 478.1 MB Notification: Performance of NFInst.instExpressions: time 0.008489/0.471, allocations: 5.265 MB / 0.6248 GB, free: 488 kB / 478.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.001002/0.472, allocations: 17.94 kB / 0.6248 GB, free: 480 kB / 478.1 MB Notification: Performance of NFTyping.typeComponents: time 0.00151/0.4736, allocations: 0.5395 MB / 0.6253 GB, free: 156 kB / 478.1 MB Notification: Performance of NFTyping.typeBindings: time 0.003483/0.4771, allocations: 1.297 MB / 0.6266 GB, free: 15.35 MB / 494.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.002594/0.4797, allocations: 0.8808 MB / 0.6274 GB, free: 14.88 MB / 494.1 MB Notification: Performance of NFFlatten.flatten: time 0.002698/0.4824, allocations: 2.011 MB / 0.6294 GB, free: 13.91 MB / 494.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0004204/0.4828, allocations: 273.7 kB / 0.6297 GB, free: 13.8 MB / 494.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.002876/0.4857, allocations: 1.248 MB / 0.6309 GB, free: 13.21 MB / 494.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0009758/0.4867, allocations: 0.7502 MB / 0.6316 GB, free: 12.87 MB / 494.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0001758/0.4869, allocations: 101.3 kB / 0.6317 GB, free: 12.87 MB / 494.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.00223/0.4891, allocations: 0.737 MB / 0.6324 GB, free: 12.66 MB / 494.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0002708/0.4894, allocations: 268.1 kB / 0.6327 GB, free: 12.48 MB / 494.1 MB Notification: Performance of NFVerifyModel.verify: time 0.000622/0.49, allocations: 0.6082 MB / 0.6333 GB, free: 12.13 MB / 494.1 MB Notification: Performance of NFConvertDAE.convert: time 0.002476/0.4925, allocations: 1.725 MB / 0.635 GB, free: 11.29 MB / 494.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.779e-06/0.4925, allocations: 4 kB / 0.635 GB, free: 11.28 MB / 494.1 MB Notification: Performance of FrontEnd: time 1.192e-06/0.4926, allocations: 1.062 kB / 0.635 GB, free: 11.28 MB / 494.1 MB Notification: Performance of Transformations before backend: time 1.393e-05/0.4926, allocations: 0 / 0.635 GB, free: 11.28 MB / 494.1 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.002993/0.4956, allocations: 1.57 MB / 0.6365 GB, free: 10.09 MB / 494.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.626e-05/0.4956, allocations: 9.625 kB / 0.6365 GB, free: 10.09 MB / 494.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.00018/0.4958, allocations: 138.1 kB / 0.6366 GB, free: 9.973 MB / 494.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0003714/0.4962, allocations: 144.9 kB / 0.6368 GB, free: 9.898 MB / 494.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001018/0.4972, allocations: 0.6442 MB / 0.6374 GB, free: 9.348 MB / 494.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 6.404e-05/0.4973, allocations: 72.09 kB / 0.6375 GB, free: 9.316 MB / 494.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001517/0.4975, allocations: 96.89 kB / 0.6376 GB, free: 9.281 MB / 494.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.00179/0.4993, allocations: 1.079 MB / 0.6386 GB, free: 8.609 MB / 494.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.245e-05/0.4993, allocations: 0 / 0.6386 GB, free: 8.609 MB / 494.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 9.855e-05/0.4994, allocations: 42.75 kB / 0.6387 GB, free: 8.578 MB / 494.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.173e-05/0.4994, allocations: 21.75 kB / 0.6387 GB, free: 8.578 MB / 494.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001848/0.5013, allocations: 1.013 MB / 0.6397 GB, free: 8.086 MB / 494.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.005601/0.5069, allocations: 4.717 MB / 0.6443 GB, free: 3.73 MB / 494.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001919/0.5088, allocations: 0.9356 MB / 0.6452 GB, free: 3.215 MB / 494.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0008492/0.5097, allocations: 0.4885 MB / 0.6457 GB, free: 2.965 MB / 494.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.004327/0.514, allocations: 3.475 MB / 0.6491 GB, free: 15.54 MB / 0.4981 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.928e-05/0.5141, allocations: 52.19 kB / 0.6491 GB, free: 15.49 MB / 0.4981 GB Notification: Performance of pre-optimization done (n=108): time 2.715e-06/0.5141, allocations: 1.312 kB / 0.6491 GB, free: 15.49 MB / 0.4981 GB Notification: Performance of matching and sorting (n=122): time 0.01008/0.5242, allocations: 4.39 MB / 0.6534 GB, free: 12.66 MB / 0.4981 GB Notification: Performance of inlineWhenForInitialization (initialization): time 5.845e-05/0.5243, allocations: 94.64 kB / 0.6535 GB, free: 12.57 MB / 0.4981 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0008246/0.5251, allocations: 0.6454 MB / 0.6541 GB, free: 12.19 MB / 0.4981 GB Notification: Performance of collectPreVariables (initialization): time 8.409e-05/0.5252, allocations: 47.39 kB / 0.6542 GB, free: 12.14 MB / 0.4981 GB Notification: Performance of collectInitialEqns (initialization): time 0.0003762/0.5256, allocations: 421.1 kB / 0.6546 GB, free: 11.77 MB / 0.4981 GB Notification: Performance of collectInitialBindings (initialization): time 0.0003691/0.5259, allocations: 448 kB / 0.655 GB, free: 11.38 MB / 0.4981 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0003319/0.5263, allocations: 198.7 kB / 0.6552 GB, free: 11.26 MB / 0.4981 GB Notification: Performance of setup shared object (initialization): time 0.0001807/0.5265, allocations: 343.7 kB / 0.6555 GB, free: 10.93 MB / 0.4981 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.000905/0.5274, allocations: 421.7 kB / 0.6559 GB, free: 10.72 MB / 0.4981 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001007/0.5284, allocations: 0.5637 MB / 0.6565 GB, free: 10.35 MB / 0.4981 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.002029/0.5304, allocations: 1.044 MB / 0.6575 GB, free: 9.723 MB / 0.4981 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 6.573e-06/0.5304, allocations: 4.906 kB / 0.6575 GB, free: 9.719 MB / 0.4981 GB Notification: Performance of matching and sorting (n=144) (initialization): time 0.003071/0.5335, allocations: 1.497 MB / 0.6589 GB, free: 8.902 MB / 0.4981 GB Notification: Performance of prepare postOptimizeDAE: time 1.81e-05/0.5336, allocations: 6.625 kB / 0.659 GB, free: 8.902 MB / 0.4981 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.788e-06/0.5336, allocations: 2.375 kB / 0.659 GB, free: 8.902 MB / 0.4981 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.0009853/0.5346, allocations: 312 kB / 0.6593 GB, free: 8.707 MB / 0.4981 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0008459/0.5354, allocations: 231.6 kB / 0.6595 GB, free: 8.652 MB / 0.4981 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.009869/0.5453, allocations: 12.14 MB / 0.6713 GB, free: 12.35 MB / 0.5137 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.000826/0.5461, allocations: 51.91 kB / 0.6714 GB, free: 12.3 MB / 0.5137 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001103/0.5463, allocations: 47.98 kB / 0.6714 GB, free: 12.25 MB / 0.5137 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 16 * 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 (124): * Single equations (assignments): 116 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * 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.0004714/0.5467, allocations: 261.4 kB / 0.6717 GB, free: 11.99 MB / 0.5137 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002157/0.547, allocations: 103.3 kB / 0.6718 GB, free: 11.89 MB / 0.5137 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.003899/0.5509, allocations: 1.852 MB / 0.6736 GB, free: 9.988 MB / 0.5137 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.135e-05/0.5509, allocations: 12.14 kB / 0.6736 GB, free: 9.977 MB / 0.5137 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.46e-06/0.5509, allocations: 4 kB / 0.6736 GB, free: 9.973 MB / 0.5137 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.059e-05/0.5509, allocations: 15.95 kB / 0.6736 GB, free: 9.957 MB / 0.5137 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.005045/0.556, allocations: 2.852 MB / 0.6764 GB, free: 7.012 MB / 0.5137 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 7.123e-06/0.556, allocations: 4 kB / 0.6764 GB, free: 7.008 MB / 0.5137 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0008548/0.5569, allocations: 207.7 kB / 0.6766 GB, free: 6.805 MB / 0.5137 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.0009974/0.5579, allocations: 326.5 kB / 0.6769 GB, free: 6.461 MB / 0.5137 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 8.835e-05/0.558, allocations: 39.97 kB / 0.677 GB, free: 6.422 MB / 0.5137 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.009964/0.5679, allocations: 12.15 MB / 0.6888 GB, free: 9.152 MB / 0.5294 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.486e-06/0.568, allocations: 11.81 kB / 0.6888 GB, free: 9.141 MB / 0.5294 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.004285/0.5723, allocations: 2.155 MB / 0.6909 GB, free: 6.93 MB / 0.5294 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0002541/0.5725, allocations: 180.4 kB / 0.6911 GB, free: 6.734 MB / 0.5294 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001467/0.5727, allocations: 24 kB / 0.6911 GB, free: 6.711 MB / 0.5294 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0006935/0.5734, allocations: 55.95 kB / 0.6912 GB, free: 6.656 MB / 0.5294 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002522/0.5736, allocations: 112.8 kB / 0.6913 GB, free: 6.547 MB / 0.5294 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 9.955e-05/0.5737, allocations: 43.98 kB / 0.6913 GB, free: 6.504 MB / 0.5294 GB Notification: Performance of sorting global known variables: time 0.000624/0.5744, allocations: 495 kB / 0.6918 GB, free: 6.027 MB / 0.5294 GB Notification: Performance of sort global known variables: time 1.6e-07/0.5744, allocations: 0 / 0.6918 GB, free: 6.027 MB / 0.5294 GB Notification: Performance of remove unused functions: time 0.00142/0.5758, allocations: 451.5 kB / 0.6922 GB, free: 5.586 MB / 0.5294 GB 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 (104): * Single equations (assignments): 96 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * 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.005076/0.5809, allocations: 3.02 MB / 0.6952 GB, free: 2.504 MB / 0.5294 GB Notification: Performance of simCode: created initialization part: time 0.003486/0.5844, allocations: 2.086 MB / 0.6972 GB, free: 320 kB / 0.5294 GB Notification: Performance of simCode: created event and clocks part: time 3.747e-06/0.5844, allocations: 0 / 0.6972 GB, free: 320 kB / 0.5294 GB Notification: Performance of simCode: created simulation system equations: time 0.002411/0.5868, allocations: 1.605 MB / 0.6988 GB, free: 14.6 MB / 0.545 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001655/0.5885, allocations: 342.2 kB / 0.6991 GB, free: 14.27 MB / 0.545 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01582/0.6043, allocations: 9.582 MB / 0.7085 GB, free: 4.41 MB / 0.545 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0007213/0.6051, allocations: 1.056 MB / 0.7095 GB, free: 3.32 MB / 0.545 GB Notification: Performance of simCode: alias equations: time 0.0008094/0.6059, allocations: 230.5 kB / 0.7097 GB, free: 3.105 MB / 0.545 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0006757/0.6066, allocations: 435.3 kB / 0.7101 GB, free: 2.68 MB / 0.545 GB Notification: Performance of SimCode: time 7.11e-07/0.6066, allocations: 0 / 0.7101 GB, free: 2.68 MB / 0.545 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.09068/0.6973, allocations: 34.13 MB / 0.7435 GB, free: 0.875 MB / 0.5762 GB Notification: Performance of buildModelFMU: Generate platform static: time 13.83/14.53, allocations: 15.89 kB / 0.7435 GB, free: 0.8594 MB / 0.5762 GB (rm -f ThermofluidStream_ThermofluidStream.Undirected.Boundaries.Tests.Reservoir.pipe ; mkfifo ThermofluidStream_ThermofluidStream.Undirected.Boundaries.Tests.Reservoir.pipe ; head -c 1048576 < ThermofluidStream_ThermofluidStream.Undirected.Boundaries.Tests.Reservoir.pipe >> ../files/ThermofluidStream_ThermofluidStream.Undirected.Boundaries.Tests.Reservoir.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=ThermofluidStream_ThermofluidStream.Undirected.Boundaries.Tests.Reservoir_res.mat --tempDir=temp_ThermofluidStream_ThermofluidStream_Undirected_Boundaries_Tests_Reservoir_fmu --startTime=0 --stopTime=10 --timeout=1200 --tolerance=1e-06 ThermofluidStream_ThermofluidStream_Undirected_Boundaries_Tests_Reservoir.fmu > ThermofluidStream_ThermofluidStream.Undirected.Boundaries.Tests.Reservoir.pipe 2>&1) diffSimulationResults("ThermofluidStream_ThermofluidStream.Undirected.Boundaries.Tests.Reservoir_res.mat","/mnt/ReferenceFiles/ThermofluidStream-main-regression/ReferenceData/ThermofluidStream.Undirected.Boundaries.Tests.Reservoir_ref.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/ThermofluidStream_ThermofluidStream.Undirected.Boundaries.Tests.Reservoir.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches