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.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.002169/0.002169, allocations: 113 kB / 18.94 MB, free: 2.934 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.002274/0.002274, allocations: 209.8 kB / 22.25 MB, free: 5.086 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.58/1.58, allocations: 230.6 MB / 256 MB, free: 8.008 MB / 206.1 MB " [Timeout remaining time 178] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ThermofluidStream 1.2.0/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ThermofluidStream 1.2.0/package.mo): time 0.9302/0.9302, allocations: 94.56 MB / 407 MB, free: 9.168 MB / 318.1 MB " [Timeout remaining time 179] Using package ThermofluidStream with version 1.2.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ThermofluidStream 1.2.0/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_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"}) [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.002548/0.002548, allocations: 87.86 kB / 0.555 GB, free: 38.82 MB / 446.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1651/0.1677, allocations: 73.05 MB / 0.6263 GB, free: 456 kB / 462.1 MB Notification: Performance of NFInst.instantiate(ThermofluidStream.FlowControl.Tests.PCV): time 0.6694/0.8371, allocations: 190.8 MB / 0.8126 GB, free: 1.129 MB / 0.5762 GB Notification: Performance of NFInst.instExpressions: time 0.0234/0.8605, allocations: 17.98 MB / 0.8302 GB, free: 14.17 MB / 0.5919 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.004016/0.8645, allocations: 96.34 kB / 0.8303 GB, free: 14.17 MB / 0.5919 GB Notification: Performance of NFTyping.typeComponents: time 0.003772/0.8683, allocations: 1.003 MB / 0.8312 GB, free: 13.8 MB / 0.5919 GB Notification: Performance of NFTyping.typeBindings: time 0.009907/0.8782, allocations: 2.421 MB / 0.8336 GB, free: 12.34 MB / 0.5919 GB Notification: Performance of NFTyping.typeClassSections: time 0.006774/0.885, allocations: 1.885 MB / 0.8354 GB, free: 11.17 MB / 0.5919 GB Notification: Performance of NFFlatten.flatten: time 0.007028/0.892, allocations: 3.674 MB / 0.839 GB, free: 9.094 MB / 0.5919 GB Notification: Performance of NFFlatten.resolveConnections: time 0.001317/0.8933, allocations: 278.9 kB / 0.8393 GB, free: 8.918 MB / 0.5919 GB Notification: Performance of NFEvalConstants.evaluate: time 0.004283/0.8976, allocations: 1.644 MB / 0.8409 GB, free: 8.062 MB / 0.5919 GB Notification: Performance of NFSimplifyModel.simplify: time 0.003364/0.901, allocations: 1.584 MB / 0.8424 GB, free: 7.215 MB / 0.5919 GB Notification: Performance of NFPackage.collectConstants: time 0.0008466/0.9018, allocations: 171.6 kB / 0.8426 GB, free: 7.211 MB / 0.5919 GB Notification: Performance of NFFlatten.collectFunctions: time 0.007587/0.9094, allocations: 2.633 MB / 0.8452 GB, free: 6.258 MB / 0.5919 GB Notification: Performance of NFScalarize.scalarize: time 0.0009813/0.9104, allocations: 457 kB / 0.8456 GB, free: 5.891 MB / 0.5919 GB Notification: Performance of NFVerifyModel.verify: time 0.002759/0.9132, allocations: 1.083 MB / 0.8467 GB, free: 5.184 MB / 0.5919 GB Notification: Performance of NFConvertDAE.convert: time 0.01031/0.9235, allocations: 3.275 MB / 0.8499 GB, free: 3.316 MB / 0.5919 GB Notification: Performance of FrontEnd - DAE generated: time 8.035e-06/0.9235, allocations: 0 / 0.8499 GB, free: 3.316 MB / 0.5919 GB Notification: Performance of FrontEnd: time 1.543e-06/0.9235, allocations: 0 / 0.8499 GB, free: 3.316 MB / 0.5919 GB Notification: Performance of Transformations before backend: time 0.0001155/0.9236, allocations: 0 / 0.8499 GB, free: 3.316 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: 364 * Number of variables: 364 Notification: Performance of Generate backend data structure: time 0.008324/0.9319, allocations: 2.628 MB / 0.8524 GB, free: 1.387 MB / 0.5919 GB Notification: Performance of prepare preOptimizeDAE: time 6.178e-05/0.932, allocations: 8.031 kB / 0.8524 GB, free: 1.379 MB / 0.5919 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0005484/0.9325, allocations: 211.2 kB / 0.8527 GB, free: 1.164 MB / 0.5919 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.001143/0.9337, allocations: 262.4 kB / 0.8529 GB, free: 0.9062 MB / 0.5919 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.003645/0.9373, allocations: 1.225 MB / 0.8541 GB, free: 15.67 MB / 0.6075 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.000132/0.9374, allocations: 114.8 kB / 0.8542 GB, free: 15.56 MB / 0.6075 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0003025/0.9377, allocations: 160 kB / 0.8544 GB, free: 15.4 MB / 0.6075 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.003568/0.9413, allocations: 1.651 MB / 0.856 GB, free: 13.69 MB / 0.6075 GB Notification: Performance of preOpt findStateOrder (simulation): time 3.842e-05/0.9413, allocations: 0 / 0.856 GB, free: 13.69 MB / 0.6075 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001888/0.9415, allocations: 64 kB / 0.856 GB, free: 13.63 MB / 0.6075 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.953e-05/0.9416, allocations: 36 kB / 0.8561 GB, free: 13.59 MB / 0.6075 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.003091/0.9447, allocations: 1.512 MB / 0.8575 GB, free: 12.08 MB / 0.6075 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.01343/0.9581, allocations: 7.091 MB / 0.8645 GB, free: 4.492 MB / 0.6075 GB Notification: Performance of preOpt comSubExp (simulation): time 0.003245/0.9613, allocations: 1.436 MB / 0.8659 GB, free: 3.02 MB / 0.6075 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.001345/0.9627, allocations: 0.6703 MB / 0.8665 GB, free: 2.34 MB / 0.6075 GB Notification: Performance of preOpt evalFunc (simulation): time 0.006418/0.9691, allocations: 2.932 MB / 0.8694 GB, free: 15.43 MB / 0.6231 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 7.856e-05/0.9692, allocations: 63.75 kB / 0.8694 GB, free: 15.36 MB / 0.6231 GB Notification: Performance of pre-optimization done (n=166): time 4.328e-06/0.9692, allocations: 0 / 0.8694 GB, free: 15.36 MB / 0.6231 GB Notification: Performance of matching and sorting (n=166): time 0.007393/0.9766, allocations: 2.464 MB / 0.8719 GB, free: 12.86 MB / 0.6231 GB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001635/0.9767, allocations: 179 kB / 0.872 GB, free: 12.65 MB / 0.6231 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.002608/0.9794, allocations: 1.299 MB / 0.8733 GB, free: 11.34 MB / 0.6231 GB Notification: Performance of collectPreVariables (initialization): time 0.0002135/0.9796, allocations: 61.7 kB / 0.8734 GB, free: 11.28 MB / 0.6231 GB Notification: Performance of collectInitialEqns (initialization): time 0.0008435/0.9804, allocations: 0.8018 MB / 0.8741 GB, free: 10.47 MB / 0.6231 GB Notification: Performance of collectInitialBindings (initialization): time 0.0007925/0.9812, allocations: 0.5982 MB / 0.8747 GB, free: 9.879 MB / 0.6231 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.000616/0.9818, allocations: 291.5 kB / 0.875 GB, free: 9.59 MB / 0.6231 GB Notification: Performance of setup shared object (initialization): time 0.0001531/0.982, allocations: 309.1 kB / 0.8753 GB, free: 9.285 MB / 0.6231 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.00112/0.9831, allocations: 0.4888 MB / 0.8758 GB, free: 8.797 MB / 0.6231 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.00166/0.9848, allocations: 0.8288 MB / 0.8766 GB, free: 7.84 MB / 0.6231 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.002837/0.9876, allocations: 1.437 MB / 0.878 GB, free: 6.273 MB / 0.6231 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.283e-05/0.9876, allocations: 0 / 0.878 GB, free: 6.273 MB / 0.6231 GB Notification: Performance of matching and sorting (n=216) (initialization): time 0.004306/0.9919, allocations: 1.854 MB / 0.8798 GB, free: 4.402 MB / 0.6231 GB Notification: Performance of prepare postOptimizeDAE: time 4.305e-05/0.992, allocations: 15.98 kB / 0.8798 GB, free: 4.387 MB / 0.6231 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.736e-05/0.992, allocations: 8 kB / 0.8798 GB, free: 4.379 MB / 0.6231 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.000952/0.9929, allocations: 224.8 kB / 0.88 GB, free: 4.145 MB / 0.6231 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001515/0.9944, allocations: 386.4 kB / 0.8804 GB, free: 3.77 MB / 0.6231 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.007331/1.002, allocations: 7.175 MB / 0.8874 GB, free: 12.02 MB / 0.6387 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001985/1.004, allocations: 162.8 kB / 0.8876 GB, free: 11.86 MB / 0.6387 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0004166/1.004, allocations: 75.98 kB / 0.8876 GB, free: 11.79 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.00112/1.005, allocations: 341.3 kB / 0.888 GB, free: 11.45 MB / 0.6387 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0008475/1.006, allocations: 202.8 kB / 0.8882 GB, free: 11.25 MB / 0.6387 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.004821/1.011, allocations: 2.053 MB / 0.8902 GB, free: 9.148 MB / 0.6387 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.237e-05/1.011, allocations: 20 kB / 0.8902 GB, free: 9.129 MB / 0.6387 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.733e-05/1.011, allocations: 4 kB / 0.8902 GB, free: 9.125 MB / 0.6387 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.194e-05/1.011, allocations: 7.969 kB / 0.8902 GB, free: 9.117 MB / 0.6387 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.008367/1.019, allocations: 3.9 MB / 0.894 GB, free: 5.141 MB / 0.6387 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.528e-05/1.019, allocations: 4 kB / 0.894 GB, free: 5.137 MB / 0.6387 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001086/1.02, allocations: 259.9 kB / 0.8942 GB, free: 4.883 MB / 0.6387 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.001922/1.022, allocations: 475.3 kB / 0.8947 GB, free: 4.391 MB / 0.6387 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001904/1.023, allocations: 55.97 kB / 0.8948 GB, free: 4.336 MB / 0.6387 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.009064/1.032, allocations: 9.445 MB / 0.904 GB, free: 10.21 MB / 0.6544 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.261e-05/1.032, allocations: 11.95 kB / 0.904 GB, free: 10.2 MB / 0.6544 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.006884/1.039, allocations: 2.881 MB / 0.9068 GB, free: 7.258 MB / 0.6544 GB Notification: Performance of postOpt removeConstants (simulation): time 0.001051/1.04, allocations: 214.2 kB / 0.907 GB, free: 7.047 MB / 0.6544 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0006208/1.04, allocations: 43.94 kB / 0.907 GB, free: 7.004 MB / 0.6544 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001507/1.042, allocations: 55.97 kB / 0.9071 GB, free: 6.949 MB / 0.6544 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0003197/1.042, allocations: 136.5 kB / 0.9072 GB, free: 6.816 MB / 0.6544 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.000194/1.042, allocations: 75.95 kB / 0.9073 GB, free: 6.742 MB / 0.6544 GB Notification: Performance of sorting global known variables: time 0.001579/1.044, allocations: 0.8976 MB / 0.9082 GB, free: 5.852 MB / 0.6544 GB Notification: Performance of sort global known variables: time 1.1e-07/1.044, allocations: 0 / 0.9082 GB, free: 5.852 MB / 0.6544 GB Notification: Performance of remove unused functions: time 0.003398/1.047, allocations: 0.7912 MB / 0.909 GB, free: 5.059 MB / 0.6544 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.008044/1.055, allocations: 4.086 MB / 0.9129 GB, free: 0.9258 MB / 0.6544 GB Notification: Performance of simCode: created initialization part: time 0.003915/1.059, allocations: 1.911 MB / 0.9148 GB, free: 14.96 MB / 0.67 GB Notification: Performance of simCode: created event and clocks part: time 8.005e-06/1.059, allocations: 4.25 kB / 0.9148 GB, free: 14.96 MB / 0.67 GB Notification: Performance of simCode: created simulation system equations: time 0.002779/1.062, allocations: 1.377 MB / 0.9162 GB, free: 13.52 MB / 0.67 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.003576/1.066, allocations: 0.6201 MB / 0.9168 GB, free: 12.91 MB / 0.67 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.02579/1.091, allocations: 14.43 MB / 0.9309 GB, free: 13.93 MB / 0.6856 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001155/1.093, allocations: 1.34 MB / 0.9322 GB, free: 12.57 MB / 0.6856 GB Notification: Performance of simCode: alias equations: time 0.001638/1.094, allocations: 362.3 kB / 0.9325 GB, free: 12.21 MB / 0.6856 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001137/1.095, allocations: 0.7765 MB / 0.9333 GB, free: 11.43 MB / 0.6856 GB Notification: Performance of SimCode: time 8.11e-07/1.095, allocations: 0 / 0.9333 GB, free: 11.43 MB / 0.6856 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.1379/1.233, allocations: 56.03 MB / 0.988 GB, free: 3.773 MB / 0.7325 GB Notification: Performance of buildModelFMU: Generate platform static: time 18.33/19.57, allocations: 18.17 kB / 0.988 GB, free: 3.762 MB / 0.7325 GB " [Timeout remaining time 640] (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 & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=ThermofluidStream_ThermofluidStream.FlowControl.Tests.PCV_res.mat --tempDir=temp_ThermofluidStream_ThermofluidStream_FlowControl_Tests_PCV_fmu --startTime=0 --stopTime=1 --stepSize=0.0004 --timeout=1200 --tolerance=1e-06 ThermofluidStream_ThermofluidStream_FlowControl_Tests_PCV.fmu > ThermofluidStream_ThermofluidStream.FlowControl.Tests.PCV.pipe 2>&1) [Timeout 1260.0] diffSimulationResults("ThermofluidStream_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_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_ThermofluidStream.FlowControl.Tests.PCV_res.mat. Warning: Get data of variable volumeFlex2.m_flow_out from file ThermofluidStream_ThermofluidStream.FlowControl.Tests.PCV_res.mat failed! " [Timeout remaining time 660] Reference file matches [Calling sys.exit(0), Time elapsed: 24.092770028859377]