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.001209/0.001209, allocations: 72.19 kB / 9.903 MB, free: 0.7852 MB / 10.45 MB Notification: Performance of NFInstanceAPI.mkTop(): time 0.001424/0.002633, allocations: 435.8 kB / 10.33 MB, free: 368 kB / 10.45 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.0009545/0.0009545, allocations: 161.1 kB / 11.23 MB, free: 2.941 MB / 13.93 MB Notification: Performance of NFInstanceAPI.mkTop(): time 0.00117/0.002124, allocations: 463.6 kB / 11.68 MB, free: 2.484 MB / 13.93 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.9494/0.9494, allocations: 177.2 MB / 189.6 MB, free: 5.312 MB / 186.7 MB Notification: Performance of NFInstanceAPI.mkTop(): time 0.0809/1.03, allocations: 53.65 MB / 243.2 MB, free: 15.59 MB / 250.7 MB " [Timeout remaining time 179] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ThermofluidStream 1.4.1/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ThermofluidStream 1.4.1/package.mo): time 0.6666/0.6666, allocations: 118.6 MB / 362.6 MB, free: 1.191 MB / 346.7 MB Notification: Performance of NFInstanceAPI.mkTop(): time 0.0595/0.7261, allocations: 35.85 MB / 398.5 MB, free: 13.24 MB / 394.7 MB " [Timeout remaining time 179] Using package ThermofluidStream with version 1.4.1 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ThermofluidStream 1.4.1/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="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="flowResistance.rear.m_flow|flowResistance1.rear.m_flow",fileNamePrefix="ThermofluidStream_ThermofluidStream.Undirected.Processes.Tests.TestFlowResistance") [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 6.352e-06/6.352e-06, allocations: 0 / 399.7 MB, free: 11.99 MB / 394.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 2.123e-05/2.758e-05, allocations: 2.312 kB / 399.7 MB, free: 11.98 MB / 394.7 MB Notification: Performance of NFInst.instantiate(ThermofluidStream.Undirected.Processes.Tests.TestFlowResistance): time 0.3096/0.3096, allocations: 131.4 MB / 0.5187 GB, free: 0.7383 MB / 490.7 MB Notification: Performance of NFInst.instExpressions: time 0.002978/0.3126, allocations: 1.941 MB / 0.5206 GB, free: 14.8 MB / 0.4948 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.000428/0.313, allocations: 39.62 kB / 0.5206 GB, free: 14.76 MB / 0.4948 GB Notification: Performance of NFTyping.typeComponents: time 0.0004327/0.3134, allocations: 170.6 kB / 0.5208 GB, free: 14.59 MB / 0.4948 GB Notification: Performance of NFTyping.typeBindings: time 0.001015/0.3145, allocations: 0.5276 MB / 0.5213 GB, free: 14.07 MB / 0.4948 GB Notification: Performance of NFTyping.typeClassSections: time 0.0006106/0.3151, allocations: 271.2 kB / 0.5215 GB, free: 13.8 MB / 0.4948 GB Notification: Performance of NFFlatten.flatten: time 0.001172/0.3162, allocations: 1.109 MB / 0.5226 GB, free: 12.69 MB / 0.4948 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0002567/0.3165, allocations: 111.7 kB / 0.5227 GB, free: 12.57 MB / 0.4948 GB Notification: Performance of NFEvalConstants.evaluate: time 0.001092/0.3176, allocations: 0.6458 MB / 0.5234 GB, free: 11.93 MB / 0.4948 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0005761/0.3182, allocations: 422.8 kB / 0.5238 GB, free: 11.52 MB / 0.4948 GB Notification: Performance of NFPackage.collectConstants: time 6.787e-05/0.3182, allocations: 40 kB / 0.5238 GB, free: 11.48 MB / 0.4948 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0004699/0.3187, allocations: 231.6 kB / 0.524 GB, free: 11.25 MB / 0.4948 GB Notification: Performance of NFScalarize.scalarize: time 9.001e-05/0.3188, allocations: 87.56 kB / 0.5241 GB, free: 11.16 MB / 0.4948 GB Notification: Performance of NFVerifyModel.verify: time 0.0002162/0.319, allocations: 205 kB / 0.5243 GB, free: 10.96 MB / 0.4948 GB Notification: Performance of NFConvertDAE.convert: time 0.0007471/0.3198, allocations: 0.5877 MB / 0.5249 GB, free: 10.38 MB / 0.4948 GB Notification: Performance of FrontEnd - DAE generated: time 1.856e-05/0.3198, allocations: 0 / 0.5249 GB, free: 10.38 MB / 0.4948 GB Notification: Performance of FrontEnd: time 1.333e-06/0.3198, allocations: 0 / 0.5249 GB, free: 10.38 MB / 0.4948 GB Notification: Performance of Transformations before backend: time 2.438e-05/0.3198, allocations: 0 / 0.5249 GB, free: 10.38 MB / 0.4948 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.001494/0.3213, allocations: 1.117 MB / 0.526 GB, free: 9.215 MB / 0.4948 GB Notification: Performance of prepare preOptimizeDAE: time 3.39e-05/0.3213, allocations: 12.03 kB / 0.526 GB, free: 9.203 MB / 0.4948 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0003605/0.3217, allocations: 134 kB / 0.5261 GB, free: 9.074 MB / 0.4948 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0006781/0.3224, allocations: 485.3 kB / 0.5266 GB, free: 8.57 MB / 0.4948 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.665e-05/0.3224, allocations: 33.38 kB / 0.5266 GB, free: 8.539 MB / 0.4948 GB Notification: Performance of preOpt expandDerOperator (simulation): time 5.202e-05/0.3224, allocations: 44.38 kB / 0.5266 GB, free: 8.496 MB / 0.4948 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0004373/0.3229, allocations: 364.7 kB / 0.527 GB, free: 8.109 MB / 0.4948 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.255e-05/0.3229, allocations: 192 / 0.527 GB, free: 8.109 MB / 0.4948 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.678e-05/0.3229, allocations: 16.38 kB / 0.527 GB, free: 8.094 MB / 0.4948 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.151e-05/0.3229, allocations: 11.94 kB / 0.527 GB, free: 8.082 MB / 0.4948 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002526/0.3232, allocations: 173.6 kB / 0.5272 GB, free: 7.914 MB / 0.4948 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001517/0.3247, allocations: 1.152 MB / 0.5283 GB, free: 6.727 MB / 0.4948 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0003879/0.3251, allocations: 204.9 kB / 0.5285 GB, free: 6.52 MB / 0.4948 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001155/0.3252, allocations: 94.31 kB / 0.5286 GB, free: 6.426 MB / 0.4948 GB Notification: Performance of preOpt evalFunc (simulation): time 0.001119/0.3263, allocations: 0.6372 MB / 0.5292 GB, free: 5.773 MB / 0.4948 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.705e-05/0.3263, allocations: 35 kB / 0.5292 GB, free: 5.73 MB / 0.4948 GB Notification: Performance of pre-optimization done (n=47): time 1.533e-06/0.3263, allocations: 0 / 0.5292 GB, free: 5.73 MB / 0.4948 GB Notification: Performance of matching and sorting (n=47): time 0.0006834/0.327, allocations: 375.5 kB / 0.5296 GB, free: 5.352 MB / 0.4948 GB Notification: Performance of inlineWhenForInitialization (initialization): time 3.093e-05/0.3271, allocations: 55.91 kB / 0.5297 GB, free: 5.285 MB / 0.4948 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002867/0.3274, allocations: 403.2 kB / 0.53 GB, free: 4.879 MB / 0.4948 GB Notification: Performance of collectPreVariables (initialization): time 2.65e-05/0.3274, allocations: 37.7 kB / 0.5301 GB, free: 4.836 MB / 0.4948 GB Notification: Performance of collectInitialEqns (initialization): time 0.000114/0.3275, allocations: 225.8 kB / 0.5303 GB, free: 4.609 MB / 0.4948 GB Notification: Performance of collectInitialBindings (initialization): time 9.562e-05/0.3276, allocations: 174.5 kB / 0.5305 GB, free: 4.438 MB / 0.4948 GB Notification: Performance of simplifyInitialFunctions (initialization): time 9.697e-05/0.3277, allocations: 74.16 kB / 0.5305 GB, free: 4.359 MB / 0.4948 GB Notification: Performance of setup shared object (initialization): time 0.0001257/0.3278, allocations: 382.6 kB / 0.5309 GB, free: 3.977 MB / 0.4948 GB Notification: Performance of preBalanceInitialSystem (initialization): time 7.936e-05/0.3279, allocations: 44.97 kB / 0.5309 GB, free: 3.93 MB / 0.4948 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001077/0.328, allocations: 101.7 kB / 0.531 GB, free: 3.82 MB / 0.4948 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002239/0.3282, allocations: 190.1 kB / 0.5312 GB, free: 3.621 MB / 0.4948 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.905e-06/0.3282, allocations: 0 / 0.5312 GB, free: 3.621 MB / 0.4948 GB Notification: Performance of matching and sorting (n=53) (initialization): time 0.0003854/0.3286, allocations: 280 kB / 0.5315 GB, free: 3.332 MB / 0.4948 GB Notification: Performance of prepare postOptimizeDAE: time 1.816e-05/0.3286, allocations: 8 kB / 0.5315 GB, free: 3.324 MB / 0.4948 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.623e-06/0.3286, allocations: 0 / 0.5315 GB, free: 3.324 MB / 0.4948 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.0002109/0.3288, allocations: 57.77 kB / 0.5315 GB, free: 3.262 MB / 0.4948 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002489/0.3291, allocations: 103.9 kB / 0.5316 GB, free: 3.16 MB / 0.4948 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001322/0.3304, allocations: 2.39 MB / 0.534 GB, free: 0.6055 MB / 0.4948 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001492/0.3306, allocations: 27.78 kB / 0.534 GB, free: 0.5781 MB / 0.4948 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.34e-05/0.3306, allocations: 11.98 kB / 0.534 GB, free: 0.5664 MB / 0.4948 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.0001248/0.3307, allocations: 140.7 kB / 0.5341 GB, free: 428 kB / 0.4948 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 6.661e-05/0.3308, allocations: 44.14 kB / 0.5342 GB, free: 384 kB / 0.4948 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0006548/0.3314, allocations: 0.5102 MB / 0.5347 GB, free: 15.84 MB / 0.5105 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.228e-06/0.3314, allocations: 7.938 kB / 0.5347 GB, free: 15.84 MB / 0.5105 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.679e-06/0.3314, allocations: 8 kB / 0.5347 GB, free: 15.83 MB / 0.5105 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.218e-06/0.3314, allocations: 0 / 0.5347 GB, free: 15.83 MB / 0.5105 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0008675/0.3323, allocations: 0.6477 MB / 0.5353 GB, free: 15.14 MB / 0.5105 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.519e-06/0.3323, allocations: 4 kB / 0.5353 GB, free: 15.13 MB / 0.5105 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002023/0.3325, allocations: 79.89 kB / 0.5354 GB, free: 15.05 MB / 0.5105 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0001238/0.3326, allocations: 71.53 kB / 0.5355 GB, free: 14.98 MB / 0.5105 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.0001761/0.3328, allocations: 67.03 kB / 0.5355 GB, free: 14.91 MB / 0.5105 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.784e-05/0.3328, allocations: 15.98 kB / 0.5356 GB, free: 14.9 MB / 0.5105 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001324/0.3342, allocations: 2.398 MB / 0.5379 GB, free: 12.33 MB / 0.5105 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.098e-06/0.3342, allocations: 4 kB / 0.5379 GB, free: 12.32 MB / 0.5105 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0005179/0.3347, allocations: 437.8 kB / 0.5383 GB, free: 11.86 MB / 0.5105 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.93e-05/0.3347, allocations: 15.94 kB / 0.5383 GB, free: 11.85 MB / 0.5105 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001476/0.3349, allocations: 8 kB / 0.5383 GB, free: 11.84 MB / 0.5105 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 6.17e-05/0.335, allocations: 39.97 kB / 0.5384 GB, free: 11.8 MB / 0.5105 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.317e-05/0.335, allocations: 15.98 kB / 0.5384 GB, free: 11.79 MB / 0.5105 GB Notification: Performance of sorting global known variables: time 0.0001648/0.3351, allocations: 196.3 kB / 0.5386 GB, free: 11.59 MB / 0.5105 GB Notification: Performance of sort global known variables: time 5e-08/0.3351, allocations: 0 / 0.5386 GB, free: 11.59 MB / 0.5105 GB Notification: Performance of remove unused functions: time 0.0004627/0.3356, allocations: 179.7 kB / 0.5388 GB, free: 11.42 MB / 0.5105 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.0001886/0.3358, allocations: 117.9 kB / 0.5389 GB, free: 11.29 MB / 0.5105 GB Notification: Performance of simCode: created initialization part: time 0.0004451/0.3362, allocations: 443.5 kB / 0.5393 GB, free: 10.83 MB / 0.5105 GB Notification: Performance of simCode: created event and clocks part: time 1.105e-05/0.3362, allocations: 4 kB / 0.5393 GB, free: 10.83 MB / 0.5105 GB Notification: Performance of simCode: created simulation system equations: time 0.0002195/0.3365, allocations: 371 kB / 0.5397 GB, free: 10.44 MB / 0.5105 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0005871/0.3371, allocations: 267.7 kB / 0.5399 GB, free: 10.19 MB / 0.5105 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.007772/0.3448, allocations: 1.068 MB / 0.541 GB, free: 9.082 MB / 0.5105 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001199/0.3449, allocations: 130 kB / 0.5411 GB, free: 8.93 MB / 0.5105 GB Notification: Performance of simCode: alias equations: time 0.0003513/0.3453, allocations: 110.2 kB / 0.5412 GB, free: 8.828 MB / 0.5105 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002967/0.3456, allocations: 209.2 kB / 0.5414 GB, free: 8.621 MB / 0.5105 GB Notification: Performance of SimCode: time 1.432e-06/0.3456, allocations: 0 / 0.5414 GB, free: 8.621 MB / 0.5105 GB Notification: Performance of Templates: time 0.01269/0.3583, allocations: 10.77 MB / 0.5519 GB, free: 14.16 MB / 0.5261 GB " [Timeout remaining time 660] 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=240 -emit_protected -ignoreHideResult -lv LOG_STATS > ThermofluidStream_ThermofluidStream.Undirected.Processes.Tests.TestFlowResistance.pipe 2>&1) [Timeout 240] diffSimulationResults("ThermofluidStream_ThermofluidStream.Undirected.Processes.Tests.TestFlowResistance_res.mat","/mnt/ReferenceFiles/ThermofluidStream-main-regression/ReferenceData/ThermofluidStream.Undirected.Processes.Tests.TestFlowResistance_ref.mat","",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) [Timeout 660] "" [Timeout remaining time 660] Reference file matches [Calling sys.exit(0), Time elapsed: 3.667176208458841]