Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr ThermofluidStream_ThermofluidStream.FlowControl.Tests.BasicControlValve.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.00177/0.00177, allocations: 81.5 kB / 19.44 MB, free: 336 kB / 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.001936/0.001936, allocations: 173.2 kB / 22.76 MB, free: 1.656 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.609/1.609, allocations: 177.1 MB / 203.1 MB, free: 5.602 MB / 186.7 MB " [Timeout remaining time 178] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ThermofluidStream 1.4.0/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ThermofluidStream 1.4.0/package.mo): time 1.146/1.146, allocations: 118.6 MB / 378.2 MB, free: 1.469 MB / 346.7 MB " [Timeout remaining time 178] Using package ThermofluidStream with version 1.4.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ThermofluidStream 1.4.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: translateModel(ThermofluidStream.FlowControl.Tests.BasicControlValve,tolerance=1e-06,outputFormat="mat",numberOfIntervals=1000,variableFilter="Time|source.outlet.m_flow|source1.outlet.m_flow|source2.outlet.m_flow",fileNamePrefix="ThermofluidStream_ThermofluidStream.FlowControl.Tests.BasicControlValve") translateModel(ThermofluidStream.FlowControl.Tests.BasicControlValve,tolerance=1e-06,outputFormat="mat",numberOfIntervals=1000,variableFilter="Time|source.outlet.m_flow|source1.outlet.m_flow|source2.outlet.m_flow",fileNamePrefix="ThermofluidStream_ThermofluidStream.FlowControl.Tests.BasicControlValve") [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 2.535e-06/2.535e-06, allocations: 0 / 482.9 MB, free: 8.324 MB / 410.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 2.954e-05/3.207e-05, allocations: 2.312 kB / 482.9 MB, free: 8.32 MB / 410.7 MB Notification: Performance of NFInst.instantiate(ThermofluidStream.FlowControl.Tests.BasicControlValve): time 0.09444/0.09448, allocations: 58.8 MB / 0.529 GB, free: 6.109 MB / 458.7 MB Notification: Performance of NFInst.instExpressions: time 0.03042/0.1249, allocations: 19.86 MB / 0.5484 GB, free: 2.191 MB / 474.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.002847/0.1277, allocations: 114.9 kB / 0.5485 GB, free: 2.078 MB / 474.7 MB Notification: Performance of NFTyping.typeComponents: time 0.003333/0.1311, allocations: 0.8334 MB / 0.5493 GB, free: 1.238 MB / 474.7 MB Notification: Performance of NFTyping.typeBindings: time 0.00738/0.1385, allocations: 1.912 MB / 0.5512 GB, free: 15.31 MB / 490.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.005441/0.1439, allocations: 1.455 MB / 0.5526 GB, free: 13.85 MB / 490.7 MB Notification: Performance of NFFlatten.flatten: time 0.005997/0.1499, allocations: 3.024 MB / 0.5555 GB, free: 10.81 MB / 490.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0009577/0.1508, allocations: 315.2 kB / 0.5558 GB, free: 10.48 MB / 490.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.004271/0.1551, allocations: 1.636 MB / 0.5574 GB, free: 8.836 MB / 490.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.001661/0.1568, allocations: 0.7747 MB / 0.5582 GB, free: 8.059 MB / 490.7 MB Notification: Performance of NFPackage.collectConstants: time 0.0002754/0.1571, allocations: 132 kB / 0.5583 GB, free: 7.93 MB / 490.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.00404/0.1611, allocations: 1.15 MB / 0.5594 GB, free: 6.777 MB / 490.7 MB Notification: Performance of NFScalarize.scalarize: time 0.0004618/0.1616, allocations: 378 kB / 0.5598 GB, free: 6.406 MB / 490.7 MB Notification: Performance of NFVerifyModel.verify: time 0.001214/0.1628, allocations: 0.6427 MB / 0.5604 GB, free: 5.762 MB / 490.7 MB Notification: Performance of NFConvertDAE.convert: time 0.008344/0.1711, allocations: 2.873 MB / 0.5632 GB, free: 2.879 MB / 490.7 MB Notification: Performance of FrontEnd - DAE generated: time 1.03e-05/0.1711, allocations: 0 / 0.5632 GB, free: 2.879 MB / 490.7 MB Notification: Performance of FrontEnd: time 2.355e-06/0.1711, allocations: 0 / 0.5632 GB, free: 2.879 MB / 490.7 MB Notification: Performance of Transformations before backend: time 5.911e-05/0.1712, allocations: 3.984 kB / 0.5632 GB, free: 2.875 MB / 490.7 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 296 * Number of variables: 296 Notification: Performance of Generate backend data structure: time 0.006187/0.1774, allocations: 2.741 MB / 0.5659 GB, free: 84 kB / 490.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.749e-05/0.1774, allocations: 12.03 kB / 0.5659 GB, free: 72 kB / 490.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.001044/0.1785, allocations: 403.1 kB / 0.5663 GB, free: 15.67 MB / 0.4948 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.003141/0.1816, allocations: 1.452 MB / 0.5677 GB, free: 14.17 MB / 0.4948 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.000103/0.1817, allocations: 94.7 kB / 0.5678 GB, free: 14.07 MB / 0.4948 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0002013/0.1819, allocations: 132.3 kB / 0.5679 GB, free: 13.95 MB / 0.4948 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.002493/0.1844, allocations: 1.226 MB / 0.5691 GB, free: 12.63 MB / 0.4948 GB Notification: Performance of preOpt findStateOrder (simulation): time 3.687e-05/0.1844, allocations: 11.88 kB / 0.5692 GB, free: 12.62 MB / 0.4948 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001023/0.1845, allocations: 48 kB / 0.5692 GB, free: 12.57 MB / 0.4948 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.419e-05/0.1846, allocations: 28 kB / 0.5692 GB, free: 12.54 MB / 0.4948 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001732/0.1863, allocations: 0.8129 MB / 0.57 GB, free: 11.72 MB / 0.4948 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.007685/0.194, allocations: 4.272 MB / 0.5742 GB, free: 7.348 MB / 0.4948 GB Notification: Performance of preOpt comSubExp (simulation): time 0.001717/0.1957, allocations: 0.8579 MB / 0.575 GB, free: 6.477 MB / 0.4948 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0007736/0.1965, allocations: 403.2 kB / 0.5754 GB, free: 6.078 MB / 0.4948 GB Notification: Performance of preOpt evalFunc (simulation): time 0.004221/0.2007, allocations: 1.614 MB / 0.577 GB, free: 4.441 MB / 0.4948 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 5.48e-05/0.2008, allocations: 46.39 kB / 0.577 GB, free: 4.387 MB / 0.4948 GB Notification: Performance of pre-optimization done (n=103): time 3.006e-06/0.2008, allocations: 0 / 0.577 GB, free: 4.387 MB / 0.4948 GB Notification: Performance of matching and sorting (n=103): time 0.003833/0.2046, allocations: 1.455 MB / 0.5785 GB, free: 2.91 MB / 0.4948 GB Notification: Performance of inlineWhenForInitialization (initialization): time 7.943e-05/0.2047, allocations: 68.39 kB / 0.5785 GB, free: 2.832 MB / 0.4948 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.002521/0.2072, allocations: 1.642 MB / 0.5801 GB, free: 1.184 MB / 0.4948 GB Notification: Performance of collectPreVariables (initialization): time 7.958e-05/0.2073, allocations: 45.7 kB / 0.5802 GB, free: 1.133 MB / 0.4948 GB Notification: Performance of collectInitialEqns (initialization): time 0.001081/0.2084, allocations: 0.9708 MB / 0.5811 GB, free: 156 kB / 0.4948 GB Notification: Performance of collectInitialBindings (initialization): time 0.0004566/0.2088, allocations: 385 kB / 0.5815 GB, free: 15.77 MB / 0.5105 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.000369/0.2092, allocations: 212.2 kB / 0.5817 GB, free: 15.55 MB / 0.5105 GB Notification: Performance of setup shared object (initialization): time 0.0003369/0.2095, allocations: 0.5316 MB / 0.5822 GB, free: 15.02 MB / 0.5105 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0005788/0.2101, allocations: 265.9 kB / 0.5825 GB, free: 14.75 MB / 0.5105 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001248/0.2113, allocations: 0.8106 MB / 0.5832 GB, free: 13.77 MB / 0.5105 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.001532/0.2129, allocations: 0.8727 MB / 0.5841 GB, free: 12.82 MB / 0.5105 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 6.542e-06/0.2129, allocations: 0 / 0.5841 GB, free: 12.82 MB / 0.5105 GB Notification: Performance of matching and sorting (n=124) (initialization): time 0.002623/0.2155, allocations: 1.209 MB / 0.5853 GB, free: 11.59 MB / 0.5105 GB Notification: Performance of prepare postOptimizeDAE: time 2.685e-05/0.2155, allocations: 8 kB / 0.5853 GB, free: 11.59 MB / 0.5105 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.362e-05/0.2156, allocations: 4 kB / 0.5853 GB, free: 11.58 MB / 0.5105 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.001016/0.2166, allocations: 223.3 kB / 0.5855 GB, free: 11.35 MB / 0.5105 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0007495/0.2173, allocations: 203.7 kB / 0.5857 GB, free: 11.15 MB / 0.5105 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.006198/0.2235, allocations: 6.022 MB / 0.5916 GB, free: 4.762 MB / 0.5105 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001263/0.2248, allocations: 95.48 kB / 0.5917 GB, free: 4.668 MB / 0.5105 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001198/0.2249, allocations: 43.98 kB / 0.5917 GB, free: 4.625 MB / 0.5105 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 19 * 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 (112): * Single equations (assignments): 109 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 3 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 3 systems {(1,4,100.0%), (1,4,100.0%), (1,4,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of prepare postOptimizeDAE: time 0.0007924/0.2257, allocations: 332.3 kB / 0.592 GB, free: 4.289 MB / 0.5105 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0004585/0.2261, allocations: 226.7 kB / 0.5922 GB, free: 4.066 MB / 0.5105 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.003308/0.2295, allocations: 1.715 MB / 0.5939 GB, free: 2.336 MB / 0.5105 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.883e-05/0.2295, allocations: 12 kB / 0.5939 GB, free: 2.324 MB / 0.5105 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.448e-06/0.2295, allocations: 0 / 0.5939 GB, free: 2.324 MB / 0.5105 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.344e-05/0.2295, allocations: 7.922 kB / 0.5939 GB, free: 2.316 MB / 0.5105 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.004858/0.2343, allocations: 2.5 MB / 0.5964 GB, free: 15.71 MB / 0.5261 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.471e-06/0.2344, allocations: 0 / 0.5964 GB, free: 15.71 MB / 0.5261 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0005912/0.2349, allocations: 159.9 kB / 0.5965 GB, free: 15.56 MB / 0.5261 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.001033/0.236, allocations: 230.7 kB / 0.5968 GB, free: 15.32 MB / 0.5261 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 7.308e-05/0.2361, allocations: 31.98 kB / 0.5968 GB, free: 15.29 MB / 0.5261 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.006067/0.2421, allocations: 6.019 MB / 0.6027 GB, free: 8.906 MB / 0.5261 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.139e-06/0.2421, allocations: 7.938 kB / 0.6027 GB, free: 8.898 MB / 0.5261 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.003552/0.2457, allocations: 1.627 MB / 0.6043 GB, free: 7.207 MB / 0.5261 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0007496/0.2464, allocations: 270.4 kB / 0.6045 GB, free: 6.941 MB / 0.5261 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001814/0.2466, allocations: 20 kB / 0.6045 GB, free: 6.922 MB / 0.5261 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0005466/0.2472, allocations: 23.98 kB / 0.6046 GB, free: 6.898 MB / 0.5261 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001999/0.2474, allocations: 84.84 kB / 0.6046 GB, free: 6.816 MB / 0.5261 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 7.331e-05/0.2474, allocations: 31.98 kB / 0.6047 GB, free: 6.785 MB / 0.5261 GB Notification: Performance of sorting global known variables: time 0.001831/0.2493, allocations: 1.05 MB / 0.6057 GB, free: 5.711 MB / 0.5261 GB Notification: Performance of sort global known variables: time 7e-08/0.2493, allocations: 0 / 0.6057 GB, free: 5.711 MB / 0.5261 GB Notification: Performance of remove unused functions: time 0.001967/0.2512, allocations: 0.5886 MB / 0.6063 GB, free: 5.121 MB / 0.5261 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 7 * Number of states: 3 (flowResistance6.inlet.m_flow,flowResistance2.inlet.m_flow,flowResistance4.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 (86): * Single equations (assignments): 83 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 3 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 3 systems {(1,4,100.0%), (1,4,100.0%), (1,4,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of Backend phase and start with SimCode phase: time 0.001286/0.2525, allocations: 0.6738 MB / 0.6069 GB, free: 4.438 MB / 0.5261 GB Notification: Performance of simCode: created initialization part: time 0.00261/0.2551, allocations: 1.326 MB / 0.6082 GB, free: 3.055 MB / 0.5261 GB Notification: Performance of simCode: created event and clocks part: time 4.398e-06/0.2551, allocations: 0 / 0.6082 GB, free: 3.055 MB / 0.5261 GB Notification: Performance of simCode: created simulation system equations: time 0.001523/0.2566, allocations: 0.9692 MB / 0.6092 GB, free: 2.031 MB / 0.5261 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.003446/0.2601, allocations: 0.7247 MB / 0.6099 GB, free: 1.328 MB / 0.5261 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.006897/0.267, allocations: 3.034 MB / 0.6128 GB, free: 14.22 MB / 0.5417 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0009447/0.2679, allocations: 0.735 MB / 0.6136 GB, free: 13.45 MB / 0.5417 GB Notification: Performance of simCode: alias equations: time 0.001318/0.2693, allocations: 288.5 kB / 0.6138 GB, free: 13.19 MB / 0.5417 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0003487/0.2696, allocations: 140.5 kB / 0.614 GB, free: 13.05 MB / 0.5417 GB Notification: Performance of SimCode: time 1.393e-06/0.2696, allocations: 0 / 0.614 GB, free: 13.05 MB / 0.5417 GB Notification: Performance of Templates: time 0.306/0.5756, allocations: 33.02 MB / 0.6462 GB, free: 160.1 MB / 0.5573 GB " [Timeout remaining time 659] make -j1 -f ThermofluidStream_ThermofluidStream.FlowControl.Tests.BasicControlValve.makefile [Timeout 660] (rm -f ThermofluidStream_ThermofluidStream.FlowControl.Tests.BasicControlValve.pipe ; mkfifo ThermofluidStream_ThermofluidStream.FlowControl.Tests.BasicControlValve.pipe ; head -c 1048576 < ThermofluidStream_ThermofluidStream.FlowControl.Tests.BasicControlValve.pipe >> ../files/ThermofluidStream_ThermofluidStream.FlowControl.Tests.BasicControlValve.sim & ./ThermofluidStream_ThermofluidStream.FlowControl.Tests.BasicControlValve -abortSlowSimulation -alarm=240 -emit_protected -lv LOG_STATS > ThermofluidStream_ThermofluidStream.FlowControl.Tests.BasicControlValve.pipe 2>&1) [Timeout 240] diffSimulationResults("ThermofluidStream_ThermofluidStream.FlowControl.Tests.BasicControlValve_res.mat","/mnt/ReferenceFiles/ThermofluidStream-main-regression/ReferenceData/ThermofluidStream.FlowControl.Tests.BasicControlValve_ref.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/ThermofluidStream_ThermofluidStream.FlowControl.Tests.BasicControlValve.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) [Timeout 660] "" [Timeout remaining time 660] Reference file matches [Calling sys.exit(0), Time elapsed: 8.030952003085986]