Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr ThermofluidStream_ThermofluidStream.Undirected.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.0008036/0.0008036, allocations: 76.5 kB / 19.93 MB, free: 4.629 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.0007679/0.0007679, allocations: 178.2 kB / 23.22 MB, free: 1.348 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 0.8348/0.8348, allocations: 177.1 MB / 203.5 MB, free: 5.77 MB / 186.7 MB " [Timeout remaining time 179] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ThermofluidStream 1.3.0/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ThermofluidStream 1.3.0/package.mo): time 0.4988/0.4988, allocations: 80.18 MB / 340.1 MB, free: 7.535 MB / 314.7 MB " [Timeout remaining time 179] Using package ThermofluidStream with version 1.3.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ThermofluidStream 1.3.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.Undirected.FlowControl.Tests.BasicControlValve,tolerance=1e-06,outputFormat="mat",numberOfIntervals=1000,variableFilter="Time|boundary_rear.fore.m_flow|boundary_rear1.fore.m_flow|boundary_rear2.fore.m_flow|pulse.T_start|pulse.count",fileNamePrefix="ThermofluidStream_ThermofluidStream.Undirected.FlowControl.Tests.BasicControlValve") translateModel(ThermofluidStream.Undirected.FlowControl.Tests.BasicControlValve,tolerance=1e-06,outputFormat="mat",numberOfIntervals=1000,variableFilter="Time|boundary_rear.fore.m_flow|boundary_rear1.fore.m_flow|boundary_rear2.fore.m_flow|pulse.T_start|pulse.count",fileNamePrefix="ThermofluidStream_ThermofluidStream.Undirected.FlowControl.Tests.BasicControlValve") [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 1.202e-06/1.202e-06, allocations: 0 / 0.4936 GB, free: 6.324 MB / 410.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 1.354e-05/1.474e-05, allocations: 3.281 kB / 0.4936 GB, free: 6.32 MB / 410.7 MB Notification: Performance of NFInst.instantiate(ThermofluidStream.Undirected.FlowControl.Tests.BasicControlValve): time 0.03544/0.03545, allocations: 60.71 MB / 0.5529 GB, free: 11.08 MB / 474.7 MB Notification: Performance of NFInst.instExpressions: time 0.01269/0.04814, allocations: 16.2 MB / 0.5687 GB, free: 10.83 MB / 490.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0009456/0.04909, allocations: 111 kB / 0.5688 GB, free: 10.72 MB / 490.7 MB Notification: Performance of NFTyping.typeComponents: time 0.001436/0.05052, allocations: 1.109 MB / 0.5699 GB, free: 9.602 MB / 490.7 MB Notification: Performance of NFTyping.typeBindings: time 0.003719/0.05424, allocations: 3.092 MB / 0.5729 GB, free: 6.488 MB / 490.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.002105/0.05635, allocations: 1.627 MB / 0.5745 GB, free: 4.855 MB / 490.7 MB Notification: Performance of NFFlatten.flatten: time 0.002562/0.05891, allocations: 4.321 MB / 0.5787 GB, free: 0.5078 MB / 490.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0004267/0.05934, allocations: 383.1 kB / 0.5791 GB, free: 108 kB / 490.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.001839/0.06118, allocations: 2.329 MB / 0.5814 GB, free: 13.77 MB / 0.4948 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0009171/0.06209, allocations: 1.285 MB / 0.5826 GB, free: 12.48 MB / 0.4948 GB Notification: Performance of NFPackage.collectConstants: time 0.0001654/0.06226, allocations: 195.9 kB / 0.5828 GB, free: 12.29 MB / 0.4948 GB Notification: Performance of NFFlatten.collectFunctions: time 0.001852/0.06411, allocations: 1.524 MB / 0.5843 GB, free: 10.76 MB / 0.4948 GB Notification: Performance of NFScalarize.scalarize: time 0.0002621/0.06437, allocations: 0.4977 MB / 0.5848 GB, free: 10.26 MB / 0.4948 GB Notification: Performance of NFVerifyModel.verify: time 0.0008124/0.06518, allocations: 0.9157 MB / 0.5857 GB, free: 9.344 MB / 0.4948 GB Notification: Performance of NFConvertDAE.convert: time 0.002727/0.06791, allocations: 3.882 MB / 0.5895 GB, free: 5.449 MB / 0.4948 GB Notification: Performance of FrontEnd - DAE generated: time 4.318e-06/0.06792, allocations: 4 kB / 0.5895 GB, free: 5.445 MB / 0.4948 GB Notification: Performance of FrontEnd: time 1.503e-06/0.06792, allocations: 0 / 0.5895 GB, free: 5.445 MB / 0.4948 GB Notification: Performance of Transformations before backend: time 1.771e-05/0.06794, allocations: 0 / 0.5895 GB, free: 5.445 MB / 0.4948 GB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 479 * Number of variables: 479 Notification: Performance of Generate backend data structure: time 0.003141/0.07108, allocations: 2.993 MB / 0.5924 GB, free: 2.398 MB / 0.4948 GB Notification: Performance of prepare preOptimizeDAE: time 3.435e-05/0.07111, allocations: 8.031 kB / 0.5924 GB, free: 2.391 MB / 0.4948 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0005293/0.07164, allocations: 347.1 kB / 0.5927 GB, free: 2.051 MB / 0.4948 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001489/0.07313, allocations: 1.374 MB / 0.5941 GB, free: 0.6328 MB / 0.4948 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 6.631e-05/0.0732, allocations: 148.1 kB / 0.5942 GB, free: 500 kB / 0.4948 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001605/0.07336, allocations: 188.4 kB / 0.5944 GB, free: 312 kB / 0.4948 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.002066/0.07542, allocations: 2.246 MB / 0.5966 GB, free: 14.01 MB / 0.5105 GB Notification: Performance of preOpt findStateOrder (simulation): time 2.595e-05/0.07545, allocations: 192 / 0.5966 GB, free: 14.01 MB / 0.5105 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 9.302e-05/0.07554, allocations: 80.12 kB / 0.5967 GB, free: 13.93 MB / 0.5105 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.133e-05/0.07556, allocations: 44 kB / 0.5967 GB, free: 13.89 MB / 0.5105 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.00243/0.07799, allocations: 2.302 MB / 0.599 GB, free: 11.58 MB / 0.5105 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.004807/0.0828, allocations: 5.036 MB / 0.6039 GB, free: 6.465 MB / 0.5105 GB Notification: Performance of preOpt comSubExp (simulation): time 0.001859/0.08466, allocations: 1.797 MB / 0.6056 GB, free: 4.664 MB / 0.5105 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.001185/0.08584, allocations: 0.8854 MB / 0.6065 GB, free: 3.777 MB / 0.5105 GB Notification: Performance of preOpt evalFunc (simulation): time 0.003301/0.08915, allocations: 2.781 MB / 0.6092 GB, free: 0.9688 MB / 0.5105 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.001071/0.09022, allocations: 1.113 MB / 0.6103 GB, free: 15.82 MB / 0.5261 GB Notification: Performance of pre-optimization done (n=200): time 2.925e-06/0.09022, allocations: 4 kB / 0.6103 GB, free: 15.81 MB / 0.5261 GB Notification: Performance of matching and sorting (n=200): time 0.003354/0.09357, allocations: 2.73 MB / 0.613 GB, free: 13.07 MB / 0.5261 GB Notification: Performance of inlineWhenForInitialization (initialization): time 0.000304/0.09388, allocations: 154.5 kB / 0.6131 GB, free: 12.89 MB / 0.5261 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.000818/0.0947, allocations: 1.145 MB / 0.6142 GB, free: 11.73 MB / 0.5261 GB Notification: Performance of collectPreVariables (initialization): time 6.971e-05/0.09477, allocations: 57.7 kB / 0.6143 GB, free: 11.67 MB / 0.5261 GB Notification: Performance of collectInitialEqns (initialization): time 0.0004172/0.09518, allocations: 0.8835 MB / 0.6152 GB, free: 10.77 MB / 0.5261 GB Notification: Performance of collectInitialBindings (initialization): time 0.0003183/0.0955, allocations: 0.697 MB / 0.6158 GB, free: 10.07 MB / 0.5261 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002705/0.09577, allocations: 319.5 kB / 0.6162 GB, free: 9.754 MB / 0.5261 GB Notification: Performance of setup shared object (initialization): time 6.487e-05/0.09584, allocations: 305.1 kB / 0.6164 GB, free: 9.453 MB / 0.5261 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.000732/0.09657, allocations: 0.6654 MB / 0.6171 GB, free: 8.781 MB / 0.5261 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0008977/0.09747, allocations: 0.9978 MB / 0.6181 GB, free: 7.684 MB / 0.5261 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.001733/0.0992, allocations: 1.664 MB / 0.6197 GB, free: 5.949 MB / 0.5261 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.01e-06/0.0992, allocations: 0 / 0.6197 GB, free: 5.949 MB / 0.5261 GB Notification: Performance of matching and sorting (n=227) (initialization): time 0.00257/0.1018, allocations: 2.158 MB / 0.6218 GB, free: 3.762 MB / 0.5261 GB Notification: Performance of prepare postOptimizeDAE: time 3.131e-05/0.1018, allocations: 33.7 kB / 0.6218 GB, free: 3.723 MB / 0.5261 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.668e-06/0.1018, allocations: 8 kB / 0.6218 GB, free: 3.715 MB / 0.5261 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.0003096/0.1021, allocations: 162.5 kB / 0.622 GB, free: 3.547 MB / 0.5261 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0006769/0.1028, allocations: 391.4 kB / 0.6224 GB, free: 3.164 MB / 0.5261 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002301/0.1051, allocations: 4.451 MB / 0.6267 GB, free: 14.41 MB / 0.5417 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0004315/0.1055, allocations: 155.1 kB / 0.6269 GB, free: 14.26 MB / 0.5417 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0003437/0.1059, allocations: 83.97 kB / 0.6269 GB, free: 14.18 MB / 0.5417 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 22 * 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 (214): * Single equations (assignments): 210 * Array equations: 0 * Algorithm blocks: 1 * 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.0004044/0.1063, allocations: 361.4 kB / 0.6273 GB, free: 13.81 MB / 0.5417 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001912/0.1065, allocations: 202.7 kB / 0.6275 GB, free: 13.61 MB / 0.5417 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.003343/0.1098, allocations: 3.096 MB / 0.6305 GB, free: 10.59 MB / 0.5417 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.057e-05/0.1098, allocations: 23.94 kB / 0.6305 GB, free: 10.56 MB / 0.5417 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.278e-06/0.1098, allocations: 4 kB / 0.6305 GB, free: 10.56 MB / 0.5417 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.406e-05/0.1098, allocations: 15.91 kB / 0.6305 GB, free: 10.54 MB / 0.5417 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.004407/0.1143, allocations: 4.04 MB / 0.6345 GB, free: 6.43 MB / 0.5417 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.538e-06/0.1143, allocations: 0 / 0.6345 GB, free: 6.43 MB / 0.5417 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0006531/0.1149, allocations: 383.4 kB / 0.6349 GB, free: 6.055 MB / 0.5417 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.0002728/0.1152, allocations: 166.5 kB / 0.635 GB, free: 5.883 MB / 0.5417 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 8.009e-05/0.1153, allocations: 71.95 kB / 0.6351 GB, free: 5.812 MB / 0.5417 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.002149/0.1174, allocations: 4.423 MB / 0.6394 GB, free: 1.078 MB / 0.5417 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.282e-06/0.1174, allocations: 0 / 0.6394 GB, free: 1.078 MB / 0.5417 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.2021/0.3195, allocations: 3.215 MB / 0.6425 GB, free: 138.9 MB / 0.5417 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0005986/0.3201, allocations: 431.9 kB / 0.643 GB, free: 138.9 MB / 0.5417 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001278/0.3202, allocations: 46.11 kB / 0.643 GB, free: 138.9 MB / 0.5417 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0004545/0.3207, allocations: 58.05 kB / 0.6431 GB, free: 138.9 MB / 0.5417 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002347/0.3209, allocations: 170.1 kB / 0.6432 GB, free: 138.9 MB / 0.5417 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001114/0.321, allocations: 78.38 kB / 0.6433 GB, free: 138.9 MB / 0.5417 GB Notification: Performance of sorting global known variables: time 0.0007812/0.3218, allocations: 0.787 MB / 0.6441 GB, free: 138.6 MB / 0.5417 GB Notification: Performance of sort global known variables: time 2.3e-07/0.3218, allocations: 4.656 kB / 0.6441 GB, free: 138.6 MB / 0.5417 GB Notification: Performance of remove unused functions: time 0.001509/0.3233, allocations: 0.8607 MB / 0.6449 GB, free: 138.5 MB / 0.5417 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 7 * Number of states: 3 (flowResistance6.rear.m_flow,flowResistance2.rear.m_flow,flowResistance4.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 (213): * Single equations (assignments): 208 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 2 * 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.0008343/0.3242, allocations: 0.7923 MB / 0.6457 GB, free: 138.3 MB / 0.5417 GB Notification: Performance of simCode: created initialization part: time 0.002511/0.3267, allocations: 2.135 MB / 0.6478 GB, free: 137.3 MB / 0.5417 GB Notification: Performance of simCode: created event and clocks part: time 3.507e-06/0.3267, allocations: 0.5 kB / 0.6478 GB, free: 137.3 MB / 0.5417 GB Notification: Performance of simCode: created simulation system equations: time 0.001462/0.3281, allocations: 1.303 MB / 0.649 GB, free: 136.6 MB / 0.5417 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001942/0.3301, allocations: 0.8459 MB / 0.6499 GB, free: 136.4 MB / 0.5417 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.005087/0.3352, allocations: 4.247 MB / 0.654 GB, free: 134.5 MB / 0.5417 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0005589/0.3357, allocations: 0.8907 MB / 0.6549 GB, free: 134.4 MB / 0.5417 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0004136/0.3361, allocations: 259.6 kB / 0.6551 GB, free: 134.3 MB / 0.5417 GB Notification: Performance of SimCode: time 1.072e-06/0.3361, allocations: 0 / 0.6551 GB, free: 134.3 MB / 0.5417 GB Notification: Performance of Templates: time 0.03368/0.3698, allocations: 64.72 MB / 0.7183 GB, free: 75.14 MB / 0.5417 GB " [Timeout remaining time 660] make -j1 -f ThermofluidStream_ThermofluidStream.Undirected.FlowControl.Tests.BasicControlValve.makefile [Timeout 660] (rm -f ThermofluidStream_ThermofluidStream.Undirected.FlowControl.Tests.BasicControlValve.pipe ; mkfifo ThermofluidStream_ThermofluidStream.Undirected.FlowControl.Tests.BasicControlValve.pipe ; head -c 1048576 < ThermofluidStream_ThermofluidStream.Undirected.FlowControl.Tests.BasicControlValve.pipe >> ../files/ThermofluidStream_ThermofluidStream.Undirected.FlowControl.Tests.BasicControlValve.sim & ./ThermofluidStream_ThermofluidStream.Undirected.FlowControl.Tests.BasicControlValve -abortSlowSimulation -alarm=1200 -emit_protected -lv LOG_STATS > ThermofluidStream_ThermofluidStream.Undirected.FlowControl.Tests.BasicControlValve.pipe 2>&1) [Timeout 1200] diffSimulationResults("ThermofluidStream_ThermofluidStream.Undirected.FlowControl.Tests.BasicControlValve_res.mat","/mnt/ReferenceFiles/ThermofluidStream-main-regression/ReferenceData/ThermofluidStream.Undirected.FlowControl.Tests.BasicControlValve_ref.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/ThermofluidStream_ThermofluidStream.Undirected.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.451356994919479]