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/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.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.007845/0.007845, allocations: 97.56 kB / 15.73 MB, free: 6.039 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.001915/0.001916, allocations: 201.6 kB / 16.68 MB, free: 5.961 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.43/1.43, allocations: 222.9 MB / 240.4 MB, free: 4.312 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ThermofluidStream 1.1.0/package.mo): time 0.6691/0.6691, allocations: 89.46 MB / 380 MB, free: 10.96 MB / 318.1 MB Notification: Performance of FrontEnd - loaded program: time 0.002211/0.002211, allocations: 83.86 kB / 0.5139 GB, free: 11.77 MB / 398.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1313/0.1336, allocations: 67.29 MB / 0.5796 GB, free: 8.406 MB / 462.1 MB Notification: Performance of NFInst.instantiate(ThermofluidStream.Processes.Tests.Flow_Resistance): time 0.4662/0.5998, allocations: 159 MB / 0.7349 GB, free: 13.44 MB / 0.5762 GB Notification: Performance of NFInst.instExpressions: time 0.01321/0.6131, allocations: 10.96 MB / 0.7457 GB, free: 2.441 MB / 0.5762 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.0007602/0.6139, allocations: 15.88 kB / 0.7457 GB, free: 2.426 MB / 0.5762 GB Notification: Performance of NFTyping.typeComponents: time 0.001365/0.6153, allocations: 453.2 kB / 0.7461 GB, free: 1.98 MB / 0.5762 GB Notification: Performance of NFTyping.typeBindings: time 0.002574/0.6179, allocations: 0.897 MB / 0.747 GB, free: 1.078 MB / 0.5762 GB Notification: Performance of NFTyping.typeClassSections: time 0.002066/0.62, allocations: 0.7861 MB / 0.7477 GB, free: 296 kB / 0.5762 GB Notification: Performance of NFFlatten.flatten: time 0.001579/0.6216, allocations: 1.155 MB / 0.7489 GB, free: 15.13 MB / 0.5919 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0003519/0.6219, allocations: 215.9 kB / 0.7491 GB, free: 14.91 MB / 0.5919 GB Notification: Performance of NFEvalConstants.evaluate: time 0.001018/0.623, allocations: 0.5524 MB / 0.7496 GB, free: 14.35 MB / 0.5919 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0007248/0.6237, allocations: 0.5292 MB / 0.7501 GB, free: 13.82 MB / 0.5919 GB Notification: Performance of NFPackage.collectConstants: time 0.0001048/0.6238, allocations: 60 kB / 0.7502 GB, free: 13.76 MB / 0.5919 GB Notification: Performance of NFFlatten.collectFunctions: time 0.002951/0.6268, allocations: 1.369 MB / 0.7515 GB, free: 12.39 MB / 0.5919 GB Notification: Performance of NFScalarize.scalarize: time 0.0001411/0.6269, allocations: 143.4 kB / 0.7517 GB, free: 12.25 MB / 0.5919 GB Notification: Performance of NFVerifyModel.verify: time 0.0004042/0.6273, allocations: 393.9 kB / 0.752 GB, free: 11.86 MB / 0.5919 GB Notification: Performance of NFConvertDAE.convert: time 0.002224/0.6296, allocations: 1.288 MB / 0.7533 GB, free: 10.57 MB / 0.5919 GB Notification: Performance of FrontEnd - DAE generated: time 3.897e-06/0.6296, allocations: 0 / 0.7533 GB, free: 10.57 MB / 0.5919 GB Notification: Performance of FrontEnd: time 3.656e-06/0.6296, allocations: 3.984 kB / 0.7533 GB, free: 10.57 MB / 0.5919 GB Notification: Performance of Transformations before backend: time 1.568e-05/0.6296, allocations: 0 / 0.7533 GB, free: 10.57 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.001996/0.6316, allocations: 1.166 MB / 0.7544 GB, free: 9.348 MB / 0.5919 GB Notification: Performance of prepare preOptimizeDAE: time 4.288e-05/0.6317, allocations: 8.031 kB / 0.7544 GB, free: 9.34 MB / 0.5919 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001013/0.6318, allocations: 90.7 kB / 0.7545 GB, free: 9.242 MB / 0.5919 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001449/0.6319, allocations: 84.42 kB / 0.7546 GB, free: 9.16 MB / 0.5919 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.000684/0.6326, allocations: 0.4922 MB / 0.7551 GB, free: 8.629 MB / 0.5919 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.805e-05/0.6327, allocations: 41.56 kB / 0.7551 GB, free: 8.59 MB / 0.5919 GB Notification: Performance of preOpt expandDerOperator (simulation): time 8.606e-05/0.6328, allocations: 55.89 kB / 0.7552 GB, free: 8.535 MB / 0.5919 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0008638/0.6336, allocations: 0.5636 MB / 0.7557 GB, free: 7.938 MB / 0.5919 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.636e-05/0.6337, allocations: 0 / 0.7557 GB, free: 7.938 MB / 0.5919 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 4.347e-05/0.6337, allocations: 20 kB / 0.7558 GB, free: 7.918 MB / 0.5919 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.478e-05/0.6337, allocations: 16 kB / 0.7558 GB, free: 7.902 MB / 0.5919 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0007516/0.6345, allocations: 499.6 kB / 0.7562 GB, free: 7.414 MB / 0.5919 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.003105/0.6376, allocations: 2.413 MB / 0.7586 GB, free: 4.824 MB / 0.5919 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0005759/0.6382, allocations: 334.7 kB / 0.7589 GB, free: 4.461 MB / 0.5919 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0003252/0.6385, allocations: 231 kB / 0.7591 GB, free: 4.227 MB / 0.5919 GB Notification: Performance of preOpt evalFunc (simulation): time 0.002555/0.6411, allocations: 2.518 MB / 0.7616 GB, free: 1.383 MB / 0.5919 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.233e-05/0.6411, allocations: 46.48 kB / 0.7616 GB, free: 1.328 MB / 0.5919 GB Notification: Performance of pre-optimization done (n=48): time 2.134e-06/0.6412, allocations: 7.938 kB / 0.7617 GB, free: 1.32 MB / 0.5919 GB Notification: Performance of matching and sorting (n=48): time 0.002131/0.6433, allocations: 1.023 MB / 0.7627 GB, free: 212 kB / 0.5919 GB Notification: Performance of inlineWhenForInitialization (initialization): time 8.378e-05/0.6434, allocations: 136.5 kB / 0.7628 GB, free: 44 kB / 0.5919 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0008454/0.6442, allocations: 0.6096 MB / 0.7634 GB, free: 15.43 MB / 0.6075 GB Notification: Performance of collectPreVariables (initialization): time 3.751e-05/0.6443, allocations: 37.7 kB / 0.7634 GB, free: 15.38 MB / 0.6075 GB Notification: Performance of collectInitialEqns (initialization): time 0.0002696/0.6446, allocations: 308.8 kB / 0.7637 GB, free: 15.08 MB / 0.6075 GB Notification: Performance of collectInitialBindings (initialization): time 0.0001345/0.6447, allocations: 170.5 kB / 0.7639 GB, free: 14.91 MB / 0.6075 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001301/0.6449, allocations: 90.23 kB / 0.764 GB, free: 14.82 MB / 0.6075 GB Notification: Performance of setup shared object (initialization): time 0.0002259/0.6451, allocations: 370.8 kB / 0.7643 GB, free: 14.45 MB / 0.6075 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002184/0.6453, allocations: 125.7 kB / 0.7644 GB, free: 14.32 MB / 0.6075 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002833/0.6456, allocations: 200.4 kB / 0.7646 GB, free: 14.1 MB / 0.6075 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0005471/0.6462, allocations: 346.5 kB / 0.765 GB, free: 13.74 MB / 0.6075 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.544e-06/0.6462, allocations: 7.938 kB / 0.765 GB, free: 13.73 MB / 0.6075 GB Notification: Performance of matching and sorting (n=56) (initialization): time 0.001239/0.6474, allocations: 0.6051 MB / 0.7656 GB, free: 13.11 MB / 0.6075 GB Notification: Performance of prepare postOptimizeDAE: time 1.943e-05/0.6474, allocations: 8 kB / 0.7656 GB, free: 13.11 MB / 0.6075 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.723e-06/0.6475, allocations: 0 / 0.7656 GB, free: 13.11 MB / 0.6075 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.0008146/0.6483, allocations: 201.1 kB / 0.7658 GB, free: 12.9 MB / 0.6075 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0007037/0.649, allocations: 115.8 kB / 0.7659 GB, free: 12.79 MB / 0.6075 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.003868/0.6529, allocations: 4.655 MB / 0.7704 GB, free: 7.777 MB / 0.6075 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003923/0.6533, allocations: 47.66 kB / 0.7705 GB, free: 7.73 MB / 0.6075 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.544e-05/0.6533, allocations: 23.98 kB / 0.7705 GB, free: 7.707 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.0002746/0.6536, allocations: 186.2 kB / 0.7707 GB, free: 7.516 MB / 0.6075 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001638/0.6538, allocations: 76.47 kB / 0.7707 GB, free: 7.441 MB / 0.6075 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001306/0.6551, allocations: 0.6943 MB / 0.7714 GB, free: 6.695 MB / 0.6075 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 7.834e-06/0.6551, allocations: 8 kB / 0.7714 GB, free: 6.688 MB / 0.6075 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.566e-06/0.6551, allocations: 0 / 0.7714 GB, free: 6.688 MB / 0.6075 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 9.137e-06/0.6551, allocations: 7.938 kB / 0.7714 GB, free: 6.68 MB / 0.6075 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002062/0.6572, allocations: 1.42 MB / 0.7728 GB, free: 5.176 MB / 0.6075 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.757e-06/0.6572, allocations: 4.125 kB / 0.7728 GB, free: 5.172 MB / 0.6075 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001755/0.6574, allocations: 50.67 kB / 0.7729 GB, free: 5.125 MB / 0.6075 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.000406/0.6578, allocations: 131.3 kB / 0.773 GB, free: 4.984 MB / 0.6075 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.258e-05/0.6579, allocations: 20 kB / 0.773 GB, free: 4.965 MB / 0.6075 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.004811/0.6627, allocations: 5.793 MB / 0.7787 GB, free: 14.62 MB / 0.6231 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.898e-06/0.6627, allocations: 7.875 kB / 0.7787 GB, free: 14.61 MB / 0.6231 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001373/0.6641, allocations: 0.9409 MB / 0.7796 GB, free: 13.62 MB / 0.6231 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0002053/0.6643, allocations: 164.5 kB / 0.7797 GB, free: 13.44 MB / 0.6231 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001075/0.6644, allocations: 20.39 kB / 0.7798 GB, free: 13.42 MB / 0.6231 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0003589/0.6648, allocations: 8 kB / 0.7798 GB, free: 13.41 MB / 0.6231 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 8.724e-05/0.6649, allocations: 35.89 kB / 0.7798 GB, free: 13.38 MB / 0.6231 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.172e-05/0.6649, allocations: 23.98 kB / 0.7798 GB, free: 13.36 MB / 0.6231 GB Notification: Performance of sorting global known variables: time 0.0006705/0.6656, allocations: 499 kB / 0.7803 GB, free: 12.88 MB / 0.6231 GB Notification: Performance of sort global known variables: time 1.3e-07/0.6656, allocations: 0 / 0.7803 GB, free: 12.88 MB / 0.6231 GB Notification: Performance of remove unused functions: time 0.0009958/0.6666, allocations: 307.3 kB / 0.7806 GB, free: 12.57 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.002228/0.6688, allocations: 1.825 MB / 0.7824 GB, free: 10.69 MB / 0.6231 GB Notification: Performance of simCode: created initialization part: time 0.001339/0.6702, allocations: 0.6174 MB / 0.783 GB, free: 10.05 MB / 0.6231 GB Notification: Performance of simCode: created event and clocks part: time 6.783e-06/0.6702, allocations: 0 / 0.783 GB, free: 10.05 MB / 0.6231 GB Notification: Performance of simCode: created simulation system equations: time 0.0008796/0.6711, allocations: 0.6279 MB / 0.7836 GB, free: 9.371 MB / 0.6231 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001516/0.6726, allocations: 297.7 kB / 0.7839 GB, free: 9.098 MB / 0.6231 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.009144/0.6818, allocations: 6.045 MB / 0.7898 GB, free: 2.863 MB / 0.6231 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0005815/0.6824, allocations: 0.9063 MB / 0.7907 GB, free: 1.926 MB / 0.6231 GB Notification: Performance of simCode: alias equations: time 0.0003859/0.6828, allocations: 112.3 kB / 0.7908 GB, free: 1.82 MB / 0.6231 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0003556/0.6832, allocations: 251.4 kB / 0.791 GB, free: 1.574 MB / 0.6231 GB Notification: Performance of SimCode: time 5.51e-07/0.6832, allocations: 0 / 0.791 GB, free: 1.574 MB / 0.6231 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.06471/0.7479, allocations: 23.72 MB / 0.8142 GB, free: 10.1 MB / 0.6544 GB Notification: Performance of buildModelFMU: Generate platform static: time 13.11/13.86, allocations: 8 kB / 0.8142 GB, free: 10.09 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