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.0007977/0.0007977, allocations: 72.5 kB / 19.93 MB, free: 4.633 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.0007926/0.0007926, allocations: 177.9 kB / 23.21 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.8336/0.8336, allocations: 177.1 MB / 203.5 MB, free: 5.727 MB / 186.7 MB " [Timeout remaining time 179] 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.6035/0.6035, allocations: 116 MB / 376 MB, free: 4.18 MB / 346.7 MB " [Timeout remaining time 179] Using package ThermofluidStream with version 1.3.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: Performance of FrontEnd - loaded program: time 2.434e-06/2.434e-06, allocations: 3.984 kB / 0.5545 GB, free: 12.85 MB / 490.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 1.72e-05/1.964e-05, allocations: 8.75 kB / 0.5545 GB, free: 12.84 MB / 490.7 MB Notification: Performance of NFInst.instantiate(ThermofluidStream.Undirected.Processes.Tests.TestFlowResistance): time 0.3456/0.3456, allocations: 129.6 MB / 0.681 GB, free: 7.148 MB / 0.5573 GB Notification: Performance of NFInst.instExpressions: time 0.003427/0.349, allocations: 4.303 MB / 0.6852 GB, free: 6.809 MB / 0.5573 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.0003167/0.3493, allocations: 41.09 kB / 0.6853 GB, free: 6.785 MB / 0.5573 GB Notification: Performance of NFTyping.typeComponents: time 0.0005999/0.3499, allocations: 285 kB / 0.6855 GB, free: 6.699 MB / 0.5573 GB Notification: Performance of NFTyping.typeBindings: time 0.001048/0.351, allocations: 0.7348 MB / 0.6862 GB, free: 6.602 MB / 0.5573 GB Notification: Performance of NFTyping.typeClassSections: time 0.0007148/0.3517, allocations: 0.5232 MB / 0.6868 GB, free: 6.555 MB / 0.5573 GB Notification: Performance of NFFlatten.flatten: time 0.0008399/0.3525, allocations: 1.11 MB / 0.6878 GB, free: 6.277 MB / 0.5573 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0001921/0.3527, allocations: 93.83 kB / 0.6879 GB, free: 6.262 MB / 0.5573 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0009013/0.3536, allocations: 0.7113 MB / 0.6886 GB, free: 6.156 MB / 0.5573 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0004407/0.3541, allocations: 430.6 kB / 0.689 GB, free: 6.109 MB / 0.5573 GB Notification: Performance of NFPackage.collectConstants: time 5.825e-05/0.3541, allocations: 43.22 kB / 0.6891 GB, free: 6.109 MB / 0.5573 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0008495/0.355, allocations: 0.6604 MB / 0.6897 GB, free: 6.043 MB / 0.5573 GB Notification: Performance of NFScalarize.scalarize: time 8.588e-05/0.3551, allocations: 123.6 kB / 0.6898 GB, free: 6.012 MB / 0.5573 GB Notification: Performance of NFVerifyModel.verify: time 0.0001795/0.3552, allocations: 225.5 kB / 0.69 GB, free: 5.98 MB / 0.5573 GB Notification: Performance of NFConvertDAE.convert: time 0.0008885/0.3561, allocations: 0.9804 MB / 0.691 GB, free: 5.859 MB / 0.5573 GB Notification: Performance of FrontEnd - DAE generated: time 3.837e-06/0.3561, allocations: 5.5 kB / 0.691 GB, free: 5.855 MB / 0.5573 GB Notification: Performance of FrontEnd: time 1.263e-06/0.3561, allocations: 0 / 0.691 GB, free: 5.855 MB / 0.5573 GB Notification: Performance of Transformations before backend: time 8.707e-06/0.3561, allocations: 0 / 0.691 GB, free: 5.855 MB / 0.5573 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.001019/0.3572, allocations: 0.9064 MB / 0.6919 GB, free: 5.316 MB / 0.5573 GB Notification: Performance of prepare preOptimizeDAE: time 3.75e-05/0.3572, allocations: 13.66 kB / 0.6919 GB, free: 5.312 MB / 0.5573 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0002462/0.3574, allocations: 103.5 kB / 0.692 GB, free: 5.27 MB / 0.5573 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0005954/0.358, allocations: 492.5 kB / 0.6925 GB, free: 5.027 MB / 0.5573 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.577e-05/0.3581, allocations: 32.22 kB / 0.6925 GB, free: 5.023 MB / 0.5573 GB Notification: Performance of preOpt expandDerOperator (simulation): time 5.243e-05/0.3581, allocations: 46.03 kB / 0.6926 GB, free: 5.02 MB / 0.5573 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0005274/0.3586, allocations: 0.5113 MB / 0.6931 GB, free: 4.93 MB / 0.5573 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.331e-05/0.3587, allocations: 192 / 0.6931 GB, free: 4.93 MB / 0.5573 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.827e-05/0.3587, allocations: 20.72 kB / 0.6931 GB, free: 4.93 MB / 0.5573 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.18e-05/0.3587, allocations: 14.34 kB / 0.6931 GB, free: 4.926 MB / 0.5573 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0005062/0.3592, allocations: 490.7 kB / 0.6936 GB, free: 4.918 MB / 0.5573 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001352/0.3606, allocations: 1.461 MB / 0.695 GB, free: 4.289 MB / 0.5573 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0005058/0.3611, allocations: 332.6 kB / 0.6953 GB, free: 4.254 MB / 0.5573 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001888/0.3613, allocations: 183.1 kB / 0.6955 GB, free: 4.246 MB / 0.5573 GB Notification: Performance of preOpt evalFunc (simulation): time 0.00105/0.3623, allocations: 0.8378 MB / 0.6963 GB, free: 3.875 MB / 0.5573 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.421e-05/0.3623, allocations: 37.91 kB / 0.6963 GB, free: 3.832 MB / 0.5573 GB Notification: Performance of pre-optimization done (n=47): time 1.242e-06/0.3623, allocations: 3.938 kB / 0.6963 GB, free: 3.828 MB / 0.5573 GB Notification: Performance of matching and sorting (n=47): time 0.0009241/0.3632, allocations: 0.6348 MB / 0.6969 GB, free: 3.562 MB / 0.5573 GB Notification: Performance of inlineWhenForInitialization (initialization): time 2.262e-05/0.3633, allocations: 55.88 kB / 0.697 GB, free: 3.5 MB / 0.5573 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002872/0.3636, allocations: 425.6 kB / 0.6974 GB, free: 3.293 MB / 0.5573 GB Notification: Performance of collectPreVariables (initialization): time 1.884e-05/0.3636, allocations: 36.23 kB / 0.6974 GB, free: 3.254 MB / 0.5573 GB Notification: Performance of collectInitialEqns (initialization): time 9.674e-05/0.3637, allocations: 277.9 kB / 0.6977 GB, free: 3.031 MB / 0.5573 GB Notification: Performance of collectInitialBindings (initialization): time 5.794e-05/0.3637, allocations: 175.9 kB / 0.6979 GB, free: 2.895 MB / 0.5573 GB Notification: Performance of simplifyInitialFunctions (initialization): time 7.443e-05/0.3638, allocations: 78.06 kB / 0.698 GB, free: 2.848 MB / 0.5573 GB Notification: Performance of setup shared object (initialization): time 5.573e-05/0.3639, allocations: 365.5 kB / 0.6983 GB, free: 2.512 MB / 0.5573 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001502/0.364, allocations: 128.1 kB / 0.6984 GB, free: 2.465 MB / 0.5573 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001624/0.3642, allocations: 186.9 kB / 0.6986 GB, free: 2.371 MB / 0.5573 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003594/0.3645, allocations: 336.4 kB / 0.6989 GB, free: 2.188 MB / 0.5573 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.986e-06/0.3645, allocations: 5.344 kB / 0.6989 GB, free: 2.184 MB / 0.5573 GB Notification: Performance of matching and sorting (n=53) (initialization): time 0.0005038/0.365, allocations: 0.4984 MB / 0.6994 GB, free: 1.945 MB / 0.5573 GB Notification: Performance of prepare postOptimizeDAE: time 1.354e-05/0.3651, allocations: 5.875 kB / 0.6994 GB, free: 1.945 MB / 0.5573 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.729e-06/0.3651, allocations: 0 / 0.6994 GB, free: 1.945 MB / 0.5573 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.0001756/0.3652, allocations: 69.05 kB / 0.6995 GB, free: 1.914 MB / 0.5573 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001612/0.3654, allocations: 82.81 kB / 0.6996 GB, free: 1.906 MB / 0.5573 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001042/0.3664, allocations: 2.658 MB / 0.7022 GB, free: 15.32 MB / 0.573 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001175/0.3666, allocations: 34.08 kB / 0.7022 GB, free: 15.3 MB / 0.573 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.487e-05/0.3666, allocations: 23.88 kB / 0.7022 GB, free: 15.29 MB / 0.573 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.0001455/0.3667, allocations: 174.4 kB / 0.7024 GB, free: 15.14 MB / 0.573 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 5.659e-05/0.3668, allocations: 58.5 kB / 0.7024 GB, free: 15.11 MB / 0.573 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0007427/0.3675, allocations: 0.6781 MB / 0.7031 GB, free: 14.77 MB / 0.573 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.615e-06/0.3675, allocations: 6.188 kB / 0.7031 GB, free: 14.77 MB / 0.573 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.775e-06/0.3675, allocations: 2.719 kB / 0.7031 GB, free: 14.77 MB / 0.573 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.298e-06/0.3675, allocations: 2.344 kB / 0.7031 GB, free: 14.77 MB / 0.573 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0009706/0.3685, allocations: 0.9823 MB / 0.7041 GB, free: 14.2 MB / 0.573 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.863e-06/0.3685, allocations: 0 / 0.7041 GB, free: 14.2 MB / 0.573 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001288/0.3686, allocations: 74.03 kB / 0.7041 GB, free: 14.19 MB / 0.573 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.0001217/0.3688, allocations: 80.59 kB / 0.7042 GB, free: 14.14 MB / 0.573 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.561e-05/0.3688, allocations: 15.08 kB / 0.7042 GB, free: 14.14 MB / 0.573 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001226/0.37, allocations: 2.654 MB / 0.7068 GB, free: 11.56 MB / 0.573 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.916e-06/0.37, allocations: 6.781 kB / 0.7068 GB, free: 11.55 MB / 0.573 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0007136/0.3707, allocations: 0.727 MB / 0.7075 GB, free: 11.13 MB / 0.573 GB Notification: Performance of postOpt removeConstants (simulation): time 0.000114/0.3708, allocations: 96.36 kB / 0.7076 GB, free: 11.08 MB / 0.573 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.306e-05/0.3709, allocations: 15.2 kB / 0.7076 GB, free: 11.07 MB / 0.573 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001153/0.371, allocations: 10.78 kB / 0.7077 GB, free: 11.06 MB / 0.573 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.319e-05/0.371, allocations: 38 kB / 0.7077 GB, free: 11.05 MB / 0.573 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.818e-05/0.3711, allocations: 20.3 kB / 0.7077 GB, free: 11.05 MB / 0.573 GB Notification: Performance of sorting global known variables: time 0.0002083/0.3713, allocations: 325.2 kB / 0.708 GB, free: 10.89 MB / 0.573 GB Notification: Performance of sort global known variables: time 7e-08/0.3713, allocations: 0 / 0.708 GB, free: 10.89 MB / 0.573 GB Notification: Performance of remove unused functions: time 0.0003714/0.3716, allocations: 197.8 kB / 0.7082 GB, free: 10.85 MB / 0.573 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.000286/0.3719, allocations: 270.5 kB / 0.7085 GB, free: 10.7 MB / 0.573 GB Notification: Performance of simCode: created initialization part: time 0.0005962/0.3725, allocations: 0.557 MB / 0.709 GB, free: 10.36 MB / 0.573 GB Notification: Performance of simCode: created event and clocks part: time 1.483e-06/0.3725, allocations: 0 / 0.709 GB, free: 10.36 MB / 0.573 GB Notification: Performance of simCode: created simulation system equations: time 0.0003015/0.3728, allocations: 410.1 kB / 0.7094 GB, free: 10.07 MB / 0.573 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0006213/0.3734, allocations: 231.2 kB / 0.7096 GB, free: 9.992 MB / 0.573 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001387/0.3748, allocations: 1.144 MB / 0.7107 GB, free: 9.277 MB / 0.573 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001706/0.375, allocations: 269.9 kB / 0.711 GB, free: 9.102 MB / 0.573 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001007/0.3751, allocations: 63.27 kB / 0.7111 GB, free: 9.082 MB / 0.573 GB Notification: Performance of SimCode: time 4e-07/0.3751, allocations: 0 / 0.7111 GB, free: 9.082 MB / 0.573 GB Notification: Performance of Templates: time 0.01012/0.3852, allocations: 14.57 MB / 0.7253 GB, free: 1.258 MB / 0.573 GB " [Timeout remaining time 660] 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/jenkins/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: 6.001718724146485]