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.008123/0.008123, allocations: 97.11 kB / 15.73 MB, free: 5.988 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.001662/0.001662, allocations: 185 kB / 16.67 MB, free: 5.918 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.352/1.352, allocations: 222.9 MB / 240.4 MB, free: 4.316 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ThermofluidStream 1.1.0-main/package.mo): time 0.7508/0.7508, allocations: 91.18 MB / 381.7 MB, free: 9.371 MB / 318.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001557/0.001557, allocations: 75.88 kB / 0.5164 GB, free: 9.551 MB / 398.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1161/0.1176, allocations: 67.7 MB / 0.5825 GB, free: 5.777 MB / 462.1 MB Notification: Performance of NFInst.instantiate(ThermofluidStream.Examples.SimpleStream): time 0.938/1.056, allocations: 284.6 MB / 0.8604 GB, free: 1.652 MB / 0.67 GB Notification: Performance of NFInst.instExpressions: time 0.02546/1.081, allocations: 27.33 MB / 0.8871 GB, free: 1.547 MB / 0.67 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.001454/1.083, allocations: 44.59 kB / 0.8871 GB, free: 1.547 MB / 0.67 GB Notification: Performance of NFTyping.typeComponents: time 0.003309/1.086, allocations: 1.444 MB / 0.8885 GB, free: 1.547 MB / 0.67 GB Notification: Performance of NFTyping.typeBindings: time 0.0116/1.098, allocations: 4.736 MB / 0.8931 GB, free: 1.453 MB / 0.67 GB Notification: Performance of NFTyping.typeClassSections: time 0.004996/1.103, allocations: 2.057 MB / 0.8951 GB, free: 1.387 MB / 0.67 GB Notification: Performance of NFFlatten.flatten: time 0.003287/1.106, allocations: 2.235 MB / 0.8973 GB, free: 1.383 MB / 0.67 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0009925/1.107, allocations: 0.6354 MB / 0.8979 GB, free: 17.24 MB / 0.6856 GB Notification: Performance of NFEvalConstants.evaluate: time 0.002761/1.11, allocations: 1.373 MB / 0.8993 GB, free: 17.23 MB / 0.6856 GB Notification: Performance of NFSimplifyModel.simplify: time 0.001383/1.111, allocations: 0.9833 MB / 0.9002 GB, free: 17.23 MB / 0.6856 GB Notification: Performance of NFPackage.collectConstants: time 0.0002441/1.111, allocations: 138.2 kB / 0.9004 GB, free: 17.23 MB / 0.6856 GB Notification: Performance of NFFlatten.collectFunctions: time 0.01716/1.129, allocations: 8.901 MB / 0.9091 GB, free: 17.15 MB / 0.6856 GB Notification: Performance of NFScalarize.scalarize: time 0.0009113/1.13, allocations: 492.3 kB / 0.9095 GB, free: 17.14 MB / 0.6856 GB Notification: Performance of NFVerifyModel.verify: time 0.00152/1.131, allocations: 0.8401 MB / 0.9104 GB, free: 16.97 MB / 0.6856 GB Notification: Performance of NFConvertDAE.convert: time 0.0173/1.148, allocations: 5.559 MB / 0.9158 GB, free: 16.38 MB / 0.6856 GB Notification: Performance of FrontEnd - DAE generated: time 6.272e-06/1.148, allocations: 0 / 0.9158 GB, free: 16.38 MB / 0.6856 GB Notification: Performance of FrontEnd: time 2.084e-06/1.148, allocations: 0.9062 kB / 0.9158 GB, free: 16.38 MB / 0.6856 GB Notification: Performance of Transformations before backend: time 5.655e-05/1.149, allocations: 0 / 0.9158 GB, free: 16.38 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.00759/1.156, allocations: 2.781 MB / 0.9185 GB, free: 14.96 MB / 0.6856 GB Notification: Performance of prepare preOptimizeDAE: time 6.487e-05/1.156, allocations: 11.38 kB / 0.9185 GB, free: 14.96 MB / 0.6856 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0002839/1.157, allocations: 184.1 kB / 0.9187 GB, free: 14.91 MB / 0.6856 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0005337/1.157, allocations: 192.4 kB / 0.9189 GB, free: 14.82 MB / 0.6856 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001944/1.159, allocations: 1.013 MB / 0.9199 GB, free: 14.43 MB / 0.6856 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 8.312e-05/1.159, allocations: 88.41 kB / 0.9199 GB, free: 14.43 MB / 0.6856 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.000191/1.159, allocations: 119.1 kB / 0.9201 GB, free: 14.43 MB / 0.6856 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.002752/1.162, allocations: 1.777 MB / 0.9218 GB, free: 14.09 MB / 0.6856 GB Notification: Performance of preOpt findStateOrder (simulation): time 3.294e-05/1.162, allocations: 3.938 kB / 0.9218 GB, free: 14.09 MB / 0.6856 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 9.923e-05/1.162, allocations: 49.47 kB / 0.9218 GB, free: 14.09 MB / 0.6856 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0001337/1.162, allocations: 109.5 kB / 0.9219 GB, free: 14.07 MB / 0.6856 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.002491/1.165, allocations: 1.882 MB / 0.9238 GB, free: 13.8 MB / 0.6856 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.009823/1.175, allocations: 7.978 MB / 0.9316 GB, free: 8.164 MB / 0.6856 GB Notification: Performance of preOpt comSubExp (simulation): time 0.001646/1.176, allocations: 0.9119 MB / 0.9325 GB, free: 7.945 MB / 0.6856 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0009629/1.177, allocations: 0.6877 MB / 0.9331 GB, free: 7.859 MB / 0.6856 GB Notification: Performance of preOpt evalFunc (simulation): time 0.001949/1.179, allocations: 2.354 MB / 0.9354 GB, free: 5.172 MB / 0.6856 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.857e-05/1.179, allocations: 44.25 kB / 0.9355 GB, free: 5.133 MB / 0.6856 GB Notification: Performance of pre-optimization done (n=101): time 5.019e-06/1.179, allocations: 0 / 0.9355 GB, free: 5.133 MB / 0.6856 GB Notification: Performance of matching and sorting (n=103): time 0.007957/1.187, allocations: 3.863 MB / 0.9393 GB, free: 4.031 MB / 0.6856 GB Notification: Performance of inlineWhenForInitialization (initialization): time 5.829e-05/1.187, allocations: 60.34 kB / 0.9393 GB, free: 3.965 MB / 0.6856 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001606/1.189, allocations: 0.802 MB / 0.9401 GB, free: 3.691 MB / 0.6856 GB Notification: Performance of collectPreVariables (initialization): time 0.0001064/1.189, allocations: 44.67 kB / 0.9401 GB, free: 3.66 MB / 0.6856 GB Notification: Performance of collectInitialEqns (initialization): time 0.0004923/1.19, allocations: 0.6085 MB / 0.9407 GB, free: 3.348 MB / 0.6856 GB Notification: Performance of collectInitialBindings (initialization): time 0.0003463/1.19, allocations: 372.5 kB / 0.9411 GB, free: 3.07 MB / 0.6856 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0003537/1.19, allocations: 186.2 kB / 0.9413 GB, free: 3.031 MB / 0.6856 GB Notification: Performance of setup shared object (initialization): time 0.0001849/1.191, allocations: 341.5 kB / 0.9416 GB, free: 2.715 MB / 0.6856 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0007957/1.191, allocations: 0.5001 MB / 0.9421 GB, free: 2.652 MB / 0.6856 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0008924/1.192, allocations: 0.5759 MB / 0.9426 GB, free: 2.539 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.001965/1.194, allocations: 1.234 MB / 0.9438 GB, free: 2.316 MB / 0.6856 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.139e-06/1.194, allocations: 1.75 kB / 0.9438 GB, free: 2.316 MB / 0.6856 GB Notification: Performance of matching and sorting (n=111) (initialization): time 0.002692/1.197, allocations: 1.507 MB / 0.9453 GB, free: 1.516 MB / 0.6856 GB Notification: Performance of prepare postOptimizeDAE: time 2.337e-05/1.197, allocations: 7.984 kB / 0.9453 GB, free: 1.508 MB / 0.6856 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.548e-06/1.197, allocations: 4 kB / 0.9453 GB, free: 1.504 MB / 0.6856 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.0006593/1.198, allocations: 171.2 kB / 0.9455 GB, free: 1.367 MB / 0.6856 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0006639/1.198, allocations: 184.8 kB / 0.9457 GB, free: 1.203 MB / 0.6856 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.003253/1.202, allocations: 2.696 MB / 0.9483 GB, free: 14.96 MB / 0.7012 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0006493/1.202, allocations: 28.58 kB / 0.9483 GB, free: 14.95 MB / 0.7012 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001868/1.203, allocations: 63.59 kB / 0.9484 GB, free: 14.9 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.0006761/1.203, allocations: 332.9 kB / 0.9487 GB, free: 14.68 MB / 0.7012 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0003529/1.204, allocations: 119.3 kB / 0.9488 GB, free: 14.56 MB / 0.7012 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.00387/1.208, allocations: 2.141 MB / 0.9509 GB, free: 13.07 MB / 0.7012 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.875e-05/1.208, allocations: 12 kB / 0.9509 GB, free: 13.06 MB / 0.7012 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.052e-05/1.208, allocations: 4 kB / 0.9509 GB, free: 13.06 MB / 0.7012 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.433e-05/1.208, allocations: 3.984 kB / 0.9509 GB, free: 13.05 MB / 0.7012 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.006108/1.214, allocations: 3.361 MB / 0.9542 GB, free: 9.996 MB / 0.7012 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 8.146e-06/1.214, allocations: 7.984 kB / 0.9542 GB, free: 9.988 MB / 0.7012 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0006542/1.214, allocations: 175.5 kB / 0.9544 GB, free: 9.824 MB / 0.7012 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.0006094/1.215, allocations: 174.3 kB / 0.9546 GB, free: 9.652 MB / 0.7012 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001126/1.215, allocations: 47.97 kB / 0.9546 GB, free: 9.605 MB / 0.7012 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.003357/1.219, allocations: 2.695 MB / 0.9572 GB, free: 6.793 MB / 0.7012 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 6.282e-06/1.219, allocations: 7.922 kB / 0.9572 GB, free: 6.785 MB / 0.7012 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.004108/1.223, allocations: 2.35 MB / 0.9595 GB, free: 4.422 MB / 0.7012 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0004266/1.223, allocations: 194.9 kB / 0.9597 GB, free: 4.215 MB / 0.7012 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0002778/1.223, allocations: 27.94 kB / 0.9597 GB, free: 4.188 MB / 0.7012 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0006148/1.224, allocations: 30.09 kB / 0.9598 GB, free: 4.16 MB / 0.7012 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.000188/1.224, allocations: 80.88 kB / 0.9599 GB, free: 4.082 MB / 0.7012 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001646/1.224, allocations: 59.97 kB / 0.9599 GB, free: 4.023 MB / 0.7012 GB Notification: Performance of sorting global known variables: time 0.000915/1.225, allocations: 0.5826 MB / 0.9605 GB, free: 3.43 MB / 0.7012 GB Notification: Performance of sort global known variables: time 2.4e-07/1.225, allocations: 0 / 0.9605 GB, free: 3.43 MB / 0.7012 GB Notification: Performance of remove unused functions: time 0.002997/1.228, allocations: 0.9384 MB / 0.9614 GB, free: 2.492 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.007854/1.236, allocations: 4.106 MB / 0.9654 GB, free: 14.46 MB / 0.7169 GB Notification: Performance of simCode: created initialization part: time 0.002981/1.239, allocations: 1.525 MB / 0.9669 GB, free: 12.93 MB / 0.7169 GB Notification: Performance of simCode: created event and clocks part: time 4.649e-06/1.239, allocations: 4 kB / 0.9669 GB, free: 12.93 MB / 0.7169 GB Notification: Performance of simCode: created simulation system equations: time 0.001624/1.241, allocations: 0.9171 MB / 0.9678 GB, free: 12.02 MB / 0.7169 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002273/1.243, allocations: 418.5 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.01775/1.261, allocations: 10.55 MB / 0.9785 GB, free: 0.9883 MB / 0.7169 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001168/1.262, allocations: 1.256 MB / 0.9797 GB, free: 15.7 MB / 0.7325 GB Notification: Performance of simCode: alias equations: time 0.001445/1.264, allocations: 0.6135 MB / 0.9803 GB, free: 15.09 MB / 0.7325 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0009281/1.265, allocations: 0.593 MB / 0.9809 GB, free: 14.5 MB / 0.7325 GB Notification: Performance of SimCode: time 9.32e-07/1.265, allocations: 4 kB / 0.9809 GB, free: 14.5 MB / 0.7325 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.09126/1.356, allocations: 49.49 MB / 1.029 GB, free: 13.34 MB / 0.7794 GB Notification: Performance of buildModelFMU: Generate platform static: time 12.18/13.54, allocations: 6.906 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