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.0.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001929/0.001929, allocations: 104.6 kB / 16.45 MB, free: 6.445 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.002191/0.002191, allocations: 187.7 kB / 19.4 MB, free: 3.66 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.493/1.493, allocations: 225.6 MB / 247.8 MB, free: 3.746 MB / 190.1 MB " [Timeout remaining time 178] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ThermofluidStream 1.2.0-main/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ThermofluidStream 1.2.0-main/package.mo): time 0.6597/0.6597, allocations: 94.6 MB / 397.3 MB, free: 492 kB / 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-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_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: Performance of FrontEnd - loaded program: time 0.002556/0.002556, allocations: 83.86 kB / 0.5416 GB, free: 14.04 MB / 414.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.5216/0.5242, allocations: 71.83 MB / 0.6118 GB, free: 3.98 MB / 462.1 MB Notification: Performance of NFInst.instantiate(ThermofluidStream.FlowControl.Tests.PCV): time 0.2674/0.7915, allocations: 190.1 MB / 0.7974 GB, free: 6.895 MB / 0.6231 GB Notification: Performance of NFInst.instExpressions: time 0.02719/0.8187, allocations: 17.88 MB / 0.8149 GB, free: 4.961 MB / 0.6387 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.002923/0.8217, allocations: 67.56 kB / 0.8149 GB, free: 4.895 MB / 0.6387 GB Notification: Performance of NFTyping.typeComponents: time 0.003442/0.8251, allocations: 0.9935 MB / 0.8159 GB, free: 3.895 MB / 0.6387 GB Notification: Performance of NFTyping.typeBindings: time 0.008452/0.8336, allocations: 2.424 MB / 0.8183 GB, free: 1.457 MB / 0.6387 GB Notification: Performance of NFTyping.typeClassSections: time 0.005922/0.8395, allocations: 1.836 MB / 0.8201 GB, free: 15.62 MB / 0.6544 GB Notification: Performance of NFFlatten.flatten: time 0.006613/0.8461, allocations: 3.621 MB / 0.8236 GB, free: 11.99 MB / 0.6544 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0007276/0.8468, allocations: 274.5 kB / 0.8239 GB, free: 11.7 MB / 0.6544 GB Notification: Performance of NFEvalConstants.evaluate: time 0.003803/0.8506, allocations: 1.611 MB / 0.8254 GB, free: 10.08 MB / 0.6544 GB Notification: Performance of NFSimplifyModel.simplify: time 0.00322/0.8538, allocations: 1.587 MB / 0.827 GB, free: 8.488 MB / 0.6544 GB Notification: Performance of NFPackage.collectConstants: time 0.0003633/0.8542, allocations: 168 kB / 0.8271 GB, free: 8.324 MB / 0.6544 GB Notification: Performance of NFFlatten.collectFunctions: time 0.006916/0.8611, allocations: 2.601 MB / 0.8297 GB, free: 5.719 MB / 0.6544 GB Notification: Performance of NFScalarize.scalarize: time 0.0005838/0.8617, allocations: 465.9 kB / 0.8301 GB, free: 5.262 MB / 0.6544 GB Notification: Performance of NFVerifyModel.verify: time 0.001736/0.8634, allocations: 1.092 MB / 0.8312 GB, free: 4.164 MB / 0.6544 GB Notification: Performance of NFConvertDAE.convert: time 0.007421/0.8709, allocations: 3.257 MB / 0.8344 GB, free: 0.8945 MB / 0.6544 GB Notification: Performance of FrontEnd - DAE generated: time 5.871e-06/0.8709, allocations: 0 / 0.8344 GB, free: 0.8945 MB / 0.6544 GB Notification: Performance of FrontEnd: time 1.703e-06/0.8709, allocations: 0 / 0.8344 GB, free: 0.8945 MB / 0.6544 GB Notification: Performance of Transformations before backend: time 4.95e-05/0.8709, allocations: 0 / 0.8344 GB, free: 0.8945 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.005713/0.8766, allocations: 2.702 MB / 0.837 GB, free: 14.13 MB / 0.67 GB Notification: Performance of prepare preOptimizeDAE: time 4.303e-05/0.8767, allocations: 8.031 kB / 0.837 GB, free: 14.12 MB / 0.67 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0002615/0.8769, allocations: 211.1 kB / 0.8372 GB, free: 13.91 MB / 0.67 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0007067/0.8776, allocations: 266.4 kB / 0.8375 GB, free: 13.64 MB / 0.67 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.00301/0.8807, allocations: 1.336 MB / 0.8388 GB, free: 12.26 MB / 0.67 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.000105/0.8808, allocations: 114.9 kB / 0.8389 GB, free: 12.14 MB / 0.67 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.000283/0.881, allocations: 167.9 kB / 0.8391 GB, free: 11.98 MB / 0.67 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.003245/0.8843, allocations: 1.627 MB / 0.8406 GB, free: 10.29 MB / 0.67 GB Notification: Performance of preOpt findStateOrder (simulation): time 3.52e-05/0.8843, allocations: 0 / 0.8406 GB, free: 10.29 MB / 0.67 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001393/0.8845, allocations: 64 kB / 0.8407 GB, free: 10.23 MB / 0.67 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.361e-05/0.8845, allocations: 36 kB / 0.8407 GB, free: 10.2 MB / 0.67 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.002755/0.8872, allocations: 1.485 MB / 0.8422 GB, free: 8.711 MB / 0.67 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.01187/0.8991, allocations: 7.159 MB / 0.8492 GB, free: 0.9688 MB / 0.67 GB Notification: Performance of preOpt comSubExp (simulation): time 0.003308/0.9024, allocations: 1.432 MB / 0.8506 GB, free: 15.49 MB / 0.6856 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.001289/0.9037, allocations: 0.6631 MB / 0.8512 GB, free: 14.81 MB / 0.6856 GB Notification: Performance of preOpt evalFunc (simulation): time 0.008392/0.9121, allocations: 5.955 MB / 0.857 GB, free: 8.082 MB / 0.6856 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0001044/0.9122, allocations: 63.75 kB / 0.8571 GB, free: 8.012 MB / 0.6856 GB Notification: Performance of pre-optimization done (n=166): time 1.964e-05/0.9122, allocations: 0 / 0.8571 GB, free: 8.012 MB / 0.6856 GB Notification: Performance of matching and sorting (n=166): time 0.00748/0.9197, allocations: 3.155 MB / 0.8602 GB, free: 4.664 MB / 0.6856 GB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001943/0.9199, allocations: 175.1 kB / 0.8604 GB, free: 4.457 MB / 0.6856 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001954/0.9219, allocations: 1.303 MB / 0.8616 GB, free: 3.148 MB / 0.6856 GB Notification: Performance of collectPreVariables (initialization): time 0.0001735/0.922, allocations: 57.7 kB / 0.8617 GB, free: 3.086 MB / 0.6856 GB Notification: Performance of collectInitialEqns (initialization): time 0.0007621/0.9228, allocations: 0.8012 MB / 0.8625 GB, free: 2.273 MB / 0.6856 GB Notification: Performance of collectInitialBindings (initialization): time 0.0005378/0.9233, allocations: 0.5925 MB / 0.863 GB, free: 1.676 MB / 0.6856 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0004338/0.9238, allocations: 295.5 kB / 0.8633 GB, free: 1.383 MB / 0.6856 GB Notification: Performance of setup shared object (initialization): time 0.0001856/0.924, allocations: 309.1 kB / 0.8636 GB, free: 1.078 MB / 0.6856 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001095/0.9251, allocations: 499.8 kB / 0.8641 GB, free: 0.5898 MB / 0.6856 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.4342/1.359, allocations: 0.816 MB / 0.8649 GB, free: 231.3 MB / 0.6856 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.003387/1.363, allocations: 1.44 MB / 0.8663 GB, free: 231 MB / 0.6856 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.531e-05/1.363, allocations: 4.031 kB / 0.8663 GB, free: 231 MB / 0.6856 GB Notification: Performance of matching and sorting (n=216) (initialization): time 0.004002/1.367, allocations: 1.862 MB / 0.8681 GB, free: 230.3 MB / 0.6856 GB Notification: Performance of prepare postOptimizeDAE: time 3.669e-05/1.367, allocations: 8.703 kB / 0.8681 GB, free: 230.3 MB / 0.6856 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.377e-05/1.367, allocations: 15.75 kB / 0.8681 GB, free: 230.3 MB / 0.6856 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.000817/1.368, allocations: 227.2 kB / 0.8684 GB, free: 230.2 MB / 0.6856 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001468/1.369, allocations: 377.6 kB / 0.8687 GB, free: 230.2 MB / 0.6856 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.00624/1.375, allocations: 7.669 MB / 0.8762 GB, free: 222.8 MB / 0.6856 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.002027/1.377, allocations: 170.7 kB / 0.8764 GB, free: 222.8 MB / 0.6856 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001806/1.377, allocations: 78.95 kB / 0.8764 GB, free: 222.8 MB / 0.6856 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.0008492/1.378, allocations: 340.5 kB / 0.8768 GB, free: 222.5 MB / 0.6856 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0006009/1.379, allocations: 204.1 kB / 0.877 GB, free: 222.5 MB / 0.6856 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.005138/1.384, allocations: 2.063 MB / 0.879 GB, free: 221.5 MB / 0.6856 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.928e-05/1.384, allocations: 18.12 kB / 0.879 GB, free: 221.5 MB / 0.6856 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.525e-05/1.384, allocations: 5.438 kB / 0.879 GB, free: 221.5 MB / 0.6856 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.627e-05/1.384, allocations: 10.19 kB / 0.879 GB, free: 221.5 MB / 0.6856 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.008313/1.392, allocations: 3.933 MB / 0.8829 GB, free: 219.6 MB / 0.6856 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 9.869e-06/1.392, allocations: 3.344 kB / 0.8829 GB, free: 219.6 MB / 0.6856 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001158/1.394, allocations: 253 kB / 0.8831 GB, free: 219.5 MB / 0.6856 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.002026/1.396, allocations: 476.8 kB / 0.8836 GB, free: 219.4 MB / 0.6856 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001433/1.396, allocations: 55.36 kB / 0.8836 GB, free: 219.4 MB / 0.6856 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.007345/1.403, allocations: 9.96 MB / 0.8933 GB, free: 209.7 MB / 0.6856 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 6.893e-06/1.403, allocations: 8.969 kB / 0.8933 GB, free: 209.7 MB / 0.6856 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.005992/1.409, allocations: 2.881 MB / 0.8962 GB, free: 208.2 MB / 0.6856 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0007495/1.41, allocations: 287.1 kB / 0.8964 GB, free: 208 MB / 0.6856 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0002519/1.41, allocations: 41.25 kB / 0.8965 GB, free: 207.9 MB / 0.6856 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.00144/1.412, allocations: 63.97 kB / 0.8965 GB, free: 207.9 MB / 0.6856 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0004037/1.412, allocations: 131.5 kB / 0.8967 GB, free: 207.9 MB / 0.6856 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001748/1.412, allocations: 75.91 kB / 0.8967 GB, free: 207.9 MB / 0.6856 GB Notification: Performance of sorting global known variables: time 0.001704/1.414, allocations: 0.9034 MB / 0.8976 GB, free: 207.5 MB / 0.6856 GB Notification: Performance of sort global known variables: time 7.1e-08/1.414, allocations: 0 / 0.8976 GB, free: 207.5 MB / 0.6856 GB Notification: Performance of remove unused functions: time 0.002843/1.417, allocations: 0.7814 MB / 0.8984 GB, free: 207.4 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.006726/1.423, allocations: 4.093 MB / 0.9024 GB, free: 205.2 MB / 0.6856 GB Notification: Performance of simCode: created initialization part: time 0.004086/1.427, allocations: 1.914 MB / 0.9042 GB, free: 204.2 MB / 0.6856 GB Notification: Performance of simCode: created event and clocks part: time 8.947e-06/1.428, allocations: 1.219 kB / 0.9042 GB, free: 204.2 MB / 0.6856 GB Notification: Performance of simCode: created simulation system equations: time 0.002697/1.43, allocations: 1.38 MB / 0.9056 GB, free: 203.4 MB / 0.6856 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.003196/1.433, allocations: 0.6194 MB / 0.9062 GB, free: 203.1 MB / 0.6856 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.02343/1.457, allocations: 14.43 MB / 0.9203 GB, free: 195.3 MB / 0.6856 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0008562/1.458, allocations: 1.345 MB / 0.9216 GB, free: 194.3 MB / 0.6856 GB Notification: Performance of simCode: alias equations: time 0.001463/1.459, allocations: 357.4 kB / 0.9219 GB, free: 194.1 MB / 0.6856 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0008165/1.46, allocations: 0.7754 MB / 0.9227 GB, free: 193.4 MB / 0.6856 GB Notification: Performance of SimCode: time 1.753e-06/1.46, allocations: 1.688 kB / 0.9227 GB, free: 193.4 MB / 0.6856 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.1154/1.575, allocations: 54.81 MB / 0.9762 GB, free: 140.5 MB / 0.6856 GB Notification: Performance of buildModelFMU: Generate platform static: time 17.05/18.63, allocations: 16.05 kB / 0.9762 GB, free: 140.5 MB / 0.6856 GB " [Timeout remaining time 641] (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_2/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: 22.649271553382277]