Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr ThermofluidStream_dev_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.001879/0.001879, allocations: 89.47 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.002072/0.002072, allocations: 169.2 kB / 22.76 MB, free: 1.66 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.617/1.617, allocations: 177.1 MB / 203.1 MB, free: 5.605 MB / 186.7 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 1.12/1.12, allocations: 118.6 MB / 378.2 MB, free: 1.441 MB / 346.7 MB " [Timeout remaining time 178] Using package ThermofluidStream with version 1.4.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: 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_dev_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_dev_ThermofluidStream.FlowControl.Tests.BasicControlValve") [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 1.813e-06/1.813e-06, allocations: 0 / 482.9 MB, free: 8.277 MB / 410.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 2.861e-05/3.043e-05, allocations: 3.406 kB / 482.9 MB, free: 8.273 MB / 410.7 MB Notification: Performance of NFInst.instantiate(ThermofluidStream.FlowControl.Tests.BasicControlValve): time 0.07577/0.0758, allocations: 58.78 MB / 0.529 GB, free: 6.09 MB / 458.7 MB Notification: Performance of NFInst.instExpressions: time 0.03034/0.1061, allocations: 19.86 MB / 0.5484 GB, free: 2.176 MB / 474.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.002843/0.109, allocations: 118.9 kB / 0.5485 GB, free: 2.059 MB / 474.7 MB Notification: Performance of NFTyping.typeComponents: time 0.002862/0.1118, allocations: 0.8334 MB / 0.5493 GB, free: 1.219 MB / 474.7 MB Notification: Performance of NFTyping.typeBindings: time 0.007227/0.1191, allocations: 1.92 MB / 0.5512 GB, free: 15.29 MB / 490.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.005389/0.1245, allocations: 1.455 MB / 0.5526 GB, free: 13.82 MB / 490.7 MB Notification: Performance of NFFlatten.flatten: time 0.00588/0.1303, allocations: 3.02 MB / 0.5555 GB, free: 10.79 MB / 490.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.001252/0.1316, allocations: 311.2 kB / 0.5558 GB, free: 10.46 MB / 490.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.00658/0.1382, allocations: 1.644 MB / 0.5574 GB, free: 8.809 MB / 490.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.001708/0.1399, allocations: 0.7708 MB / 0.5582 GB, free: 8.035 MB / 490.7 MB Notification: Performance of NFPackage.collectConstants: time 0.0002666/0.1401, allocations: 132 kB / 0.5583 GB, free: 7.906 MB / 490.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.004213/0.1444, allocations: 1.15 MB / 0.5594 GB, free: 6.754 MB / 490.7 MB Notification: Performance of NFScalarize.scalarize: time 0.0004711/0.1448, allocations: 374.1 kB / 0.5598 GB, free: 6.387 MB / 490.7 MB Notification: Performance of NFVerifyModel.verify: time 0.001182/0.146, allocations: 0.6544 MB / 0.5604 GB, free: 5.73 MB / 490.7 MB Notification: Performance of NFConvertDAE.convert: time 0.008339/0.1544, allocations: 2.869 MB / 0.5632 GB, free: 2.852 MB / 490.7 MB Notification: Performance of FrontEnd - DAE generated: time 7.084e-06/0.1544, allocations: 0 / 0.5632 GB, free: 2.852 MB / 490.7 MB Notification: Performance of FrontEnd: time 1.913e-06/0.1544, allocations: 0 / 0.5632 GB, free: 2.852 MB / 490.7 MB Notification: Performance of Transformations before backend: time 4.327e-05/0.1544, allocations: 0 / 0.5632 GB, free: 2.852 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.006123/0.1605, allocations: 2.745 MB / 0.5659 GB, free: 56 kB / 490.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.471e-05/0.1606, allocations: 8.031 kB / 0.5659 GB, free: 48 kB / 490.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.001008/0.1616, allocations: 399 kB / 0.5663 GB, free: 15.65 MB / 0.4948 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.003115/0.1647, allocations: 1.463 MB / 0.5677 GB, free: 14.14 MB / 0.4948 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 9.703e-05/0.1648, allocations: 86.7 kB / 0.5678 GB, free: 14.06 MB / 0.4948 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0002104/0.165, allocations: 128.3 kB / 0.5679 GB, free: 13.93 MB / 0.4948 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.002451/0.1675, allocations: 1.23 MB / 0.5691 GB, free: 12.61 MB / 0.4948 GB Notification: Performance of preOpt findStateOrder (simulation): time 3.834e-05/0.1675, allocations: 11.88 kB / 0.5691 GB, free: 12.6 MB / 0.4948 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001086/0.1676, allocations: 48 kB / 0.5692 GB, free: 12.55 MB / 0.4948 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.095e-05/0.1676, allocations: 28 kB / 0.5692 GB, free: 12.53 MB / 0.4948 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001716/0.1693, allocations: 0.8129 MB / 0.57 GB, free: 11.71 MB / 0.4948 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.007829/0.1772, allocations: 4.276 MB / 0.5742 GB, free: 7.328 MB / 0.4948 GB Notification: Performance of preOpt comSubExp (simulation): time 0.001672/0.1788, allocations: 0.854 MB / 0.575 GB, free: 6.461 MB / 0.4948 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0008345/0.1797, allocations: 409.5 kB / 0.5754 GB, free: 6.055 MB / 0.4948 GB Notification: Performance of preOpt evalFunc (simulation): time 0.004014/0.1837, allocations: 1.618 MB / 0.577 GB, free: 4.414 MB / 0.4948 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.541e-05/0.1837, allocations: 42.39 kB / 0.577 GB, free: 4.363 MB / 0.4948 GB Notification: Performance of pre-optimization done (n=103): time 2.415e-06/0.1837, allocations: 0 / 0.577 GB, free: 4.363 MB / 0.4948 GB Notification: Performance of matching and sorting (n=103): time 0.003666/0.1874, allocations: 1.47 MB / 0.5785 GB, free: 2.871 MB / 0.4948 GB Notification: Performance of inlineWhenForInitialization (initialization): time 6.735e-05/0.1875, allocations: 64.41 kB / 0.5785 GB, free: 2.797 MB / 0.4948 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.002344/0.1898, allocations: 1.642 MB / 0.5801 GB, free: 1.148 MB / 0.4948 GB Notification: Performance of collectPreVariables (initialization): time 8.891e-05/0.1899, allocations: 45.7 kB / 0.5802 GB, free: 1.098 MB / 0.4948 GB Notification: Performance of collectInitialEqns (initialization): time 0.00112/0.191, allocations: 0.963 MB / 0.5811 GB, free: 128 kB / 0.4948 GB Notification: Performance of collectInitialBindings (initialization): time 0.0005452/0.1916, allocations: 388.9 kB / 0.5815 GB, free: 15.74 MB / 0.5105 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0003858/0.192, allocations: 204.3 kB / 0.5817 GB, free: 15.53 MB / 0.5105 GB Notification: Performance of setup shared object (initialization): time 0.000564/0.1925, allocations: 0.5316 MB / 0.5822 GB, free: 14.99 MB / 0.5105 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0006175/0.1931, allocations: 273.9 kB / 0.5825 GB, free: 14.72 MB / 0.5105 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001177/0.1943, allocations: 0.8067 MB / 0.5833 GB, free: 13.75 MB / 0.5105 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.001609/0.1959, allocations: 0.8688 MB / 0.5841 GB, free: 12.8 MB / 0.5105 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 7.504e-06/0.1959, allocations: 0 / 0.5841 GB, free: 12.8 MB / 0.5105 GB Notification: Performance of matching and sorting (n=124) (initialization): time 0.002891/0.1988, allocations: 1.21 MB / 0.5853 GB, free: 11.57 MB / 0.5105 GB Notification: Performance of prepare postOptimizeDAE: time 2.869e-05/0.1989, allocations: 8 kB / 0.5853 GB, free: 11.56 MB / 0.5105 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.512e-05/0.1989, allocations: 4 kB / 0.5853 GB, free: 11.55 MB / 0.5105 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.001016/0.1999, allocations: 215.2 kB / 0.5855 GB, free: 11.33 MB / 0.5105 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0007351/0.2006, allocations: 203.7 kB / 0.5857 GB, free: 11.13 MB / 0.5105 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.005981/0.2066, allocations: 6.03 MB / 0.5916 GB, free: 4.734 MB / 0.5105 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001252/0.2079, allocations: 91.39 kB / 0.5917 GB, free: 4.645 MB / 0.5105 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001214/0.208, allocations: 43.98 kB / 0.5917 GB, free: 4.602 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.0007423/0.2087, allocations: 336.4 kB / 0.592 GB, free: 4.262 MB / 0.5105 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0004317/0.2092, allocations: 226.7 kB / 0.5922 GB, free: 4.039 MB / 0.5105 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.003204/0.2124, allocations: 1.72 MB / 0.5939 GB, free: 2.312 MB / 0.5105 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.496e-05/0.2124, allocations: 12 kB / 0.5939 GB, free: 2.301 MB / 0.5105 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.058e-06/0.2124, allocations: 0 / 0.5939 GB, free: 2.301 MB / 0.5105 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.363e-05/0.2124, allocations: 7.922 kB / 0.5939 GB, free: 2.293 MB / 0.5105 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.004858/0.2172, allocations: 2.496 MB / 0.5964 GB, free: 15.7 MB / 0.5261 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 6.663e-06/0.2173, allocations: 192 / 0.5964 GB, free: 15.7 MB / 0.5261 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0005659/0.2178, allocations: 155.8 kB / 0.5965 GB, free: 15.55 MB / 0.5261 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.0009442/0.2188, allocations: 238.8 kB / 0.5968 GB, free: 15.3 MB / 0.5261 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 7.135e-05/0.2188, allocations: 31.98 kB / 0.5968 GB, free: 15.27 MB / 0.5261 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.00584/0.2247, allocations: 6.023 MB / 0.6027 GB, free: 8.879 MB / 0.5261 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.36e-06/0.2247, allocations: 4 kB / 0.6027 GB, free: 8.875 MB / 0.5261 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.003562/0.2282, allocations: 1.619 MB / 0.6043 GB, free: 7.191 MB / 0.5261 GB Notification: Performance of postOpt removeConstants (simulation): time 0.000725/0.229, allocations: 266.3 kB / 0.6045 GB, free: 6.93 MB / 0.5261 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001972/0.2292, allocations: 24 kB / 0.6045 GB, free: 6.906 MB / 0.5261 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.000533/0.2297, allocations: 27.98 kB / 0.6046 GB, free: 6.879 MB / 0.5261 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002061/0.2299, allocations: 84.84 kB / 0.6046 GB, free: 6.797 MB / 0.5261 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 7.383e-05/0.23, allocations: 31.98 kB / 0.6047 GB, free: 6.766 MB / 0.5261 GB Notification: Performance of sorting global known variables: time 0.001666/0.2316, allocations: 1.046 MB / 0.6057 GB, free: 5.695 MB / 0.5261 GB Notification: Performance of sort global known variables: time 7e-08/0.2316, allocations: 0 / 0.6057 GB, free: 5.695 MB / 0.5261 GB Notification: Performance of remove unused functions: time 0.001982/0.2336, allocations: 0.5886 MB / 0.6063 GB, free: 5.105 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.001185/0.2348, allocations: 0.6721 MB / 0.6069 GB, free: 4.43 MB / 0.5261 GB Notification: Performance of simCode: created initialization part: time 0.00249/0.2373, allocations: 1.333 MB / 0.6082 GB, free: 3.039 MB / 0.5261 GB Notification: Performance of simCode: created event and clocks part: time 3.927e-06/0.2373, allocations: 1.125 kB / 0.6082 GB, free: 3.039 MB / 0.5261 GB Notification: Performance of simCode: created simulation system equations: time 0.001435/0.2387, allocations: 0.9695 MB / 0.6092 GB, free: 2.016 MB / 0.5261 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.003617/0.2424, allocations: 0.7254 MB / 0.6099 GB, free: 1.316 MB / 0.5261 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.006917/0.2493, allocations: 3.023 MB / 0.6128 GB, free: 14.21 MB / 0.5417 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001006/0.2503, allocations: 0.7428 MB / 0.6136 GB, free: 13.44 MB / 0.5417 GB Notification: Performance of simCode: alias equations: time 0.001369/0.2516, allocations: 298.6 kB / 0.6138 GB, free: 13.17 MB / 0.5417 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0003472/0.252, allocations: 140.5 kB / 0.614 GB, free: 13.03 MB / 0.5417 GB Notification: Performance of SimCode: time 2.013e-06/0.252, allocations: 0 / 0.614 GB, free: 13.03 MB / 0.5417 GB Notification: Performance of Templates: time 0.3051/0.5571, allocations: 33.02 MB / 0.6462 GB, free: 160 MB / 0.5573 GB " [Timeout remaining time 659] make -j1 -f ThermofluidStream_dev_ThermofluidStream.FlowControl.Tests.BasicControlValve.makefile [Timeout 660] (rm -f ThermofluidStream_dev_ThermofluidStream.FlowControl.Tests.BasicControlValve.pipe ; mkfifo ThermofluidStream_dev_ThermofluidStream.FlowControl.Tests.BasicControlValve.pipe ; head -c 1048576 < ThermofluidStream_dev_ThermofluidStream.FlowControl.Tests.BasicControlValve.pipe >> ../files/ThermofluidStream_dev_ThermofluidStream.FlowControl.Tests.BasicControlValve.sim & ./ThermofluidStream_dev_ThermofluidStream.FlowControl.Tests.BasicControlValve -abortSlowSimulation -alarm=240 -emit_protected -lv LOG_STATS > ThermofluidStream_dev_ThermofluidStream.FlowControl.Tests.BasicControlValve.pipe 2>&1) [Timeout 240] diffSimulationResults("ThermofluidStream_dev_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_dev_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: 7.704262845101766]