Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr ThermofluidStream_dev_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_dev_ThermofluidStream_Processes_Tests_Flow_Resistance",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(ThermofluidStream.Processes.Tests.Flow_Resistance,fileNamePrefix="ThermofluidStream_dev_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.005724/0.005724, allocations: 97.27 kB / 15.73 MB, free: 6.047 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.00135/0.00135, allocations: 196.2 kB / 16.68 MB, free: 5.973 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.499/1.499, allocations: 222.9 MB / 240.4 MB, free: 4.309 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ThermofluidStream 1.1.0-main/package.mo): time 0.7507/0.7507, allocations: 93.72 MB / 384.3 MB, free: 6.906 MB / 318.1 MB Notification: Performance of FrontEnd - loaded program: time 0.002489/0.002489, allocations: 75.88 kB / 0.5199 GB, free: 6.297 MB / 398.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1381/0.1406, allocations: 68.26 MB / 0.5866 GB, free: 1.961 MB / 462.1 MB Notification: Performance of NFInst.instantiate(ThermofluidStream.Processes.Tests.Flow_Resistance): time 0.4902/0.6309, allocations: 159.3 MB / 0.7422 GB, free: 3.402 MB / 0.5762 GB Notification: Performance of NFInst.instExpressions: time 0.01573/0.6467, allocations: 11.08 MB / 0.753 GB, free: 8.281 MB / 0.5919 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.001018/0.6478, allocations: 47.69 kB / 0.753 GB, free: 8.234 MB / 0.5919 GB Notification: Performance of NFTyping.typeComponents: time 0.001708/0.6495, allocations: 480.9 kB / 0.7535 GB, free: 7.762 MB / 0.5919 GB Notification: Performance of NFTyping.typeBindings: time 0.003118/0.6527, allocations: 0.9981 MB / 0.7545 GB, free: 6.758 MB / 0.5919 GB Notification: Performance of NFTyping.typeClassSections: time 0.002525/0.6552, allocations: 0.7861 MB / 0.7552 GB, free: 5.969 MB / 0.5919 GB Notification: Performance of NFFlatten.flatten: time 0.002206/0.6575, allocations: 1.423 MB / 0.7566 GB, free: 4.539 MB / 0.5919 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0004685/0.658, allocations: 221.7 kB / 0.7568 GB, free: 4.312 MB / 0.5919 GB Notification: Performance of NFEvalConstants.evaluate: time 0.001542/0.6595, allocations: 0.6728 MB / 0.7575 GB, free: 3.637 MB / 0.5919 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0009373/0.6605, allocations: 0.5755 MB / 0.7581 GB, free: 3.059 MB / 0.5919 GB Notification: Performance of NFPackage.collectConstants: time 0.0001633/0.6607, allocations: 60 kB / 0.7581 GB, free: 3 MB / 0.5919 GB Notification: Performance of NFFlatten.collectFunctions: time 0.003243/0.6639, allocations: 1.353 MB / 0.7594 GB, free: 1.645 MB / 0.5919 GB Notification: Performance of NFScalarize.scalarize: time 0.0002633/0.6642, allocations: 167.1 kB / 0.7596 GB, free: 1.48 MB / 0.5919 GB Notification: Performance of NFVerifyModel.verify: time 0.0005741/0.6648, allocations: 449.3 kB / 0.76 GB, free: 1.039 MB / 0.5919 GB Notification: Performance of NFConvertDAE.convert: time 0.003151/0.6679, allocations: 1.485 MB / 0.7615 GB, free: 15.55 MB / 0.6075 GB Notification: Performance of FrontEnd - DAE generated: time 5.27e-06/0.668, allocations: 0 / 0.7615 GB, free: 15.55 MB / 0.6075 GB Notification: Performance of FrontEnd: time 1.483e-06/0.668, allocations: 0 / 0.7615 GB, free: 15.55 MB / 0.6075 GB Notification: Performance of Transformations before backend: time 2.055e-05/0.668, allocations: 0 / 0.7615 GB, free: 15.55 MB / 0.6075 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.002571/0.6706, allocations: 1.391 MB / 0.7628 GB, free: 14.1 MB / 0.6075 GB Notification: Performance of prepare preOptimizeDAE: time 4.674e-05/0.6707, allocations: 8.031 kB / 0.7629 GB, free: 14.09 MB / 0.6075 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.000108/0.6708, allocations: 90.7 kB / 0.7629 GB, free: 14 MB / 0.6075 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0002137/0.671, allocations: 112.2 kB / 0.763 GB, free: 13.89 MB / 0.6075 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001546/0.6726, allocations: 0.8151 MB / 0.7638 GB, free: 13.03 MB / 0.6075 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.929e-05/0.6726, allocations: 37 kB / 0.7639 GB, free: 13 MB / 0.6075 GB Notification: Performance of preOpt expandDerOperator (simulation): time 9.994e-05/0.6727, allocations: 55.95 kB / 0.7639 GB, free: 12.94 MB / 0.6075 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0009648/0.6737, allocations: 0.5636 MB / 0.7645 GB, free: 12.35 MB / 0.6075 GB Notification: Performance of preOpt findStateOrder (simulation): time 2.046e-05/0.6737, allocations: 3.984 kB / 0.7645 GB, free: 12.34 MB / 0.6075 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 4.704e-05/0.6738, allocations: 20 kB / 0.7645 GB, free: 12.32 MB / 0.6075 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.411e-05/0.6738, allocations: 12 kB / 0.7645 GB, free: 12.31 MB / 0.6075 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.000792/0.6746, allocations: 499.6 kB / 0.765 GB, free: 11.82 MB / 0.6075 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.003523/0.6781, allocations: 2.486 MB / 0.7674 GB, free: 9.16 MB / 0.6075 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0005929/0.6788, allocations: 346.1 kB / 0.7677 GB, free: 8.785 MB / 0.6075 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0003401/0.6791, allocations: 216.2 kB / 0.768 GB, free: 8.562 MB / 0.6075 GB Notification: Performance of preOpt evalFunc (simulation): time 0.002882/0.682, allocations: 2.515 MB / 0.7704 GB, free: 5.723 MB / 0.6075 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.288e-05/0.6821, allocations: 38.5 kB / 0.7704 GB, free: 5.676 MB / 0.6075 GB Notification: Performance of pre-optimization done (n=48): time 3.226e-06/0.6821, allocations: 0 / 0.7704 GB, free: 5.676 MB / 0.6075 GB Notification: Performance of matching and sorting (n=48): time 0.002366/0.6845, allocations: 1.06 MB / 0.7715 GB, free: 4.523 MB / 0.6075 GB Notification: Performance of inlineWhenForInitialization (initialization): time 8.545e-05/0.6846, allocations: 132.5 kB / 0.7716 GB, free: 4.363 MB / 0.6075 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001157/0.6858, allocations: 0.8175 MB / 0.7724 GB, free: 3.523 MB / 0.6075 GB Notification: Performance of collectPreVariables (initialization): time 5.966e-05/0.6858, allocations: 29.7 kB / 0.7724 GB, free: 3.488 MB / 0.6075 GB Notification: Performance of collectInitialEqns (initialization): time 0.0003553/0.6862, allocations: 413 kB / 0.7728 GB, free: 3.082 MB / 0.6075 GB Notification: Performance of collectInitialBindings (initialization): time 0.0001675/0.6864, allocations: 178.5 kB / 0.773 GB, free: 2.906 MB / 0.6075 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001402/0.6865, allocations: 82.19 kB / 0.7731 GB, free: 2.82 MB / 0.6075 GB Notification: Performance of setup shared object (initialization): time 0.0001405/0.6867, allocations: 326 kB / 0.7734 GB, free: 2.496 MB / 0.6075 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002352/0.6869, allocations: 121.1 kB / 0.7735 GB, free: 2.375 MB / 0.6075 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003072/0.6872, allocations: 204.6 kB / 0.7737 GB, free: 2.152 MB / 0.6075 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.000568/0.6878, allocations: 344.5 kB / 0.774 GB, free: 1.797 MB / 0.6075 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.548e-06/0.6878, allocations: 3 kB / 0.774 GB, free: 1.797 MB / 0.6075 GB Notification: Performance of matching and sorting (n=56) (initialization): time 0.001428/0.6892, allocations: 0.6402 MB / 0.7747 GB, free: 1.141 MB / 0.6075 GB Notification: Performance of prepare postOptimizeDAE: time 2.688e-05/0.6893, allocations: 11.98 kB / 0.7747 GB, free: 1.129 MB / 0.6075 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.135e-06/0.6893, allocations: 4.125 kB / 0.7747 GB, free: 1.125 MB / 0.6075 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.0008287/0.6901, allocations: 187.3 kB / 0.7748 GB, free: 0.9297 MB / 0.6075 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0007085/0.6909, allocations: 111.9 kB / 0.775 GB, free: 0.8203 MB / 0.6075 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.00373/0.6946, allocations: 4.649 MB / 0.7795 GB, free: 11.82 MB / 0.6231 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0004635/0.6951, allocations: 44.16 kB / 0.7795 GB, free: 11.77 MB / 0.6231 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.219e-05/0.6952, allocations: 24.06 kB / 0.7796 GB, free: 11.75 MB / 0.6231 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.0003247/0.6955, allocations: 201.6 kB / 0.7798 GB, free: 11.54 MB / 0.6231 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002204/0.6957, allocations: 99.34 kB / 0.7798 GB, free: 11.45 MB / 0.6231 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001421/0.6971, allocations: 0.7266 MB / 0.7806 GB, free: 10.68 MB / 0.6231 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 7.163e-06/0.6972, allocations: 4 kB / 0.7806 GB, free: 10.68 MB / 0.6231 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.164e-06/0.6972, allocations: 4 kB / 0.7806 GB, free: 10.67 MB / 0.6231 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 8.466e-06/0.6972, allocations: 0 / 0.7806 GB, free: 10.67 MB / 0.6231 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002197/0.6994, allocations: 1.507 MB / 0.782 GB, free: 9.082 MB / 0.6231 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.689e-06/0.6994, allocations: 144 / 0.782 GB, free: 9.082 MB / 0.6231 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001911/0.6996, allocations: 47.92 kB / 0.7821 GB, free: 9.035 MB / 0.6231 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.0004/0.7, allocations: 135.4 kB / 0.7822 GB, free: 8.891 MB / 0.6231 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.621e-05/0.7001, allocations: 16 kB / 0.7822 GB, free: 8.875 MB / 0.6231 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.004619/0.7047, allocations: 5.781 MB / 0.7879 GB, free: 2.535 MB / 0.6231 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.068e-06/0.7047, allocations: 4.969 kB / 0.7879 GB, free: 2.531 MB / 0.6231 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001481/0.7062, allocations: 0.977 MB / 0.7888 GB, free: 1.508 MB / 0.6231 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0002712/0.7065, allocations: 176.4 kB / 0.789 GB, free: 1.316 MB / 0.6231 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001136/0.7066, allocations: 19.94 kB / 0.789 GB, free: 1.297 MB / 0.6231 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0004052/0.7071, allocations: 8 kB / 0.789 GB, free: 1.289 MB / 0.6231 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 8.943e-05/0.7072, allocations: 47.83 kB / 0.7891 GB, free: 1.242 MB / 0.6231 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.03e-05/0.7072, allocations: 12 kB / 0.7891 GB, free: 1.23 MB / 0.6231 GB Notification: Performance of sorting global known variables: time 0.0008691/0.7081, allocations: 0.6159 MB / 0.7897 GB, free: 0.6055 MB / 0.6231 GB Notification: Performance of sort global known variables: time 1.5e-07/0.7081, allocations: 4 kB / 0.7897 GB, free: 0.6016 MB / 0.6231 GB Notification: Performance of remove unused functions: time 0.001075/0.7092, allocations: 315.2 kB / 0.79 GB, free: 300 kB / 0.6231 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.002392/0.7116, allocations: 1.87 MB / 0.7918 GB, free: 14.37 MB / 0.6387 GB Notification: Performance of simCode: created initialization part: time 0.001493/0.7131, allocations: 0.6135 MB / 0.7924 GB, free: 13.73 MB / 0.6387 GB Notification: Performance of simCode: created event and clocks part: time 4.779e-06/0.7131, allocations: 256 / 0.7924 GB, free: 13.73 MB / 0.6387 GB Notification: Performance of simCode: created simulation system equations: time 0.000853/0.714, allocations: 0.6279 MB / 0.793 GB, free: 13.05 MB / 0.6387 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001796/0.7158, allocations: 311.8 kB / 0.7933 GB, free: 12.75 MB / 0.6387 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01132/0.7271, allocations: 6.926 MB / 0.8001 GB, free: 5.613 MB / 0.6387 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0006415/0.7278, allocations: 0.9734 MB / 0.801 GB, free: 4.609 MB / 0.6387 GB Notification: Performance of simCode: alias equations: time 0.0005376/0.7284, allocations: 146 kB / 0.8012 GB, free: 4.469 MB / 0.6387 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0004729/0.7288, allocations: 351.3 kB / 0.8015 GB, free: 4.125 MB / 0.6387 GB Notification: Performance of SimCode: time 5.81e-07/0.7288, allocations: 0 / 0.8015 GB, free: 4.125 MB / 0.6387 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.07413/0.803, allocations: 26.47 MB / 0.8274 GB, free: 9.91 MB / 0.67 GB Notification: Performance of buildModelFMU: Generate platform static: time 15.51/16.31, allocations: 11.14 kB / 0.8274 GB, free: 9.902 MB / 0.67 GB (rm -f ThermofluidStream_dev_ThermofluidStream.Processes.Tests.Flow_Resistance.pipe ; mkfifo ThermofluidStream_dev_ThermofluidStream.Processes.Tests.Flow_Resistance.pipe ; head -c 1048576 < ThermofluidStream_dev_ThermofluidStream.Processes.Tests.Flow_Resistance.pipe >> ../files/ThermofluidStream_dev_ThermofluidStream.Processes.Tests.Flow_Resistance.sim & python3 -m fmpy simulate --output-file ThermofluidStream_dev_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_dev_ThermofluidStream_Processes_Tests_Flow_Resistance.fmu > ThermofluidStream_dev_ThermofluidStream.Processes.Tests.Flow_Resistance.pipe 2>&1) diffSimulationResults("ThermofluidStream_dev_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_dev_ThermofluidStream.Processes.Tests.Flow_Resistance.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches