Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr ThermofluidStream_ThermofluidStream.Processes.Tests.Flow_Resistance.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-main/package.mo", uses=false) Using package ThermofluidStream with version 1.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ThermofluidStream 1.1.0-main/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.Processes.Tests.Flow_Resistance,fileNamePrefix="ThermofluidStream_ThermofluidStream_Processes_Tests_Flow_Resistance",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(ThermofluidStream.Processes.Tests.Flow_Resistance,fileNamePrefix="ThermofluidStream_ThermofluidStream_Processes_Tests_Flow_Resistance",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.001486/0.001491, allocations: 108 kB / 15.61 MB, free: 152 kB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001601/0.001601, allocations: 194.7 kB / 16.53 MB, free: 6.664 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.42/1.42, allocations: 222.9 MB / 240.2 MB, free: 4.406 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ThermofluidStream 1.1.0-main/package.mo): time 0.6737/0.6737, allocations: 91.2 MB / 381.6 MB, free: 9.43 MB / 318.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001714/0.001714, allocations: 78.78 kB / 460.4 MB, free: 23.06 MB / 350.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1179/0.1196, allocations: 67.69 MB / 0.5157 GB, free: 10.12 MB / 398.1 MB Notification: Performance of NFInst.instantiate(ThermofluidStream.Processes.Tests.Flow_Resistance): time 0.4579/0.5775, allocations: 159.3 MB / 0.6712 GB, free: 10.47 MB / 494.1 MB Notification: Performance of NFInst.instExpressions: time 0.01199/0.5895, allocations: 11.04 MB / 0.682 GB, free: 1.504 MB / 494.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.001056/0.5906, allocations: 37.84 kB / 0.6821 GB, free: 1.488 MB / 494.1 MB Notification: Performance of NFTyping.typeComponents: time 0.001415/0.5921, allocations: 475 kB / 0.6825 GB, free: 1.098 MB / 494.1 MB Notification: Performance of NFTyping.typeBindings: time 0.00262/0.5947, allocations: 0.9574 MB / 0.6835 GB, free: 312 kB / 494.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.002166/0.5969, allocations: 0.7928 MB / 0.6842 GB, free: 15.71 MB / 0.4981 GB Notification: Performance of NFFlatten.flatten: time 0.001502/0.5984, allocations: 1.304 MB / 0.6855 GB, free: 14.95 MB / 0.4981 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0004142/0.5989, allocations: 221 kB / 0.6857 GB, free: 14.83 MB / 0.4981 GB Notification: Performance of NFEvalConstants.evaluate: time 0.001308/0.6002, allocations: 0.6302 MB / 0.6863 GB, free: 14.45 MB / 0.4981 GB Notification: Performance of NFSimplifyModel.simplify: time 0.001024/0.6012, allocations: 0.5661 MB / 0.6869 GB, free: 14.1 MB / 0.4981 GB Notification: Performance of NFPackage.collectConstants: time 0.0001989/0.6014, allocations: 57.97 kB / 0.6869 GB, free: 14.1 MB / 0.4981 GB Notification: Performance of NFFlatten.collectFunctions: time 0.003127/0.6046, allocations: 1.357 MB / 0.6883 GB, free: 13.47 MB / 0.4981 GB Notification: Performance of NFScalarize.scalarize: time 0.0002259/0.6048, allocations: 165.9 kB / 0.6884 GB, free: 13.33 MB / 0.4981 GB Notification: Performance of NFVerifyModel.verify: time 0.0006169/0.6054, allocations: 436.7 kB / 0.6888 GB, free: 13.04 MB / 0.4981 GB Notification: Performance of NFConvertDAE.convert: time 0.002966/0.6084, allocations: 1.418 MB / 0.6902 GB, free: 12.16 MB / 0.4981 GB Notification: Performance of FrontEnd - DAE generated: time 5.18e-06/0.6084, allocations: 1.812 kB / 0.6902 GB, free: 12.16 MB / 0.4981 GB Notification: Performance of FrontEnd: time 1.754e-06/0.6084, allocations: 4 kB / 0.6902 GB, free: 12.16 MB / 0.4981 GB Notification: Performance of Transformations before backend: time 3.491e-05/0.6085, allocations: 0 / 0.6902 GB, free: 12.16 MB / 0.4981 GB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 124 * Number of variables: 124 Notification: Performance of Generate backend data structure: time 0.002566/0.6111, allocations: 1.307 MB / 0.6915 GB, free: 11.12 MB / 0.4981 GB Notification: Performance of prepare preOptimizeDAE: time 4.152e-05/0.6111, allocations: 10.78 kB / 0.6915 GB, free: 11.12 MB / 0.4981 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001145/0.6112, allocations: 93.98 kB / 0.6916 GB, free: 11.04 MB / 0.4981 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.000234/0.6115, allocations: 105.8 kB / 0.6917 GB, free: 10.98 MB / 0.4981 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001246/0.6127, allocations: 0.6962 MB / 0.6924 GB, free: 10.41 MB / 0.4981 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.702e-05/0.6128, allocations: 37.44 kB / 0.6924 GB, free: 10.39 MB / 0.4981 GB Notification: Performance of preOpt expandDerOperator (simulation): time 8.62e-05/0.6129, allocations: 51.25 kB / 0.6925 GB, free: 10.38 MB / 0.4981 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0009144/0.6138, allocations: 0.5563 MB / 0.693 GB, free: 9.934 MB / 0.4981 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.854e-05/0.6138, allocations: 4 kB / 0.693 GB, free: 9.93 MB / 0.4981 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 4.593e-05/0.6139, allocations: 23.98 kB / 0.693 GB, free: 9.906 MB / 0.4981 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.502e-05/0.6139, allocations: 12 kB / 0.693 GB, free: 9.895 MB / 0.4981 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0007443/0.6146, allocations: 499.6 kB / 0.6935 GB, free: 9.406 MB / 0.4981 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.003175/0.6178, allocations: 2.478 MB / 0.6959 GB, free: 6.75 MB / 0.4981 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0005282/0.6184, allocations: 342.1 kB / 0.6963 GB, free: 6.379 MB / 0.4981 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0003437/0.6187, allocations: 221.5 kB / 0.6965 GB, free: 6.152 MB / 0.4981 GB Notification: Performance of preOpt evalFunc (simulation): time 0.002547/0.6213, allocations: 2.514 MB / 0.6989 GB, free: 3.312 MB / 0.4981 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.323e-05/0.6213, allocations: 46.48 kB / 0.699 GB, free: 3.258 MB / 0.4981 GB Notification: Performance of pre-optimization done (n=48): time 2.314e-06/0.6214, allocations: 0 / 0.699 GB, free: 3.258 MB / 0.4981 GB Notification: Performance of matching and sorting (n=48): time 0.002235/0.6236, allocations: 1.052 MB / 0.7 GB, free: 2.113 MB / 0.4981 GB Notification: Performance of inlineWhenForInitialization (initialization): time 7.765e-05/0.6237, allocations: 136.5 kB / 0.7001 GB, free: 1.949 MB / 0.4981 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001028/0.6247, allocations: 0.7718 MB / 0.7009 GB, free: 1.152 MB / 0.4981 GB Notification: Performance of collectPreVariables (initialization): time 3.45e-05/0.6248, allocations: 33.7 kB / 0.7009 GB, free: 1.113 MB / 0.4981 GB Notification: Performance of collectInitialEqns (initialization): time 0.0002851/0.6251, allocations: 384.6 kB / 0.7013 GB, free: 0.7305 MB / 0.4981 GB Notification: Performance of collectInitialBindings (initialization): time 0.0001184/0.6252, allocations: 169.5 kB / 0.7015 GB, free: 0.5625 MB / 0.4981 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001209/0.6253, allocations: 82.25 kB / 0.7015 GB, free: 488 kB / 0.4981 GB Notification: Performance of setup shared object (initialization): time 9.412e-05/0.6254, allocations: 330 kB / 0.7018 GB, free: 152 kB / 0.4981 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002079/0.6256, allocations: 121.1 kB / 0.702 GB, free: 28 kB / 0.4981 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002745/0.6259, allocations: 192.4 kB / 0.7021 GB, free: 15.82 MB / 0.5137 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0005065/0.6264, allocations: 348.5 kB / 0.7025 GB, free: 15.46 MB / 0.5137 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.767e-06/0.6264, allocations: 2.188 kB / 0.7025 GB, free: 15.46 MB / 0.5137 GB Notification: Performance of matching and sorting (n=56) (initialization): time 0.001234/0.6277, allocations: 0.6313 MB / 0.7031 GB, free: 14.81 MB / 0.5137 GB Notification: Performance of prepare postOptimizeDAE: time 1.974e-05/0.6277, allocations: 8 kB / 0.7031 GB, free: 14.8 MB / 0.5137 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.033e-06/0.6277, allocations: 3.938 kB / 0.7031 GB, free: 14.8 MB / 0.5137 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.0007605/0.6285, allocations: 203.4 kB / 0.7033 GB, free: 14.59 MB / 0.5137 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0006901/0.6292, allocations: 107.9 kB / 0.7034 GB, free: 14.48 MB / 0.5137 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.003004/0.6322, allocations: 4.64 MB / 0.7079 GB, free: 9.484 MB / 0.5137 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0004683/0.6327, allocations: 47.47 kB / 0.708 GB, free: 9.438 MB / 0.5137 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.341e-05/0.6328, allocations: 23.98 kB / 0.708 GB, free: 9.414 MB / 0.5137 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 8 * 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 (42): * Single equations (assignments): 37 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 1 * Torn equation systems: 4 * Mixed (continuous/discrete) equation systems: 0 Notification: Equation system details (not torn): * Constant Jacobian (size): 0 systems * Linear Jacobian (size,density): 0 systems * Non-linear Jacobian (size): 1 system {1} * Without analytic Jacobian (size): 0 systems Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 2 systems {(1,2,100.0%), (1,2,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 2 systems {(1,5), (1,5)} Notification: Performance of prepare postOptimizeDAE: time 0.0003212/0.6331, allocations: 211.1 kB / 0.7082 GB, free: 9.199 MB / 0.5137 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002321/0.6333, allocations: 86.88 kB / 0.7083 GB, free: 9.113 MB / 0.5137 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001363/0.6347, allocations: 0.7213 MB / 0.709 GB, free: 8.344 MB / 0.5137 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 7.354e-06/0.6347, allocations: 4 kB / 0.709 GB, free: 8.34 MB / 0.5137 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.923e-06/0.6347, allocations: 4 kB / 0.709 GB, free: 8.336 MB / 0.5137 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.253e-06/0.6347, allocations: 3.984 kB / 0.709 GB, free: 8.332 MB / 0.5137 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002123/0.6369, allocations: 1.474 MB / 0.7104 GB, free: 6.773 MB / 0.5137 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.569e-06/0.6369, allocations: 4 kB / 0.7104 GB, free: 6.77 MB / 0.5137 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.000179/0.6371, allocations: 55.91 kB / 0.7105 GB, free: 6.715 MB / 0.5137 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.0003703/0.6374, allocations: 139.3 kB / 0.7106 GB, free: 6.566 MB / 0.5137 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.803e-05/0.6375, allocations: 11.98 kB / 0.7106 GB, free: 6.555 MB / 0.5137 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.003842/0.6413, allocations: 5.792 MB / 0.7163 GB, free: 212 kB / 0.5137 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.799e-06/0.6414, allocations: 8.016 kB / 0.7163 GB, free: 204 kB / 0.5137 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001225/0.6426, allocations: 0.9488 MB / 0.7172 GB, free: 15.21 MB / 0.5294 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0002541/0.6429, allocations: 171.9 kB / 0.7174 GB, free: 15.02 MB / 0.5294 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001415/0.643, allocations: 15.91 kB / 0.7174 GB, free: 15.01 MB / 0.5294 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0004143/0.6434, allocations: 12 kB / 0.7174 GB, free: 15 MB / 0.5294 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 9.121e-05/0.6435, allocations: 47.81 kB / 0.7175 GB, free: 14.95 MB / 0.5294 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.618e-05/0.6436, allocations: 12 kB / 0.7175 GB, free: 14.94 MB / 0.5294 GB Notification: Performance of sorting global known variables: time 0.0007655/0.6443, allocations: 0.5949 MB / 0.7181 GB, free: 14.33 MB / 0.5294 GB Notification: Performance of sort global known variables: time 1.3e-07/0.6444, allocations: 0 / 0.7181 GB, free: 14.33 MB / 0.5294 GB Notification: Performance of remove unused functions: time 0.00104/0.6454, allocations: 308 kB / 0.7184 GB, free: 14.03 MB / 0.5294 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 8 * Number of states: 4 (flowResistance1.m_flow,flowResistance3.m_flow,flowResistance.m_flow,flowResistance2.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 (32): * Single equations (assignments): 28 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 4 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 4 systems {(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 Backend phase and start with SimCode phase: time 0.002026/0.6474, allocations: 1.864 MB / 0.7202 GB, free: 12.11 MB / 0.5294 GB Notification: Performance of simCode: created initialization part: time 0.001361/0.6488, allocations: 0.6182 MB / 0.7208 GB, free: 11.47 MB / 0.5294 GB Notification: Performance of simCode: created event and clocks part: time 3.696e-06/0.6488, allocations: 0 / 0.7208 GB, free: 11.47 MB / 0.5294 GB Notification: Performance of simCode: created simulation system equations: time 0.0007472/0.6496, allocations: 0.6238 MB / 0.7214 GB, free: 10.8 MB / 0.5294 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001767/0.6514, allocations: 301.5 kB / 0.7217 GB, free: 10.51 MB / 0.5294 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.009802/0.6612, allocations: 7.175 MB / 0.7287 GB, free: 3.008 MB / 0.5294 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004879/0.6617, allocations: 0.9539 MB / 0.7296 GB, free: 2.023 MB / 0.5294 GB Notification: Performance of simCode: alias equations: time 0.0004786/0.6622, allocations: 146.1 kB / 0.7298 GB, free: 1.883 MB / 0.5294 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0003858/0.6626, allocations: 335.3 kB / 0.7301 GB, free: 1.555 MB / 0.5294 GB Notification: Performance of SimCode: time 6.71e-07/0.6626, allocations: 0 / 0.7301 GB, free: 1.555 MB / 0.5294 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.05718/0.7198, allocations: 25.71 MB / 0.7552 GB, free: 8.09 MB / 0.5606 GB Notification: Performance of buildModelFMU: Generate platform static: time 12.27/12.99, allocations: 11.98 kB / 0.7552 GB, free: 8.078 MB / 0.5606 GB (rm -f ThermofluidStream_ThermofluidStream.Processes.Tests.Flow_Resistance.pipe ; mkfifo ThermofluidStream_ThermofluidStream.Processes.Tests.Flow_Resistance.pipe ; head -c 1048576 < ThermofluidStream_ThermofluidStream.Processes.Tests.Flow_Resistance.pipe >> ../files/ThermofluidStream_ThermofluidStream.Processes.Tests.Flow_Resistance.sim & python3 -m fmpy simulate --output-file ThermofluidStream_ThermofluidStream.Processes.Tests.Flow_Resistance_res.csv --start-time 0 --stop-time 10 --timeout 1200 --relative-tolerance 1e-06 --interface-type ModelExchange --solver CVode --output-interval 0.01 ThermofluidStream_ThermofluidStream_Processes_Tests_Flow_Resistance.fmu > ThermofluidStream_ThermofluidStream.Processes.Tests.Flow_Resistance.pipe 2>&1) diffSimulationResults("ThermofluidStream_ThermofluidStream.Processes.Tests.Flow_Resistance_res.csv","/mnt/ReferenceFiles/ThermofluidStream-main-regression/ReferenceData/ThermofluidStream.Processes.Tests.Flow_Resistance_ref.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/ThermofluidStream_ThermofluidStream.Processes.Tests.Flow_Resistance.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches