Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr ThermofluidStream_dev_ThermofluidStream.Undirected.FlowControl.Tests.CheckValve.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.001602/0.001602, allocations: 114.3 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.001979/0.001979, allocations: 214.4 kB / 22.26 MB, free: 5.082 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.494/1.494, allocations: 230.6 MB / 256 MB, free: 8.039 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.8008/0.8008, allocations: 100.3 MB / 412.7 MB, free: 3.699 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.Undirected.FlowControl.Tests.CheckValve,fileNamePrefix="ThermofluidStream_dev_ThermofluidStream_Undirected_FlowControl_Tests_CheckValve",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(ThermofluidStream.Undirected.FlowControl.Tests.CheckValve,fileNamePrefix="ThermofluidStream_dev_ThermofluidStream_Undirected_FlowControl_Tests_CheckValve",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.002629/0.002629, allocations: 81.25 kB / 0.5632 GB, free: 35.88 MB / 446.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1264/0.129, allocations: 74.47 MB / 0.636 GB, free: 7.715 MB / 478.1 MB Notification: Performance of NFInst.instantiate(ThermofluidStream.Undirected.FlowControl.Tests.CheckValve): time 0.4933/0.6224, allocations: 146 MB / 0.7785 GB, free: 236 kB / 0.5762 GB Notification: Performance of NFInst.instExpressions: time 0.004188/0.6266, allocations: 3.361 MB / 0.7818 GB, free: 15.98 MB / 0.5919 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.0004179/0.627, allocations: 22.91 kB / 0.7818 GB, free: 15.97 MB / 0.5919 GB Notification: Performance of NFTyping.typeComponents: time 0.0007626/0.6277, allocations: 208.8 kB / 0.782 GB, free: 15.9 MB / 0.5919 GB Notification: Performance of NFTyping.typeBindings: time 0.001286/0.629, allocations: 0.497 MB / 0.7825 GB, free: 15.75 MB / 0.5919 GB Notification: Performance of NFTyping.typeClassSections: time 0.0009504/0.63, allocations: 416.7 kB / 0.7829 GB, free: 15.68 MB / 0.5919 GB Notification: Performance of NFFlatten.flatten: time 0.0008508/0.6308, allocations: 0.7255 MB / 0.7836 GB, free: 15.51 MB / 0.5919 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0001643/0.631, allocations: 77.44 kB / 0.7837 GB, free: 15.5 MB / 0.5919 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0006515/0.6316, allocations: 377.8 kB / 0.7841 GB, free: 15.45 MB / 0.5919 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0005481/0.6322, allocations: 364.7 kB / 0.7844 GB, free: 15.44 MB / 0.5919 GB Notification: Performance of NFPackage.collectConstants: time 5.348e-05/0.6322, allocations: 35.39 kB / 0.7845 GB, free: 15.44 MB / 0.5919 GB Notification: Performance of NFFlatten.collectFunctions: time 0.001286/0.6335, allocations: 0.5927 MB / 0.785 GB, free: 15.39 MB / 0.5919 GB Notification: Performance of NFScalarize.scalarize: time 0.0001484/0.6337, allocations: 88.27 kB / 0.7851 GB, free: 15.39 MB / 0.5919 GB Notification: Performance of NFVerifyModel.verify: time 0.0002158/0.6339, allocations: 242.1 kB / 0.7853 GB, free: 15.39 MB / 0.5919 GB Notification: Performance of NFConvertDAE.convert: time 0.00109/0.635, allocations: 0.738 MB / 0.7861 GB, free: 15.33 MB / 0.5919 GB Notification: Performance of FrontEnd - DAE generated: time 3.427e-06/0.635, allocations: 0 / 0.7861 GB, free: 15.33 MB / 0.5919 GB Notification: Performance of FrontEnd: time 1.493e-06/0.635, allocations: 0 / 0.7861 GB, free: 15.33 MB / 0.5919 GB Notification: Performance of Transformations before backend: time 7.714e-06/0.635, allocations: 0 / 0.7861 GB, free: 15.33 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: 83 * Number of variables: 83 Notification: Performance of Generate backend data structure: time 0.001488/0.6365, allocations: 0.7811 MB / 0.7868 GB, free: 14.82 MB / 0.5919 GB Notification: Performance of prepare preOptimizeDAE: time 3.387e-05/0.6365, allocations: 8.062 kB / 0.7868 GB, free: 14.82 MB / 0.5919 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 6.923e-05/0.6366, allocations: 73.55 kB / 0.7869 GB, free: 14.79 MB / 0.5919 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 9.528e-05/0.6367, allocations: 54.58 kB / 0.787 GB, free: 14.76 MB / 0.5919 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0007444/0.6374, allocations: 358.5 kB / 0.7873 GB, free: 14.56 MB / 0.5919 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.932e-05/0.6375, allocations: 26.16 kB / 0.7873 GB, free: 14.56 MB / 0.5919 GB Notification: Performance of preOpt expandDerOperator (simulation): time 5.538e-05/0.6375, allocations: 39.55 kB / 0.7874 GB, free: 14.56 MB / 0.5919 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0006401/0.6382, allocations: 432.5 kB / 0.7878 GB, free: 14.46 MB / 0.5919 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.34e-05/0.6382, allocations: 0 / 0.7878 GB, free: 14.46 MB / 0.5919 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.858e-05/0.6382, allocations: 16.31 kB / 0.7878 GB, free: 14.46 MB / 0.5919 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.084e-05/0.6382, allocations: 8.656 kB / 0.7878 GB, free: 14.46 MB / 0.5919 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0006913/0.6389, allocations: 377.3 kB / 0.7882 GB, free: 14.46 MB / 0.5919 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002097/0.641, allocations: 1.826 MB / 0.7899 GB, free: 13.24 MB / 0.5919 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0007397/0.6417, allocations: 312.8 kB / 0.7902 GB, free: 13.21 MB / 0.5919 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0003219/0.6421, allocations: 152.5 kB / 0.7904 GB, free: 13.21 MB / 0.5919 GB Notification: Performance of preOpt evalFunc (simulation): time 0.001571/0.6436, allocations: 0.7593 MB / 0.7911 GB, free: 12.94 MB / 0.5919 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0003954/0.644, allocations: 211.9 kB / 0.7913 GB, free: 12.88 MB / 0.5919 GB Notification: Performance of pre-optimization done (n=37): time 3.938e-06/0.644, allocations: 3.984 kB / 0.7913 GB, free: 12.88 MB / 0.5919 GB Notification: Performance of matching and sorting (n=37): time 0.001294/0.6453, allocations: 0.5233 MB / 0.7918 GB, free: 12.8 MB / 0.5919 GB Notification: Performance of inlineWhenForInitialization (initialization): time 4.331e-05/0.6454, allocations: 65.06 kB / 0.7919 GB, free: 12.73 MB / 0.5919 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003129/0.6457, allocations: 355 kB / 0.7922 GB, free: 12.62 MB / 0.5919 GB Notification: Performance of collectPreVariables (initialization): time 3.34e-05/0.6457, allocations: 34.19 kB / 0.7923 GB, free: 12.59 MB / 0.5919 GB Notification: Performance of collectInitialEqns (initialization): time 0.0001498/0.6459, allocations: 226 kB / 0.7925 GB, free: 12.46 MB / 0.5919 GB Notification: Performance of collectInitialBindings (initialization): time 8.931e-05/0.6459, allocations: 136.5 kB / 0.7926 GB, free: 12.38 MB / 0.5919 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001021/0.6461, allocations: 73.84 kB / 0.7927 GB, free: 12.36 MB / 0.5919 GB Notification: Performance of setup shared object (initialization): time 0.0001599/0.6462, allocations: 356.6 kB / 0.793 GB, free: 12.04 MB / 0.5919 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002489/0.6465, allocations: 123.8 kB / 0.7932 GB, free: 12.04 MB / 0.5919 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002705/0.6467, allocations: 177.9 kB / 0.7933 GB, free: 11.98 MB / 0.5919 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.000519/0.6472, allocations: 334.9 kB / 0.7936 GB, free: 11.89 MB / 0.5919 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.053e-06/0.6473, allocations: 0 / 0.7936 GB, free: 11.89 MB / 0.5919 GB Notification: Performance of matching and sorting (n=46) (initialization): time 0.0009251/0.6482, allocations: 466.6 kB / 0.7941 GB, free: 11.78 MB / 0.5919 GB Notification: Performance of prepare postOptimizeDAE: time 3.461e-05/0.6482, allocations: 32.86 kB / 0.7941 GB, free: 11.75 MB / 0.5919 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.992e-06/0.6482, allocations: 3.016 kB / 0.7941 GB, free: 11.75 MB / 0.5919 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.0001967/0.6484, allocations: 48.98 kB / 0.7942 GB, free: 11.73 MB / 0.5919 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002662/0.6487, allocations: 78.14 kB / 0.7942 GB, free: 11.73 MB / 0.5919 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001337/0.65, allocations: 1.428 MB / 0.7956 GB, free: 10.49 MB / 0.5919 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003093/0.6503, allocations: 44.55 kB / 0.7957 GB, free: 10.47 MB / 0.5919 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.167e-05/0.6504, allocations: 18.39 kB / 0.7957 GB, free: 10.47 MB / 0.5919 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 6 * Number of states: 0 () * Number of discrete variables: 5 (pulse.count,$PRE.pulse.count,pulse.T_start,$PRE.pulse.T_start,$whenCondition1) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (42): * Single equations (assignments): 40 * Array equations: 0 * Algorithm blocks: 1 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 1 system {(1,3,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of prepare postOptimizeDAE: time 0.0001778/0.6505, allocations: 160.7 kB / 0.7959 GB, free: 10.35 MB / 0.5919 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 6.251e-05/0.6506, allocations: 42.97 kB / 0.7959 GB, free: 10.33 MB / 0.5919 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001094/0.6517, allocations: 0.5185 MB / 0.7964 GB, free: 10.22 MB / 0.5919 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.749e-06/0.6517, allocations: 3.938 kB / 0.7964 GB, free: 10.22 MB / 0.5919 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.015e-06/0.6517, allocations: 1.281 kB / 0.7964 GB, free: 10.22 MB / 0.5919 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.232e-06/0.6517, allocations: 3.203 kB / 0.7964 GB, free: 10.22 MB / 0.5919 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001629/0.6533, allocations: 0.9425 MB / 0.7973 GB, free: 9.902 MB / 0.5919 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.274e-06/0.6533, allocations: 0 / 0.7973 GB, free: 9.902 MB / 0.5919 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0003359/0.6537, allocations: 66.55 kB / 0.7974 GB, free: 9.895 MB / 0.5919 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.0001304/0.6538, allocations: 44.72 kB / 0.7974 GB, free: 9.883 MB / 0.5919 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.484e-05/0.6538, allocations: 12.2 kB / 0.7974 GB, free: 9.883 MB / 0.5919 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001335/0.6552, allocations: 1.433 MB / 0.7988 GB, free: 8.648 MB / 0.5919 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.679e-06/0.6552, allocations: 4.062 kB / 0.7988 GB, free: 8.645 MB / 0.5919 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001115/0.6563, allocations: 0.64 MB / 0.7995 GB, free: 8.449 MB / 0.5919 GB Notification: Performance of postOpt removeConstants (simulation): time 6.541e-05/0.6563, allocations: 52.66 kB / 0.7995 GB, free: 8.418 MB / 0.5919 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 5.107e-05/0.6564, allocations: 6.188 kB / 0.7995 GB, free: 8.418 MB / 0.5919 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.000302/0.6567, allocations: 18.88 kB / 0.7995 GB, free: 8.414 MB / 0.5919 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 7.793e-05/0.6568, allocations: 39.23 kB / 0.7996 GB, free: 8.41 MB / 0.5919 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.282e-05/0.6568, allocations: 16.53 kB / 0.7996 GB, free: 8.41 MB / 0.5919 GB Notification: Performance of sorting global known variables: time 0.0002312/0.657, allocations: 266.1 kB / 0.7999 GB, free: 8.328 MB / 0.5919 GB Notification: Performance of sort global known variables: time 8e-08/0.657, allocations: 0 / 0.7999 GB, free: 8.328 MB / 0.5919 GB Notification: Performance of remove unused functions: time 0.0006326/0.6577, allocations: 172.9 kB / 0.8 GB, free: 8.297 MB / 0.5919 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 3 * Number of states: 1 (flowResistance.rear.m_flow) * Number of discrete variables: 3 ($whenCondition1,pulse.T_start,pulse.count) * Number of discrete states: 1 (pulse.count) * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (34): * Single equations (assignments): 31 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 2 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 1 system {(1,3,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of Backend phase and start with SimCode phase: time 0.001734/0.6594, allocations: 1.324 MB / 0.8013 GB, free: 7.535 MB / 0.5919 GB Notification: Performance of simCode: created initialization part: time 0.000937/0.6603, allocations: 499.6 kB / 0.8018 GB, free: 7.328 MB / 0.5919 GB Notification: Performance of simCode: created event and clocks part: time 1.903e-06/0.6603, allocations: 0 / 0.8018 GB, free: 7.328 MB / 0.5919 GB Notification: Performance of simCode: created simulation system equations: time 0.0005118/0.6609, allocations: 283.6 kB / 0.8021 GB, free: 7.207 MB / 0.5919 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0007526/0.6616, allocations: 136.1 kB / 0.8022 GB, free: 7.191 MB / 0.5919 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.005497/0.6671, allocations: 3.861 MB / 0.806 GB, free: 5.426 MB / 0.5919 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004632/0.6676, allocations: 0.818 MB / 0.8068 GB, free: 4.719 MB / 0.5919 GB Notification: Performance of simCode: alias equations: time 0.0003377/0.6679, allocations: 91.19 kB / 0.8068 GB, free: 4.691 MB / 0.5919 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001826/0.6681, allocations: 161.6 kB / 0.807 GB, free: 4.684 MB / 0.5919 GB Notification: Performance of SimCode: time 3.31e-07/0.6681, allocations: 0 / 0.807 GB, free: 4.684 MB / 0.5919 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.05021/0.7183, allocations: 13.08 MB / 0.8198 GB, free: 14.81 MB / 0.6075 GB Notification: Performance of buildModelFMU: Generate platform static: time 12.78/13.5, allocations: 5.203 kB / 0.8198 GB, free: 14.8 MB / 0.6075 GB " [Timeout remaining time 646] (rm -f ThermofluidStream_dev_ThermofluidStream.Undirected.FlowControl.Tests.CheckValve.pipe ; mkfifo ThermofluidStream_dev_ThermofluidStream.Undirected.FlowControl.Tests.CheckValve.pipe ; head -c 1048576 < ThermofluidStream_dev_ThermofluidStream.Undirected.FlowControl.Tests.CheckValve.pipe >> ../files/ThermofluidStream_dev_ThermofluidStream.Undirected.FlowControl.Tests.CheckValve.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=ThermofluidStream_dev_ThermofluidStream.Undirected.FlowControl.Tests.CheckValve_res.mat --tempDir=temp_ThermofluidStream_dev_ThermofluidStream_Undirected_FlowControl_Tests_CheckValve_fmu --startTime=0 --stopTime=1 --stepSize=0.001 --timeout=1200 --tolerance=1e-06 ThermofluidStream_dev_ThermofluidStream_Undirected_FlowControl_Tests_CheckValve.fmu > ThermofluidStream_dev_ThermofluidStream.Undirected.FlowControl.Tests.CheckValve.pipe 2>&1) [Timeout 1260.0] diffSimulationResults("ThermofluidStream_dev_ThermofluidStream.Undirected.FlowControl.Tests.CheckValve_res.mat","/mnt/ReferenceFiles/ThermofluidStream-main-regression/ReferenceData/ThermofluidStream.Undirected.FlowControl.Tests.CheckValve_ref.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/ThermofluidStream_dev_ThermofluidStream.Undirected.FlowControl.Tests.CheckValve.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) [Timeout 660] "Error: Could not read variable pulse.T_start in file ThermofluidStream_dev_ThermofluidStream.Undirected.FlowControl.Tests.CheckValve_res.mat. Warning: Get data of variable pulse.T_start from file ThermofluidStream_dev_ThermofluidStream.Undirected.FlowControl.Tests.CheckValve_res.mat failed! Error: Could not read variable pulse.count in file ThermofluidStream_dev_ThermofluidStream.Undirected.FlowControl.Tests.CheckValve_res.mat. Warning: Get data of variable pulse.count from file ThermofluidStream_dev_ThermofluidStream.Undirected.FlowControl.Tests.CheckValve_res.mat failed! " [Timeout remaining time 660] Reference file matches [Calling sys.exit(0), Time elapsed: 17.118471880909055]