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.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.001762/0.001762, allocations: 104.3 kB / 19.7 MB, free: 2.004 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.002147/0.002147, allocations: 220 kB / 22.99 MB, free: 4.91 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.41/1.41, allocations: 230.6 MB / 256.8 MB, free: 7.793 MB / 206.1 MB " [Timeout remaining time 178] 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.7701/0.7701, allocations: 100.9 MB / 414.1 MB, free: 2.871 MB / 318.1 MB " [Timeout remaining time 179] Using package ThermofluidStream with version 1.2.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.Undirected.Processes.Tests.TestFlowResistance,tolerance=1e-06,outputFormat="mat",numberOfIntervals=1000,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=1000,variableFilter="Time|flowResistance.rear.m_flow|flowResistance1.rear.m_flow",fileNamePrefix="ThermofluidStream_dev_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.002539/0.002539, allocations: 85.64 kB / 0.5653 GB, free: 35.34 MB / 446.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.115/0.1175, allocations: 74.61 MB / 0.6382 GB, free: 5.98 MB / 478.1 MB Notification: Performance of NFInst.instantiate(ThermofluidStream.Undirected.Processes.Tests.TestFlowResistance): time 0.4439/0.5614, allocations: 129.2 MB / 0.7643 GB, free: 3.418 MB / 0.5762 GB Notification: Performance of NFInst.instExpressions: time 0.005186/0.5666, allocations: 4.242 MB / 0.7684 GB, free: 3.391 MB / 0.5762 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.0006311/0.5673, allocations: 43.28 kB / 0.7685 GB, free: 3.391 MB / 0.5762 GB Notification: Performance of NFTyping.typeComponents: time 0.0008655/0.5681, allocations: 270 kB / 0.7687 GB, free: 3.383 MB / 0.5762 GB Notification: Performance of NFTyping.typeBindings: time 0.001705/0.5698, allocations: 0.6649 MB / 0.7694 GB, free: 3.363 MB / 0.5762 GB Notification: Performance of NFTyping.typeClassSections: time 0.001285/0.5711, allocations: 0.5148 MB / 0.7699 GB, free: 3.348 MB / 0.5762 GB Notification: Performance of NFFlatten.flatten: time 0.001082/0.5722, allocations: 0.9913 MB / 0.7709 GB, free: 3.348 MB / 0.5762 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0002123/0.5724, allocations: 101.3 kB / 0.771 GB, free: 3.32 MB / 0.5762 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0009593/0.5734, allocations: 0.5444 MB / 0.7715 GB, free: 3.316 MB / 0.5762 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0005613/0.5739, allocations: 437.8 kB / 0.7719 GB, free: 3.316 MB / 0.5762 GB Notification: Performance of NFPackage.collectConstants: time 6.837e-05/0.574, allocations: 43.88 kB / 0.772 GB, free: 3.316 MB / 0.5762 GB Notification: Performance of NFFlatten.collectFunctions: time 0.001333/0.5753, allocations: 0.6543 MB / 0.7726 GB, free: 3.301 MB / 0.5762 GB Notification: Performance of NFScalarize.scalarize: time 0.0001173/0.5754, allocations: 120.1 kB / 0.7727 GB, free: 3.301 MB / 0.5762 GB Notification: Performance of NFVerifyModel.verify: time 0.0002675/0.5757, allocations: 255.6 kB / 0.773 GB, free: 3.301 MB / 0.5762 GB Notification: Performance of NFConvertDAE.convert: time 0.001642/0.5774, allocations: 0.9559 MB / 0.7739 GB, free: 3.234 MB / 0.5762 GB Notification: Performance of FrontEnd - DAE generated: time 4.198e-06/0.5774, allocations: 1.406 kB / 0.7739 GB, free: 3.234 MB / 0.5762 GB Notification: Performance of FrontEnd: time 1.963e-06/0.5774, allocations: 0.5625 kB / 0.7739 GB, free: 3.234 MB / 0.5762 GB Notification: Performance of Transformations before backend: time 1.164e-05/0.5774, allocations: 0.9375 kB / 0.7739 GB, free: 3.234 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.001791/0.5792, allocations: 0.9147 MB / 0.7748 GB, free: 18.7 MB / 0.5919 GB Notification: Performance of prepare preOptimizeDAE: time 3.46e-05/0.5792, allocations: 10.53 kB / 0.7748 GB, free: 18.7 MB / 0.5919 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0004472/0.5796, allocations: 98.22 kB / 0.7749 GB, free: 18.66 MB / 0.5919 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0008704/0.5805, allocations: 486.8 kB / 0.7753 GB, free: 18.45 MB / 0.5919 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.962e-05/0.5805, allocations: 32.84 kB / 0.7754 GB, free: 18.44 MB / 0.5919 GB Notification: Performance of preOpt expandDerOperator (simulation): time 6.746e-05/0.5806, allocations: 43.73 kB / 0.7754 GB, free: 18.44 MB / 0.5919 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0007241/0.5813, allocations: 0.5114 MB / 0.7759 GB, free: 18.36 MB / 0.5919 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.602e-05/0.5814, allocations: 1.094 kB / 0.7759 GB, free: 18.36 MB / 0.5919 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.455e-05/0.5814, allocations: 17.59 kB / 0.7759 GB, free: 18.36 MB / 0.5919 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.115e-05/0.5814, allocations: 10.44 kB / 0.7759 GB, free: 18.36 MB / 0.5919 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0007613/0.5822, allocations: 494.2 kB / 0.7764 GB, free: 18.35 MB / 0.5919 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002182/0.5843, allocations: 1.45 MB / 0.7778 GB, free: 17.74 MB / 0.5919 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0007134/0.5851, allocations: 331.5 kB / 0.7782 GB, free: 17.71 MB / 0.5919 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0003131/0.5854, allocations: 181.7 kB / 0.7783 GB, free: 17.71 MB / 0.5919 GB Notification: Performance of preOpt evalFunc (simulation): time 0.001999/0.5874, allocations: 0.8371 MB / 0.7791 GB, free: 17.44 MB / 0.5919 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.914e-05/0.5874, allocations: 41.38 kB / 0.7792 GB, free: 17.4 MB / 0.5919 GB Notification: Performance of pre-optimization done (n=47): time 1.903e-06/0.5874, allocations: 1.031 kB / 0.7792 GB, free: 17.4 MB / 0.5919 GB Notification: Performance of matching and sorting (n=47): time 0.001379/0.5888, allocations: 0.6369 MB / 0.7798 GB, free: 17.3 MB / 0.5919 GB Notification: Performance of inlineWhenForInitialization (initialization): time 4.872e-05/0.5888, allocations: 58.34 kB / 0.7799 GB, free: 17.24 MB / 0.5919 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0004022/0.5892, allocations: 414.7 kB / 0.7803 GB, free: 17.12 MB / 0.5919 GB Notification: Performance of collectPreVariables (initialization): time 4.379e-05/0.5893, allocations: 34.92 kB / 0.7803 GB, free: 17.09 MB / 0.5919 GB Notification: Performance of collectInitialEqns (initialization): time 0.0001675/0.5894, allocations: 282 kB / 0.7806 GB, free: 16.95 MB / 0.5919 GB Notification: Performance of collectInitialBindings (initialization): time 8.641e-05/0.5895, allocations: 166.5 kB / 0.7807 GB, free: 16.84 MB / 0.5919 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001073/0.5896, allocations: 82.94 kB / 0.7808 GB, free: 16.83 MB / 0.5919 GB Notification: Performance of setup shared object (initialization): time 0.0001745/0.5898, allocations: 368.2 kB / 0.7811 GB, free: 16.52 MB / 0.5919 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002356/0.59, allocations: 123 kB / 0.7813 GB, free: 16.52 MB / 0.5919 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002564/0.5903, allocations: 188.7 kB / 0.7814 GB, free: 16.47 MB / 0.5919 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.000507/0.5908, allocations: 340.2 kB / 0.7818 GB, free: 16.43 MB / 0.5919 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.986e-06/0.5908, allocations: 1.938 kB / 0.7818 GB, free: 16.43 MB / 0.5919 GB Notification: Performance of matching and sorting (n=53) (initialization): time 0.000812/0.5916, allocations: 0.4924 MB / 0.7823 GB, free: 16.33 MB / 0.5919 GB Notification: Performance of prepare postOptimizeDAE: time 1.438e-05/0.5916, allocations: 5.906 kB / 0.7823 GB, free: 16.33 MB / 0.5919 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.933e-06/0.5916, allocations: 4.578 kB / 0.7823 GB, free: 16.33 MB / 0.5919 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.0002637/0.5919, allocations: 62.41 kB / 0.7823 GB, free: 16.32 MB / 0.5919 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003104/0.5922, allocations: 88.19 kB / 0.7824 GB, free: 16.32 MB / 0.5919 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002193/0.5944, allocations: 2.671 MB / 0.785 GB, free: 13.94 MB / 0.5919 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002607/0.5947, allocations: 31.58 kB / 0.785 GB, free: 13.92 MB / 0.5919 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.967e-05/0.5947, allocations: 26 kB / 0.7851 GB, free: 13.92 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.0002334/0.5949, allocations: 168.8 kB / 0.7852 GB, free: 13.8 MB / 0.5919 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 8.202e-05/0.595, allocations: 60.66 kB / 0.7853 GB, free: 13.77 MB / 0.5919 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001077/0.5961, allocations: 0.6765 MB / 0.7859 GB, free: 13.63 MB / 0.5919 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.26e-06/0.5961, allocations: 5.719 kB / 0.786 GB, free: 13.63 MB / 0.5919 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.026e-06/0.5961, allocations: 0 / 0.786 GB, free: 13.63 MB / 0.5919 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.194e-06/0.5961, allocations: 8.281 kB / 0.786 GB, free: 13.63 MB / 0.5919 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001488/0.5976, allocations: 0.9918 MB / 0.7869 GB, free: 13.33 MB / 0.5919 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.056e-06/0.5976, allocations: 3.188 kB / 0.7869 GB, free: 13.33 MB / 0.5919 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.000243/0.5979, allocations: 67.03 kB / 0.787 GB, free: 13.33 MB / 0.5919 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.0001906/0.598, allocations: 63.34 kB / 0.7871 GB, free: 13.31 MB / 0.5919 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.983e-05/0.5981, allocations: 15.02 kB / 0.7871 GB, free: 13.31 MB / 0.5919 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.002146/0.6002, allocations: 2.673 MB / 0.7897 GB, free: 10.93 MB / 0.5919 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.136e-06/0.6002, allocations: 3.062 kB / 0.7897 GB, free: 10.93 MB / 0.5919 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001073/0.6013, allocations: 0.7315 MB / 0.7904 GB, free: 10.7 MB / 0.5919 GB Notification: Performance of postOpt removeConstants (simulation): time 8.851e-05/0.6014, allocations: 54.33 kB / 0.7905 GB, free: 10.66 MB / 0.5919 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 6.189e-05/0.6014, allocations: 11.94 kB / 0.7905 GB, free: 10.66 MB / 0.5919 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.000235/0.6017, allocations: 11.12 kB / 0.7905 GB, free: 10.66 MB / 0.5919 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 6.917e-05/0.6018, allocations: 38.02 kB / 0.7905 GB, free: 10.66 MB / 0.5919 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.965e-05/0.6018, allocations: 19.84 kB / 0.7905 GB, free: 10.66 MB / 0.5919 GB Notification: Performance of sorting global known variables: time 0.0003136/0.6021, allocations: 313.4 kB / 0.7908 GB, free: 10.57 MB / 0.5919 GB Notification: Performance of sort global known variables: time 8e-08/0.6021, allocations: 4.844 kB / 0.7908 GB, free: 10.57 MB / 0.5919 GB Notification: Performance of remove unused functions: time 0.0006849/0.6028, allocations: 190.5 kB / 0.791 GB, free: 10.54 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 (39): * Single equations (assignments): 37 * 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.0003522/0.6031, allocations: 253.7 kB / 0.7913 GB, free: 10.45 MB / 0.5919 GB Notification: Performance of simCode: created initialization part: time 0.0008618/0.604, allocations: 0.5654 MB / 0.7918 GB, free: 10.21 MB / 0.5919 GB Notification: Performance of simCode: created event and clocks part: time 2.895e-06/0.604, allocations: 2.281 kB / 0.7918 GB, free: 10.21 MB / 0.5919 GB Notification: Performance of simCode: created simulation system equations: time 0.0005177/0.6045, allocations: 426.2 kB / 0.7922 GB, free: 9.98 MB / 0.5919 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0006867/0.6052, allocations: 136.3 kB / 0.7923 GB, free: 9.969 MB / 0.5919 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001704/0.6069, allocations: 1.154 MB / 0.7935 GB, free: 9.43 MB / 0.5919 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002057/0.6071, allocations: 269.9 kB / 0.7937 GB, free: 9.336 MB / 0.5919 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001299/0.6072, allocations: 58.92 kB / 0.7938 GB, free: 9.328 MB / 0.5919 GB Notification: Performance of SimCode: time 3.71e-07/0.6072, allocations: 1.031 kB / 0.7938 GB, free: 9.328 MB / 0.5919 GB Notification: Performance of Templates: time 0.01483/0.6221, allocations: 13.97 MB / 0.8074 GB, free: 6.961 MB / 0.5919 GB " [Timeout remaining time 659] make -j1 -f ThermofluidStream_dev_ThermofluidStream.Undirected.Processes.Tests.TestFlowResistance.makefile [Timeout 660] (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 -emit_protected -lv LOG_STATS > ThermofluidStream_dev_ThermofluidStream.Undirected.Processes.Tests.TestFlowResistance.pipe 2>&1) [Timeout 1200] 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) [Timeout 660] "" [Timeout remaining time 660] Reference file matches [Calling sys.exit(0), Time elapsed: 9.319200879894197]