Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr ThermofluidStream_ThermofluidStream.Examples.SimpleStream.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.Examples.SimpleStream,fileNamePrefix="ThermofluidStream_ThermofluidStream_Examples_SimpleStream",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(ThermofluidStream.Examples.SimpleStream,fileNamePrefix="ThermofluidStream_ThermofluidStream_Examples_SimpleStream",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.006524/0.006524, allocations: 101.1 kB / 15.73 MB, free: 6.004 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.001692/0.001692, allocations: 187 kB / 16.67 MB, free: 5.922 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.471/1.471, allocations: 222.9 MB / 240.4 MB, free: 15.07 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ThermofluidStream 1.1.0/package.mo): time 0.7793/0.7793, allocations: 89.47 MB / 380 MB, free: 8.566 MB / 302.1 MB Notification: Performance of FrontEnd - loaded program: time 0.002284/0.002284, allocations: 75.88 kB / 0.5139 GB, free: 7.164 MB / 446.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3345/0.3368, allocations: 67.3 MB / 0.5796 GB, free: 15.32 MB / 446.1 MB Notification: Performance of NFInst.instantiate(ThermofluidStream.Examples.SimpleStream): time 0.6638/1.001, allocations: 284.4 MB / 0.8573 GB, free: 15.17 MB / 0.6075 GB Notification: Performance of NFInst.instExpressions: time 0.03517/1.036, allocations: 27.28 MB / 0.884 GB, free: 5.203 MB / 0.6231 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.001474/1.037, allocations: 23.88 kB / 0.884 GB, free: 5.18 MB / 0.6231 GB Notification: Performance of NFTyping.typeComponents: time 0.003871/1.041, allocations: 1.384 MB / 0.8853 GB, free: 3.789 MB / 0.6231 GB Notification: Performance of NFTyping.typeBindings: time 0.01348/1.055, allocations: 4.611 MB / 0.8898 GB, free: 15.16 MB / 0.6387 GB Notification: Performance of NFTyping.typeClassSections: time 0.005866/1.061, allocations: 2.04 MB / 0.8918 GB, free: 13.11 MB / 0.6387 GB Notification: Performance of NFFlatten.flatten: time 0.00374/1.064, allocations: 2.112 MB / 0.8939 GB, free: 10.99 MB / 0.6387 GB Notification: Performance of NFFlatten.resolveConnections: time 0.001015/1.065, allocations: 0.6035 MB / 0.8945 GB, free: 10.38 MB / 0.6387 GB Notification: Performance of NFEvalConstants.evaluate: time 0.003011/1.069, allocations: 1.292 MB / 0.8958 GB, free: 9.078 MB / 0.6387 GB Notification: Performance of NFSimplifyModel.simplify: time 0.001483/1.07, allocations: 0.969 MB / 0.8967 GB, free: 8.105 MB / 0.6387 GB Notification: Performance of NFPackage.collectConstants: time 0.0002635/1.07, allocations: 136 kB / 0.8968 GB, free: 7.973 MB / 0.6387 GB Notification: Performance of NFFlatten.collectFunctions: time 0.01794/1.088, allocations: 8.898 MB / 0.9055 GB, free: 15.06 MB / 0.6544 GB Notification: Performance of NFScalarize.scalarize: time 0.0009076/1.089, allocations: 482.6 kB / 0.906 GB, free: 14.59 MB / 0.6544 GB Notification: Performance of NFVerifyModel.verify: time 0.001364/1.091, allocations: 0.801 MB / 0.9068 GB, free: 13.78 MB / 0.6544 GB Notification: Performance of NFConvertDAE.convert: time 0.01531/1.106, allocations: 5.418 MB / 0.9121 GB, free: 8.348 MB / 0.6544 GB Notification: Performance of FrontEnd - DAE generated: time 8.356e-06/1.106, allocations: 4 kB / 0.9121 GB, free: 8.344 MB / 0.6544 GB Notification: Performance of FrontEnd: time 1.734e-06/1.106, allocations: 4 kB / 0.9121 GB, free: 8.34 MB / 0.6544 GB Notification: Performance of Transformations before backend: time 2.692e-05/1.106, allocations: 0 / 0.9121 GB, free: 8.34 MB / 0.6544 GB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 314 * Number of variables: 314 Notification: Performance of Generate backend data structure: time 0.005899/1.112, allocations: 2.645 MB / 0.9146 GB, free: 5.633 MB / 0.6544 GB Notification: Performance of prepare preOptimizeDAE: time 5e-05/1.112, allocations: 8.031 kB / 0.9147 GB, free: 5.625 MB / 0.6544 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0002173/1.112, allocations: 185.8 kB / 0.9148 GB, free: 5.434 MB / 0.6544 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0003263/1.113, allocations: 174.9 kB / 0.915 GB, free: 5.262 MB / 0.6544 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001239/1.114, allocations: 0.7836 MB / 0.9158 GB, free: 4.434 MB / 0.6544 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 7.836e-05/1.114, allocations: 86.34 kB / 0.9158 GB, free: 4.348 MB / 0.6544 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001765/1.114, allocations: 119.9 kB / 0.916 GB, free: 4.23 MB / 0.6544 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.002671/1.117, allocations: 1.777 MB / 0.9177 GB, free: 2.414 MB / 0.6544 GB Notification: Performance of preOpt findStateOrder (simulation): time 3.103e-05/1.117, allocations: 0 / 0.9177 GB, free: 2.414 MB / 0.6544 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001036/1.117, allocations: 47.98 kB / 0.9177 GB, free: 2.367 MB / 0.6544 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0001462/1.117, allocations: 110.4 kB / 0.9178 GB, free: 2.258 MB / 0.6544 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.002678/1.12, allocations: 1.884 MB / 0.9197 GB, free: 372 kB / 0.6544 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.009373/1.129, allocations: 7.934 MB / 0.9274 GB, free: 7.586 MB / 0.67 GB Notification: Performance of preOpt comSubExp (simulation): time 0.001571/1.131, allocations: 0.9212 MB / 0.9283 GB, free: 6.637 MB / 0.67 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0009976/1.132, allocations: 0.6895 MB / 0.929 GB, free: 5.945 MB / 0.67 GB Notification: Performance of preOpt evalFunc (simulation): time 0.001843/1.134, allocations: 2.351 MB / 0.9313 GB, free: 3.074 MB / 0.67 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.925e-05/1.134, allocations: 43.56 kB / 0.9313 GB, free: 3.023 MB / 0.67 GB Notification: Performance of pre-optimization done (n=101): time 4.068e-06/1.134, allocations: 0 / 0.9313 GB, free: 3.023 MB / 0.67 GB Notification: Performance of matching and sorting (n=103): time 0.006822/1.14, allocations: 3.815 MB / 0.9351 GB, free: 15.12 MB / 0.6856 GB Notification: Performance of inlineWhenForInitialization (initialization): time 5.092e-05/1.141, allocations: 64.39 kB / 0.9351 GB, free: 15.05 MB / 0.6856 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0009121/1.141, allocations: 0.6609 MB / 0.9358 GB, free: 14.38 MB / 0.6856 GB Notification: Performance of collectPreVariables (initialization): time 7.916e-05/1.142, allocations: 45.7 kB / 0.9358 GB, free: 14.33 MB / 0.6856 GB Notification: Performance of collectInitialEqns (initialization): time 0.0004125/1.142, allocations: 0.5438 MB / 0.9363 GB, free: 13.78 MB / 0.6856 GB Notification: Performance of collectInitialBindings (initialization): time 0.0003062/1.142, allocations: 368.8 kB / 0.9367 GB, free: 13.41 MB / 0.6856 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0003197/1.143, allocations: 186.6 kB / 0.9369 GB, free: 13.23 MB / 0.6856 GB Notification: Performance of setup shared object (initialization): time 0.0001545/1.143, allocations: 341.9 kB / 0.9372 GB, free: 12.89 MB / 0.6856 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0007905/1.144, allocations: 0.4978 MB / 0.9377 GB, free: 12.39 MB / 0.6856 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0008875/1.144, allocations: 0.5802 MB / 0.9383 GB, free: 11.8 MB / 0.6856 GB Warning: It was not possible to determine if the initialization problem is consistent, because of not evaluable parameters/start values during compile time: thermalConduction.deltaE_system = $START.thermalConduction.deltaE_system (0.0 = $START.thermalConduction.deltaE_system) Notification: Performance of analyzeInitialSystem (initialization): time 0.001946/1.146, allocations: 1.242 MB / 0.9395 GB, free: 10.53 MB / 0.6856 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.725e-06/1.146, allocations: 0 / 0.9395 GB, free: 10.53 MB / 0.6856 GB Notification: Performance of matching and sorting (n=112) (initialization): time 0.002612/1.149, allocations: 1.493 MB / 0.9409 GB, free: 9.02 MB / 0.6856 GB Notification: Performance of prepare postOptimizeDAE: time 2.213e-05/1.149, allocations: 7.938 kB / 0.9409 GB, free: 9.012 MB / 0.6856 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.146e-05/1.149, allocations: 3.984 kB / 0.9409 GB, free: 9.008 MB / 0.6856 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.0006254/1.15, allocations: 172.7 kB / 0.9411 GB, free: 8.836 MB / 0.6856 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0006688/1.15, allocations: 183.8 kB / 0.9413 GB, free: 8.656 MB / 0.6856 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.003656/1.154, allocations: 2.709 MB / 0.9439 GB, free: 5.812 MB / 0.6856 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.000558/1.155, allocations: 24 kB / 0.9439 GB, free: 5.789 MB / 0.6856 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001683/1.155, allocations: 63.97 kB / 0.944 GB, free: 5.727 MB / 0.6856 GB Warning: The initial conditions are over specified. The following 1 initial equations are redundant, so they are removed from the initialization system: thermalConduction.deltaE_system = $START.thermalConduction.deltaE_system. Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 4 * 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 (96): * Single equations (assignments): 90 * Array equations: 5 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 1 system {(2,15,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of prepare postOptimizeDAE: time 0.0006414/1.155, allocations: 329.2 kB / 0.9443 GB, free: 5.398 MB / 0.6856 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002589/1.156, allocations: 95.39 kB / 0.9444 GB, free: 5.305 MB / 0.6856 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.00375/1.16, allocations: 2.13 MB / 0.9465 GB, free: 3.156 MB / 0.6856 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.344e-05/1.16, allocations: 8 kB / 0.9465 GB, free: 3.148 MB / 0.6856 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.933e-06/1.16, allocations: 4 kB / 0.9465 GB, free: 3.145 MB / 0.6856 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.523e-05/1.16, allocations: 7.984 kB / 0.9465 GB, free: 3.137 MB / 0.6856 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.005408/1.165, allocations: 3.311 MB / 0.9497 GB, free: 15.73 MB / 0.7012 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.671e-06/1.165, allocations: 0 / 0.9497 GB, free: 15.73 MB / 0.7012 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0006321/1.166, allocations: 175.8 kB / 0.9499 GB, free: 15.55 MB / 0.7012 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.0005959/1.166, allocations: 192.7 kB / 0.9501 GB, free: 15.36 MB / 0.7012 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 8.544e-05/1.166, allocations: 39.97 kB / 0.9501 GB, free: 15.32 MB / 0.7012 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.003412/1.17, allocations: 2.704 MB / 0.9528 GB, free: 12.49 MB / 0.7012 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.408e-06/1.17, allocations: 4.031 kB / 0.9528 GB, free: 12.48 MB / 0.7012 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.003788/1.174, allocations: 2.343 MB / 0.9551 GB, free: 10.12 MB / 0.7012 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0003246/1.174, allocations: 172.4 kB / 0.9552 GB, free: 9.93 MB / 0.7012 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001396/1.174, allocations: 16 kB / 0.9552 GB, free: 9.914 MB / 0.7012 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0004238/1.175, allocations: 23.98 kB / 0.9553 GB, free: 9.891 MB / 0.7012 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001753/1.175, allocations: 88.88 kB / 0.9554 GB, free: 9.805 MB / 0.7012 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001298/1.175, allocations: 59.97 kB / 0.9554 GB, free: 9.746 MB / 0.7012 GB Notification: Performance of sorting global known variables: time 0.0006726/1.176, allocations: 0.5068 MB / 0.9559 GB, free: 9.242 MB / 0.7012 GB Notification: Performance of sort global known variables: time 1.5e-07/1.176, allocations: 0 / 0.9559 GB, free: 9.242 MB / 0.7012 GB Notification: Performance of remove unused functions: time 0.00251/1.178, allocations: 0.9389 MB / 0.9568 GB, free: 8.301 MB / 0.7012 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 3 * Number of states: 4 (thermalConduction.h,heatCapacitor.T,flowResistance2.inlet.m_flow,flowResistance3.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 (91): * Single equations (assignments): 85 * Array equations: 5 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 1 system {(2,15,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of Backend phase and start with SimCode phase: time 0.006933/1.185, allocations: 4.075 MB / 0.9608 GB, free: 4.195 MB / 0.7012 GB Notification: Performance of simCode: created initialization part: time 0.002698/1.188, allocations: 1.534 MB / 0.9623 GB, free: 2.648 MB / 0.7012 GB Notification: Performance of simCode: created event and clocks part: time 6.171e-06/1.188, allocations: 4 kB / 0.9623 GB, free: 2.645 MB / 0.7012 GB Notification: Performance of simCode: created simulation system equations: time 0.001461/1.189, allocations: 0.9178 MB / 0.9632 GB, free: 1.715 MB / 0.7012 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001923/1.191, allocations: 404.4 kB / 0.9636 GB, free: 1.34 MB / 0.7012 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01581/1.207, allocations: 9.975 MB / 0.9733 GB, free: 7.203 MB / 0.7169 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0009193/1.208, allocations: 1.213 MB / 0.9745 GB, free: 5.953 MB / 0.7169 GB Notification: Performance of simCode: alias equations: time 0.00133/1.209, allocations: 0.5819 MB / 0.9751 GB, free: 5.371 MB / 0.7169 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.000781/1.21, allocations: 0.5344 MB / 0.9756 GB, free: 4.836 MB / 0.7169 GB Notification: Performance of SimCode: time 8.01e-07/1.21, allocations: 0 / 0.9756 GB, free: 4.836 MB / 0.7169 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.09829/1.308, allocations: 47.65 MB / 1.022 GB, free: 5.43 MB / 0.7637 GB Notification: Performance of buildModelFMU: Generate platform static: time 12.5/13.8, allocations: 7.938 kB / 1.022 GB, free: 5.422 MB / 0.7637 GB (rm -f ThermofluidStream_ThermofluidStream.Examples.SimpleStream.pipe ; mkfifo ThermofluidStream_ThermofluidStream.Examples.SimpleStream.pipe ; head -c 1048576 < ThermofluidStream_ThermofluidStream.Examples.SimpleStream.pipe >> ../files/ThermofluidStream_ThermofluidStream.Examples.SimpleStream.sim & python3 -m fmpy simulate --output-file ThermofluidStream_ThermofluidStream.Examples.SimpleStream_res.csv --start-time 0 --stop-time 100 --timeout 1200 --relative-tolerance 1e-06 --interface-type ModelExchange --solver CVode --output-interval 0.1 ThermofluidStream_ThermofluidStream_Examples_SimpleStream.fmu > ThermofluidStream_ThermofluidStream.Examples.SimpleStream.pipe 2>&1) diffSimulationResults("ThermofluidStream_ThermofluidStream.Examples.SimpleStream_res.csv","/mnt/ReferenceFiles/ThermofluidStream-main-regression/ReferenceData/ThermofluidStream.Examples.SimpleStream_ref.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/ThermofluidStream_ThermofluidStream.Examples.SimpleStream.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches