Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr ThermofluidStream_dev_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_dev_ThermofluidStream_Examples_SimpleStream",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(ThermofluidStream.Examples.SimpleStream,fileNamePrefix="ThermofluidStream_dev_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.004704/0.004704, allocations: 100.4 kB / 15.73 MB, free: 5.953 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.001281/0.001281, allocations: 190.1 kB / 16.67 MB, free: 5.875 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.381/1.381, allocations: 222.9 MB / 240.4 MB, free: 15.09 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ThermofluidStream 1.1.0-main/package.mo): time 0.8618/0.8618, allocations: 93.7 MB / 384.2 MB, free: 5.262 MB / 302.1 MB Notification: Performance of FrontEnd - loaded program: time 0.002363/0.002363, allocations: 79.86 kB / 0.5199 GB, free: 1.141 MB / 446.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3105/0.3129, allocations: 68.25 MB / 0.5866 GB, free: 10.28 MB / 446.1 MB Notification: Performance of NFInst.instantiate(ThermofluidStream.Examples.SimpleStream): time 0.6084/0.9213, allocations: 284.6 MB / 0.8645 GB, free: 5.844 MB / 0.6075 GB Notification: Performance of NFInst.instExpressions: time 0.03526/0.9567, allocations: 27.35 MB / 0.8912 GB, free: 11.14 MB / 0.6387 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.001514/0.9582, allocations: 51.69 kB / 0.8913 GB, free: 11.09 MB / 0.6387 GB Notification: Performance of NFTyping.typeComponents: time 0.00392/0.9621, allocations: 1.384 MB / 0.8926 GB, free: 9.695 MB / 0.6387 GB Notification: Performance of NFTyping.typeBindings: time 0.01301/0.9752, allocations: 4.678 MB / 0.8972 GB, free: 5 MB / 0.6387 GB Notification: Performance of NFTyping.typeClassSections: time 0.005591/0.9808, allocations: 2.043 MB / 0.8992 GB, free: 2.949 MB / 0.6387 GB Notification: Performance of NFFlatten.flatten: time 0.003594/0.9845, allocations: 2.245 MB / 0.9014 GB, free: 0.6953 MB / 0.6387 GB Notification: Performance of NFFlatten.resolveConnections: time 0.001029/0.9855, allocations: 0.6312 MB / 0.902 GB, free: 36 kB / 0.6387 GB Notification: Performance of NFEvalConstants.evaluate: time 0.00291/0.9884, allocations: 1.366 MB / 0.9033 GB, free: 14.66 MB / 0.6544 GB Notification: Performance of NFSimplifyModel.simplify: time 0.001423/0.9899, allocations: 0.9881 MB / 0.9043 GB, free: 13.67 MB / 0.6544 GB Notification: Performance of NFPackage.collectConstants: time 0.0002461/0.9901, allocations: 140 kB / 0.9044 GB, free: 13.54 MB / 0.6544 GB Notification: Performance of NFFlatten.collectFunctions: time 0.01726/1.007, allocations: 8.898 MB / 0.9131 GB, free: 4.621 MB / 0.6544 GB Notification: Performance of NFScalarize.scalarize: time 0.0008651/1.008, allocations: 490.4 kB / 0.9136 GB, free: 4.141 MB / 0.6544 GB Notification: Performance of NFVerifyModel.verify: time 0.001378/1.01, allocations: 0.8396 MB / 0.9144 GB, free: 3.297 MB / 0.6544 GB Notification: Performance of NFConvertDAE.convert: time 0.01506/1.025, allocations: 5.558 MB / 0.9198 GB, free: 13.71 MB / 0.67 GB Notification: Performance of FrontEnd - DAE generated: time 9.618e-06/1.025, allocations: 4 kB / 0.9198 GB, free: 13.71 MB / 0.67 GB Notification: Performance of FrontEnd: time 1.753e-06/1.025, allocations: 3.938 kB / 0.9198 GB, free: 13.71 MB / 0.67 GB Notification: Performance of Transformations before backend: time 3.675e-05/1.025, allocations: 0 / 0.9198 GB, free: 13.71 MB / 0.67 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.006537/1.031, allocations: 2.798 MB / 0.9226 GB, free: 10.85 MB / 0.67 GB Notification: Performance of prepare preOptimizeDAE: time 4.796e-05/1.031, allocations: 8.031 kB / 0.9226 GB, free: 10.84 MB / 0.67 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0002322/1.032, allocations: 189.8 kB / 0.9228 GB, free: 10.64 MB / 0.67 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0003737/1.032, allocations: 186.8 kB / 0.9229 GB, free: 10.46 MB / 0.67 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001788/1.034, allocations: 1.017 MB / 0.9239 GB, free: 9.398 MB / 0.67 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 7.742e-05/1.034, allocations: 90.33 kB / 0.924 GB, free: 9.309 MB / 0.67 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001834/1.034, allocations: 116 kB / 0.9241 GB, free: 9.195 MB / 0.67 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.002814/1.037, allocations: 1.773 MB / 0.9259 GB, free: 7.383 MB / 0.67 GB Notification: Performance of preOpt findStateOrder (simulation): time 3.416e-05/1.037, allocations: 4 kB / 0.9259 GB, free: 7.379 MB / 0.67 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001069/1.037, allocations: 55.92 kB / 0.9259 GB, free: 7.324 MB / 0.67 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0001548/1.037, allocations: 114.3 kB / 0.926 GB, free: 7.211 MB / 0.67 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.002789/1.04, allocations: 1.876 MB / 0.9279 GB, free: 5.328 MB / 0.67 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.009873/1.05, allocations: 7.991 MB / 0.9357 GB, free: 12.5 MB / 0.6856 GB Notification: Performance of preOpt comSubExp (simulation): time 0.001561/1.052, allocations: 0.9127 MB / 0.9366 GB, free: 11.56 MB / 0.6856 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.001039/1.053, allocations: 0.6832 MB / 0.9372 GB, free: 10.88 MB / 0.6856 GB Notification: Performance of preOpt evalFunc (simulation): time 0.001807/1.055, allocations: 2.347 MB / 0.9395 GB, free: 8.012 MB / 0.6856 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.31e-05/1.055, allocations: 51.55 kB / 0.9396 GB, free: 7.949 MB / 0.6856 GB Notification: Performance of pre-optimization done (n=101): time 3.236e-06/1.055, allocations: 0 / 0.9396 GB, free: 7.949 MB / 0.6856 GB Notification: Performance of matching and sorting (n=103): time 0.007108/1.062, allocations: 3.865 MB / 0.9433 GB, free: 3.996 MB / 0.6856 GB Notification: Performance of inlineWhenForInitialization (initialization): time 4.977e-05/1.062, allocations: 64.41 kB / 0.9434 GB, free: 3.922 MB / 0.6856 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001109/1.063, allocations: 0.8013 MB / 0.9442 GB, free: 3.098 MB / 0.6856 GB Notification: Performance of collectPreVariables (initialization): time 8.714e-05/1.063, allocations: 49.69 kB / 0.9442 GB, free: 3.043 MB / 0.6856 GB Notification: Performance of collectInitialEqns (initialization): time 0.0004759/1.063, allocations: 0.6065 MB / 0.9448 GB, free: 2.43 MB / 0.6856 GB Notification: Performance of collectInitialBindings (initialization): time 0.0003159/1.064, allocations: 376.7 kB / 0.9452 GB, free: 2.059 MB / 0.6856 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0003196/1.064, allocations: 190.6 kB / 0.9454 GB, free: 1.863 MB / 0.6856 GB Notification: Performance of setup shared object (initialization): time 0.0001564/1.064, allocations: 337.9 kB / 0.9457 GB, free: 1.527 MB / 0.6856 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0007995/1.065, allocations: 0.5017 MB / 0.9462 GB, free: 1.027 MB / 0.6856 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0009006/1.066, allocations: 0.5763 MB / 0.9467 GB, free: 452 kB / 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.001963/1.068, allocations: 1.231 MB / 0.9479 GB, free: 15.18 MB / 0.7012 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.645e-06/1.068, allocations: 3.938 kB / 0.9479 GB, free: 15.18 MB / 0.7012 GB Notification: Performance of matching and sorting (n=111) (initialization): time 0.002742/1.071, allocations: 1.501 MB / 0.9494 GB, free: 13.66 MB / 0.7012 GB Notification: Performance of prepare postOptimizeDAE: time 2.301e-05/1.071, allocations: 8 kB / 0.9494 GB, free: 13.66 MB / 0.7012 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.636e-06/1.071, allocations: 0 / 0.9494 GB, free: 13.66 MB / 0.7012 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.000622/1.071, allocations: 169.5 kB / 0.9496 GB, free: 13.49 MB / 0.7012 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0006938/1.072, allocations: 187.7 kB / 0.9498 GB, free: 13.3 MB / 0.7012 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.003432/1.076, allocations: 2.704 MB / 0.9524 GB, free: 10.46 MB / 0.7012 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0005865/1.076, allocations: 27.95 kB / 0.9524 GB, free: 10.43 MB / 0.7012 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001642/1.076, allocations: 63.97 kB / 0.9525 GB, free: 10.37 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.0006467/1.077, allocations: 337.6 kB / 0.9528 GB, free: 10.03 MB / 0.7012 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002669/1.077, allocations: 119.2 kB / 0.9529 GB, free: 9.914 MB / 0.7012 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.003899/1.081, allocations: 2.138 MB / 0.955 GB, free: 7.758 MB / 0.7012 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.967e-05/1.081, allocations: 15.94 kB / 0.955 GB, free: 7.742 MB / 0.7012 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.61e-06/1.081, allocations: 0 / 0.955 GB, free: 7.742 MB / 0.7012 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.491e-05/1.081, allocations: 3.984 kB / 0.955 GB, free: 7.738 MB / 0.7012 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.005639/1.087, allocations: 3.362 MB / 0.9583 GB, free: 4.285 MB / 0.7012 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 8.957e-06/1.087, allocations: 4 kB / 0.9583 GB, free: 4.281 MB / 0.7012 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0006889/1.088, allocations: 183.8 kB / 0.9585 GB, free: 4.102 MB / 0.7012 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.0005912/1.088, allocations: 178.9 kB / 0.9587 GB, free: 3.926 MB / 0.7012 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001049/1.088, allocations: 39.97 kB / 0.9587 GB, free: 3.887 MB / 0.7012 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.003353/1.092, allocations: 2.695 MB / 0.9613 GB, free: 1.055 MB / 0.7012 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.983e-06/1.092, allocations: 0 / 0.9613 GB, free: 1.055 MB / 0.7012 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.003971/1.096, allocations: 2.364 MB / 0.9636 GB, free: 14.67 MB / 0.7169 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0003217/1.096, allocations: 180.4 kB / 0.9638 GB, free: 14.47 MB / 0.7169 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001544/1.096, allocations: 20 kB / 0.9638 GB, free: 14.45 MB / 0.7169 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.000471/1.097, allocations: 27.98 kB / 0.9639 GB, free: 14.43 MB / 0.7169 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001786/1.097, allocations: 88.77 kB / 0.9639 GB, free: 14.34 MB / 0.7169 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001441/1.097, allocations: 67.95 kB / 0.964 GB, free: 14.27 MB / 0.7169 GB Notification: Performance of sorting global known variables: time 0.0008336/1.098, allocations: 0.5869 MB / 0.9646 GB, free: 13.68 MB / 0.7169 GB Notification: Performance of sort global known variables: time 2e-07/1.098, allocations: 0 / 0.9646 GB, free: 13.68 MB / 0.7169 GB Notification: Performance of remove unused functions: time 0.002496/1.1, allocations: 0.9467 MB / 0.9655 GB, free: 12.73 MB / 0.7169 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.006991/1.107, allocations: 4.099 MB / 0.9695 GB, free: 8.598 MB / 0.7169 GB Notification: Performance of simCode: created initialization part: time 0.002789/1.11, allocations: 1.522 MB / 0.971 GB, free: 7.059 MB / 0.7169 GB Notification: Performance of simCode: created event and clocks part: time 6.623e-06/1.11, allocations: 4 kB / 0.971 GB, free: 7.055 MB / 0.7169 GB Notification: Performance of simCode: created simulation system equations: time 0.001538/1.112, allocations: 0.9259 MB / 0.9719 GB, free: 6.121 MB / 0.7169 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002/1.114, allocations: 420.9 kB / 0.9723 GB, free: 5.719 MB / 0.7169 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01699/1.131, allocations: 10.59 MB / 0.9826 GB, free: 10.96 MB / 0.7325 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0009925/1.132, allocations: 1.264 MB / 0.9839 GB, free: 9.668 MB / 0.7325 GB Notification: Performance of simCode: alias equations: time 0.001399/1.133, allocations: 0.6068 MB / 0.9845 GB, free: 9.062 MB / 0.7325 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0009042/1.134, allocations: 0.5969 MB / 0.9851 GB, free: 8.465 MB / 0.7325 GB Notification: Performance of SimCode: time 9.42e-07/1.134, allocations: 3.938 kB / 0.9851 GB, free: 8.461 MB / 0.7325 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.3747/1.509, allocations: 49.62 MB / 1.034 GB, free: 321.4 MB / 0.7637 GB Notification: Performance of buildModelFMU: Generate platform static: time 13.68/15.19, allocations: 2.422 kB / 1.034 GB, free: 321.4 MB / 0.7637 GB (rm -f ThermofluidStream_dev_ThermofluidStream.Examples.SimpleStream.pipe ; mkfifo ThermofluidStream_dev_ThermofluidStream.Examples.SimpleStream.pipe ; head -c 1048576 < ThermofluidStream_dev_ThermofluidStream.Examples.SimpleStream.pipe >> ../files/ThermofluidStream_dev_ThermofluidStream.Examples.SimpleStream.sim & python3 -m fmpy simulate --output-file ThermofluidStream_dev_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_dev_ThermofluidStream_Examples_SimpleStream.fmu > ThermofluidStream_dev_ThermofluidStream.Examples.SimpleStream.pipe 2>&1) diffSimulationResults("ThermofluidStream_dev_ThermofluidStream.Examples.SimpleStream_res.csv","/mnt/ReferenceFiles/ThermofluidStream-main-regression/ReferenceData/ThermofluidStream.Examples.SimpleStream_ref.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/ThermofluidStream_dev_ThermofluidStream.Examples.SimpleStream.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches