Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr ThermofluidStream_dev_ThermofluidStream.Undirected.Processes.Tests.TestFlowResistance.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.Processes.Tests.TestFlowResistance,tolerance=1e-06,outputFormat="mat",numberOfIntervals=2000,variableFilter="Time|flowResistance.rear.m_flow|flowResistance1.rear.m_flow",fileNamePrefix="ThermofluidStream_dev_ThermofluidStream.Undirected.Processes.Tests.TestFlowResistance") translateModel(ThermofluidStream.Undirected.Processes.Tests.TestFlowResistance,tolerance=1e-06,outputFormat="mat",numberOfIntervals=2000,variableFilter="Time|flowResistance.rear.m_flow|flowResistance1.rear.m_flow",fileNamePrefix="ThermofluidStream_dev_ThermofluidStream.Undirected.Processes.Tests.TestFlowResistance") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001676/0.001676, allocations: 104.1 kB / 16.4 MB, free: 6.508 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.001634/0.001634, allocations: 188 kB / 17.34 MB, free: 5.738 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.469/1.469, allocations: 222.9 MB / 241 MB, free: 15.15 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ThermofluidStream 1.1.0-main/package.mo): time 0.761/0.761, allocations: 97.65 MB / 388.8 MB, free: 1.445 MB / 302.1 MB Notification: Performance of FrontEnd - loaded program: time 0.002404/0.002404, allocations: 88.89 kB / 0.5268 GB, free: 38.39 MB / 446.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1008/0.1032, allocations: 69.23 MB / 0.5944 GB, free: 0.4961 MB / 446.1 MB Notification: Performance of NFInst.instantiate(ThermofluidStream.Undirected.Processes.Tests.TestFlowResistance): time 0.1754/0.2786, allocations: 149.9 MB / 0.7408 GB, free: 9.973 MB / 0.5919 GB Notification: Performance of NFInst.instExpressions: time 0.006113/0.2848, allocations: 4.643 MB / 0.7454 GB, free: 5.316 MB / 0.5919 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.0004515/0.2852, allocations: 27.81 kB / 0.7454 GB, free: 5.289 MB / 0.5919 GB Notification: Performance of NFTyping.typeComponents: time 0.0007945/0.286, allocations: 294 kB / 0.7457 GB, free: 5 MB / 0.5919 GB Notification: Performance of NFTyping.typeBindings: time 0.001504/0.2875, allocations: 0.6836 MB / 0.7463 GB, free: 4.312 MB / 0.5919 GB Notification: Performance of NFTyping.typeClassSections: time 0.001107/0.2886, allocations: 0.4905 MB / 0.7468 GB, free: 3.82 MB / 0.5919 GB Notification: Performance of NFFlatten.flatten: time 0.001108/0.2897, allocations: 0.9878 MB / 0.7478 GB, free: 2.828 MB / 0.5919 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0002304/0.29, allocations: 102.2 kB / 0.7479 GB, free: 2.719 MB / 0.5919 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0009479/0.2909, allocations: 0.529 MB / 0.7484 GB, free: 2.188 MB / 0.5919 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0005968/0.2915, allocations: 458.1 kB / 0.7488 GB, free: 1.738 MB / 0.5919 GB Notification: Performance of NFPackage.collectConstants: time 6.817e-05/0.2916, allocations: 44 kB / 0.7489 GB, free: 1.695 MB / 0.5919 GB Notification: Performance of NFFlatten.collectFunctions: time 0.00147/0.293, allocations: 0.7681 MB / 0.7496 GB, free: 0.9258 MB / 0.5919 GB Notification: Performance of NFScalarize.scalarize: time 0.0001256/0.2932, allocations: 119.4 kB / 0.7497 GB, free: 0.8086 MB / 0.5919 GB Notification: Performance of NFVerifyModel.verify: time 0.0002965/0.2935, allocations: 314.2 kB / 0.75 GB, free: 0.5 MB / 0.5919 GB Notification: Performance of NFConvertDAE.convert: time 0.2937/0.5872, allocations: 0.9683 MB / 0.751 GB, free: 5.066 MB / 0.5919 GB Notification: Performance of FrontEnd - DAE generated: time 6.292e-06/0.5872, allocations: 1 kB / 0.751 GB, free: 5.066 MB / 0.5919 GB Notification: Performance of FrontEnd: time 2.625e-06/0.5872, allocations: 4.75 kB / 0.751 GB, free: 5.066 MB / 0.5919 GB Notification: Performance of Transformations before backend: time 1.28e-05/0.5872, allocations: 0.5 kB / 0.751 GB, free: 5.066 MB / 0.5919 GB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 107 * Number of variables: 107 Notification: Performance of Generate backend data structure: time 0.001496/0.5887, allocations: 0.9902 MB / 0.752 GB, free: 4.441 MB / 0.5919 GB Notification: Performance of prepare preOptimizeDAE: time 3.42e-05/0.5887, allocations: 11.16 kB / 0.752 GB, free: 4.441 MB / 0.5919 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001239/0.5888, allocations: 75.75 kB / 0.752 GB, free: 4.402 MB / 0.5919 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.000796/0.5896, allocations: 0.5545 MB / 0.7526 GB, free: 4.125 MB / 0.5919 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.418e-05/0.5897, allocations: 30.09 kB / 0.7526 GB, free: 4.125 MB / 0.5919 GB Notification: Performance of preOpt expandDerOperator (simulation): time 7.363e-05/0.5897, allocations: 42.09 kB / 0.7526 GB, free: 4.125 MB / 0.5919 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0007447/0.5905, allocations: 0.5108 MB / 0.7531 GB, free: 4.047 MB / 0.5919 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.55e-05/0.5905, allocations: 0 / 0.7531 GB, free: 4.047 MB / 0.5919 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.603e-05/0.5905, allocations: 16.91 kB / 0.7532 GB, free: 4.047 MB / 0.5919 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 9.778e-06/0.5905, allocations: 9.094 kB / 0.7532 GB, free: 4.047 MB / 0.5919 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0006881/0.5912, allocations: 486.9 kB / 0.7536 GB, free: 4.039 MB / 0.5919 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002307/0.5935, allocations: 2.168 MB / 0.7558 GB, free: 18.74 MB / 0.6075 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0007236/0.5943, allocations: 338.5 kB / 0.7561 GB, free: 18.71 MB / 0.6075 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002867/0.5945, allocations: 180.9 kB / 0.7562 GB, free: 18.7 MB / 0.6075 GB Notification: Performance of preOpt evalFunc (simulation): time 0.002589/0.5971, allocations: 1.996 MB / 0.7582 GB, free: 17.09 MB / 0.6075 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.878e-05/0.5972, allocations: 37.59 kB / 0.7582 GB, free: 17.05 MB / 0.6075 GB Notification: Performance of pre-optimization done (n=47): time 1.903e-06/0.5972, allocations: 0.875 kB / 0.7582 GB, free: 17.05 MB / 0.6075 GB Notification: Performance of matching and sorting (n=47): time 0.001665/0.5988, allocations: 0.7971 MB / 0.759 GB, free: 16.76 MB / 0.6075 GB Notification: Performance of inlineWhenForInitialization (initialization): time 4.271e-05/0.5989, allocations: 56.94 kB / 0.7591 GB, free: 16.7 MB / 0.6075 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0005452/0.5994, allocations: 485.7 kB / 0.7595 GB, free: 16.58 MB / 0.6075 GB Notification: Performance of collectPreVariables (initialization): time 4.025e-05/0.5994, allocations: 30.77 kB / 0.7596 GB, free: 16.55 MB / 0.6075 GB Notification: Performance of collectInitialEqns (initialization): time 0.0001857/0.5996, allocations: 278 kB / 0.7598 GB, free: 16.43 MB / 0.6075 GB Notification: Performance of collectInitialBindings (initialization): time 9.92e-05/0.5997, allocations: 167.3 kB / 0.76 GB, free: 16.32 MB / 0.6075 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001126/0.5998, allocations: 82.39 kB / 0.7601 GB, free: 16.3 MB / 0.6075 GB Notification: Performance of setup shared object (initialization): time 0.0001784/0.6, allocations: 370.3 kB / 0.7604 GB, free: 15.99 MB / 0.6075 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.000242/0.6003, allocations: 129.9 kB / 0.7605 GB, free: 15.99 MB / 0.6075 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002891/0.6006, allocations: 185.5 kB / 0.7607 GB, free: 15.95 MB / 0.6075 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0005623/0.6011, allocations: 344.2 kB / 0.761 GB, free: 15.9 MB / 0.6075 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.515e-06/0.6011, allocations: 0 / 0.761 GB, free: 15.9 MB / 0.6075 GB Notification: Performance of matching and sorting (n=53) (initialization): time 0.0009395/0.6021, allocations: 0.4994 MB / 0.7615 GB, free: 15.81 MB / 0.6075 GB Notification: Performance of prepare postOptimizeDAE: time 2.068e-05/0.6021, allocations: 6.391 kB / 0.7615 GB, free: 15.81 MB / 0.6075 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.224e-06/0.6021, allocations: 1.75 kB / 0.7615 GB, free: 15.81 MB / 0.6075 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.000294/0.6024, allocations: 68.86 kB / 0.7616 GB, free: 15.79 MB / 0.6075 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003298/0.6027, allocations: 92.25 kB / 0.7617 GB, free: 15.79 MB / 0.6075 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002354/0.6051, allocations: 2.924 MB / 0.7645 GB, free: 13.09 MB / 0.6075 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002797/0.6053, allocations: 46.61 kB / 0.7646 GB, free: 13.06 MB / 0.6075 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.508e-05/0.6054, allocations: 20.92 kB / 0.7646 GB, free: 13.06 MB / 0.6075 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 5 * 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 (49): * Single equations (assignments): 47 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 2 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 2 systems {(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.0002385/0.6056, allocations: 173.1 kB / 0.7648 GB, free: 12.95 MB / 0.6075 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001109/0.6057, allocations: 59.91 kB / 0.7648 GB, free: 12.92 MB / 0.6075 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001364/0.6071, allocations: 0.7064 MB / 0.7655 GB, free: 12.78 MB / 0.6075 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.552e-06/0.6071, allocations: 7.281 kB / 0.7655 GB, free: 12.78 MB / 0.6075 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.409e-06/0.6071, allocations: 1.688 kB / 0.7655 GB, free: 12.78 MB / 0.6075 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.293e-06/0.6071, allocations: 4.391 kB / 0.7655 GB, free: 12.78 MB / 0.6075 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001854/0.609, allocations: 1.189 MB / 0.7667 GB, free: 12.4 MB / 0.6075 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.178e-06/0.609, allocations: 1.938 kB / 0.7667 GB, free: 12.4 MB / 0.6075 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.000296/0.6093, allocations: 84.06 kB / 0.7668 GB, free: 12.4 MB / 0.6075 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.0002229/0.6095, allocations: 61.59 kB / 0.7668 GB, free: 12.38 MB / 0.6075 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.952e-05/0.6095, allocations: 20.91 kB / 0.7669 GB, free: 12.38 MB / 0.6075 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.002365/0.6119, allocations: 2.932 MB / 0.7697 GB, free: 9.68 MB / 0.6075 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.427e-06/0.6119, allocations: 2.469 kB / 0.7697 GB, free: 9.68 MB / 0.6075 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001287/0.6132, allocations: 0.7631 MB / 0.7705 GB, free: 9.453 MB / 0.6075 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0001456/0.6133, allocations: 144 kB / 0.7706 GB, free: 9.316 MB / 0.6075 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 7.069e-05/0.6134, allocations: 13.92 kB / 0.7706 GB, free: 9.312 MB / 0.6075 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.000238/0.6136, allocations: 11.97 kB / 0.7706 GB, free: 9.312 MB / 0.6075 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 8.082e-05/0.6137, allocations: 42.58 kB / 0.7707 GB, free: 9.309 MB / 0.6075 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.882e-05/0.6138, allocations: 21.61 kB / 0.7707 GB, free: 9.309 MB / 0.6075 GB Notification: Performance of sorting global known variables: time 0.0003989/0.6142, allocations: 362.9 kB / 0.771 GB, free: 9.227 MB / 0.6075 GB Notification: Performance of sort global known variables: time 9.1e-08/0.6142, allocations: 0.9062 kB / 0.771 GB, free: 9.227 MB / 0.6075 GB Notification: Performance of remove unused functions: time 0.000703/0.6149, allocations: 196.7 kB / 0.7712 GB, free: 9.207 MB / 0.6075 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 5 * Number of states: 2 (flowResistance.rear.m_flow,flowResistance1.rear.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 (43): * Single equations (assignments): 41 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 2 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 2 systems {(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.0004232/0.6153, allocations: 271.5 kB / 0.7715 GB, free: 9.105 MB / 0.6075 GB Notification: Performance of simCode: created initialization part: time 0.001016/0.6163, allocations: 0.5693 MB / 0.772 GB, free: 8.883 MB / 0.6075 GB Notification: Performance of simCode: created event and clocks part: time 2.935e-06/0.6163, allocations: 1.344 kB / 0.772 GB, free: 8.883 MB / 0.6075 GB Notification: Performance of simCode: created simulation system equations: time 0.0006638/0.617, allocations: 419.6 kB / 0.7724 GB, free: 8.66 MB / 0.6075 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001031/0.618, allocations: 185.7 kB / 0.7726 GB, free: 8.645 MB / 0.6075 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002017/0.62, allocations: 1.153 MB / 0.7737 GB, free: 8.148 MB / 0.6075 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004599/0.6205, allocations: 0.8724 MB / 0.7746 GB, free: 7.449 MB / 0.6075 GB Notification: Performance of simCode: alias equations: time 0.0003411/0.6208, allocations: 112.4 kB / 0.7747 GB, free: 7.438 MB / 0.6075 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001346/0.621, allocations: 64.03 kB / 0.7748 GB, free: 7.43 MB / 0.6075 GB Notification: Performance of SimCode: time 6.41e-07/0.621, allocations: 0.9062 kB / 0.7748 GB, free: 7.43 MB / 0.6075 GB Notification: Performance of Templates: time 0.01691/0.6379, allocations: 10.64 MB / 0.7852 GB, free: 6.547 MB / 0.6075 GB make -j1 -f ThermofluidStream_dev_ThermofluidStream.Undirected.Processes.Tests.TestFlowResistance.makefile (rm -f ThermofluidStream_dev_ThermofluidStream.Undirected.Processes.Tests.TestFlowResistance.pipe ; mkfifo ThermofluidStream_dev_ThermofluidStream.Undirected.Processes.Tests.TestFlowResistance.pipe ; head -c 1048576 < ThermofluidStream_dev_ThermofluidStream.Undirected.Processes.Tests.TestFlowResistance.pipe >> ../files/ThermofluidStream_dev_ThermofluidStream.Undirected.Processes.Tests.TestFlowResistance.sim & ./ThermofluidStream_dev_ThermofluidStream.Undirected.Processes.Tests.TestFlowResistance -abortSlowSimulation -alarm=1200 -s gbode -emit_protected -lv LOG_STATS > ThermofluidStream_dev_ThermofluidStream.Undirected.Processes.Tests.TestFlowResistance.pipe 2>&1) diffSimulationResults("ThermofluidStream_dev_ThermofluidStream.Undirected.Processes.Tests.TestFlowResistance_res.mat","/mnt/ReferenceFiles/ThermofluidStream-main-regression/ReferenceData/ThermofluidStream.Undirected.Processes.Tests.TestFlowResistance_ref.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/ThermofluidStream_dev_ThermofluidStream.Undirected.Processes.Tests.TestFlowResistance.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches