Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr ThermofluidStream_ThermofluidStream.FlowControl.Tests.PCV.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.FlowControl.Tests.PCV,fileNamePrefix="ThermofluidStream_ThermofluidStream_FlowControl_Tests_PCV",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(ThermofluidStream.FlowControl.Tests.PCV,fileNamePrefix="ThermofluidStream_ThermofluidStream_FlowControl_Tests_PCV",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.008697/0.008697, allocations: 97.23 kB / 15.73 MB, free: 6.484 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.001905/0.001905, allocations: 191.6 kB / 16.67 MB, free: 6.391 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.305 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ThermofluidStream 1.1.0-main/package.mo): time 0.7178/0.7178, allocations: 91.19 MB / 381.7 MB, free: 9.344 MB / 318.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001346/0.001346, allocations: 83.88 kB / 0.5164 GB, free: 9.48 MB / 398.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1417/0.1431, allocations: 67.68 MB / 0.5825 GB, free: 5.719 MB / 462.1 MB Notification: Performance of NFInst.instantiate(ThermofluidStream.FlowControl.Tests.PCV): time 0.5614/0.7046, allocations: 189.2 MB / 0.7672 GB, free: 11.07 MB / 0.6075 GB Notification: Performance of NFInst.instExpressions: time 0.02169/0.7263, allocations: 17.8 MB / 0.7846 GB, free: 9.219 MB / 0.6231 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.002084/0.7284, allocations: 63.56 kB / 0.7847 GB, free: 9.156 MB / 0.6231 GB Notification: Performance of NFTyping.typeComponents: time 0.002672/0.7311, allocations: 0.9975 MB / 0.7857 GB, free: 8.152 MB / 0.6231 GB Notification: Performance of NFTyping.typeBindings: time 0.006377/0.7375, allocations: 2.38 MB / 0.788 GB, free: 5.762 MB / 0.6231 GB Notification: Performance of NFTyping.typeClassSections: time 0.00458/0.7421, allocations: 1.844 MB / 0.7898 GB, free: 3.926 MB / 0.6231 GB Notification: Performance of NFFlatten.flatten: time 0.005026/0.7472, allocations: 3.546 MB / 0.7932 GB, free: 376 kB / 0.6231 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0007414/0.7479, allocations: 458.9 kB / 0.7937 GB, free: 15.89 MB / 0.6387 GB Notification: Performance of NFEvalConstants.evaluate: time 0.003137/0.7511, allocations: 1.56 MB / 0.7952 GB, free: 14.33 MB / 0.6387 GB Notification: Performance of NFSimplifyModel.simplify: time 0.00209/0.7532, allocations: 1.549 MB / 0.7967 GB, free: 12.77 MB / 0.6387 GB Notification: Performance of NFPackage.collectConstants: time 0.0002961/0.7535, allocations: 168 kB / 0.7969 GB, free: 12.61 MB / 0.6387 GB Notification: Performance of NFFlatten.collectFunctions: time 0.005577/0.7591, allocations: 2.566 MB / 0.7994 GB, free: 10.04 MB / 0.6387 GB Notification: Performance of NFScalarize.scalarize: time 0.0005012/0.7596, allocations: 450.1 kB / 0.7998 GB, free: 9.598 MB / 0.6387 GB Notification: Performance of NFVerifyModel.verify: time 0.001297/0.7609, allocations: 1.076 MB / 0.8009 GB, free: 8.516 MB / 0.6387 GB Notification: Performance of NFConvertDAE.convert: time 0.005211/0.7661, allocations: 3.239 MB / 0.804 GB, free: 5.266 MB / 0.6387 GB Notification: Performance of FrontEnd - DAE generated: time 4.388e-06/0.7661, allocations: 4 kB / 0.804 GB, free: 5.262 MB / 0.6387 GB Notification: Performance of FrontEnd: time 1.273e-06/0.7661, allocations: 0 / 0.804 GB, free: 5.262 MB / 0.6387 GB Notification: Performance of Transformations before backend: time 2.605e-05/0.7662, allocations: 4 kB / 0.804 GB, free: 5.258 MB / 0.6387 GB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 364 * Number of variables: 364 Notification: Performance of Generate backend data structure: time 0.004887/0.7711, allocations: 2.678 MB / 0.8066 GB, free: 2.52 MB / 0.6387 GB Notification: Performance of prepare preOptimizeDAE: time 4.634e-05/0.7711, allocations: 8.031 kB / 0.8067 GB, free: 2.512 MB / 0.6387 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0002488/0.7714, allocations: 211.1 kB / 0.8069 GB, free: 2.297 MB / 0.6387 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.000708/0.7721, allocations: 262.4 kB / 0.8071 GB, free: 2.039 MB / 0.6387 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.002473/0.7746, allocations: 1.304 MB / 0.8084 GB, free: 0.6836 MB / 0.6387 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 8.994e-05/0.7747, allocations: 110.9 kB / 0.8085 GB, free: 0.5742 MB / 0.6387 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0002274/0.7749, allocations: 155.9 kB / 0.8086 GB, free: 432 kB / 0.6387 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.002783/0.7777, allocations: 1.636 MB / 0.8102 GB, free: 14.73 MB / 0.6544 GB Notification: Performance of preOpt findStateOrder (simulation): time 3.141e-05/0.7778, allocations: 0 / 0.8102 GB, free: 14.73 MB / 0.6544 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001373/0.7779, allocations: 64 kB / 0.8103 GB, free: 14.66 MB / 0.6544 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.722e-05/0.7779, allocations: 36 kB / 0.8103 GB, free: 14.63 MB / 0.6544 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.00249/0.7804, allocations: 1.488 MB / 0.8118 GB, free: 13.14 MB / 0.6544 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.01036/0.7908, allocations: 7.162 MB / 0.8188 GB, free: 5.395 MB / 0.6544 GB Notification: Performance of preOpt comSubExp (simulation): time 0.002898/0.7937, allocations: 1.541 MB / 0.8203 GB, free: 3.805 MB / 0.6544 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.001207/0.795, allocations: 0.7622 MB / 0.821 GB, free: 3.035 MB / 0.6544 GB Notification: Performance of preOpt evalFunc (simulation): time 0.006612/0.8016, allocations: 5.947 MB / 0.8268 GB, free: 12.32 MB / 0.67 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.786e-05/0.8017, allocations: 71.3 kB / 0.8269 GB, free: 12.24 MB / 0.67 GB Notification: Performance of pre-optimization done (n=166): time 3.457e-06/0.8017, allocations: 0 / 0.8269 GB, free: 12.24 MB / 0.67 GB Notification: Performance of matching and sorting (n=166): time 0.006565/0.8082, allocations: 3.147 MB / 0.83 GB, free: 8.898 MB / 0.67 GB Notification: Performance of inlineWhenForInitialization (initialization): time 8.044e-05/0.8083, allocations: 179 kB / 0.8301 GB, free: 8.688 MB / 0.67 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001537/0.8099, allocations: 1.278 MB / 0.8314 GB, free: 7.402 MB / 0.67 GB Notification: Performance of collectPreVariables (initialization): time 0.0001196/0.81, allocations: 57.7 kB / 0.8314 GB, free: 7.34 MB / 0.67 GB Notification: Performance of collectInitialEqns (initialization): time 0.0005254/0.8105, allocations: 0.7892 MB / 0.8322 GB, free: 6.539 MB / 0.67 GB Notification: Performance of collectInitialBindings (initialization): time 0.0004683/0.811, allocations: 0.6003 MB / 0.8328 GB, free: 5.934 MB / 0.67 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0003795/0.8114, allocations: 287.5 kB / 0.8331 GB, free: 5.648 MB / 0.67 GB Notification: Performance of setup shared object (initialization): time 8.256e-05/0.8115, allocations: 305.1 kB / 0.8334 GB, free: 5.348 MB / 0.67 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0009212/0.8124, allocations: 499.8 kB / 0.8338 GB, free: 4.859 MB / 0.67 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001179/0.8136, allocations: 0.8289 MB / 0.8347 GB, free: 3.898 MB / 0.67 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.002198/0.8158, allocations: 1.433 MB / 0.8361 GB, free: 2.34 MB / 0.67 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 6.743e-06/0.8158, allocations: 4 kB / 0.8361 GB, free: 2.336 MB / 0.67 GB Notification: Performance of matching and sorting (n=216) (initialization): time 0.003439/0.8193, allocations: 1.873 MB / 0.8379 GB, free: 448 kB / 0.67 GB Notification: Performance of prepare postOptimizeDAE: time 2.297e-05/0.8193, allocations: 9 kB / 0.8379 GB, free: 440 kB / 0.67 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.643e-05/0.8193, allocations: 12 kB / 0.8379 GB, free: 428 kB / 0.67 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.0007311/0.8201, allocations: 228.1 kB / 0.8381 GB, free: 184 kB / 0.67 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.3465/1.167, allocations: 377.7 kB / 0.8385 GB, free: 223.8 MB / 0.67 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.005878/1.173, allocations: 7.67 MB / 0.846 GB, free: 217.1 MB / 0.67 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001678/1.174, allocations: 165.9 kB / 0.8461 GB, free: 217.1 MB / 0.67 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001982/1.174, allocations: 78.55 kB / 0.8462 GB, free: 217.1 MB / 0.67 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 42 * 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 (201): * Single equations (assignments): 196 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 5 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 5 systems {(1,3,100.0%), (1,3,100.0%), (1,3,100.0%), (1,3,100.0%), (1,3,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of prepare postOptimizeDAE: time 0.000819/1.175, allocations: 344.6 kB / 0.8465 GB, free: 217 MB / 0.67 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0005388/1.176, allocations: 201.6 kB / 0.8467 GB, free: 217 MB / 0.67 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.004923/1.181, allocations: 2.06 MB / 0.8487 GB, free: 216.3 MB / 0.67 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.804e-05/1.181, allocations: 21.16 kB / 0.8488 GB, free: 216.3 MB / 0.67 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.574e-05/1.181, allocations: 6.562 kB / 0.8488 GB, free: 216.3 MB / 0.67 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.5e-05/1.181, allocations: 8.625 kB / 0.8488 GB, free: 216.3 MB / 0.67 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.007619/1.188, allocations: 3.939 MB / 0.8526 GB, free: 214.4 MB / 0.67 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.057e-05/1.189, allocations: 2.188 kB / 0.8526 GB, free: 214.4 MB / 0.67 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001052/1.19, allocations: 266.3 kB / 0.8529 GB, free: 214.4 MB / 0.67 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.001827/1.191, allocations: 476.3 kB / 0.8533 GB, free: 214.2 MB / 0.67 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001364/1.192, allocations: 57.19 kB / 0.8534 GB, free: 214.2 MB / 0.67 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.005889/1.197, allocations: 9.96 MB / 0.8631 GB, free: 204.6 MB / 0.67 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.426e-06/1.197, allocations: 2.75 kB / 0.8631 GB, free: 204.6 MB / 0.67 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.00512/1.203, allocations: 2.905 MB / 0.866 GB, free: 203 MB / 0.67 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0006686/1.203, allocations: 284.1 kB / 0.8662 GB, free: 202.8 MB / 0.67 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.000242/1.204, allocations: 40.02 kB / 0.8663 GB, free: 202.8 MB / 0.67 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.00116/1.205, allocations: 55.44 kB / 0.8663 GB, free: 202.8 MB / 0.67 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0003945/1.205, allocations: 134.4 kB / 0.8664 GB, free: 202.7 MB / 0.67 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001568/1.205, allocations: 72.19 kB / 0.8665 GB, free: 202.7 MB / 0.67 GB Notification: Performance of sorting global known variables: time 0.001474/1.207, allocations: 0.8848 MB / 0.8674 GB, free: 202.4 MB / 0.67 GB Notification: Performance of sort global known variables: time 2.6e-07/1.207, allocations: 0 / 0.8674 GB, free: 202.4 MB / 0.67 GB Notification: Performance of remove unused functions: time 0.003359/1.21, allocations: 0.7811 MB / 0.8681 GB, free: 202.2 MB / 0.67 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 13 * Number of states: 13 (volumeFlex2.M,volumeFlex2.U_med,volumeFlex.M,volumeFlex.U_med,flowResistance.inlet.m_flow,volumeFlex1.M,volumeFlex1.U_med,volumeFlex3.M,volumeFlex3.U_med,flowResistance1.inlet.m_flow,pCV2.inlet.m_flow,pCV3.inlet.m_flow,pCV4.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 (140): * Single equations (assignments): 131 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 9 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 5 systems {(1,3,100.0%), (1,3,100.0%), (1,3,100.0%), (1,3,100.0%), (1,3,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 4 systems {(2,3), (2,3), (2,3), (2,3)} Notification: Performance of Backend phase and start with SimCode phase: time 0.006972/1.217, allocations: 4.094 MB / 0.8721 GB, free: 200.1 MB / 0.67 GB Notification: Performance of simCode: created initialization part: time 0.003829/1.221, allocations: 2.001 MB / 0.8741 GB, free: 199 MB / 0.67 GB Notification: Performance of simCode: created event and clocks part: time 1.181e-05/1.221, allocations: 1.031 kB / 0.8741 GB, free: 199 MB / 0.67 GB Notification: Performance of simCode: created simulation system equations: time 0.002627/1.224, allocations: 1.446 MB / 0.8755 GB, free: 198.2 MB / 0.67 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.003247/1.227, allocations: 0.6132 MB / 0.8761 GB, free: 198 MB / 0.67 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.02373/1.251, allocations: 14.33 MB / 0.8901 GB, free: 190.4 MB / 0.67 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001166/1.252, allocations: 1.336 MB / 0.8914 GB, free: 189.7 MB / 0.67 GB Notification: Performance of simCode: alias equations: time 0.001756/1.254, allocations: 346.8 kB / 0.8917 GB, free: 189.6 MB / 0.67 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0009434/1.255, allocations: 0.764 MB / 0.8925 GB, free: 189 MB / 0.67 GB Notification: Performance of SimCode: time 9.52e-07/1.255, allocations: 0 / 0.8925 GB, free: 189 MB / 0.67 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.09071/1.345, allocations: 54.15 MB / 0.9454 GB, free: 144.1 MB / 0.67 GB Notification: Performance of buildModelFMU: Generate platform static: time 16.1/17.44, allocations: 3.859 kB / 0.9454 GB, free: 144.1 MB / 0.67 GB (rm -f ThermofluidStream_ThermofluidStream.FlowControl.Tests.PCV.pipe ; mkfifo ThermofluidStream_ThermofluidStream.FlowControl.Tests.PCV.pipe ; head -c 1048576 < ThermofluidStream_ThermofluidStream.FlowControl.Tests.PCV.pipe >> ../files/ThermofluidStream_ThermofluidStream.FlowControl.Tests.PCV.sim & python3 -m fmpy simulate --output-file ThermofluidStream_ThermofluidStream.FlowControl.Tests.PCV_res.csv --start-time 0 --stop-time 1 --timeout 1200 --relative-tolerance 1e-06 --interface-type ModelExchange --solver CVode --output-interval 0.0004 ThermofluidStream_ThermofluidStream_FlowControl_Tests_PCV.fmu > ThermofluidStream_ThermofluidStream.FlowControl.Tests.PCV.pipe 2>&1) diffSimulationResults("ThermofluidStream_ThermofluidStream.FlowControl.Tests.PCV_res.csv","/mnt/ReferenceFiles/ThermofluidStream-main-regression/ReferenceData/ThermofluidStream.FlowControl.Tests.PCV_ref.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/ThermofluidStream_ThermofluidStream.FlowControl.Tests.PCV.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches