Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr ThermofluidStream_ThermofluidStream.Undirected.Processes.Tests.TestFlowResistance.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.001584/0.001584, allocations: 110.2 kB / 19.69 MB, free: 2.254 MB / 14.72 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.001771/0.001771, allocations: 215.2 kB / 23.01 MB, free: 4.566 MB / 14.72 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.372/1.372, allocations: 230.6 MB / 256.8 MB, free: 8.023 MB / 206.1 MB " [Timeout remaining time 178] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ThermofluidStream 1.2.0/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ThermofluidStream 1.2.0/package.mo): time 0.7306/0.7306, allocations: 94.56 MB / 407.7 MB, free: 9.188 MB / 318.1 MB " [Timeout remaining time 179] Using package ThermofluidStream with version 1.2.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ThermofluidStream 1.2.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.Processes.Tests.TestFlowResistance,tolerance=1e-06,outputFormat="mat",numberOfIntervals=1000,variableFilter="Time|flowResistance.rear.m_flow|flowResistance1.rear.m_flow",fileNamePrefix="ThermofluidStream_ThermofluidStream.Undirected.Processes.Tests.TestFlowResistance") translateModel(ThermofluidStream.Undirected.Processes.Tests.TestFlowResistance,tolerance=1e-06,outputFormat="mat",numberOfIntervals=1000,variableFilter="Time|flowResistance.rear.m_flow|flowResistance1.rear.m_flow",fileNamePrefix="ThermofluidStream_ThermofluidStream.Undirected.Processes.Tests.TestFlowResistance") [Timeout 660] "Notification: ThermofluidStream requested package Modelica of version 4.0.0. Modelica 4.1.0 is used instead which states that it is fully compatible without conversion script needed. Notification: ThermofluidStream requested package Complex of version 4.0.0. Complex 4.1.0 is used instead which states that it is fully compatible without conversion script needed. Notification: Performance of FrontEnd - loaded program: time 0.002471/0.002471, allocations: 96.73 kB / 0.5562 GB, free: 38.39 MB / 446.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1109/0.1134, allocations: 73.05 MB / 0.6275 GB, free: 15.98 MB / 478.1 MB Notification: Performance of NFInst.instantiate(ThermofluidStream.Undirected.Processes.Tests.TestFlowResistance): time 0.4508/0.5642, allocations: 150.3 MB / 0.7743 GB, free: 2.18 MB / 0.5762 GB Notification: Performance of NFInst.instExpressions: time 0.00512/0.5693, allocations: 4.664 MB / 0.7788 GB, free: 2.094 MB / 0.5762 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.0005221/0.5698, allocations: 39.09 kB / 0.7789 GB, free: 2.094 MB / 0.5762 GB Notification: Performance of NFTyping.typeComponents: time 0.0007959/0.5706, allocations: 297.6 kB / 0.7791 GB, free: 2.086 MB / 0.5762 GB Notification: Performance of NFTyping.typeBindings: time 0.001626/0.5722, allocations: 0.6808 MB / 0.7798 GB, free: 2.059 MB / 0.5762 GB Notification: Performance of NFTyping.typeClassSections: time 0.001161/0.5734, allocations: 0.5154 MB / 0.7803 GB, free: 2.039 MB / 0.5762 GB Notification: Performance of NFFlatten.flatten: time 0.0009329/0.5743, allocations: 0.9982 MB / 0.7813 GB, free: 2.035 MB / 0.5762 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0001953/0.5745, allocations: 103.9 kB / 0.7814 GB, free: 2.008 MB / 0.5762 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0009274/0.5755, allocations: 0.5493 MB / 0.7819 GB, free: 1.996 MB / 0.5762 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0005984/0.5761, allocations: 468 kB / 0.7824 GB, free: 1.992 MB / 0.5762 GB Notification: Performance of NFPackage.collectConstants: time 9.704e-05/0.5762, allocations: 43.34 kB / 0.7824 GB, free: 1.992 MB / 0.5762 GB Notification: Performance of NFFlatten.collectFunctions: time 0.001586/0.5777, allocations: 0.8007 MB / 0.7832 GB, free: 1.973 MB / 0.5762 GB Notification: Performance of NFScalarize.scalarize: time 0.0001136/0.5779, allocations: 111.4 kB / 0.7833 GB, free: 1.973 MB / 0.5762 GB Notification: Performance of NFVerifyModel.verify: time 0.0002864/0.5781, allocations: 318.8 kB / 0.7836 GB, free: 1.973 MB / 0.5762 GB Notification: Performance of NFConvertDAE.convert: time 0.001382/0.5795, allocations: 0.9688 MB / 0.7845 GB, free: 1.906 MB / 0.5762 GB Notification: Performance of FrontEnd - DAE generated: time 4.328e-06/0.5795, allocations: 5.094 kB / 0.7846 GB, free: 1.902 MB / 0.5762 GB Notification: Performance of FrontEnd: time 1.153e-06/0.5795, allocations: 0 / 0.7846 GB, free: 1.902 MB / 0.5762 GB Notification: Performance of Transformations before backend: time 1.088e-05/0.5795, allocations: 0 / 0.7846 GB, free: 1.902 MB / 0.5762 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.001579/0.5811, allocations: 0.9105 MB / 0.7854 GB, free: 17.37 MB / 0.5919 GB Notification: Performance of prepare preOptimizeDAE: time 3.777e-05/0.5812, allocations: 11 kB / 0.7855 GB, free: 17.37 MB / 0.5919 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001428/0.5813, allocations: 80.45 kB / 0.7855 GB, free: 17.32 MB / 0.5919 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0008264/0.5821, allocations: 488.7 kB / 0.786 GB, free: 17.1 MB / 0.5919 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.918e-05/0.5822, allocations: 37.25 kB / 0.786 GB, free: 17.09 MB / 0.5919 GB Notification: Performance of preOpt expandDerOperator (simulation): time 6.238e-05/0.5822, allocations: 43.12 kB / 0.7861 GB, free: 17.09 MB / 0.5919 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0007075/0.5829, allocations: 0.5153 MB / 0.7866 GB, free: 17 MB / 0.5919 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.612e-05/0.5829, allocations: 3.25 kB / 0.7866 GB, free: 17 MB / 0.5919 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.515e-05/0.583, allocations: 18.16 kB / 0.7866 GB, free: 17 MB / 0.5919 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.162e-05/0.583, allocations: 10.06 kB / 0.7866 GB, free: 17 MB / 0.5919 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0006536/0.5836, allocations: 0.4913 MB / 0.7871 GB, free: 16.99 MB / 0.5919 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002168/0.5858, allocations: 2.132 MB / 0.7892 GB, free: 15.72 MB / 0.5919 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0006167/0.5864, allocations: 339.3 kB / 0.7895 GB, free: 15.69 MB / 0.5919 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002589/0.5867, allocations: 184.3 kB / 0.7897 GB, free: 15.68 MB / 0.5919 GB Notification: Performance of preOpt evalFunc (simulation): time 0.00172/0.5884, allocations: 0.9165 MB / 0.7906 GB, free: 15.41 MB / 0.5919 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.538e-05/0.5884, allocations: 44.25 kB / 0.7906 GB, free: 15.36 MB / 0.5919 GB Notification: Performance of pre-optimization done (n=47): time 1.573e-06/0.5884, allocations: 1.094 kB / 0.7906 GB, free: 15.36 MB / 0.5919 GB Notification: Performance of matching and sorting (n=47): time 0.00131/0.5897, allocations: 0.6489 MB / 0.7912 GB, free: 15.26 MB / 0.5919 GB Notification: Performance of inlineWhenForInitialization (initialization): time 4.024e-05/0.5898, allocations: 54.59 kB / 0.7913 GB, free: 15.2 MB / 0.5919 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0004135/0.5902, allocations: 489.9 kB / 0.7918 GB, free: 15.07 MB / 0.5919 GB Notification: Performance of collectPreVariables (initialization): time 3.495e-05/0.5902, allocations: 35.36 kB / 0.7918 GB, free: 15.04 MB / 0.5919 GB Notification: Performance of collectInitialEqns (initialization): time 0.0001619/0.5904, allocations: 268.2 kB / 0.792 GB, free: 14.92 MB / 0.5919 GB Notification: Performance of collectInitialBindings (initialization): time 8.067e-05/0.5905, allocations: 169.3 kB / 0.7922 GB, free: 14.81 MB / 0.5919 GB Notification: Performance of simplifyInitialFunctions (initialization): time 9.954e-05/0.5906, allocations: 83.69 kB / 0.7923 GB, free: 14.79 MB / 0.5919 GB Notification: Performance of setup shared object (initialization): time 0.0001602/0.5907, allocations: 370.2 kB / 0.7926 GB, free: 14.48 MB / 0.5919 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002104/0.5909, allocations: 129.4 kB / 0.7928 GB, free: 14.48 MB / 0.5919 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002333/0.5912, allocations: 188.1 kB / 0.7929 GB, free: 14.44 MB / 0.5919 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0004603/0.5916, allocations: 341.4 kB / 0.7933 GB, free: 14.39 MB / 0.5919 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.164e-06/0.5916, allocations: 0 / 0.7933 GB, free: 14.39 MB / 0.5919 GB Notification: Performance of matching and sorting (n=53) (initialization): time 0.0007492/0.5924, allocations: 0.5064 MB / 0.7938 GB, free: 14.29 MB / 0.5919 GB Notification: Performance of prepare postOptimizeDAE: time 1.481e-05/0.5924, allocations: 4.844 kB / 0.7938 GB, free: 14.29 MB / 0.5919 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.183e-06/0.5924, allocations: 2.312 kB / 0.7938 GB, free: 14.29 MB / 0.5919 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.0002525/0.5927, allocations: 65.2 kB / 0.7938 GB, free: 14.27 MB / 0.5919 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002647/0.5929, allocations: 94.7 kB / 0.7939 GB, free: 14.27 MB / 0.5919 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.00206/0.595, allocations: 2.714 MB / 0.7966 GB, free: 11.81 MB / 0.5919 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002487/0.5952, allocations: 40.67 kB / 0.7966 GB, free: 11.79 MB / 0.5919 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.355e-05/0.5953, allocations: 24.05 kB / 0.7966 GB, free: 11.79 MB / 0.5919 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.0002011/0.5955, allocations: 174 kB / 0.7968 GB, free: 11.67 MB / 0.5919 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 8.664e-05/0.5956, allocations: 67.7 kB / 0.7969 GB, free: 11.63 MB / 0.5919 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001087/0.5967, allocations: 0.7131 MB / 0.7976 GB, free: 11.49 MB / 0.5919 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.857e-06/0.5967, allocations: 3.219 kB / 0.7976 GB, free: 11.49 MB / 0.5919 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.196e-06/0.5967, allocations: 0 / 0.7976 GB, free: 11.49 MB / 0.5919 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.224e-06/0.5967, allocations: 4.781 kB / 0.7976 GB, free: 11.49 MB / 0.5919 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001575/0.5982, allocations: 1.158 MB / 0.7987 GB, free: 11.14 MB / 0.5919 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.757e-06/0.5982, allocations: 2.031 kB / 0.7987 GB, free: 11.14 MB / 0.5919 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.000225/0.5985, allocations: 74.23 kB / 0.7988 GB, free: 11.14 MB / 0.5919 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.0001983/0.5987, allocations: 74.48 kB / 0.7988 GB, free: 11.11 MB / 0.5919 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.791e-05/0.5987, allocations: 16.45 kB / 0.7989 GB, free: 11.11 MB / 0.5919 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.002054/0.6007, allocations: 2.729 MB / 0.8015 GB, free: 8.648 MB / 0.5919 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.715e-06/0.6008, allocations: 4.734 kB / 0.8015 GB, free: 8.648 MB / 0.5919 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001076/0.6018, allocations: 0.765 MB / 0.8023 GB, free: 8.414 MB / 0.5919 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0001217/0.6019, allocations: 63.42 kB / 0.8023 GB, free: 8.375 MB / 0.5919 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 6.677e-05/0.602, allocations: 15.84 kB / 0.8024 GB, free: 8.371 MB / 0.5919 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002038/0.6022, allocations: 8.875 kB / 0.8024 GB, free: 8.371 MB / 0.5919 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 7.282e-05/0.6023, allocations: 46.33 kB / 0.8024 GB, free: 8.367 MB / 0.5919 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.664e-05/0.6023, allocations: 21 kB / 0.8024 GB, free: 8.363 MB / 0.5919 GB Notification: Performance of sorting global known variables: time 0.0003413/0.6027, allocations: 370.1 kB / 0.8028 GB, free: 8.277 MB / 0.5919 GB Notification: Performance of sort global known variables: time 9e-08/0.6027, allocations: 0 / 0.8028 GB, free: 8.277 MB / 0.5919 GB Notification: Performance of remove unused functions: time 0.0006061/0.6033, allocations: 188.1 kB / 0.803 GB, free: 8.258 MB / 0.5919 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.0003818/0.6036, allocations: 284.4 kB / 0.8032 GB, free: 8.117 MB / 0.5919 GB Notification: Performance of simCode: created initialization part: time 0.0008437/0.6045, allocations: 0.573 MB / 0.8038 GB, free: 7.875 MB / 0.5919 GB Notification: Performance of simCode: created event and clocks part: time 2.235e-06/0.6045, allocations: 3.938 kB / 0.8038 GB, free: 7.871 MB / 0.5919 GB Notification: Performance of simCode: created simulation system equations: time 0.0005105/0.605, allocations: 417.9 kB / 0.8042 GB, free: 7.652 MB / 0.5919 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0008334/0.6058, allocations: 182.8 kB / 0.8044 GB, free: 7.625 MB / 0.5919 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001894/0.6077, allocations: 1.184 MB / 0.8055 GB, free: 7.008 MB / 0.5919 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004448/0.6082, allocations: 0.8731 MB / 0.8064 GB, free: 6.297 MB / 0.5919 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001421/0.6083, allocations: 68.88 kB / 0.8064 GB, free: 6.289 MB / 0.5919 GB Notification: Performance of SimCode: time 4.51e-07/0.6083, allocations: 2.219 kB / 0.8064 GB, free: 6.289 MB / 0.5919 GB Notification: Performance of Templates: time 0.01697/0.6253, allocations: 14.59 MB / 0.8207 GB, free: 452 kB / 0.5919 GB " [Timeout remaining time 659] make -j1 -f ThermofluidStream_ThermofluidStream.Undirected.Processes.Tests.TestFlowResistance.makefile [Timeout 660] (rm -f ThermofluidStream_ThermofluidStream.Undirected.Processes.Tests.TestFlowResistance.pipe ; mkfifo ThermofluidStream_ThermofluidStream.Undirected.Processes.Tests.TestFlowResistance.pipe ; head -c 1048576 < ThermofluidStream_ThermofluidStream.Undirected.Processes.Tests.TestFlowResistance.pipe >> ../files/ThermofluidStream_ThermofluidStream.Undirected.Processes.Tests.TestFlowResistance.sim & ./ThermofluidStream_ThermofluidStream.Undirected.Processes.Tests.TestFlowResistance -abortSlowSimulation -alarm=1200 -emit_protected -lv LOG_STATS > ThermofluidStream_ThermofluidStream.Undirected.Processes.Tests.TestFlowResistance.pipe 2>&1) [Timeout 1200] diffSimulationResults("ThermofluidStream_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_ThermofluidStream.Undirected.Processes.Tests.TestFlowResistance.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: 9.127189323073253]