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-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.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.007999/0.007999, allocations: 97.62 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.001968/0.001968, allocations: 202.3 kB / 16.68 MB, free: 5.969 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.317/1.317, allocations: 222.9 MB / 240.4 MB, free: 4.332 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ThermofluidStream 1.1.0-main/package.mo): time 0.8968/0.8968, allocations: 91.19 MB / 381.7 MB, free: 9.328 MB / 318.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001431/0.001431, allocations: 84.05 kB / 0.5164 GB, free: 9.504 MB / 398.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1017/0.1031, allocations: 67.68 MB / 0.5825 GB, free: 5.746 MB / 462.1 MB Notification: Performance of NFInst.instantiate(ThermofluidStream.Examples.SimpleStream): time 0.796/0.8992, allocations: 284.6 MB / 0.8604 GB, free: 1.66 MB / 0.67 GB Notification: Performance of NFInst.instExpressions: time 0.02318/0.9224, allocations: 27.33 MB / 0.887 GB, free: 1.555 MB / 0.67 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.001046/0.9235, allocations: 47.56 kB / 0.8871 GB, free: 1.555 MB / 0.67 GB Notification: Performance of NFTyping.typeComponents: time 0.002811/0.9263, allocations: 1.445 MB / 0.8885 GB, free: 1.555 MB / 0.67 GB Notification: Performance of NFTyping.typeBindings: time 0.01041/0.9367, allocations: 4.73 MB / 0.8931 GB, free: 1.461 MB / 0.67 GB Notification: Performance of NFTyping.typeClassSections: time 0.004536/0.9413, allocations: 2.055 MB / 0.8951 GB, free: 1.395 MB / 0.67 GB Notification: Performance of NFFlatten.flatten: time 0.002559/0.9439, allocations: 2.235 MB / 0.8973 GB, free: 1.391 MB / 0.67 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0007967/0.9447, allocations: 0.627 MB / 0.8979 GB, free: 17.25 MB / 0.6856 GB Notification: Performance of NFEvalConstants.evaluate: time 0.002193/0.9469, allocations: 1.377 MB / 0.8993 GB, free: 17.24 MB / 0.6856 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0009098/0.9478, allocations: 0.9845 MB / 0.9002 GB, free: 17.24 MB / 0.6856 GB Notification: Performance of NFPackage.collectConstants: time 0.000167/0.948, allocations: 136.9 kB / 0.9004 GB, free: 17.24 MB / 0.6856 GB Notification: Performance of NFFlatten.collectFunctions: time 0.01428/0.9622, allocations: 8.9 MB / 0.9091 GB, free: 17.16 MB / 0.6856 GB Notification: Performance of NFScalarize.scalarize: time 0.0006962/0.963, allocations: 495 kB / 0.9095 GB, free: 17.16 MB / 0.6856 GB Notification: Performance of NFVerifyModel.verify: time 0.001158/0.9641, allocations: 0.843 MB / 0.9103 GB, free: 16.98 MB / 0.6856 GB Notification: Performance of NFConvertDAE.convert: time 0.01174/0.9759, allocations: 5.555 MB / 0.9158 GB, free: 16.39 MB / 0.6856 GB Notification: Performance of FrontEnd - DAE generated: time 5.159e-06/0.9759, allocations: 3.188 kB / 0.9158 GB, free: 16.39 MB / 0.6856 GB Notification: Performance of FrontEnd: time 1.714e-06/0.9759, allocations: 3.375 kB / 0.9158 GB, free: 16.39 MB / 0.6856 GB Notification: Performance of Transformations before backend: time 2.134e-05/0.976, allocations: 0 / 0.9158 GB, free: 16.39 MB / 0.6856 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.005586/0.9816, allocations: 2.781 MB / 0.9185 GB, free: 14.97 MB / 0.6856 GB Notification: Performance of prepare preOptimizeDAE: time 3.61e-05/0.9816, allocations: 9.562 kB / 0.9185 GB, free: 14.97 MB / 0.6856 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001917/0.9818, allocations: 183.4 kB / 0.9187 GB, free: 14.93 MB / 0.6856 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0003343/0.9821, allocations: 189 kB / 0.9189 GB, free: 14.83 MB / 0.6856 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001559/0.9837, allocations: 1.015 MB / 0.9199 GB, free: 14.45 MB / 0.6856 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 5.191e-05/0.9838, allocations: 89.5 kB / 0.9199 GB, free: 14.44 MB / 0.6856 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001632/0.9839, allocations: 119.6 kB / 0.9201 GB, free: 14.44 MB / 0.6856 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.002325/0.9863, allocations: 1.774 MB / 0.9218 GB, free: 14.11 MB / 0.6856 GB Notification: Performance of preOpt findStateOrder (simulation): time 3.128e-05/0.9863, allocations: 3.938 kB / 0.9218 GB, free: 14.11 MB / 0.6856 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001046/0.9864, allocations: 56.62 kB / 0.9218 GB, free: 14.1 MB / 0.6856 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0001188/0.9866, allocations: 110 kB / 0.9219 GB, free: 14.09 MB / 0.6856 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.002278/0.9888, allocations: 1.884 MB / 0.9238 GB, free: 13.81 MB / 0.6856 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.008236/0.9971, allocations: 7.975 MB / 0.9316 GB, free: 8.176 MB / 0.6856 GB Notification: Performance of preOpt comSubExp (simulation): time 0.001362/0.9985, allocations: 0.9157 MB / 0.9325 GB, free: 7.957 MB / 0.6856 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0008498/0.9994, allocations: 0.6886 MB / 0.9331 GB, free: 7.867 MB / 0.6856 GB Notification: Performance of preOpt evalFunc (simulation): time 0.001463/1.001, allocations: 2.35 MB / 0.9354 GB, free: 5.188 MB / 0.6856 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.564e-05/1.001, allocations: 46.97 kB / 0.9355 GB, free: 5.145 MB / 0.6856 GB Notification: Performance of pre-optimization done (n=101): time 3.517e-06/1.001, allocations: 0 / 0.9355 GB, free: 5.145 MB / 0.6856 GB Notification: Performance of matching and sorting (n=103): time 0.005997/1.007, allocations: 3.854 MB / 0.9392 GB, free: 4.051 MB / 0.6856 GB Notification: Performance of inlineWhenForInitialization (initialization): time 4.958e-05/1.007, allocations: 65.09 kB / 0.9393 GB, free: 3.98 MB / 0.6856 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0008959/1.008, allocations: 0.8062 MB / 0.9401 GB, free: 3.707 MB / 0.6856 GB Notification: Performance of collectPreVariables (initialization): time 7.712e-05/1.008, allocations: 38.89 kB / 0.9401 GB, free: 3.676 MB / 0.6856 GB Notification: Performance of collectInitialEqns (initialization): time 0.0003473/1.008, allocations: 0.6078 MB / 0.9407 GB, free: 3.363 MB / 0.6856 GB Notification: Performance of collectInitialBindings (initialization): time 0.0002738/1.009, allocations: 374 kB / 0.9411 GB, free: 3.09 MB / 0.6856 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002844/1.009, allocations: 183.4 kB / 0.9413 GB, free: 3.051 MB / 0.6856 GB Notification: Performance of setup shared object (initialization): time 0.0001165/1.009, allocations: 338.2 kB / 0.9416 GB, free: 2.734 MB / 0.6856 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0006804/1.01, allocations: 0.4977 MB / 0.9421 GB, free: 2.676 MB / 0.6856 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0007617/1.01, allocations: 0.583 MB / 0.9426 GB, free: 2.559 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.001637/1.012, allocations: 1.234 MB / 0.9438 GB, free: 2.336 MB / 0.6856 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.765e-06/1.012, allocations: 0 / 0.9438 GB, free: 2.336 MB / 0.6856 GB Notification: Performance of matching and sorting (n=111) (initialization): time 0.002408/1.015, allocations: 1.505 MB / 0.9453 GB, free: 1.5 MB / 0.6856 GB Notification: Performance of prepare postOptimizeDAE: time 1.757e-05/1.015, allocations: 8 kB / 0.9453 GB, free: 1.492 MB / 0.6856 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.394e-06/1.015, allocations: 96 / 0.9453 GB, free: 1.492 MB / 0.6856 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.0005646/1.015, allocations: 183.5 kB / 0.9455 GB, free: 1.348 MB / 0.6856 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0006814/1.016, allocations: 186.4 kB / 0.9457 GB, free: 1.184 MB / 0.6856 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002972/1.019, allocations: 2.695 MB / 0.9483 GB, free: 14.95 MB / 0.7012 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0005282/1.019, allocations: 26.39 kB / 0.9483 GB, free: 14.93 MB / 0.7012 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001437/1.02, allocations: 63.53 kB / 0.9484 GB, free: 14.88 MB / 0.7012 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 (95): * Single equations (assignments): 89 * 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.0005589/1.02, allocations: 338.2 kB / 0.9487 GB, free: 14.66 MB / 0.7012 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002307/1.02, allocations: 119.2 kB / 0.9488 GB, free: 14.54 MB / 0.7012 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.003379/1.024, allocations: 2.138 MB / 0.9509 GB, free: 13.05 MB / 0.7012 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.276e-05/1.024, allocations: 8 kB / 0.9509 GB, free: 13.04 MB / 0.7012 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.813e-06/1.024, allocations: 4 kB / 0.9509 GB, free: 13.04 MB / 0.7012 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.085e-05/1.024, allocations: 3.984 kB / 0.9509 GB, free: 13.04 MB / 0.7012 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.005073/1.029, allocations: 3.366 MB / 0.9542 GB, free: 9.988 MB / 0.7012 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.188e-05/1.029, allocations: 0 / 0.9542 GB, free: 9.988 MB / 0.7012 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0006639/1.03, allocations: 177.3 kB / 0.9544 GB, free: 9.824 MB / 0.7012 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.0005218/1.03, allocations: 179.2 kB / 0.9546 GB, free: 9.648 MB / 0.7012 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 8.653e-05/1.03, allocations: 42.39 kB / 0.9546 GB, free: 9.609 MB / 0.7012 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.00295/1.033, allocations: 2.704 MB / 0.9572 GB, free: 6.789 MB / 0.7012 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.867e-06/1.033, allocations: 3.938 kB / 0.9572 GB, free: 6.785 MB / 0.7012 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.003448/1.037, allocations: 2.36 MB / 0.9595 GB, free: 4.414 MB / 0.7012 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0002494/1.037, allocations: 184.3 kB / 0.9597 GB, free: 4.215 MB / 0.7012 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001626/1.037, allocations: 31.77 kB / 0.9597 GB, free: 4.188 MB / 0.7012 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0004675/1.038, allocations: 23.98 kB / 0.9598 GB, free: 4.164 MB / 0.7012 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001399/1.038, allocations: 88.88 kB / 0.9599 GB, free: 4.078 MB / 0.7012 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.000119/1.038, allocations: 63.97 kB / 0.9599 GB, free: 4.016 MB / 0.7012 GB Notification: Performance of sorting global known variables: time 0.0007354/1.039, allocations: 0.5748 MB / 0.9605 GB, free: 3.43 MB / 0.7012 GB Notification: Performance of sort global known variables: time 1.51e-07/1.039, allocations: 4 kB / 0.9605 GB, free: 3.426 MB / 0.7012 GB Notification: Performance of remove unused functions: time 0.002316/1.041, allocations: 0.939 MB / 0.9614 GB, free: 2.484 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.00625/1.047, allocations: 4.103 MB / 0.9654 GB, free: 14.45 MB / 0.7169 GB Notification: Performance of simCode: created initialization part: time 0.002392/1.05, allocations: 1.519 MB / 0.9669 GB, free: 12.93 MB / 0.7169 GB Notification: Performance of simCode: created event and clocks part: time 4.879e-06/1.05, allocations: 4 kB / 0.9669 GB, free: 12.93 MB / 0.7169 GB Notification: Performance of simCode: created simulation system equations: time 0.001341/1.051, allocations: 0.9251 MB / 0.9678 GB, free: 12.01 MB / 0.7169 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001845/1.053, allocations: 410.6 kB / 0.9682 GB, free: 11.62 MB / 0.7169 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01504/1.068, allocations: 10.56 MB / 0.9785 GB, free: 0.9844 MB / 0.7169 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0008273/1.069, allocations: 1.264 MB / 0.9797 GB, free: 15.69 MB / 0.7325 GB Notification: Performance of simCode: alias equations: time 0.001284/1.07, allocations: 0.6026 MB / 0.9803 GB, free: 15.09 MB / 0.7325 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0008062/1.071, allocations: 0.5969 MB / 0.9809 GB, free: 14.5 MB / 0.7325 GB Notification: Performance of SimCode: time 7.82e-07/1.071, allocations: 0 / 0.9809 GB, free: 14.5 MB / 0.7325 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.07905/1.15, allocations: 49.5 MB / 1.029 GB, free: 13.33 MB / 0.7794 GB Notification: Performance of buildModelFMU: Generate platform static: time 11.99/13.14, allocations: 3.125 kB / 1.029 GB, free: 13.33 MB / 0.7794 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