Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr ThermofluidStream_dev_ThermofluidStream.Undirected.FlowControl.Tests.TanValve.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.001515/0.001515, allocations: 105.7 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.001499/0.001499, allocations: 188.6 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.428/1.428, allocations: 225.6 MB / 247.8 MB, free: 3.738 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.6136/0.6136, allocations: 94.6 MB / 397.3 MB, free: 500 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.Undirected.FlowControl.Tests.TanValve,fileNamePrefix="ThermofluidStream_dev_ThermofluidStream_Undirected_FlowControl_Tests_TanValve",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(ThermofluidStream.Undirected.FlowControl.Tests.TanValve,fileNamePrefix="ThermofluidStream_dev_ThermofluidStream_Undirected_FlowControl_Tests_TanValve",fmuType="me",version="2.0",platforms={"static"}) [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 0.00235/0.00235, allocations: 83.86 kB / 0.5416 GB, free: 14.04 MB / 414.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.4005/0.4029, allocations: 71.85 MB / 0.6118 GB, free: 3.949 MB / 462.1 MB Notification: Performance of NFInst.instantiate(ThermofluidStream.Undirected.FlowControl.Tests.TanValve): time 0.2074/0.6102, allocations: 173.9 MB / 0.7816 GB, free: 7.16 MB / 0.6075 GB Notification: Performance of NFInst.instExpressions: time 0.0149/0.6251, allocations: 11.01 MB / 0.7923 GB, free: 12.12 MB / 0.6231 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.001329/0.6264, allocations: 51.69 kB / 0.7924 GB, free: 12.07 MB / 0.6231 GB Notification: Performance of NFTyping.typeComponents: time 0.00229/0.6287, allocations: 0.796 MB / 0.7931 GB, free: 11.27 MB / 0.6231 GB Notification: Performance of NFTyping.typeBindings: time 0.004604/0.6333, allocations: 1.698 MB / 0.7948 GB, free: 9.559 MB / 0.6231 GB Notification: Performance of NFTyping.typeClassSections: time 0.00323/0.6366, allocations: 1.113 MB / 0.7959 GB, free: 8.445 MB / 0.6231 GB Notification: Performance of NFFlatten.flatten: time 0.004075/0.6406, allocations: 2.53 MB / 0.7984 GB, free: 5.906 MB / 0.6231 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0007014/0.6413, allocations: 301.9 kB / 0.7987 GB, free: 5.578 MB / 0.6231 GB Notification: Performance of NFEvalConstants.evaluate: time 0.002276/0.6436, allocations: 1.058 MB / 0.7997 GB, free: 4.516 MB / 0.6231 GB Notification: Performance of NFSimplifyModel.simplify: time 0.002334/0.646, allocations: 1.382 MB / 0.801 GB, free: 3.129 MB / 0.6231 GB Notification: Performance of NFPackage.collectConstants: time 0.0002935/0.6462, allocations: 140 kB / 0.8012 GB, free: 2.992 MB / 0.6231 GB Notification: Performance of NFFlatten.collectFunctions: time 0.004751/0.651, allocations: 1.981 MB / 0.8031 GB, free: 1.008 MB / 0.6231 GB Notification: Performance of NFScalarize.scalarize: time 0.0004586/0.6515, allocations: 354.7 kB / 0.8034 GB, free: 0.6602 MB / 0.6231 GB Notification: Performance of NFVerifyModel.verify: time 0.001247/0.6527, allocations: 0.8164 MB / 0.8042 GB, free: 15.84 MB / 0.6387 GB Notification: Performance of NFConvertDAE.convert: time 0.005557/0.6583, allocations: 2.606 MB / 0.8068 GB, free: 13.23 MB / 0.6387 GB Notification: Performance of FrontEnd - DAE generated: time 5.701e-06/0.6583, allocations: 0 / 0.8068 GB, free: 13.23 MB / 0.6387 GB Notification: Performance of FrontEnd: time 1.914e-06/0.6583, allocations: 4 kB / 0.8068 GB, free: 13.22 MB / 0.6387 GB Notification: Performance of Transformations before backend: time 4.631e-05/0.6583, allocations: 3.984 kB / 0.8068 GB, free: 13.22 MB / 0.6387 GB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 305 * Number of variables: 305 Notification: Performance of Generate backend data structure: time 0.004648/0.663, allocations: 2.074 MB / 0.8088 GB, free: 11.08 MB / 0.6387 GB Notification: Performance of prepare preOptimizeDAE: time 5.626e-05/0.663, allocations: 15.97 kB / 0.8088 GB, free: 11.07 MB / 0.6387 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0002228/0.6632, allocations: 177.8 kB / 0.809 GB, free: 10.88 MB / 0.6387 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0003425/0.6636, allocations: 179.8 kB / 0.8092 GB, free: 10.71 MB / 0.6387 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001785/0.6654, allocations: 0.9913 MB / 0.8101 GB, free: 9.672 MB / 0.6387 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001064/0.6655, allocations: 90.78 kB / 0.8102 GB, free: 9.582 MB / 0.6387 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001898/0.6657, allocations: 119.9 kB / 0.8103 GB, free: 9.465 MB / 0.6387 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.002661/0.6683, allocations: 1.528 MB / 0.8118 GB, free: 7.895 MB / 0.6387 GB Notification: Performance of preOpt findStateOrder (simulation): time 2.659e-05/0.6684, allocations: 0 / 0.8118 GB, free: 7.895 MB / 0.6387 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 9.813e-05/0.6685, allocations: 52 kB / 0.8119 GB, free: 7.844 MB / 0.6387 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.87e-05/0.6685, allocations: 31.98 kB / 0.8119 GB, free: 7.812 MB / 0.6387 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.002952/0.6714, allocations: 1.661 MB / 0.8135 GB, free: 6.145 MB / 0.6387 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.008499/0.6799, allocations: 6.246 MB / 0.8196 GB, free: 15.29 MB / 0.6544 GB Notification: Performance of preOpt comSubExp (simulation): time 0.002452/0.6824, allocations: 1.184 MB / 0.8208 GB, free: 14.09 MB / 0.6544 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.001105/0.6835, allocations: 0.6333 MB / 0.8214 GB, free: 13.45 MB / 0.6544 GB Notification: Performance of preOpt evalFunc (simulation): time 0.005606/0.6891, allocations: 4.018 MB / 0.8253 GB, free: 8.984 MB / 0.6544 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.001404/0.6905, allocations: 0.7316 MB / 0.826 GB, free: 8.238 MB / 0.6544 GB Notification: Performance of pre-optimization done (n=128): time 3.818e-06/0.6905, allocations: 0 / 0.826 GB, free: 8.238 MB / 0.6544 GB Notification: Performance of matching and sorting (n=129): time 0.007802/0.6983, allocations: 3.98 MB / 0.8299 GB, free: 4.172 MB / 0.6544 GB Notification: Performance of inlineWhenForInitialization (initialization): time 6.877e-05/0.6984, allocations: 68.66 kB / 0.83 GB, free: 4.094 MB / 0.6544 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0009631/0.6993, allocations: 0.7126 MB / 0.8307 GB, free: 3.371 MB / 0.6544 GB Notification: Performance of collectPreVariables (initialization): time 9.079e-05/0.6994, allocations: 57.7 kB / 0.8308 GB, free: 3.309 MB / 0.6544 GB Notification: Performance of collectInitialEqns (initialization): time 0.0005077/0.6999, allocations: 0.5287 MB / 0.8313 GB, free: 2.773 MB / 0.6544 GB Notification: Performance of collectInitialBindings (initialization): time 0.0004006/0.7003, allocations: 460 kB / 0.8317 GB, free: 2.32 MB / 0.6544 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.000368/0.7007, allocations: 206.9 kB / 0.8319 GB, free: 2.109 MB / 0.6544 GB Notification: Performance of setup shared object (initialization): time 0.0001997/0.7009, allocations: 349.9 kB / 0.8322 GB, free: 1.762 MB / 0.6544 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001027/0.7019, allocations: 0.5101 MB / 0.8327 GB, free: 1.254 MB / 0.6544 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001153/0.7031, allocations: 0.6212 MB / 0.8333 GB, free: 0.6094 MB / 0.6544 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.00228/0.7054, allocations: 1.251 MB / 0.8346 GB, free: 15.33 MB / 0.67 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.048e-06/0.7054, allocations: 0 / 0.8346 GB, free: 15.33 MB / 0.67 GB Notification: Performance of matching and sorting (n=140) (initialization): time 0.00322/0.7086, allocations: 1.596 MB / 0.8361 GB, free: 13.72 MB / 0.67 GB Notification: Performance of prepare postOptimizeDAE: time 5.615e-05/0.7086, allocations: 37.7 kB / 0.8362 GB, free: 13.68 MB / 0.67 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.476e-06/0.7087, allocations: 0 / 0.8362 GB, free: 13.68 MB / 0.67 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.0005164/0.7092, allocations: 152.8 kB / 0.8363 GB, free: 13.52 MB / 0.67 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0009417/0.7101, allocations: 255.6 kB / 0.8365 GB, free: 13.27 MB / 0.67 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.004404/0.7145, allocations: 2.717 MB / 0.8392 GB, free: 10.41 MB / 0.67 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0007859/0.7153, allocations: 52 kB / 0.8392 GB, free: 10.36 MB / 0.67 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0002296/0.7155, allocations: 55.92 kB / 0.8393 GB, free: 10.31 MB / 0.67 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 7 * 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 (126): * Single equations (assignments): 124 * 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 {(3,11,77.8%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of prepare postOptimizeDAE: time 0.0006374/0.7162, allocations: 297.5 kB / 0.8396 GB, free: 10.01 MB / 0.67 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002895/0.7165, allocations: 119.2 kB / 0.8397 GB, free: 9.891 MB / 0.67 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.004704/0.7212, allocations: 2.306 MB / 0.842 GB, free: 7.605 MB / 0.67 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.675e-05/0.7212, allocations: 16 kB / 0.842 GB, free: 7.59 MB / 0.67 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 9.047e-06/0.7212, allocations: 4 kB / 0.842 GB, free: 7.586 MB / 0.67 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.913e-05/0.7212, allocations: 7.969 kB / 0.842 GB, free: 7.578 MB / 0.67 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.00631/0.7275, allocations: 3.405 MB / 0.8453 GB, free: 4.09 MB / 0.67 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.761e-06/0.7275, allocations: 3.938 kB / 0.8453 GB, free: 4.086 MB / 0.67 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0009641/0.7285, allocations: 267.6 kB / 0.8456 GB, free: 3.824 MB / 0.67 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.0004666/0.729, allocations: 145 kB / 0.8457 GB, free: 3.68 MB / 0.67 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001102/0.7291, allocations: 47.97 kB / 0.8457 GB, free: 3.633 MB / 0.67 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.003017/0.7321, allocations: 2.439 MB / 0.8481 GB, free: 1.062 MB / 0.67 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.147e-06/0.7321, allocations: 3.938 kB / 0.8481 GB, free: 1.059 MB / 0.67 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.004882/0.737, allocations: 2.605 MB / 0.8507 GB, free: 14.42 MB / 0.6856 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0003505/0.7373, allocations: 196.2 kB / 0.8509 GB, free: 14.21 MB / 0.6856 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001891/0.7375, allocations: 28 kB / 0.8509 GB, free: 14.18 MB / 0.6856 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0006148/0.7381, allocations: 51.95 kB / 0.8509 GB, free: 14.13 MB / 0.6856 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002576/0.7384, allocations: 117.1 kB / 0.8511 GB, free: 14.01 MB / 0.6856 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001147/0.7385, allocations: 55.97 kB / 0.8511 GB, free: 13.96 MB / 0.6856 GB Notification: Performance of sorting global known variables: time 0.0007557/0.7392, allocations: 0.5155 MB / 0.8516 GB, free: 13.43 MB / 0.6856 GB Notification: Performance of sort global known variables: time 9e-08/0.7392, allocations: 64 / 0.8516 GB, free: 13.43 MB / 0.6856 GB Notification: Performance of remove unused functions: time 0.001539/0.7408, allocations: 0.5227 MB / 0.8521 GB, free: 12.91 MB / 0.6856 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 5 * Number of states: 2 (flowResistance1.rear.m_flow,flowResistance2.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 (141): * Single equations (assignments): 138 * 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 {(3,11,77.8%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of Backend phase and start with SimCode phase: time 0.005999/0.7468, allocations: 3.604 MB / 0.8556 GB, free: 9.266 MB / 0.6856 GB Notification: Performance of simCode: created initialization part: time 0.003249/0.75, allocations: 1.552 MB / 0.8572 GB, free: 7.688 MB / 0.6856 GB Notification: Performance of simCode: created event and clocks part: time 5.25e-06/0.75, allocations: 8.062 kB / 0.8572 GB, free: 7.68 MB / 0.6856 GB Notification: Performance of simCode: created simulation system equations: time 0.001806/0.7518, allocations: 0.9196 MB / 0.8581 GB, free: 6.75 MB / 0.6856 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001892/0.7537, allocations: 393.5 kB / 0.8584 GB, free: 6.379 MB / 0.6856 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.3037/1.057, allocations: 10.17 MB / 0.8684 GB, free: 229.7 MB / 0.6856 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0007916/1.058, allocations: 1.186 MB / 0.8695 GB, free: 229 MB / 0.6856 GB Notification: Performance of simCode: alias equations: time 0.001209/1.059, allocations: 349.9 kB / 0.8699 GB, free: 229 MB / 0.6856 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0006878/1.06, allocations: 0.5804 MB / 0.8704 GB, free: 228.5 MB / 0.6856 GB Notification: Performance of SimCode: time 1.363e-06/1.06, allocations: 0 / 0.8704 GB, free: 228.5 MB / 0.6856 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.09172/1.152, allocations: 38.61 MB / 0.9081 GB, free: 211.7 MB / 0.6856 GB Notification: Performance of buildModelFMU: Generate platform static: time 12.57/13.72, allocations: 19.97 kB / 0.9082 GB, free: 211.7 MB / 0.6856 GB " [Timeout remaining time 646] (rm -f ThermofluidStream_dev_ThermofluidStream.Undirected.FlowControl.Tests.TanValve.pipe ; mkfifo ThermofluidStream_dev_ThermofluidStream.Undirected.FlowControl.Tests.TanValve.pipe ; head -c 1048576 < ThermofluidStream_dev_ThermofluidStream.Undirected.FlowControl.Tests.TanValve.pipe >> ../files/ThermofluidStream_dev_ThermofluidStream.Undirected.FlowControl.Tests.TanValve.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=ThermofluidStream_dev_ThermofluidStream.Undirected.FlowControl.Tests.TanValve_res.mat --tempDir=temp_ThermofluidStream_dev_ThermofluidStream_Undirected_FlowControl_Tests_TanValve_fmu --startTime=0 --stopTime=100 --stepSize=0.1 --timeout=1200 --tolerance=1e-06 ThermofluidStream_dev_ThermofluidStream_Undirected_FlowControl_Tests_TanValve.fmu > ThermofluidStream_dev_ThermofluidStream.Undirected.FlowControl.Tests.TanValve.pipe 2>&1) [Timeout 1260.0] diffSimulationResults("ThermofluidStream_dev_ThermofluidStream.Undirected.FlowControl.Tests.TanValve_res.mat","/mnt/ReferenceFiles/ThermofluidStream-main-regression/ReferenceData/ThermofluidStream.Undirected.FlowControl.Tests.TanValve_ref.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork_2/OpenModelicaLibraryTesting/files/ThermofluidStream_dev_ThermofluidStream.Undirected.FlowControl.Tests.TanValve.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.TanValve_res.mat. Warning: Get data of variable pulse.T_start from file ThermofluidStream_dev_ThermofluidStream.Undirected.FlowControl.Tests.TanValve_res.mat failed! Error: Could not read variable pulse.count in file ThermofluidStream_dev_ThermofluidStream.Undirected.FlowControl.Tests.TanValve_res.mat. Warning: Get data of variable pulse.count from file ThermofluidStream_dev_ThermofluidStream.Undirected.FlowControl.Tests.TanValve_res.mat failed! " [Timeout remaining time 660] Reference file matches [Calling sys.exit(0), Time elapsed: 17.104681021068245]