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.001982/0.001982, allocations: 116.5 kB / 17.16 MB, free: 5.914 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.002808/0.002808, allocations: 206.2 kB / 20.13 MB, free: 2.969 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.613/1.613, allocations: 230.6 MB / 253.5 MB, free: 15.1 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.6651/0.6651, allocations: 94.58 MB / 404.1 MB, free: 10.96 MB / 334.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="cs",version="2.0",platforms={"static"}) "" <> buildModelFMU(ThermofluidStream.FlowControl.Tests.PCV,fileNamePrefix="ThermofluidStream_ThermofluidStream_FlowControl_Tests_PCV",fmuType="cs",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.002562/0.002562, allocations: 87.86 kB / 0.5506 GB, free: 5.414 MB / 414.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.449/0.4516, allocations: 73.03 MB / 0.6219 GB, free: 8.48 MB / 462.1 MB Notification: Performance of NFInst.instantiate(ThermofluidStream.FlowControl.Tests.PCV): time 0.2454/0.697, allocations: 190.2 MB / 0.8076 GB, free: 13.36 MB / 0.6387 GB Notification: Performance of NFInst.instExpressions: time 0.02927/0.7263, allocations: 17.88 MB / 0.8251 GB, free: 11.43 MB / 0.6544 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.003321/0.7296, allocations: 95.12 kB / 0.8251 GB, free: 11.33 MB / 0.6544 GB Notification: Performance of NFTyping.typeComponents: time 0.003635/0.7333, allocations: 1.001 MB / 0.8261 GB, free: 10.32 MB / 0.6544 GB Notification: Performance of NFTyping.typeBindings: time 0.008832/0.7421, allocations: 2.416 MB / 0.8285 GB, free: 7.895 MB / 0.6544 GB Notification: Performance of NFTyping.typeClassSections: time 0.00671/0.7488, allocations: 1.825 MB / 0.8303 GB, free: 6.07 MB / 0.6544 GB Notification: Performance of NFFlatten.flatten: time 0.007364/0.7562, allocations: 3.635 MB / 0.8338 GB, free: 2.422 MB / 0.6544 GB Notification: Performance of NFFlatten.resolveConnections: time 0.001031/0.7572, allocations: 282.4 kB / 0.8341 GB, free: 2.117 MB / 0.6544 GB Notification: Performance of NFEvalConstants.evaluate: time 0.003916/0.7611, allocations: 1.634 MB / 0.8357 GB, free: 488 kB / 0.6544 GB Notification: Performance of NFSimplifyModel.simplify: time 0.3902/1.151, allocations: 1.585 MB / 0.8372 GB, free: 6.688 MB / 0.6544 GB Notification: Performance of NFPackage.collectConstants: time 0.001307/1.153, allocations: 168 kB / 0.8374 GB, free: 6.688 MB / 0.6544 GB Notification: Performance of NFFlatten.collectFunctions: time 0.00798/1.161, allocations: 2.605 MB / 0.8399 GB, free: 6.688 MB / 0.6544 GB Notification: Performance of NFScalarize.scalarize: time 0.00123/1.162, allocations: 458.1 kB / 0.8404 GB, free: 6.688 MB / 0.6544 GB Notification: Performance of NFVerifyModel.verify: time 0.002152/1.164, allocations: 1.088 MB / 0.8414 GB, free: 6.688 MB / 0.6544 GB Notification: Performance of NFConvertDAE.convert: time 0.007136/1.171, allocations: 3.268 MB / 0.8446 GB, free: 6.449 MB / 0.6544 GB Notification: Performance of FrontEnd - DAE generated: time 5.41e-06/1.171, allocations: 0 / 0.8446 GB, free: 6.449 MB / 0.6544 GB Notification: Performance of FrontEnd: time 1.693e-06/1.171, allocations: 0.8438 kB / 0.8446 GB, free: 6.449 MB / 0.6544 GB Notification: Performance of Transformations before backend: time 5.761e-05/1.171, allocations: 0 / 0.8446 GB, free: 6.449 MB / 0.6544 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.006151/1.177, allocations: 2.698 MB / 0.8473 GB, free: 5.16 MB / 0.6544 GB Notification: Performance of prepare preOptimizeDAE: time 5.284e-05/1.177, allocations: 11.28 kB / 0.8473 GB, free: 5.16 MB / 0.6544 GB Notification: Performance of preOpt introduceOutputRealDerivatives (simulation): time 5.739e-05/1.177, allocations: 41.73 kB / 0.8473 GB, free: 5.156 MB / 0.6544 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0002191/1.178, allocations: 215.9 kB / 0.8475 GB, free: 5.113 MB / 0.6544 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0008124/1.178, allocations: 261.5 kB / 0.8478 GB, free: 4.984 MB / 0.6544 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.002294/1.181, allocations: 1.338 MB / 0.8491 GB, free: 4.527 MB / 0.6544 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 8.682e-05/1.181, allocations: 113.8 kB / 0.8492 GB, free: 4.523 MB / 0.6544 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.000212/1.181, allocations: 160 kB / 0.8493 GB, free: 4.516 MB / 0.6544 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.002578/1.184, allocations: 1.63 MB / 0.8509 GB, free: 4.336 MB / 0.6544 GB Notification: Performance of preOpt findStateOrder (simulation): time 3.013e-05/1.184, allocations: 5.812 kB / 0.8509 GB, free: 4.336 MB / 0.6544 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001326/1.184, allocations: 62.41 kB / 0.851 GB, free: 4.336 MB / 0.6544 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.549e-05/1.184, allocations: 34.38 kB / 0.851 GB, free: 4.336 MB / 0.6544 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.002279/1.186, allocations: 1.483 MB / 0.8525 GB, free: 4.328 MB / 0.6544 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.01036/1.196, allocations: 7.158 MB / 0.8595 GB, free: 16.47 MB / 0.67 GB Notification: Performance of preOpt comSubExp (simulation): time 0.002685/1.199, allocations: 1.428 MB / 0.8609 GB, free: 16.34 MB / 0.67 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.001029/1.2, allocations: 0.6653 MB / 0.8615 GB, free: 16.29 MB / 0.67 GB Notification: Performance of preOpt evalFunc (simulation): time 0.006848/1.207, allocations: 5.96 MB / 0.8673 GB, free: 11.58 MB / 0.67 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 5.103e-05/1.207, allocations: 64.14 kB / 0.8674 GB, free: 11.54 MB / 0.67 GB Notification: Performance of pre-optimization done (n=166): time 3.316e-06/1.207, allocations: 0 / 0.8674 GB, free: 11.54 MB / 0.67 GB Notification: Performance of matching and sorting (n=166): time 0.006518/1.214, allocations: 3.142 MB / 0.8705 GB, free: 10.44 MB / 0.67 GB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001252/1.214, allocations: 173.1 kB / 0.8706 GB, free: 10.25 MB / 0.67 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001677/1.215, allocations: 1.304 MB / 0.8719 GB, free: 10.08 MB / 0.67 GB Notification: Performance of collectPreVariables (initialization): time 0.0001788/1.216, allocations: 58.8 kB / 0.8719 GB, free: 10.05 MB / 0.67 GB Notification: Performance of collectInitialEqns (initialization): time 0.0004602/1.216, allocations: 0.7997 MB / 0.8727 GB, free: 9.766 MB / 0.67 GB Notification: Performance of collectInitialBindings (initialization): time 0.0003939/1.216, allocations: 0.6005 MB / 0.8733 GB, free: 9.367 MB / 0.67 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0003857/1.217, allocations: 295.5 kB / 0.8736 GB, free: 9.344 MB / 0.67 GB Notification: Performance of setup shared object (initialization): time 0.0002211/1.217, allocations: 305.1 kB / 0.8739 GB, free: 9.043 MB / 0.67 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0009566/1.218, allocations: 0.4891 MB / 0.8744 GB, free: 9.039 MB / 0.67 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001217/1.219, allocations: 0.8306 MB / 0.8752 GB, free: 8.691 MB / 0.67 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.002086/1.221, allocations: 1.427 MB / 0.8766 GB, free: 8.336 MB / 0.67 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 9.097e-06/1.221, allocations: 5.031 kB / 0.8766 GB, free: 8.336 MB / 0.67 GB Notification: Performance of matching and sorting (n=216) (initialization): time 0.003568/1.225, allocations: 1.864 MB / 0.8784 GB, free: 8.109 MB / 0.67 GB Notification: Performance of prepare postOptimizeDAE: time 2.87e-05/1.225, allocations: 11.16 kB / 0.8784 GB, free: 8.109 MB / 0.67 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.603e-05/1.225, allocations: 8.562 kB / 0.8784 GB, free: 8.109 MB / 0.67 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.0008411/1.226, allocations: 228.7 kB / 0.8786 GB, free: 8.07 MB / 0.67 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001472/1.227, allocations: 375.5 kB / 0.879 GB, free: 8.07 MB / 0.67 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.007856/1.235, allocations: 7.678 MB / 0.8865 GB, free: 1.316 MB / 0.67 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.002011/1.237, allocations: 168.9 kB / 0.8866 GB, free: 1.227 MB / 0.67 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.000285/1.237, allocations: 80.22 kB / 0.8867 GB, free: 1.223 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.001121/1.239, allocations: 340.9 kB / 0.887 GB, free: 1.098 MB / 0.67 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.001133/1.24, allocations: 200.8 kB / 0.8872 GB, free: 0.9922 MB / 0.67 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.005226/1.245, allocations: 2.053 MB / 0.8892 GB, free: 0.6992 MB / 0.67 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.668e-05/1.245, allocations: 16.94 kB / 0.8893 GB, free: 0.6992 MB / 0.67 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.167e-05/1.245, allocations: 5.719 kB / 0.8893 GB, free: 0.6992 MB / 0.67 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.656e-05/1.245, allocations: 10.88 kB / 0.8893 GB, free: 0.6992 MB / 0.67 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.008911/1.254, allocations: 3.943 MB / 0.8931 GB, free: 15.83 MB / 0.6856 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.127e-05/1.254, allocations: 8.531 kB / 0.8931 GB, free: 15.83 MB / 0.6856 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001032/1.255, allocations: 251.5 kB / 0.8934 GB, free: 15.83 MB / 0.6856 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.001937/1.257, allocations: 476.4 kB / 0.8938 GB, free: 15.75 MB / 0.6856 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001306/1.257, allocations: 57.09 kB / 0.8939 GB, free: 15.75 MB / 0.6856 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.008476/1.265, allocations: 9.964 MB / 0.9036 GB, free: 6.91 MB / 0.6856 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.027e-06/1.265, allocations: 4.781 kB / 0.9036 GB, free: 6.91 MB / 0.6856 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.005/1.27, allocations: 2.879 MB / 0.9064 GB, free: 6.145 MB / 0.6856 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0006328/1.271, allocations: 285.6 kB / 0.9067 GB, free: 5.918 MB / 0.6856 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0002352/1.271, allocations: 39.31 kB / 0.9067 GB, free: 5.918 MB / 0.6856 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001175/1.272, allocations: 61.11 kB / 0.9068 GB, free: 5.918 MB / 0.6856 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002788/1.273, allocations: 134 kB / 0.9069 GB, free: 5.914 MB / 0.6856 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001365/1.273, allocations: 73.09 kB / 0.907 GB, free: 5.914 MB / 0.6856 GB Notification: Performance of sorting global known variables: time 0.001618/1.275, allocations: 0.9036 MB / 0.9079 GB, free: 5.805 MB / 0.6856 GB Notification: Performance of sort global known variables: time 1.71e-07/1.275, allocations: 7.906 kB / 0.9079 GB, free: 5.801 MB / 0.6856 GB Notification: Performance of remove unused functions: time 0.00371/1.278, allocations: 0.7787 MB / 0.9086 GB, free: 5.691 MB / 0.6856 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.007697/1.286, allocations: 4.087 MB / 0.9126 GB, free: 4.301 MB / 0.6856 GB Notification: Performance of simCode: created initialization part: time 0.004071/1.29, allocations: 1.915 MB / 0.9145 GB, free: 3.711 MB / 0.6856 GB Notification: Performance of simCode: created event and clocks part: time 1.161e-05/1.29, allocations: 0.6562 kB / 0.9145 GB, free: 3.711 MB / 0.6856 GB Notification: Performance of simCode: created simulation system equations: time 0.002741/1.293, allocations: 1.383 MB / 0.9159 GB, free: 3.133 MB / 0.6856 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.003806/1.297, allocations: 0.6049 MB / 0.9164 GB, free: 3.043 MB / 0.6856 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.02754/1.324, allocations: 14.43 MB / 0.9305 GB, free: 13.91 MB / 0.7012 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001071/1.325, allocations: 1.346 MB / 0.9319 GB, free: 12.77 MB / 0.7012 GB Notification: Performance of simCode: alias equations: time 0.001407/1.327, allocations: 346.4 kB / 0.9322 GB, free: 12.48 MB / 0.7012 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0008768/1.327, allocations: 0.7834 MB / 0.9329 GB, free: 12.34 MB / 0.7012 GB Notification: Performance of SimCode: time 9.22e-07/1.327, allocations: 0 / 0.9329 GB, free: 12.34 MB / 0.7012 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.1223/1.45, allocations: 54.84 MB / 0.9865 GB, free: 8.078 MB / 0.7481 GB Notification: Performance of buildModelFMU: Generate platform static: time 16.7/18.15, allocations: 15.84 kB / 0.9865 GB, free: 8.062 MB / 0.7481 GB " [Timeout remaining time 642] (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: 22.54062350100139]