Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr ThermofluidStream_dev_ThermofluidStream.Undirected.Interfaces.Tests.Test_p_out_clipping.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ThermofluidStream 1.1.0-main/package.mo", uses=false) Using package ThermofluidStream with version 1.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ThermofluidStream 1.1.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: translateModel(ThermofluidStream.Undirected.Interfaces.Tests.Test_p_out_clipping,tolerance=1e-06,outputFormat="mat",numberOfIntervals=2000,variableFilter="Time|basicControlValve.m_flow|flowResistance.m_flow|flowResistance1.m_flow|specificValveType.m_flow|tanValve.m_flow",fileNamePrefix="ThermofluidStream_dev_ThermofluidStream.Undirected.Interfaces.Tests.Test_p_out_clipping") translateModel(ThermofluidStream.Undirected.Interfaces.Tests.Test_p_out_clipping,tolerance=1e-06,outputFormat="mat",numberOfIntervals=2000,variableFilter="Time|basicControlValve.m_flow|flowResistance.m_flow|flowResistance1.m_flow|specificValveType.m_flow|tanValve.m_flow",fileNamePrefix="ThermofluidStream_dev_ThermofluidStream.Undirected.Interfaces.Tests.Test_p_out_clipping") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001782/0.001782, allocations: 105.6 kB / 16.27 MB, free: 6.414 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.002034/0.002034, allocations: 189.8 kB / 17.2 MB, free: 5.953 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.401/1.401, allocations: 222.9 MB / 240.9 MB, free: 15.23 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ThermofluidStream 1.1.0-main/package.mo): time 0.7526/0.7526, allocations: 93.69 MB / 384.7 MB, free: 5.352 MB / 302.1 MB Notification: Performance of FrontEnd - loaded program: time 0.002527/0.002527, allocations: 79.88 kB / 464.1 MB, free: 6.164 MB / 382.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1278/0.1304, allocations: 68.26 MB / 0.5198 GB, free: 1.82 MB / 446.1 MB Notification: Performance of NFInst.instantiate(ThermofluidStream.Undirected.Interfaces.Tests.Test_p_out_clipping): time 0.3813/0.5116, allocations: 172.4 MB / 0.6882 GB, free: 2.648 MB / 0.5294 GB Notification: Performance of NFInst.instExpressions: time 0.0148/0.5265, allocations: 11.38 MB / 0.6993 GB, free: 7.262 MB / 0.545 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.001496/0.528, allocations: 67.56 kB / 0.6994 GB, free: 7.195 MB / 0.545 GB Notification: Performance of NFTyping.typeComponents: time 0.002384/0.5305, allocations: 0.8816 MB / 0.7002 GB, free: 6.309 MB / 0.545 GB Notification: Performance of NFTyping.typeBindings: time 0.00521/0.5357, allocations: 1.69 MB / 0.7019 GB, free: 4.609 MB / 0.545 GB Notification: Performance of NFTyping.typeClassSections: time 0.003817/0.5396, allocations: 1.313 MB / 0.7032 GB, free: 3.293 MB / 0.545 GB Notification: Performance of NFFlatten.flatten: time 0.003816/0.5434, allocations: 2.557 MB / 0.7057 GB, free: 0.7266 MB / 0.545 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0007512/0.5442, allocations: 385.7 kB / 0.706 GB, free: 396 kB / 0.545 GB Notification: Performance of NFEvalConstants.evaluate: time 0.003256/0.5474, allocations: 1.369 MB / 0.7074 GB, free: 15.01 MB / 0.5606 GB Notification: Performance of NFSimplifyModel.simplify: time 0.001945/0.5494, allocations: 1.128 MB / 0.7085 GB, free: 13.88 MB / 0.5606 GB Notification: Performance of NFPackage.collectConstants: time 0.0003224/0.5498, allocations: 108 kB / 0.7086 GB, free: 13.77 MB / 0.5606 GB Notification: Performance of NFFlatten.collectFunctions: time 0.004093/0.5539, allocations: 1.844 MB / 0.7104 GB, free: 11.93 MB / 0.5606 GB Notification: Performance of NFScalarize.scalarize: time 0.0004282/0.5543, allocations: 334.5 kB / 0.7107 GB, free: 11.6 MB / 0.5606 GB Notification: Performance of NFVerifyModel.verify: time 0.001047/0.5554, allocations: 0.8001 MB / 0.7115 GB, free: 10.79 MB / 0.5606 GB Notification: Performance of NFConvertDAE.convert: time 0.00431/0.5597, allocations: 2.424 MB / 0.7138 GB, free: 8.363 MB / 0.5606 GB Notification: Performance of FrontEnd - DAE generated: time 5.641e-06/0.5597, allocations: 0 / 0.7138 GB, free: 8.363 MB / 0.5606 GB Notification: Performance of FrontEnd: time 1.352e-06/0.5597, allocations: 0 / 0.7138 GB, free: 8.363 MB / 0.5606 GB Notification: Performance of Transformations before backend: time 2.998e-05/0.5598, allocations: 5.5 kB / 0.7138 GB, free: 8.359 MB / 0.5606 GB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 266 * Number of variables: 266 Notification: Performance of Generate backend data structure: time 0.003899/0.5637, allocations: 2.108 MB / 0.7159 GB, free: 6.195 MB / 0.5606 GB Notification: Performance of prepare preOptimizeDAE: time 3.826e-05/0.5637, allocations: 8.031 kB / 0.7159 GB, free: 6.188 MB / 0.5606 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.000327/0.5641, allocations: 199.4 kB / 0.7161 GB, free: 5.992 MB / 0.5606 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.00173/0.5658, allocations: 1.106 MB / 0.7172 GB, free: 4.832 MB / 0.5606 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 7.125e-05/0.5659, allocations: 82.47 kB / 0.7173 GB, free: 4.75 MB / 0.5606 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001675/0.5661, allocations: 111.9 kB / 0.7174 GB, free: 4.641 MB / 0.5606 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001889/0.568, allocations: 1.179 MB / 0.7185 GB, free: 3.391 MB / 0.5606 GB Notification: Performance of preOpt findStateOrder (simulation): time 2.205e-05/0.568, allocations: 2.391 kB / 0.7185 GB, free: 3.391 MB / 0.5606 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 9.699e-05/0.5681, allocations: 44 kB / 0.7186 GB, free: 3.348 MB / 0.5606 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.41e-05/0.5681, allocations: 27.94 kB / 0.7186 GB, free: 3.32 MB / 0.5606 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001734/0.5699, allocations: 1.078 MB / 0.7196 GB, free: 2.242 MB / 0.5606 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.006882/0.5768, allocations: 5.29 MB / 0.7248 GB, free: 12.59 MB / 0.5762 GB Notification: Performance of preOpt comSubExp (simulation): time 0.001434/0.5782, allocations: 0.7398 MB / 0.7255 GB, free: 11.82 MB / 0.5762 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0006681/0.5789, allocations: 436.1 kB / 0.7259 GB, free: 11.39 MB / 0.5762 GB Notification: Performance of preOpt evalFunc (simulation): time 0.004571/0.5835, allocations: 3.899 MB / 0.7298 GB, free: 6.941 MB / 0.5762 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.839e-05/0.5836, allocations: 47.81 kB / 0.7298 GB, free: 6.887 MB / 0.5762 GB Notification: Performance of pre-optimization done (n=108): time 3.146e-06/0.5836, allocations: 0 / 0.7298 GB, free: 6.887 MB / 0.5762 GB Notification: Performance of matching and sorting (n=108): time 0.003677/0.5873, allocations: 1.839 MB / 0.7316 GB, free: 4.938 MB / 0.5762 GB Notification: Performance of inlineWhenForInitialization (initialization): time 7.131e-05/0.5874, allocations: 119.3 kB / 0.7317 GB, free: 4.797 MB / 0.5762 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001583/0.589, allocations: 1.282 MB / 0.733 GB, free: 3.504 MB / 0.5762 GB Notification: Performance of collectPreVariables (initialization): time 7.536e-05/0.5891, allocations: 45.7 kB / 0.733 GB, free: 3.453 MB / 0.5762 GB Notification: Performance of collectInitialEqns (initialization): time 0.000534/0.5896, allocations: 0.6245 MB / 0.7336 GB, free: 2.82 MB / 0.5762 GB Notification: Performance of collectInitialBindings (initialization): time 0.0003116/0.5899, allocations: 370.6 kB / 0.734 GB, free: 2.453 MB / 0.5762 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002936/0.5902, allocations: 200.7 kB / 0.7342 GB, free: 2.254 MB / 0.5762 GB Notification: Performance of setup shared object (initialization): time 0.000153/0.5904, allocations: 345.9 kB / 0.7345 GB, free: 1.91 MB / 0.5762 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0005403/0.5909, allocations: 294.5 kB / 0.7348 GB, free: 1.625 MB / 0.5762 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0007188/0.5917, allocations: 457.2 kB / 0.7352 GB, free: 1.129 MB / 0.5762 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.001306/0.593, allocations: 0.7701 MB / 0.736 GB, free: 340 kB / 0.5762 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 7.093e-06/0.593, allocations: 3.938 kB / 0.736 GB, free: 336 kB / 0.5762 GB Notification: Performance of matching and sorting (n=127) (initialization): time 0.2116/0.8046, allocations: 1.146 MB / 0.7371 GB, free: 177.4 MB / 0.5762 GB Notification: Performance of prepare postOptimizeDAE: time 2.929e-05/0.8047, allocations: 6.688 kB / 0.7371 GB, free: 177.4 MB / 0.5762 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.344e-05/0.8047, allocations: 3.188 kB / 0.7371 GB, free: 177.4 MB / 0.5762 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.000544/0.8052, allocations: 166.5 kB / 0.7372 GB, free: 177.4 MB / 0.5762 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.000726/0.806, allocations: 207.3 kB / 0.7374 GB, free: 177.4 MB / 0.5762 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.003634/0.8096, allocations: 7.249 MB / 0.7445 GB, free: 170.7 MB / 0.5762 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.000797/0.8104, allocations: 104.7 kB / 0.7446 GB, free: 170.7 MB / 0.5762 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 9.277e-05/0.8105, allocations: 46.78 kB / 0.7447 GB, free: 170.7 MB / 0.5762 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 12 * 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 (117): * Single equations (assignments): 112 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 5 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 5 systems {(1,2,100.0%), (1,2,100.0%), (1,2,100.0%), (1,2,100.0%), (1,2,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of prepare postOptimizeDAE: time 0.0004759/0.811, allocations: 315 kB / 0.745 GB, free: 170.6 MB / 0.5762 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002766/0.8113, allocations: 165.8 kB / 0.7451 GB, free: 170.5 MB / 0.5762 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.002513/0.8138, allocations: 1.716 MB / 0.7468 GB, free: 170.2 MB / 0.5762 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 8.245e-06/0.8139, allocations: 8.672 kB / 0.7468 GB, free: 170.2 MB / 0.5762 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.761e-06/0.8139, allocations: 3.438 kB / 0.7468 GB, free: 170.2 MB / 0.5762 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.255e-05/0.8139, allocations: 10.28 kB / 0.7468 GB, free: 170.2 MB / 0.5762 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.003025/0.8169, allocations: 2.399 MB / 0.7492 GB, free: 169.5 MB / 0.5762 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.941e-06/0.8169, allocations: 2.875 kB / 0.7492 GB, free: 169.5 MB / 0.5762 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0004459/0.8174, allocations: 131.4 kB / 0.7493 GB, free: 169.5 MB / 0.5762 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.000433/0.8178, allocations: 167 kB / 0.7495 GB, free: 169.5 MB / 0.5762 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 5.528e-05/0.8179, allocations: 28.8 kB / 0.7495 GB, free: 169.5 MB / 0.5762 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.003377/0.8213, allocations: 7.257 MB / 0.7566 GB, free: 162.7 MB / 0.5762 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.877e-06/0.8213, allocations: 8.031 kB / 0.7566 GB, free: 162.7 MB / 0.5762 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002223/0.8235, allocations: 1.583 MB / 0.7581 GB, free: 162.2 MB / 0.5762 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0004267/0.824, allocations: 334.1 kB / 0.7584 GB, free: 162 MB / 0.5762 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.00018/0.8242, allocations: 39.09 kB / 0.7585 GB, free: 162 MB / 0.5762 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0005455/0.8247, allocations: 19.31 kB / 0.7585 GB, free: 162 MB / 0.5762 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001268/0.8249, allocations: 77.55 kB / 0.7586 GB, free: 162 MB / 0.5762 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.96e-05/0.8249, allocations: 30.98 kB / 0.7586 GB, free: 162 MB / 0.5762 GB Notification: Performance of sorting global known variables: time 0.001128/0.8261, allocations: 0.9995 MB / 0.7596 GB, free: 161.9 MB / 0.5762 GB Notification: Performance of sort global known variables: time 1.7e-07/0.8261, allocations: 0 / 0.7596 GB, free: 161.9 MB / 0.5762 GB Notification: Performance of remove unused functions: time 0.00134/0.8274, allocations: 458.5 kB / 0.76 GB, free: 161.8 MB / 0.5762 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 14 * Number of states: 5 (flowResistance1.m_flow,flowResistance.m_flow,basicControlValve.m_flow,specificValveType.m_flow,tanValve.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 (74): * Single equations (assignments): 69 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 5 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 5 systems {(1,2,100.0%), (1,2,100.0%), (1,2,100.0%), (1,2,100.0%), (1,2,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of Backend phase and start with SimCode phase: time 0.001794/0.8292, allocations: 0.7483 MB / 0.7607 GB, free: 161.7 MB / 0.5762 GB Notification: Performance of simCode: created initialization part: time 0.001996/0.8312, allocations: 1.371 MB / 0.7621 GB, free: 161.2 MB / 0.5762 GB Notification: Performance of simCode: created event and clocks part: time 4.068e-06/0.8312, allocations: 1.969 kB / 0.7621 GB, free: 161.2 MB / 0.5762 GB Notification: Performance of simCode: created simulation system equations: time 0.0009856/0.8322, allocations: 0.939 MB / 0.763 GB, free: 160.6 MB / 0.5762 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002345/0.8346, allocations: 495.2 kB / 0.7635 GB, free: 160.6 MB / 0.5762 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.004882/0.8395, allocations: 2.911 MB / 0.7663 GB, free: 159.4 MB / 0.5762 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0006212/0.8401, allocations: 1.217 MB / 0.7675 GB, free: 158.7 MB / 0.5762 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0004029/0.8405, allocations: 153.8 kB / 0.7677 GB, free: 158.6 MB / 0.5762 GB Notification: Performance of SimCode: time 8.92e-07/0.8405, allocations: 1.5 kB / 0.7677 GB, free: 158.6 MB / 0.5762 GB Notification: Performance of Templates: time 0.05725/0.8978, allocations: 52.66 MB / 0.8191 GB, free: 130 MB / 0.5762 GB make -j1 -f ThermofluidStream_dev_ThermofluidStream.Undirected.Interfaces.Tests.Test_p_out_clipping.makefile (rm -f ThermofluidStream_dev_ThermofluidStream.Undirected.Interfaces.Tests.Test_p_out_clipping.pipe ; mkfifo ThermofluidStream_dev_ThermofluidStream.Undirected.Interfaces.Tests.Test_p_out_clipping.pipe ; head -c 1048576 < ThermofluidStream_dev_ThermofluidStream.Undirected.Interfaces.Tests.Test_p_out_clipping.pipe >> ../files/ThermofluidStream_dev_ThermofluidStream.Undirected.Interfaces.Tests.Test_p_out_clipping.sim & ./ThermofluidStream_dev_ThermofluidStream.Undirected.Interfaces.Tests.Test_p_out_clipping -abortSlowSimulation -alarm=1200 -emit_protected -lv LOG_STATS > ThermofluidStream_dev_ThermofluidStream.Undirected.Interfaces.Tests.Test_p_out_clipping.pipe 2>&1) diffSimulationResults("ThermofluidStream_dev_ThermofluidStream.Undirected.Interfaces.Tests.Test_p_out_clipping_res.mat","/mnt/ReferenceFiles/ThermofluidStream-main-regression/ReferenceData/ThermofluidStream.Undirected.Interfaces.Tests.Test_p_out_clipping_ref.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/ThermofluidStream_dev_ThermofluidStream.Undirected.Interfaces.Tests.Test_p_out_clipping.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches