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.001188/0.001188, allocations: 80.44 kB / 19.17 MB, free: 0.7422 MB / 13.93 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.001459/0.001459, allocations: 165.9 kB / 22.45 MB, free: 2.109 MB / 18.57 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.295/1.295, allocations: 177.1 MB / 202.8 MB, free: 5.73 MB / 186.7 MB " [Timeout remaining time 179] 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.9798/0.9798, allocations: 116 MB / 375.2 MB, free: 4.191 MB / 346.7 MB " [Timeout remaining time 178] Using package ThermofluidStream with version 1.3.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: Performance of FrontEnd - loaded program: time 1.533e-06/1.533e-06, allocations: 0 / 0.5532 GB, free: 13.33 MB / 490.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 2.732e-05/2.885e-05, allocations: 9.453 kB / 0.5533 GB, free: 13.32 MB / 490.7 MB Notification: Performance of NFInst.instantiate(ThermofluidStream.Undirected.FlowControl.Tests.CheckValve): time 0.6165/0.6165, allocations: 125.6 MB / 0.676 GB, free: 6.992 MB / 0.5573 GB Notification: Performance of NFInst.instExpressions: time 0.004445/0.6209, allocations: 3.1 MB / 0.679 GB, free: 6.734 MB / 0.5573 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.0004267/0.6214, allocations: 26.28 kB / 0.679 GB, free: 6.719 MB / 0.5573 GB Notification: Performance of NFTyping.typeComponents: time 0.0009052/0.6223, allocations: 203.5 kB / 0.6792 GB, free: 6.66 MB / 0.5573 GB Notification: Performance of NFTyping.typeBindings: time 0.00115/0.6234, allocations: 0.5361 MB / 0.6797 GB, free: 6.59 MB / 0.5573 GB Notification: Performance of NFTyping.typeClassSections: time 0.00102/0.6244, allocations: 414.7 kB / 0.6801 GB, free: 6.547 MB / 0.5573 GB Notification: Performance of NFFlatten.flatten: time 0.001051/0.6255, allocations: 0.813 MB / 0.6809 GB, free: 6.5 MB / 0.5573 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0002319/0.6257, allocations: 75.09 kB / 0.681 GB, free: 6.48 MB / 0.5573 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0009667/0.6267, allocations: 0.5027 MB / 0.6815 GB, free: 6.402 MB / 0.5573 GB Notification: Performance of NFSimplifyModel.simplify: time 0.000482/0.6272, allocations: 327.3 kB / 0.6818 GB, free: 6.367 MB / 0.5573 GB Notification: Performance of NFPackage.collectConstants: time 5.507e-05/0.6272, allocations: 39.19 kB / 0.6818 GB, free: 6.367 MB / 0.5573 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0008057/0.628, allocations: 0.4926 MB / 0.6823 GB, free: 6.328 MB / 0.5573 GB Notification: Performance of NFScalarize.scalarize: time 0.0001761/0.6282, allocations: 95.64 kB / 0.6824 GB, free: 6.305 MB / 0.5573 GB Notification: Performance of NFVerifyModel.verify: time 0.0001762/0.6284, allocations: 169.3 kB / 0.6826 GB, free: 6.281 MB / 0.5573 GB Notification: Performance of NFConvertDAE.convert: time 0.0009164/0.6293, allocations: 0.7631 MB / 0.6833 GB, free: 6.191 MB / 0.5573 GB Notification: Performance of FrontEnd - DAE generated: time 6.392e-06/0.6293, allocations: 4 kB / 0.6833 GB, free: 6.188 MB / 0.5573 GB Notification: Performance of FrontEnd: time 2.275e-06/0.6293, allocations: 0 / 0.6833 GB, free: 6.188 MB / 0.5573 GB Notification: Performance of Transformations before backend: time 7.905e-06/0.6293, allocations: 1.188 kB / 0.6833 GB, free: 6.188 MB / 0.5573 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.001457/0.6308, allocations: 0.7825 MB / 0.6841 GB, free: 5.688 MB / 0.5573 GB Notification: Performance of prepare preOptimizeDAE: time 8.72e-05/0.6309, allocations: 9.5 kB / 0.6841 GB, free: 5.688 MB / 0.5573 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 7.659e-05/0.6309, allocations: 69.45 kB / 0.6842 GB, free: 5.648 MB / 0.5573 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.000121/0.6311, allocations: 59.27 kB / 0.6842 GB, free: 5.621 MB / 0.5573 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0006085/0.6317, allocations: 369.6 kB / 0.6846 GB, free: 5.406 MB / 0.5573 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.408e-05/0.6317, allocations: 25.62 kB / 0.6846 GB, free: 5.406 MB / 0.5573 GB Notification: Performance of preOpt expandDerOperator (simulation): time 6.136e-05/0.6318, allocations: 36.62 kB / 0.6846 GB, free: 5.406 MB / 0.5573 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0005958/0.6324, allocations: 425.4 kB / 0.685 GB, free: 5.316 MB / 0.5573 GB Notification: Performance of preOpt findStateOrder (simulation): time 2.591e-05/0.6324, allocations: 1.5 kB / 0.685 GB, free: 5.316 MB / 0.5573 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.978e-05/0.6324, allocations: 17.03 kB / 0.685 GB, free: 5.312 MB / 0.5573 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.147e-05/0.6324, allocations: 8.031 kB / 0.6851 GB, free: 5.312 MB / 0.5573 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0005682/0.633, allocations: 379.8 kB / 0.6854 GB, free: 5.301 MB / 0.5573 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001736/0.6347, allocations: 1.299 MB / 0.6867 GB, free: 4.652 MB / 0.5573 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0007298/0.6355, allocations: 316 kB / 0.687 GB, free: 4.617 MB / 0.5573 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0003072/0.6358, allocations: 159.3 kB / 0.6871 GB, free: 4.602 MB / 0.5573 GB Notification: Performance of preOpt evalFunc (simulation): time 0.001115/0.6369, allocations: 0.6991 MB / 0.6878 GB, free: 4.344 MB / 0.5573 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0003687/0.6373, allocations: 210.2 kB / 0.688 GB, free: 4.289 MB / 0.5573 GB Notification: Performance of pre-optimization done (n=37): time 1.724e-06/0.6373, allocations: 1.5 kB / 0.688 GB, free: 4.289 MB / 0.5573 GB Notification: Performance of matching and sorting (n=37): time 0.001115/0.6384, allocations: 0.5317 MB / 0.6885 GB, free: 4.203 MB / 0.5573 GB Notification: Performance of inlineWhenForInitialization (initialization): time 6.591e-05/0.6385, allocations: 63.05 kB / 0.6886 GB, free: 4.141 MB / 0.5573 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.000491/0.6389, allocations: 367.7 kB / 0.6889 GB, free: 4.02 MB / 0.5573 GB Notification: Performance of collectPreVariables (initialization): time 2.38e-05/0.639, allocations: 34.06 kB / 0.689 GB, free: 3.988 MB / 0.5573 GB Notification: Performance of collectInitialEqns (initialization): time 0.0001132/0.6391, allocations: 222.4 kB / 0.6892 GB, free: 3.867 MB / 0.5573 GB Notification: Performance of collectInitialBindings (initialization): time 6.979e-05/0.6391, allocations: 132.1 kB / 0.6893 GB, free: 3.785 MB / 0.5573 GB Notification: Performance of simplifyInitialFunctions (initialization): time 9.49e-05/0.6392, allocations: 73.02 kB / 0.6894 GB, free: 3.762 MB / 0.5573 GB Notification: Performance of setup shared object (initialization): time 7.186e-05/0.6393, allocations: 353 kB / 0.6897 GB, free: 3.449 MB / 0.5573 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002181/0.6395, allocations: 147.4 kB / 0.6899 GB, free: 3.418 MB / 0.5573 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002591/0.6398, allocations: 202.8 kB / 0.6901 GB, free: 3.336 MB / 0.5573 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0004515/0.6402, allocations: 335.3 kB / 0.6904 GB, free: 3.246 MB / 0.5573 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.371e-06/0.6403, allocations: 1.188 kB / 0.6904 GB, free: 3.246 MB / 0.5573 GB Notification: Performance of matching and sorting (n=46) (initialization): time 0.0008856/0.6411, allocations: 0.5023 MB / 0.6909 GB, free: 3.094 MB / 0.5573 GB Notification: Performance of prepare postOptimizeDAE: time 3.647e-05/0.6412, allocations: 32.3 kB / 0.6909 GB, free: 3.062 MB / 0.5573 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.404e-06/0.6412, allocations: 1.219 kB / 0.6909 GB, free: 3.062 MB / 0.5573 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.0002063/0.6414, allocations: 45.03 kB / 0.6909 GB, free: 3.051 MB / 0.5573 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001995/0.6416, allocations: 74.73 kB / 0.691 GB, free: 3.047 MB / 0.5573 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0009602/0.6425, allocations: 1.428 MB / 0.6924 GB, free: 1.809 MB / 0.5573 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001537/0.6427, allocations: 37.05 kB / 0.6924 GB, free: 1.793 MB / 0.5573 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.024e-05/0.6427, allocations: 18.31 kB / 0.6925 GB, free: 1.793 MB / 0.5573 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.0001405/0.6429, allocations: 156 kB / 0.6926 GB, free: 1.676 MB / 0.5573 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 7.153e-05/0.6429, allocations: 57.2 kB / 0.6927 GB, free: 1.645 MB / 0.5573 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0008948/0.6438, allocations: 0.5164 MB / 0.6932 GB, free: 1.547 MB / 0.5573 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 9.027e-06/0.6438, allocations: 6.719 kB / 0.6932 GB, free: 1.547 MB / 0.5573 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.19e-06/0.6439, allocations: 2.188 kB / 0.6932 GB, free: 1.547 MB / 0.5573 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.692e-06/0.6439, allocations: 7.875 kB / 0.6932 GB, free: 1.539 MB / 0.5573 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001118/0.645, allocations: 0.8964 MB / 0.6941 GB, free: 1.219 MB / 0.5573 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.525e-06/0.645, allocations: 0 / 0.6941 GB, free: 1.219 MB / 0.5573 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001394/0.6451, allocations: 61.73 kB / 0.6941 GB, free: 1.215 MB / 0.5573 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.0001148/0.6452, allocations: 40.78 kB / 0.6942 GB, free: 1.207 MB / 0.5573 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.619e-05/0.6453, allocations: 15.58 kB / 0.6942 GB, free: 1.207 MB / 0.5573 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0008691/0.6461, allocations: 1.43 MB / 0.6956 GB, free: 15.86 MB / 0.573 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.806e-06/0.6461, allocations: 1.281 kB / 0.6956 GB, free: 15.86 MB / 0.573 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0008855/0.647, allocations: 0.6469 MB / 0.6962 GB, free: 15.51 MB / 0.573 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0001178/0.6471, allocations: 83.03 kB / 0.6963 GB, free: 15.46 MB / 0.573 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.395e-05/0.6472, allocations: 10.75 kB / 0.6963 GB, free: 15.46 MB / 0.573 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.000121/0.6473, allocations: 16.97 kB / 0.6963 GB, free: 15.45 MB / 0.573 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001129/0.6474, allocations: 41.95 kB / 0.6964 GB, free: 15.44 MB / 0.573 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.97e-05/0.6474, allocations: 11.41 kB / 0.6964 GB, free: 15.44 MB / 0.573 GB Notification: Performance of sorting global known variables: time 0.0003136/0.6478, allocations: 278.2 kB / 0.6966 GB, free: 15.3 MB / 0.573 GB Notification: Performance of sort global known variables: time 4.1e-08/0.6478, allocations: 0 / 0.6966 GB, free: 15.3 MB / 0.573 GB Notification: Performance of remove unused functions: time 0.0004691/0.6482, allocations: 173.8 kB / 0.6968 GB, free: 15.26 MB / 0.573 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.001609/0.6498, allocations: 1.326 MB / 0.6981 GB, free: 14.33 MB / 0.573 GB Notification: Performance of simCode: created initialization part: time 0.0008073/0.6506, allocations: 0.5092 MB / 0.6986 GB, free: 14.02 MB / 0.573 GB Notification: Performance of simCode: created event and clocks part: time 3.316e-06/0.6506, allocations: 0 / 0.6986 GB, free: 14.02 MB / 0.573 GB Notification: Performance of simCode: created simulation system equations: time 0.0003407/0.651, allocations: 280.1 kB / 0.6989 GB, free: 13.85 MB / 0.573 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0007213/0.6517, allocations: 211.7 kB / 0.6991 GB, free: 13.79 MB / 0.573 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.004871/0.6566, allocations: 3.98 MB / 0.7029 GB, free: 11.34 MB / 0.573 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001722/0.6567, allocations: 217.3 kB / 0.7031 GB, free: 11.25 MB / 0.573 GB Notification: Performance of simCode: alias equations: time 0.0001978/0.6569, allocations: 87.16 kB / 0.7032 GB, free: 11.22 MB / 0.573 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.000174/0.6571, allocations: 163.4 kB / 0.7034 GB, free: 11.11 MB / 0.573 GB Notification: Performance of SimCode: time 1.132e-06/0.6571, allocations: 0 / 0.7034 GB, free: 11.11 MB / 0.573 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.03572/0.6928, allocations: 15.56 MB / 0.7186 GB, free: 3.641 MB / 0.573 GB Notification: Performance of buildModelFMU: Generate platform static: time 8.072/8.765, allocations: 10.89 kB / 0.7186 GB, free: 3.633 MB / 0.573 GB " [Timeout remaining time 651] (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/jenkins/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: 12.594130375422537]