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.007752/0.007752, allocations: 103.1 kB / 15.74 MB, free: 6.066 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.001783/0.001783, allocations: 192.7 kB / 16.67 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.459/1.459, allocations: 222.9 MB / 240.4 MB, free: 4.164 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ThermofluidStream 1.1.0-main/package.mo): time 0.7377/0.7377, allocations: 91.19 MB / 381.7 MB, free: 9.312 MB / 318.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001668/0.001668, allocations: 83.88 kB / 0.5164 GB, free: 9.473 MB / 398.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1386/0.1403, allocations: 67.68 MB / 0.5825 GB, free: 5.711 MB / 462.1 MB Notification: Performance of NFInst.instantiate(ThermofluidStream.Processes.Tests.Flow_Resistance): time 0.505/0.6453, allocations: 159.3 MB / 0.738 GB, free: 9.238 MB / 0.5762 GB Notification: Performance of NFInst.instExpressions: time 0.01423/0.6596, allocations: 11.04 MB / 0.7488 GB, free: 14.17 MB / 0.5919 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.001095/0.6607, allocations: 35.75 kB / 0.7488 GB, free: 14.13 MB / 0.5919 GB Notification: Performance of NFTyping.typeComponents: time 0.001491/0.6623, allocations: 480.9 kB / 0.7493 GB, free: 13.66 MB / 0.5919 GB Notification: Performance of NFTyping.typeBindings: time 0.003245/0.6655, allocations: 0.9825 MB / 0.7502 GB, free: 12.67 MB / 0.5919 GB Notification: Performance of NFTyping.typeClassSections: time 0.002678/0.6683, allocations: 0.7833 MB / 0.751 GB, free: 11.89 MB / 0.5919 GB Notification: Performance of NFFlatten.flatten: time 0.002121/0.6704, allocations: 1.314 MB / 0.7523 GB, free: 10.57 MB / 0.5919 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0004857/0.6709, allocations: 221.6 kB / 0.7525 GB, free: 10.34 MB / 0.5919 GB Notification: Performance of NFEvalConstants.evaluate: time 0.001659/0.6726, allocations: 0.6533 MB / 0.7531 GB, free: 9.684 MB / 0.5919 GB Notification: Performance of NFSimplifyModel.simplify: time 0.001024/0.6736, allocations: 0.5677 MB / 0.7537 GB, free: 9.113 MB / 0.5919 GB Notification: Performance of NFPackage.collectConstants: time 0.0002671/0.6739, allocations: 60 kB / 0.7537 GB, free: 9.055 MB / 0.5919 GB Notification: Performance of NFFlatten.collectFunctions: time 0.003456/0.6774, allocations: 1.361 MB / 0.7551 GB, free: 7.691 MB / 0.5919 GB Notification: Performance of NFScalarize.scalarize: time 0.0003014/0.6777, allocations: 163.1 kB / 0.7552 GB, free: 7.531 MB / 0.5919 GB Notification: Performance of NFVerifyModel.verify: time 0.0007317/0.6785, allocations: 437.5 kB / 0.7556 GB, free: 7.102 MB / 0.5919 GB Notification: Performance of NFConvertDAE.convert: time 0.003632/0.6821, allocations: 1.462 MB / 0.7571 GB, free: 5.637 MB / 0.5919 GB Notification: Performance of FrontEnd - DAE generated: time 5.47e-06/0.6822, allocations: 0 / 0.7571 GB, free: 5.637 MB / 0.5919 GB Notification: Performance of FrontEnd: time 1.663e-06/0.6822, allocations: 0 / 0.7571 GB, free: 5.637 MB / 0.5919 GB Notification: Performance of Transformations before backend: time 3.729e-05/0.6822, allocations: 4 kB / 0.7571 GB, free: 5.633 MB / 0.5919 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.002977/0.6852, allocations: 1.345 MB / 0.7584 GB, free: 4.23 MB / 0.5919 GB Notification: Performance of prepare preOptimizeDAE: time 5.627e-05/0.6853, allocations: 8.031 kB / 0.7584 GB, free: 4.223 MB / 0.5919 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001517/0.6854, allocations: 86.7 kB / 0.7585 GB, free: 4.129 MB / 0.5919 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0002808/0.6857, allocations: 112.2 kB / 0.7586 GB, free: 4.02 MB / 0.5919 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001563/0.6873, allocations: 0.7802 MB / 0.7593 GB, free: 3.199 MB / 0.5919 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.298e-05/0.6874, allocations: 41 kB / 0.7594 GB, free: 3.16 MB / 0.5919 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001013/0.6875, allocations: 48 kB / 0.7594 GB, free: 3.113 MB / 0.5919 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0009217/0.6884, allocations: 0.5597 MB / 0.76 GB, free: 2.52 MB / 0.5919 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.834e-05/0.6884, allocations: 0 / 0.76 GB, free: 2.52 MB / 0.5919 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 4.68e-05/0.6885, allocations: 24 kB / 0.76 GB, free: 2.496 MB / 0.5919 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.62e-05/0.6885, allocations: 16 kB / 0.76 GB, free: 2.48 MB / 0.5919 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0007843/0.6893, allocations: 495.6 kB / 0.7605 GB, free: 1.996 MB / 0.5919 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.003543/0.6929, allocations: 2.468 MB / 0.7629 GB, free: 15.35 MB / 0.6075 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0005655/0.6935, allocations: 346.1 kB / 0.7632 GB, free: 14.98 MB / 0.6075 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0003787/0.6939, allocations: 220.9 kB / 0.7634 GB, free: 14.75 MB / 0.6075 GB Notification: Performance of preOpt evalFunc (simulation): time 0.002904/0.6968, allocations: 2.511 MB / 0.7659 GB, free: 11.91 MB / 0.6075 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.388e-05/0.6969, allocations: 50.48 kB / 0.7659 GB, free: 11.86 MB / 0.6075 GB Notification: Performance of pre-optimization done (n=48): time 3.286e-06/0.6969, allocations: 0 / 0.7659 GB, free: 11.86 MB / 0.6075 GB Notification: Performance of matching and sorting (n=48): time 0.002307/0.6992, allocations: 1.051 MB / 0.767 GB, free: 10.71 MB / 0.6075 GB Notification: Performance of inlineWhenForInitialization (initialization): time 7.113e-05/0.6993, allocations: 144.5 kB / 0.7671 GB, free: 10.54 MB / 0.6075 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001068/0.7004, allocations: 0.7718 MB / 0.7679 GB, free: 9.746 MB / 0.6075 GB Notification: Performance of collectPreVariables (initialization): time 5.013e-05/0.7005, allocations: 37.7 kB / 0.7679 GB, free: 9.703 MB / 0.6075 GB Notification: Performance of collectInitialEqns (initialization): time 0.0003186/0.7008, allocations: 388.8 kB / 0.7683 GB, free: 9.32 MB / 0.6075 GB Notification: Performance of collectInitialBindings (initialization): time 0.0001544/0.7009, allocations: 182.4 kB / 0.7684 GB, free: 9.141 MB / 0.6075 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001364/0.7011, allocations: 82.25 kB / 0.7685 GB, free: 9.055 MB / 0.6075 GB Notification: Performance of setup shared object (initialization): time 0.0001143/0.7012, allocations: 326 kB / 0.7688 GB, free: 8.73 MB / 0.6075 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002258/0.7014, allocations: 117.1 kB / 0.7689 GB, free: 8.613 MB / 0.6075 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002783/0.7017, allocations: 204.4 kB / 0.7691 GB, free: 8.391 MB / 0.6075 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0005072/0.7022, allocations: 345.3 kB / 0.7695 GB, free: 8.035 MB / 0.6075 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.528e-06/0.7023, allocations: 0 / 0.7695 GB, free: 8.035 MB / 0.6075 GB Notification: Performance of matching and sorting (n=56) (initialization): time 0.001355/0.7036, allocations: 0.6395 MB / 0.7701 GB, free: 7.383 MB / 0.6075 GB Notification: Performance of prepare postOptimizeDAE: time 2.143e-05/0.7036, allocations: 4 kB / 0.7701 GB, free: 7.379 MB / 0.6075 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.059e-05/0.7037, allocations: 4 kB / 0.7701 GB, free: 7.375 MB / 0.6075 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.0007827/0.7045, allocations: 199.3 kB / 0.7703 GB, free: 7.168 MB / 0.6075 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0007006/0.7052, allocations: 107.9 kB / 0.7704 GB, free: 7.062 MB / 0.6075 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.003204/0.7084, allocations: 4.646 MB / 0.7749 GB, free: 2.059 MB / 0.6075 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0004959/0.7089, allocations: 51.59 kB / 0.775 GB, free: 2.008 MB / 0.6075 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.899e-05/0.709, allocations: 24.86 kB / 0.775 GB, free: 1.984 MB / 0.6075 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.0003229/0.7093, allocations: 198.3 kB / 0.7752 GB, free: 1.781 MB / 0.6075 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002815/0.7096, allocations: 91.39 kB / 0.7753 GB, free: 1.691 MB / 0.6075 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001352/0.711, allocations: 0.714 MB / 0.776 GB, free: 0.9258 MB / 0.6075 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 9.788e-06/0.711, allocations: 8 kB / 0.776 GB, free: 0.918 MB / 0.6075 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.191e-05/0.711, allocations: 144 / 0.776 GB, free: 0.918 MB / 0.6075 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.54e-05/0.7111, allocations: 12.06 kB / 0.776 GB, free: 0.9062 MB / 0.6075 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.00212/0.7132, allocations: 1.482 MB / 0.7774 GB, free: 15.34 MB / 0.6231 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 9.818e-06/0.7132, allocations: 6.125 kB / 0.7774 GB, free: 15.33 MB / 0.6231 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001922/0.7134, allocations: 55.97 kB / 0.7775 GB, free: 15.28 MB / 0.6231 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.0004065/0.7138, allocations: 127.2 kB / 0.7776 GB, free: 15.14 MB / 0.6231 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.232e-05/0.7139, allocations: 11.98 kB / 0.7776 GB, free: 15.13 MB / 0.6231 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.003956/0.7178, allocations: 5.782 MB / 0.7833 GB, free: 8.797 MB / 0.6231 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.657e-06/0.7179, allocations: 3.938 kB / 0.7833 GB, free: 8.793 MB / 0.6231 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001307/0.7192, allocations: 0.9769 MB / 0.7842 GB, free: 7.773 MB / 0.6231 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0002387/0.7194, allocations: 172.5 kB / 0.7844 GB, free: 7.586 MB / 0.6231 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001141/0.7196, allocations: 19.89 kB / 0.7844 GB, free: 7.566 MB / 0.6231 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0004037/0.72, allocations: 8.938 kB / 0.7844 GB, free: 7.559 MB / 0.6231 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 7.89e-05/0.7201, allocations: 44.05 kB / 0.7845 GB, free: 7.516 MB / 0.6231 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.953e-05/0.7201, allocations: 16 kB / 0.7845 GB, free: 7.5 MB / 0.6231 GB Notification: Performance of sorting global known variables: time 0.0007423/0.7209, allocations: 0.5949 MB / 0.7851 GB, free: 6.895 MB / 0.6231 GB Notification: Performance of sort global known variables: time 1.8e-07/0.7209, allocations: 7.938 kB / 0.7851 GB, free: 6.887 MB / 0.6231 GB Notification: Performance of remove unused functions: time 0.001005/0.7219, allocations: 307.3 kB / 0.7854 GB, free: 6.586 MB / 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.002037/0.7239, allocations: 1.867 MB / 0.7872 GB, free: 4.664 MB / 0.6231 GB Notification: Performance of simCode: created initialization part: time 0.001364/0.7253, allocations: 0.6101 MB / 0.7878 GB, free: 4.031 MB / 0.6231 GB Notification: Performance of simCode: created event and clocks part: time 4.138e-06/0.7253, allocations: 0 / 0.7878 GB, free: 4.031 MB / 0.6231 GB Notification: Performance of simCode: created simulation system equations: time 0.0007435/0.7261, allocations: 0.6313 MB / 0.7884 GB, free: 3.348 MB / 0.6231 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001667/0.7278, allocations: 311.2 kB / 0.7887 GB, free: 3.059 MB / 0.6231 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01092/0.7387, allocations: 6.788 MB / 0.7953 GB, free: 12.05 MB / 0.6387 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0005636/0.7393, allocations: 0.9656 MB / 0.7963 GB, free: 11.05 MB / 0.6387 GB Notification: Performance of simCode: alias equations: time 0.0005375/0.7399, allocations: 137.9 kB / 0.7964 GB, free: 10.92 MB / 0.6387 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0004122/0.7403, allocations: 339.3 kB / 0.7967 GB, free: 10.59 MB / 0.6387 GB Notification: Performance of SimCode: time 1.343e-06/0.7403, allocations: 0 / 0.7967 GB, free: 10.59 MB / 0.6387 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.06667/0.807, allocations: 26.01 MB / 0.8221 GB, free: 0.8359 MB / 0.6544 GB Notification: Performance of buildModelFMU: Generate platform static: time 14.18/14.98, allocations: 17.12 kB / 0.8221 GB, free: 0.8203 MB / 0.6544 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