Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr ThermofluidStream_dev_ThermofluidStream.FlowControl.Tests.PCV.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.1.0+maint.om/package.mo): time 0.00142/0.00142, allocations: 110.4 kB / 18.94 MB, free: 2.949 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo): time 0.001803/0.001803, allocations: 217.9 kB / 22.25 MB, free: 5.129 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo): time 1.618/1.618, allocations: 230.6 MB / 256 MB, free: 7.953 MB / 206.1 MB " [Timeout remaining time 178] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ThermofluidStream main/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ThermofluidStream main/package.mo): time 0.9364/0.9364, allocations: 100.3 MB / 412.7 MB, free: 3.656 MB / 318.1 MB " [Timeout remaining time 179] Using package ThermofluidStream with version 1.2.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ThermofluidStream main/package.mo) Using package Modelica with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo) Using package Complex with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo) Using package ModelicaServices with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.1.0+maint.om/package.mo) Running command: "" <> buildModelFMU(ThermofluidStream.FlowControl.Tests.PCV,fileNamePrefix="ThermofluidStream_dev_ThermofluidStream_FlowControl_Tests_PCV",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(ThermofluidStream.FlowControl.Tests.PCV,fileNamePrefix="ThermofluidStream_dev_ThermofluidStream_FlowControl_Tests_PCV",fmuType="me",version="2.0",platforms={"static"}) [Timeout 660] "Notification: ThermofluidStream requested package Modelica of version 4.0.0. Modelica 4.1.0 is used instead which states that it is fully compatible without conversion script needed. Notification: ThermofluidStream requested package Complex of version 4.0.0. Complex 4.1.0 is used instead which states that it is fully compatible without conversion script needed. Notification: Performance of FrontEnd - loaded program: time 0.002749/0.002749, allocations: 89.59 kB / 0.5633 GB, free: 36.01 MB / 446.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1829/0.1856, allocations: 74.45 MB / 0.636 GB, free: 7.645 MB / 478.1 MB Notification: Performance of NFInst.instantiate(ThermofluidStream.FlowControl.Tests.PCV): time 0.8053/0.9909, allocations: 190.8 MB / 0.8223 GB, free: 11.92 MB / 0.5919 GB Notification: Performance of NFInst.instExpressions: time 0.03068/1.022, allocations: 17.97 MB / 0.8398 GB, free: 5.344 MB / 0.5919 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.004858/1.026, allocations: 99.28 kB / 0.8399 GB, free: 5.285 MB / 0.5919 GB Notification: Performance of NFTyping.typeComponents: time 0.004706/1.031, allocations: 0.9978 MB / 0.8409 GB, free: 4.613 MB / 0.5919 GB Notification: Performance of NFTyping.typeBindings: time 0.01152/1.043, allocations: 2.427 MB / 0.8433 GB, free: 3.055 MB / 0.5919 GB Notification: Performance of NFTyping.typeClassSections: time 0.007746/1.05, allocations: 1.876 MB / 0.8451 GB, free: 1.898 MB / 0.5919 GB Notification: Performance of NFFlatten.flatten: time 0.008767/1.059, allocations: 3.688 MB / 0.8487 GB, free: 15.81 MB / 0.6075 GB Notification: Performance of NFFlatten.resolveConnections: time 0.001311/1.06, allocations: 270.8 kB / 0.849 GB, free: 15.64 MB / 0.6075 GB Notification: Performance of NFEvalConstants.evaluate: time 0.005656/1.066, allocations: 1.645 MB / 0.8506 GB, free: 14.78 MB / 0.6075 GB Notification: Performance of NFSimplifyModel.simplify: time 0.004217/1.07, allocations: 1.594 MB / 0.8521 GB, free: 13.92 MB / 0.6075 GB Notification: Performance of NFPackage.collectConstants: time 0.001104/1.071, allocations: 167.7 kB / 0.8523 GB, free: 13.92 MB / 0.6075 GB Notification: Performance of NFFlatten.collectFunctions: time 0.009482/1.081, allocations: 2.63 MB / 0.8548 GB, free: 12.97 MB / 0.6075 GB Notification: Performance of NFScalarize.scalarize: time 0.001675/1.083, allocations: 461.3 kB / 0.8553 GB, free: 12.6 MB / 0.6075 GB Notification: Performance of NFVerifyModel.verify: time 0.003813/1.086, allocations: 1.084 MB / 0.8563 GB, free: 11.89 MB / 0.6075 GB Notification: Performance of NFConvertDAE.convert: time 0.01241/1.099, allocations: 3.272 MB / 0.8595 GB, free: 9.934 MB / 0.6075 GB Notification: Performance of FrontEnd - DAE generated: time 6.452e-06/1.099, allocations: 0 / 0.8595 GB, free: 9.934 MB / 0.6075 GB Notification: Performance of FrontEnd: time 1.593e-06/1.099, allocations: 0 / 0.8595 GB, free: 9.934 MB / 0.6075 GB Notification: Performance of Transformations before backend: time 0.0001364/1.099, allocations: 0 / 0.8595 GB, free: 9.934 MB / 0.6075 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.009122/1.108, allocations: 2.626 MB / 0.8621 GB, free: 7.305 MB / 0.6075 GB Notification: Performance of prepare preOptimizeDAE: time 6.532e-05/1.108, allocations: 12.03 kB / 0.8621 GB, free: 7.293 MB / 0.6075 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0004428/1.109, allocations: 207.2 kB / 0.8623 GB, free: 7.082 MB / 0.6075 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.001415/1.11, allocations: 266.4 kB / 0.8626 GB, free: 6.82 MB / 0.6075 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.004147/1.114, allocations: 1.235 MB / 0.8638 GB, free: 5.578 MB / 0.6075 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001379/1.114, allocations: 110.9 kB / 0.8639 GB, free: 5.469 MB / 0.6075 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0004906/1.115, allocations: 148 kB / 0.864 GB, free: 5.324 MB / 0.6075 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.004277/1.119, allocations: 1.655 MB / 0.8656 GB, free: 3.613 MB / 0.6075 GB Notification: Performance of preOpt findStateOrder (simulation): time 3.298e-05/1.119, allocations: 0 / 0.8656 GB, free: 3.613 MB / 0.6075 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0003394/1.119, allocations: 64 kB / 0.8657 GB, free: 3.551 MB / 0.6075 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.019e-05/1.119, allocations: 36 kB / 0.8657 GB, free: 3.516 MB / 0.6075 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.003662/1.123, allocations: 1.52 MB / 0.8672 GB, free: 1.992 MB / 0.6075 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.01568/1.139, allocations: 7.072 MB / 0.8741 GB, free: 10.42 MB / 0.6231 GB Notification: Performance of preOpt comSubExp (simulation): time 0.003611/1.142, allocations: 1.439 MB / 0.8755 GB, free: 8.941 MB / 0.6231 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.001328/1.144, allocations: 0.656 MB / 0.8762 GB, free: 8.27 MB / 0.6231 GB Notification: Performance of preOpt evalFunc (simulation): time 0.007115/1.151, allocations: 2.949 MB / 0.8791 GB, free: 5.34 MB / 0.6231 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 8.036e-05/1.151, allocations: 59.75 kB / 0.8791 GB, free: 5.273 MB / 0.6231 GB Notification: Performance of pre-optimization done (n=166): time 4.258e-06/1.151, allocations: 0 / 0.8791 GB, free: 5.273 MB / 0.6231 GB Notification: Performance of matching and sorting (n=166): time 0.007981/1.159, allocations: 2.476 MB / 0.8815 GB, free: 2.773 MB / 0.6231 GB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0002258/1.159, allocations: 175 kB / 0.8817 GB, free: 2.566 MB / 0.6231 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.00267/1.162, allocations: 1.299 MB / 0.883 GB, free: 1.262 MB / 0.6231 GB Notification: Performance of collectPreVariables (initialization): time 0.0001613/1.162, allocations: 57.7 kB / 0.883 GB, free: 1.199 MB / 0.6231 GB Notification: Performance of collectInitialEqns (initialization): time 0.0009462/1.163, allocations: 0.8006 MB / 0.8838 GB, free: 400 kB / 0.6231 GB Notification: Performance of collectInitialBindings (initialization): time 0.0006494/1.164, allocations: 0.6 MB / 0.8844 GB, free: 15.8 MB / 0.6387 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0006604/1.164, allocations: 295.5 kB / 0.8847 GB, free: 15.5 MB / 0.6387 GB Notification: Performance of setup shared object (initialization): time 0.0001736/1.164, allocations: 301.1 kB / 0.885 GB, free: 15.21 MB / 0.6387 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001175/1.166, allocations: 0.4919 MB / 0.8854 GB, free: 14.71 MB / 0.6387 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001685/1.167, allocations: 0.8288 MB / 0.8862 GB, free: 13.76 MB / 0.6387 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.002865/1.17, allocations: 1.427 MB / 0.8876 GB, free: 12.2 MB / 0.6387 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.121e-05/1.17, allocations: 8 kB / 0.8876 GB, free: 12.2 MB / 0.6387 GB Notification: Performance of matching and sorting (n=216) (initialization): time 0.004378/1.175, allocations: 1.858 MB / 0.8895 GB, free: 10.32 MB / 0.6387 GB Notification: Performance of prepare postOptimizeDAE: time 2.941e-05/1.175, allocations: 8 kB / 0.8895 GB, free: 10.31 MB / 0.6387 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.961e-05/1.175, allocations: 12.09 kB / 0.8895 GB, free: 10.3 MB / 0.6387 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.0009129/1.176, allocations: 234.3 kB / 0.8897 GB, free: 10.06 MB / 0.6387 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001609/1.177, allocations: 379.4 kB / 0.8901 GB, free: 9.688 MB / 0.6387 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.008229/1.185, allocations: 7.175 MB / 0.8971 GB, free: 1.945 MB / 0.6387 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001799/1.187, allocations: 166.8 kB / 0.8972 GB, free: 1.781 MB / 0.6387 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0003036/1.187, allocations: 71.98 kB / 0.8973 GB, free: 1.711 MB / 0.6387 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.001035/1.188, allocations: 341.4 kB / 0.8976 GB, free: 1.367 MB / 0.6387 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0008806/1.189, allocations: 202.7 kB / 0.8978 GB, free: 1.168 MB / 0.6387 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.005278/1.195, allocations: 2.049 MB / 0.8998 GB, free: 15.07 MB / 0.6544 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.431e-05/1.195, allocations: 16 kB / 0.8998 GB, free: 15.05 MB / 0.6544 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.449e-05/1.195, allocations: 8 kB / 0.8998 GB, free: 15.05 MB / 0.6544 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.353e-05/1.195, allocations: 16.16 kB / 0.8999 GB, free: 15.03 MB / 0.6544 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.009303/1.204, allocations: 3.897 MB / 0.9037 GB, free: 11.06 MB / 0.6544 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.1e-05/1.204, allocations: 8.062 kB / 0.9037 GB, free: 11.05 MB / 0.6544 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001121/1.205, allocations: 263.5 kB / 0.9039 GB, free: 10.79 MB / 0.6544 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.002292/1.207, allocations: 471.2 kB / 0.9044 GB, free: 10.3 MB / 0.6544 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001737/1.208, allocations: 55.97 kB / 0.9044 GB, free: 10.25 MB / 0.6544 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.009894/1.218, allocations: 9.457 MB / 0.9137 GB, free: 120 kB / 0.6544 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 8.315e-06/1.218, allocations: 7.938 kB / 0.9137 GB, free: 112 kB / 0.6544 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.006796/1.224, allocations: 2.863 MB / 0.9165 GB, free: 13.18 MB / 0.67 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0006827/1.225, allocations: 210.3 kB / 0.9167 GB, free: 12.98 MB / 0.67 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0005405/1.226, allocations: 43.92 kB / 0.9167 GB, free: 12.93 MB / 0.67 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001591/1.227, allocations: 55.97 kB / 0.9168 GB, free: 12.88 MB / 0.67 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0003202/1.227, allocations: 140.6 kB / 0.9169 GB, free: 12.74 MB / 0.67 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.000194/1.228, allocations: 67.95 kB / 0.917 GB, free: 12.68 MB / 0.67 GB Notification: Performance of sorting global known variables: time 0.001821/1.229, allocations: 0.9015 MB / 0.9178 GB, free: 11.78 MB / 0.67 GB Notification: Performance of sort global known variables: time 1e-07/1.229, allocations: 0 / 0.9178 GB, free: 11.78 MB / 0.67 GB Notification: Performance of remove unused functions: time 0.003348/1.233, allocations: 0.7912 MB / 0.9186 GB, free: 10.99 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.008325/1.241, allocations: 4.094 MB / 0.9226 GB, free: 6.844 MB / 0.67 GB Notification: Performance of simCode: created initialization part: time 0.004274/1.245, allocations: 1.911 MB / 0.9245 GB, free: 4.871 MB / 0.67 GB Notification: Performance of simCode: created event and clocks part: time 9.908e-06/1.245, allocations: 4 kB / 0.9245 GB, free: 4.867 MB / 0.67 GB Notification: Performance of simCode: created simulation system equations: time 0.003051/1.248, allocations: 1.376 MB / 0.9258 GB, free: 3.43 MB / 0.67 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.004352/1.253, allocations: 0.6242 MB / 0.9264 GB, free: 2.828 MB / 0.67 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.03227/1.285, allocations: 14.44 MB / 0.9405 GB, free: 3.848 MB / 0.6856 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001572/1.287, allocations: 1.34 MB / 0.9418 GB, free: 2.48 MB / 0.6856 GB Notification: Performance of simCode: alias equations: time 0.001735/1.288, allocations: 350.3 kB / 0.9422 GB, free: 2.133 MB / 0.6856 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001474/1.29, allocations: 0.7765 MB / 0.9429 GB, free: 1.355 MB / 0.6856 GB Notification: Performance of SimCode: time 1.152e-06/1.29, allocations: 0 / 0.9429 GB, free: 1.355 MB / 0.6856 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.1722/1.462, allocations: 56.04 MB / 0.9977 GB, free: 9.711 MB / 0.7481 GB Notification: Performance of buildModelFMU: Generate platform static: time 18.61/20.07, allocations: 7.609 kB / 0.9977 GB, free: 9.707 MB / 0.7481 GB " [Timeout remaining time 640] (rm -f ThermofluidStream_dev_ThermofluidStream.FlowControl.Tests.PCV.pipe ; mkfifo ThermofluidStream_dev_ThermofluidStream.FlowControl.Tests.PCV.pipe ; head -c 1048576 < ThermofluidStream_dev_ThermofluidStream.FlowControl.Tests.PCV.pipe >> ../files/ThermofluidStream_dev_ThermofluidStream.FlowControl.Tests.PCV.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=ThermofluidStream_dev_ThermofluidStream.FlowControl.Tests.PCV_res.mat --tempDir=temp_ThermofluidStream_dev_ThermofluidStream_FlowControl_Tests_PCV_fmu --startTime=0 --stopTime=1 --stepSize=0.0004 --timeout=1200 --tolerance=1e-06 ThermofluidStream_dev_ThermofluidStream_FlowControl_Tests_PCV.fmu > ThermofluidStream_dev_ThermofluidStream.FlowControl.Tests.PCV.pipe 2>&1) [Timeout 1260.0] diffSimulationResults("ThermofluidStream_dev_ThermofluidStream.FlowControl.Tests.PCV_res.mat","/mnt/ReferenceFiles/ThermofluidStream-main-regression/ReferenceData/ThermofluidStream.FlowControl.Tests.PCV_ref.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/ThermofluidStream_dev_ThermofluidStream.FlowControl.Tests.PCV.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) [Timeout 660] "Error: Could not read variable volumeFlex2.m_flow_out in file ThermofluidStream_dev_ThermofluidStream.FlowControl.Tests.PCV_res.mat. Warning: Get data of variable volumeFlex2.m_flow_out from file ThermofluidStream_dev_ThermofluidStream.FlowControl.Tests.PCV_res.mat failed! " [Timeout remaining time 660] Reference file matches [Calling sys.exit(0), Time elapsed: 24.603365580085665]