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.001039/0.001039, allocations: 92.2 kB / 20.19 MB, free: 4.363 MB / 18.57 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.0009685/0.0009685, allocations: 173 kB / 23.49 MB, free: 1.062 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.072/1.072, allocations: 177.1 MB / 203.8 MB, free: 5.629 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.7304/0.7304, allocations: 118.6 MB / 378.9 MB, free: 1.465 MB / 346.7 MB " [Timeout remaining time 179] 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.613e-06/1.613e-06, allocations: 0 / 483.6 MB, free: 8.293 MB / 410.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 1.914e-05/2.075e-05, allocations: 8.625 kB / 483.6 MB, free: 8.289 MB / 410.7 MB Notification: Performance of NFInst.instantiate(ThermofluidStream.FlowControl.Tests.BasicControlValve): time 0.04118/0.04121, allocations: 58.97 MB / 0.5299 GB, free: 5.871 MB / 458.7 MB Notification: Performance of NFInst.instExpressions: time 0.01782/0.05903, allocations: 19.88 MB / 0.5493 GB, free: 1.934 MB / 474.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.001897/0.06092, allocations: 114.9 kB / 0.5494 GB, free: 1.82 MB / 474.7 MB Notification: Performance of NFTyping.typeComponents: time 0.002015/0.06294, allocations: 0.8256 MB / 0.5502 GB, free: 0.9883 MB / 474.7 MB Notification: Performance of NFTyping.typeBindings: time 0.003768/0.0667, allocations: 1.92 MB / 0.5521 GB, free: 15.05 MB / 490.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.003175/0.06988, allocations: 1.451 MB / 0.5535 GB, free: 13.6 MB / 490.7 MB Notification: Performance of NFFlatten.flatten: time 0.002502/0.07238, allocations: 3.032 MB / 0.5565 GB, free: 10.55 MB / 490.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0004842/0.07287, allocations: 307.3 kB / 0.5568 GB, free: 10.22 MB / 490.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.001887/0.07475, allocations: 1.64 MB / 0.5584 GB, free: 8.578 MB / 490.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0007278/0.07548, allocations: 0.7747 MB / 0.5591 GB, free: 7.801 MB / 490.7 MB Notification: Performance of NFPackage.collectConstants: time 0.000139/0.07562, allocations: 128 kB / 0.5592 GB, free: 7.676 MB / 490.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.002236/0.07786, allocations: 1.158 MB / 0.5604 GB, free: 6.516 MB / 490.7 MB Notification: Performance of NFScalarize.scalarize: time 0.0002425/0.0781, allocations: 374.1 kB / 0.5607 GB, free: 6.148 MB / 490.7 MB Notification: Performance of NFVerifyModel.verify: time 0.0005065/0.0786, allocations: 0.6466 MB / 0.5614 GB, free: 5.5 MB / 490.7 MB Notification: Performance of NFConvertDAE.convert: time 0.002438/0.08104, allocations: 2.405 MB / 0.5637 GB, free: 3.086 MB / 490.7 MB Notification: Performance of FrontEnd - DAE generated: time 5.701e-06/0.08105, allocations: 0 / 0.5637 GB, free: 3.086 MB / 490.7 MB Notification: Performance of FrontEnd: time 1.804e-06/0.08105, allocations: 0 / 0.5637 GB, free: 3.086 MB / 490.7 MB Notification: Performance of Transformations before backend: time 1.454e-05/0.08106, allocations: 0 / 0.5637 GB, free: 3.086 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.002621/0.08368, allocations: 2.639 MB / 0.5663 GB, free: 404 kB / 490.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.199e-05/0.08373, allocations: 8.031 kB / 0.5663 GB, free: 396 kB / 490.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0005325/0.08426, allocations: 406.9 kB / 0.5667 GB, free: 15.98 MB / 0.4948 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001548/0.08581, allocations: 1.441 MB / 0.5681 GB, free: 14.49 MB / 0.4948 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 5.393e-05/0.08586, allocations: 94.7 kB / 0.5682 GB, free: 14.4 MB / 0.4948 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001165/0.08598, allocations: 124.3 kB / 0.5683 GB, free: 14.28 MB / 0.4948 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0011/0.08708, allocations: 1.003 MB / 0.5693 GB, free: 13.18 MB / 0.4948 GB Notification: Performance of preOpt findStateOrder (simulation): time 2.127e-05/0.0871, allocations: 7.938 kB / 0.5693 GB, free: 13.18 MB / 0.4948 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 6.442e-05/0.08716, allocations: 52 kB / 0.5693 GB, free: 13.12 MB / 0.4948 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.095e-05/0.08718, allocations: 28 kB / 0.5694 GB, free: 13.1 MB / 0.4948 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0007923/0.08798, allocations: 0.5674 MB / 0.5699 GB, free: 12.52 MB / 0.4948 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.003517/0.09149, allocations: 3.885 MB / 0.5737 GB, free: 8.531 MB / 0.4948 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0008804/0.09237, allocations: 0.7525 MB / 0.5744 GB, free: 7.766 MB / 0.4948 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.000335/0.09271, allocations: 285.5 kB / 0.5747 GB, free: 7.48 MB / 0.4948 GB Notification: Performance of preOpt evalFunc (simulation): time 0.001885/0.09459, allocations: 1.485 MB / 0.5762 GB, free: 5.973 MB / 0.4948 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.391e-05/0.09463, allocations: 54.33 kB / 0.5762 GB, free: 5.91 MB / 0.4948 GB Notification: Performance of pre-optimization done (n=103): time 3.697e-06/0.09463, allocations: 3.984 kB / 0.5762 GB, free: 5.906 MB / 0.4948 GB Notification: Performance of matching and sorting (n=103): time 0.001775/0.09641, allocations: 1.162 MB / 0.5773 GB, free: 4.723 MB / 0.4948 GB Notification: Performance of inlineWhenForInitialization (initialization): time 3.464e-05/0.09644, allocations: 64.41 kB / 0.5774 GB, free: 4.648 MB / 0.4948 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001073/0.09751, allocations: 1.325 MB / 0.5787 GB, free: 3.316 MB / 0.4948 GB Notification: Performance of collectPreVariables (initialization): time 4.544e-05/0.09756, allocations: 45.7 kB / 0.5787 GB, free: 3.266 MB / 0.4948 GB Notification: Performance of collectInitialEqns (initialization): time 0.0004914/0.09805, allocations: 0.9005 MB / 0.5796 GB, free: 2.355 MB / 0.4948 GB Notification: Performance of collectInitialBindings (initialization): time 0.0001935/0.09824, allocations: 372.8 kB / 0.58 GB, free: 1.988 MB / 0.4948 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.000177/0.09842, allocations: 192.2 kB / 0.5802 GB, free: 1.793 MB / 0.4948 GB Notification: Performance of setup shared object (initialization): time 0.0001482/0.09857, allocations: 0.516 MB / 0.5807 GB, free: 1.27 MB / 0.4948 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002442/0.09881, allocations: 157.9 kB / 0.5808 GB, free: 1.113 MB / 0.4948 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.000526/0.09934, allocations: 0.6941 MB / 0.5815 GB, free: 256 kB / 0.4948 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0007138/0.1001, allocations: 0.6227 MB / 0.5821 GB, free: 15.55 MB / 0.5105 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.847e-06/0.1001, allocations: 0 / 0.5821 GB, free: 15.55 MB / 0.5105 GB Notification: Performance of matching and sorting (n=124) (initialization): time 0.001172/0.1012, allocations: 0.9793 MB / 0.5831 GB, free: 14.55 MB / 0.5105 GB Notification: Performance of prepare postOptimizeDAE: time 2.67e-05/0.1013, allocations: 8 kB / 0.5831 GB, free: 14.54 MB / 0.5105 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.577e-06/0.1013, allocations: 4 kB / 0.5831 GB, free: 14.54 MB / 0.5105 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.0005204/0.1018, allocations: 191 kB / 0.5833 GB, free: 14.34 MB / 0.5105 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003944/0.1022, allocations: 203.7 kB / 0.5835 GB, free: 14.14 MB / 0.5105 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002887/0.1051, allocations: 5.6 MB / 0.5889 GB, free: 8.168 MB / 0.5105 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003814/0.1054, allocations: 95.38 kB / 0.589 GB, free: 8.074 MB / 0.5105 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.678e-05/0.1055, allocations: 39.98 kB / 0.589 GB, free: 8.035 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.0002542/0.1058, allocations: 224.4 kB / 0.5893 GB, free: 7.805 MB / 0.5105 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001985/0.106, allocations: 222.7 kB / 0.5895 GB, free: 7.586 MB / 0.5105 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001612/0.1076, allocations: 1.397 MB / 0.5908 GB, free: 6.184 MB / 0.5105 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.33e-06/0.1076, allocations: 8 kB / 0.5908 GB, free: 6.176 MB / 0.5105 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.441e-06/0.1076, allocations: 4 kB / 0.5909 GB, free: 6.172 MB / 0.5105 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 8.536e-06/0.1076, allocations: 7.922 kB / 0.5909 GB, free: 6.164 MB / 0.5105 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002115/0.1097, allocations: 2.02 MB / 0.5928 GB, free: 4.047 MB / 0.5105 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.218e-06/0.1097, allocations: 4 kB / 0.5928 GB, free: 4.043 MB / 0.5105 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002806/0.11, allocations: 147.8 kB / 0.593 GB, free: 3.898 MB / 0.5105 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.0004314/0.1104, allocations: 206.9 kB / 0.5932 GB, free: 3.684 MB / 0.5105 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.548e-05/0.1105, allocations: 31.97 kB / 0.5932 GB, free: 3.652 MB / 0.5105 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.002618/0.1131, allocations: 5.601 MB / 0.5987 GB, free: 13.68 MB / 0.5261 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.583e-06/0.1131, allocations: 0 / 0.5987 GB, free: 13.68 MB / 0.5261 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001414/0.1145, allocations: 1.267 MB / 0.5999 GB, free: 12.35 MB / 0.5261 GB Notification: Performance of postOpt removeConstants (simulation): time 0.000288/0.1148, allocations: 274.3 kB / 0.6002 GB, free: 12.08 MB / 0.5261 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001026/0.1149, allocations: 20 kB / 0.6002 GB, free: 12.06 MB / 0.5261 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002785/0.1152, allocations: 20 kB / 0.6002 GB, free: 12.04 MB / 0.5261 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001294/0.1153, allocations: 84.78 kB / 0.6003 GB, free: 11.96 MB / 0.5261 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.139e-05/0.1153, allocations: 35.98 kB / 0.6003 GB, free: 11.93 MB / 0.5261 GB Notification: Performance of sorting global known variables: time 0.0007677/0.1161, allocations: 0.8429 MB / 0.6011 GB, free: 11.06 MB / 0.5261 GB Notification: Performance of sort global known variables: time 8e-08/0.1161, allocations: 4 kB / 0.6012 GB, free: 11.05 MB / 0.5261 GB Notification: Performance of remove unused functions: time 0.001155/0.1173, allocations: 0.5924 MB / 0.6017 GB, free: 10.46 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.0007452/0.118, allocations: 0.6586 MB / 0.6024 GB, free: 9.797 MB / 0.5261 GB Notification: Performance of simCode: created initialization part: time 0.001193/0.1192, allocations: 1.119 MB / 0.6035 GB, free: 8.621 MB / 0.5261 GB Notification: Performance of simCode: created event and clocks part: time 2.966e-06/0.1192, allocations: 7.938 kB / 0.6035 GB, free: 8.613 MB / 0.5261 GB Notification: Performance of simCode: created simulation system equations: time 0.0005821/0.1198, allocations: 0.8521 MB / 0.6043 GB, free: 7.707 MB / 0.5261 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001624/0.1214, allocations: 0.7293 MB / 0.605 GB, free: 7 MB / 0.5261 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003571/0.125, allocations: 2.892 MB / 0.6078 GB, free: 4.035 MB / 0.5261 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001974/0.1252, allocations: 282.7 kB / 0.6081 GB, free: 3.738 MB / 0.5261 GB Notification: Performance of simCode: alias equations: time 0.0005837/0.1258, allocations: 295.8 kB / 0.6084 GB, free: 3.469 MB / 0.5261 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002006/0.126, allocations: 144.4 kB / 0.6085 GB, free: 3.328 MB / 0.5261 GB Notification: Performance of SimCode: time 1.062e-06/0.126, allocations: 0 / 0.6085 GB, free: 3.328 MB / 0.5261 GB Notification: Performance of Templates: time 0.03595/0.1619, allocations: 33.06 MB / 0.6408 GB, free: 2.914 MB / 0.5573 GB " [Timeout remaining time 660] 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","",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) [Timeout 660] "" [Timeout remaining time 660] Reference file matches [Calling sys.exit(0), Time elapsed: 4.7068256449420005]