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.001919/0.001919, allocations: 88.72 kB / 19.44 MB, free: 352 kB / 13.93 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.00259/0.00259, allocations: 157.7 kB / 22.75 MB, free: 1.68 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 1.488/1.488, allocations: 177.1 MB / 203.1 MB, free: 5.609 MB / 186.7 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 1.072/1.072, allocations: 118.6 MB / 378.2 MB, free: 1.469 MB / 346.7 MB " [Timeout remaining time 179] Using package ThermofluidStream with version 1.4.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 1.442e-06/1.442e-06, allocations: 0 / 482.9 MB, free: 8.289 MB / 410.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 2.377e-05/2.522e-05, allocations: 6.828 kB / 482.9 MB, free: 8.285 MB / 410.7 MB Notification: Performance of NFInst.instantiate(ThermofluidStream.Undirected.Processes.Tests.TestFlowResistance): time 0.1953/0.1953, allocations: 129.6 MB / 0.5981 GB, free: 15.03 MB / 0.5261 GB Notification: Performance of NFInst.instExpressions: time 0.007336/0.2027, allocations: 4.308 MB / 0.6023 GB, free: 10.71 MB / 0.5261 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.0006766/0.2033, allocations: 39.62 kB / 0.6023 GB, free: 10.68 MB / 0.5261 GB Notification: Performance of NFTyping.typeComponents: time 0.001028/0.2044, allocations: 285.9 kB / 0.6026 GB, free: 10.39 MB / 0.5261 GB Notification: Performance of NFTyping.typeBindings: time 0.002077/0.2064, allocations: 0.7451 MB / 0.6033 GB, free: 9.645 MB / 0.5261 GB Notification: Performance of NFTyping.typeClassSections: time 0.0014/0.2078, allocations: 0.5213 MB / 0.6039 GB, free: 9.121 MB / 0.5261 GB Notification: Performance of NFFlatten.flatten: time 0.001582/0.2094, allocations: 1.115 MB / 0.6049 GB, free: 8 MB / 0.5261 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0002937/0.2097, allocations: 90.64 kB / 0.605 GB, free: 7.902 MB / 0.5261 GB Notification: Performance of NFEvalConstants.evaluate: time 0.001637/0.2114, allocations: 0.7242 MB / 0.6057 GB, free: 7.176 MB / 0.5261 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0008918/0.2122, allocations: 422.9 kB / 0.6061 GB, free: 6.762 MB / 0.5261 GB Notification: Performance of NFPackage.collectConstants: time 0.0001053/0.2123, allocations: 44 kB / 0.6062 GB, free: 6.719 MB / 0.5261 GB Notification: Performance of NFFlatten.collectFunctions: time 0.001467/0.2138, allocations: 0.6626 MB / 0.6068 GB, free: 6.055 MB / 0.5261 GB Notification: Performance of NFScalarize.scalarize: time 0.0001564/0.214, allocations: 119.4 kB / 0.6069 GB, free: 5.938 MB / 0.5261 GB Notification: Performance of NFVerifyModel.verify: time 0.0003669/0.2143, allocations: 231.4 kB / 0.6072 GB, free: 5.711 MB / 0.5261 GB Notification: Performance of NFConvertDAE.convert: time 0.001689/0.216, allocations: 1.001 MB / 0.6081 GB, free: 4.707 MB / 0.5261 GB Notification: Performance of FrontEnd - DAE generated: time 4.648e-06/0.216, allocations: 0 / 0.6081 GB, free: 4.707 MB / 0.5261 GB Notification: Performance of FrontEnd: time 1.112e-06/0.216, allocations: 0 / 0.6081 GB, free: 4.707 MB / 0.5261 GB Notification: Performance of Transformations before backend: time 1.869e-05/0.2161, allocations: 4 kB / 0.6081 GB, free: 4.703 MB / 0.5261 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.001919/0.218, allocations: 0.9246 MB / 0.609 GB, free: 3.746 MB / 0.5261 GB Notification: Performance of prepare preOptimizeDAE: time 3.918e-05/0.218, allocations: 8.031 kB / 0.6091 GB, free: 3.738 MB / 0.5261 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0006215/0.2186, allocations: 156.2 kB / 0.6092 GB, free: 3.586 MB / 0.5261 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001046/0.2197, allocations: 0.5208 MB / 0.6097 GB, free: 3.035 MB / 0.5261 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.795e-05/0.2197, allocations: 37.38 kB / 0.6097 GB, free: 3 MB / 0.5261 GB Notification: Performance of preOpt expandDerOperator (simulation): time 8.589e-05/0.2198, allocations: 44.33 kB / 0.6098 GB, free: 2.957 MB / 0.5261 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.000967/0.2208, allocations: 0.5129 MB / 0.6103 GB, free: 2.426 MB / 0.5261 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.484e-05/0.2208, allocations: 4.188 kB / 0.6103 GB, free: 2.422 MB / 0.5261 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 5.059e-05/0.2208, allocations: 24.12 kB / 0.6103 GB, free: 2.398 MB / 0.5261 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.725e-05/0.2209, allocations: 12 kB / 0.6103 GB, free: 2.387 MB / 0.5261 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0008901/0.2217, allocations: 495.6 kB / 0.6108 GB, free: 1.902 MB / 0.5261 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002627/0.2244, allocations: 1.467 MB / 0.6122 GB, free: 400 kB / 0.5261 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0008496/0.2252, allocations: 332.7 kB / 0.6125 GB, free: 56 kB / 0.5261 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0003905/0.2256, allocations: 180.7 kB / 0.6127 GB, free: 15.88 MB / 0.5417 GB Notification: Performance of preOpt evalFunc (simulation): time 0.002388/0.228, allocations: 0.8496 MB / 0.6136 GB, free: 15.01 MB / 0.5417 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.837e-05/0.228, allocations: 35.06 kB / 0.6136 GB, free: 14.96 MB / 0.5417 GB Notification: Performance of pre-optimization done (n=47): time 1.723e-06/0.228, allocations: 0 / 0.6136 GB, free: 14.96 MB / 0.5417 GB Notification: Performance of matching and sorting (n=47): time 0.001769/0.2298, allocations: 0.6584 MB / 0.6142 GB, free: 14.3 MB / 0.5417 GB Notification: Performance of inlineWhenForInitialization (initialization): time 5.354e-05/0.2299, allocations: 55.91 kB / 0.6143 GB, free: 14.23 MB / 0.5417 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0005636/0.2304, allocations: 430.2 kB / 0.6147 GB, free: 13.8 MB / 0.5417 GB Notification: Performance of collectPreVariables (initialization): time 4.751e-05/0.2305, allocations: 37.7 kB / 0.6147 GB, free: 13.76 MB / 0.5417 GB Notification: Performance of collectInitialEqns (initialization): time 0.000263/0.2307, allocations: 284.6 kB / 0.615 GB, free: 13.48 MB / 0.5417 GB Notification: Performance of collectInitialBindings (initialization): time 0.0001669/0.2309, allocations: 170.5 kB / 0.6152 GB, free: 13.31 MB / 0.5417 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001475/0.231, allocations: 78.19 kB / 0.6152 GB, free: 13.22 MB / 0.5417 GB Notification: Performance of setup shared object (initialization): time 0.0002242/0.2313, allocations: 370.8 kB / 0.6156 GB, free: 12.85 MB / 0.5417 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002984/0.2316, allocations: 132.9 kB / 0.6157 GB, free: 12.72 MB / 0.5417 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003302/0.2319, allocations: 181.7 kB / 0.6159 GB, free: 12.54 MB / 0.5417 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0006827/0.2326, allocations: 342.2 kB / 0.6162 GB, free: 12.18 MB / 0.5417 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.855e-06/0.2326, allocations: 0 / 0.6162 GB, free: 12.18 MB / 0.5417 GB Notification: Performance of matching and sorting (n=53) (initialization): time 0.001088/0.2337, allocations: 0.5105 MB / 0.6167 GB, free: 11.66 MB / 0.5417 GB Notification: Performance of prepare postOptimizeDAE: time 1.901e-05/0.2337, allocations: 4 kB / 0.6167 GB, free: 11.66 MB / 0.5417 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.382e-06/0.2337, allocations: 0 / 0.6167 GB, free: 11.66 MB / 0.5417 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.0004035/0.2341, allocations: 81.72 kB / 0.6168 GB, free: 11.57 MB / 0.5417 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003651/0.2345, allocations: 83.89 kB / 0.6169 GB, free: 11.49 MB / 0.5417 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.00286/0.2373, allocations: 2.67 MB / 0.6195 GB, free: 8.605 MB / 0.5417 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002676/0.2376, allocations: 31.89 kB / 0.6195 GB, free: 8.574 MB / 0.5417 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.332e-05/0.2376, allocations: 27.98 kB / 0.6195 GB, free: 8.547 MB / 0.5417 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.0002513/0.2379, allocations: 169.7 kB / 0.6197 GB, free: 8.371 MB / 0.5417 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001453/0.238, allocations: 75.62 kB / 0.6198 GB, free: 8.297 MB / 0.5417 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.00156/0.2396, allocations: 0.6795 MB / 0.6204 GB, free: 7.613 MB / 0.5417 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.703e-06/0.2396, allocations: 4 kB / 0.6204 GB, free: 7.609 MB / 0.5417 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.256e-06/0.2396, allocations: 0 / 0.6204 GB, free: 7.609 MB / 0.5417 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.709e-06/0.2396, allocations: 0 / 0.6204 GB, free: 7.609 MB / 0.5417 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001991/0.2416, allocations: 0.9983 MB / 0.6214 GB, free: 6.555 MB / 0.5417 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.266e-06/0.2416, allocations: 0 / 0.6214 GB, free: 6.555 MB / 0.5417 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002932/0.2419, allocations: 68.03 kB / 0.6215 GB, free: 6.488 MB / 0.5417 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.0003257/0.2422, allocations: 81.7 kB / 0.6216 GB, free: 6.402 MB / 0.5417 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.675e-05/0.2423, allocations: 19.98 kB / 0.6216 GB, free: 6.383 MB / 0.5417 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.00271/0.245, allocations: 2.666 MB / 0.6242 GB, free: 3.512 MB / 0.5417 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.871e-06/0.245, allocations: 3.938 kB / 0.6242 GB, free: 3.508 MB / 0.5417 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001471/0.2465, allocations: 0.735 MB / 0.6249 GB, free: 2.738 MB / 0.5417 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0002306/0.2467, allocations: 115.6 kB / 0.625 GB, free: 2.625 MB / 0.5417 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 7.337e-05/0.2468, allocations: 11.95 kB / 0.625 GB, free: 2.613 MB / 0.5417 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002658/0.247, allocations: 12 kB / 0.625 GB, free: 2.602 MB / 0.5417 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001098/0.2471, allocations: 39.88 kB / 0.6251 GB, free: 2.562 MB / 0.5417 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.805e-05/0.2472, allocations: 15.98 kB / 0.6251 GB, free: 2.547 MB / 0.5417 GB Notification: Performance of sorting global known variables: time 0.0004447/0.2476, allocations: 322.9 kB / 0.6254 GB, free: 2.234 MB / 0.5417 GB Notification: Performance of sort global known variables: time 8e-08/0.2476, allocations: 0 / 0.6254 GB, free: 2.234 MB / 0.5417 GB Notification: Performance of remove unused functions: time 0.0007226/0.2484, allocations: 199.7 kB / 0.6256 GB, free: 2.039 MB / 0.5417 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.0004999/0.2489, allocations: 269.3 kB / 0.6258 GB, free: 1.773 MB / 0.5417 GB Notification: Performance of simCode: created initialization part: time 0.001177/0.25, allocations: 0.5563 MB / 0.6264 GB, free: 1.195 MB / 0.5417 GB Notification: Performance of simCode: created event and clocks part: time 2.625e-06/0.25, allocations: 0 / 0.6264 GB, free: 1.195 MB / 0.5417 GB Notification: Performance of simCode: created simulation system equations: time 0.000705/0.2507, allocations: 421 kB / 0.6268 GB, free: 0.7578 MB / 0.5417 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.00134/0.2521, allocations: 229.2 kB / 0.627 GB, free: 0.5391 MB / 0.5417 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002805/0.2549, allocations: 1.151 MB / 0.6281 GB, free: 15.34 MB / 0.5573 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003838/0.2553, allocations: 275.9 kB / 0.6284 GB, free: 15.04 MB / 0.5573 GB Notification: Performance of simCode: alias equations: time 0.0004022/0.2557, allocations: 113.8 kB / 0.6285 GB, free: 14.95 MB / 0.5573 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001664/0.2558, allocations: 60.48 kB / 0.6286 GB, free: 14.89 MB / 0.5573 GB Notification: Performance of SimCode: time 9.41e-07/0.2558, allocations: 0 / 0.6286 GB, free: 14.89 MB / 0.5573 GB Notification: Performance of Templates: time 0.02292/0.2788, allocations: 11.16 MB / 0.6395 GB, free: 3.973 MB / 0.5573 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.576116751995869]