Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr ThermofluidStream_dev_ThermofluidStream.Undirected.Boundaries.Tests.Reservoir.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.0008459/0.0008459, 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.0008738/0.0008738, allocations: 177.9 kB / 23.21 MB, free: 1.344 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.8539/0.8539, allocations: 177.1 MB / 203.5 MB, free: 5.699 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.6625/0.6625, allocations: 116 MB / 376 MB, free: 4.188 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.Boundaries.Tests.Reservoir,tolerance=1e-06,outputFormat="mat",numberOfIntervals=1000,variableFilter="Time|reservoir.M|reservoir.U_med|reservoir.m_flow_fore|reservoir.m_flow_rear|reservoir2.M|reservoir2.U_med|reservoir2.m_flow_in|reservoir2.m_flow_out",fileNamePrefix="ThermofluidStream_dev_ThermofluidStream.Undirected.Boundaries.Tests.Reservoir") translateModel(ThermofluidStream.Undirected.Boundaries.Tests.Reservoir,tolerance=1e-06,outputFormat="mat",numberOfIntervals=1000,variableFilter="Time|reservoir.M|reservoir.U_med|reservoir.m_flow_fore|reservoir.m_flow_rear|reservoir2.M|reservoir2.U_med|reservoir2.m_flow_in|reservoir2.m_flow_out",fileNamePrefix="ThermofluidStream_dev_ThermofluidStream.Undirected.Boundaries.Tests.Reservoir") [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 2.024e-06/2.024e-06, allocations: 3.938 kB / 0.5545 GB, free: 12.84 MB / 490.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 2.787e-05/2.99e-05, allocations: 6.281 kB / 0.5545 GB, free: 12.83 MB / 490.7 MB Notification: Performance of NFInst.instantiate(ThermofluidStream.Undirected.Boundaries.Tests.Reservoir): time 0.02773/0.02776, allocations: 39.39 MB / 0.593 GB, free: 5.293 MB / 0.5105 GB Notification: Performance of NFInst.instExpressions: time 0.005706/0.03347, allocations: 3.889 MB / 0.5968 GB, free: 1.395 MB / 0.5105 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.001168/0.03463, allocations: 67.38 kB / 0.5968 GB, free: 1.328 MB / 0.5105 GB Notification: Performance of NFTyping.typeComponents: time 0.001162/0.0358, allocations: 0.5157 MB / 0.5973 GB, free: 0.8086 MB / 0.5105 GB Notification: Performance of NFTyping.typeBindings: time 0.003048/0.03884, allocations: 1.494 MB / 0.5988 GB, free: 15.3 MB / 0.5261 GB Notification: Performance of NFTyping.typeClassSections: time 0.002183/0.04103, allocations: 0.9497 MB / 0.5997 GB, free: 14.35 MB / 0.5261 GB Notification: Performance of NFFlatten.flatten: time 0.002578/0.04361, allocations: 2.406 MB / 0.6021 GB, free: 11.94 MB / 0.5261 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0007169/0.04432, allocations: 161.5 kB / 0.6022 GB, free: 11.77 MB / 0.5261 GB Notification: Performance of NFEvalConstants.evaluate: time 0.003449/0.04777, allocations: 1.756 MB / 0.6039 GB, free: 10.01 MB / 0.5261 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0008914/0.04866, allocations: 0.6621 MB / 0.6046 GB, free: 9.344 MB / 0.5261 GB Notification: Performance of NFPackage.collectConstants: time 0.0001684/0.04883, allocations: 103.9 kB / 0.6047 GB, free: 9.242 MB / 0.5261 GB Notification: Performance of NFFlatten.collectFunctions: time 0.001563/0.05039, allocations: 0.6745 MB / 0.6053 GB, free: 8.566 MB / 0.5261 GB Notification: Performance of NFScalarize.scalarize: time 0.0002151/0.05061, allocations: 282.7 kB / 0.6056 GB, free: 8.289 MB / 0.5261 GB Notification: Performance of NFVerifyModel.verify: time 0.0005165/0.05113, allocations: 494.8 kB / 0.6061 GB, free: 7.805 MB / 0.5261 GB Notification: Performance of NFConvertDAE.convert: time 0.002733/0.05386, allocations: 1.939 MB / 0.608 GB, free: 5.859 MB / 0.5261 GB Notification: Performance of FrontEnd - DAE generated: time 5.681e-06/0.05386, allocations: 4 kB / 0.608 GB, free: 5.855 MB / 0.5261 GB Notification: Performance of FrontEnd: time 1.563e-06/0.05387, allocations: 0 / 0.608 GB, free: 5.855 MB / 0.5261 GB Notification: Performance of Transformations before backend: time 3.61e-05/0.0539, allocations: 4 kB / 0.608 GB, free: 5.852 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: 232 * Number of variables: 232 Notification: Performance of Generate backend data structure: time 0.002707/0.05661, allocations: 1.659 MB / 0.6096 GB, free: 4.156 MB / 0.5261 GB Notification: Performance of prepare preOptimizeDAE: time 4.643e-05/0.05666, allocations: 12.03 kB / 0.6096 GB, free: 4.145 MB / 0.5261 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0004492/0.0571, allocations: 195.9 kB / 0.6098 GB, free: 3.953 MB / 0.5261 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001186/0.05829, allocations: 0.8152 MB / 0.6106 GB, free: 3.109 MB / 0.5261 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.989e-05/0.05834, allocations: 78.31 kB / 0.6107 GB, free: 3.031 MB / 0.5261 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001107/0.05845, allocations: 100.3 kB / 0.6108 GB, free: 2.934 MB / 0.5261 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001257/0.05971, allocations: 1.342 MB / 0.6121 GB, free: 1.492 MB / 0.5261 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.762e-05/0.05973, allocations: 0 / 0.6121 GB, free: 1.492 MB / 0.5261 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 6.007e-05/0.05979, allocations: 39.94 kB / 0.6121 GB, free: 1.453 MB / 0.5261 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.821e-05/0.0598, allocations: 24 kB / 0.6121 GB, free: 1.43 MB / 0.5261 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001214/0.06102, allocations: 1.016 MB / 0.6131 GB, free: 424 kB / 0.5261 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.004006/0.06502, allocations: 3.102 MB / 0.6162 GB, free: 13.24 MB / 0.5417 GB Notification: Performance of preOpt comSubExp (simulation): time 0.001548/0.06657, allocations: 0.8693 MB / 0.617 GB, free: 12.34 MB / 0.5417 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0004762/0.06705, allocations: 431.3 kB / 0.6174 GB, free: 11.92 MB / 0.5417 GB Notification: Performance of preOpt evalFunc (simulation): time 0.00177/0.06882, allocations: 1.326 MB / 0.6187 GB, free: 10.57 MB / 0.5417 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.317e-05/0.06885, allocations: 47.22 kB / 0.6188 GB, free: 10.52 MB / 0.5417 GB Notification: Performance of pre-optimization done (n=108): time 2.985e-06/0.06885, allocations: 0 / 0.6188 GB, free: 10.52 MB / 0.5417 GB Notification: Performance of matching and sorting (n=122): time 0.005908/0.07476, allocations: 4.027 MB / 0.6227 GB, free: 6.402 MB / 0.5417 GB Notification: Performance of inlineWhenForInitialization (initialization): time 4.395e-05/0.07481, allocations: 94.27 kB / 0.6228 GB, free: 6.293 MB / 0.5417 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0008865/0.07569, allocations: 0.7438 MB / 0.6235 GB, free: 5.535 MB / 0.5417 GB Notification: Performance of collectPreVariables (initialization): time 5.385e-05/0.07575, allocations: 45.7 kB / 0.6236 GB, free: 5.484 MB / 0.5417 GB Notification: Performance of collectInitialEqns (initialization): time 0.0002402/0.07599, allocations: 0.4973 MB / 0.624 GB, free: 4.98 MB / 0.5417 GB Notification: Performance of collectInitialBindings (initialization): time 0.0002202/0.07621, allocations: 440.2 kB / 0.6245 GB, free: 4.547 MB / 0.5417 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001996/0.07641, allocations: 202.9 kB / 0.6247 GB, free: 4.344 MB / 0.5417 GB Notification: Performance of setup shared object (initialization): time 9.873e-05/0.07651, allocations: 341.9 kB / 0.625 GB, free: 4.004 MB / 0.5417 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0005271/0.07703, allocations: 410.4 kB / 0.6254 GB, free: 3.605 MB / 0.5417 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0005984/0.07763, allocations: 0.5898 MB / 0.6259 GB, free: 2.949 MB / 0.5417 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.001175/0.07881, allocations: 1.051 MB / 0.627 GB, free: 1.832 MB / 0.5417 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.657e-06/0.07881, allocations: 0 / 0.627 GB, free: 1.832 MB / 0.5417 GB Notification: Performance of matching and sorting (n=146) (initialization): time 0.001875/0.08068, allocations: 1.506 MB / 0.6284 GB, free: 300 kB / 0.5417 GB Notification: Performance of prepare postOptimizeDAE: time 1.875e-05/0.0807, allocations: 7.938 kB / 0.6285 GB, free: 292 kB / 0.5417 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.289e-05/0.08072, allocations: 8 kB / 0.6285 GB, free: 284 kB / 0.5417 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.000582/0.0813, allocations: 306.7 kB / 0.6288 GB, free: 15.95 MB / 0.5573 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0004718/0.08177, allocations: 239.6 kB / 0.629 GB, free: 15.72 MB / 0.5573 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.006114/0.08788, allocations: 11.09 MB / 0.6398 GB, free: 3.816 MB / 0.5573 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0006527/0.08854, allocations: 47.95 kB / 0.6399 GB, free: 3.77 MB / 0.5573 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 7.435e-05/0.08861, allocations: 51.98 kB / 0.6399 GB, free: 3.719 MB / 0.5573 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 21 * 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 (126): * Single equations (assignments): 118 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 8 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 8 systems {(1,2,100.0%), (1,2,100.0%), (2,5,100.0%), (1,2,100.0%), (1,2,100.0%), (1,2,100.0%), (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.0004704/0.08908, allocations: 262.8 kB / 0.6402 GB, free: 3.453 MB / 0.5573 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001566/0.08924, allocations: 131.1 kB / 0.6403 GB, free: 3.324 MB / 0.5573 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.002189/0.09143, allocations: 1.788 MB / 0.642 GB, free: 1.488 MB / 0.5573 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 8.025e-06/0.09144, allocations: 12.14 kB / 0.642 GB, free: 1.477 MB / 0.5573 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.163e-06/0.09144, allocations: 4 kB / 0.642 GB, free: 1.473 MB / 0.5573 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.079e-05/0.09145, allocations: 19.89 kB / 0.6421 GB, free: 1.453 MB / 0.5573 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.2483/0.3397, allocations: 2.438 MB / 0.6444 GB, free: 92.94 MB / 0.5573 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 6.693e-06/0.3397, allocations: 3 kB / 0.6444 GB, free: 92.94 MB / 0.5573 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0004839/0.3402, allocations: 205 kB / 0.6446 GB, free: 92.94 MB / 0.5573 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.0006473/0.3409, allocations: 307.8 kB / 0.6449 GB, free: 92.88 MB / 0.5573 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 6.478e-05/0.3409, allocations: 37.2 kB / 0.645 GB, free: 92.88 MB / 0.5573 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.004443/0.3454, allocations: 11.09 MB / 0.6558 GB, free: 83.01 MB / 0.5573 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.655e-06/0.3454, allocations: 1.812 kB / 0.6558 GB, free: 83.01 MB / 0.5573 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002479/0.3479, allocations: 2.1 MB / 0.6579 GB, free: 82.05 MB / 0.5573 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0003443/0.3482, allocations: 218.2 kB / 0.6581 GB, free: 81.99 MB / 0.5573 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 8.218e-05/0.3483, allocations: 24.28 kB / 0.6581 GB, free: 81.97 MB / 0.5573 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.000363/0.3486, allocations: 55.61 kB / 0.6581 GB, free: 81.96 MB / 0.5573 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001868/0.3488, allocations: 109.9 kB / 0.6582 GB, free: 81.93 MB / 0.5573 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.005e-05/0.3489, allocations: 40.17 kB / 0.6583 GB, free: 81.93 MB / 0.5573 GB Notification: Performance of sorting global known variables: time 0.0004108/0.3493, allocations: 0.5353 MB / 0.6588 GB, free: 81.69 MB / 0.5573 GB Notification: Performance of sort global known variables: time 2.01e-07/0.3493, allocations: 3.406 kB / 0.6588 GB, free: 81.69 MB / 0.5573 GB Notification: Performance of remove unused functions: time 0.0009206/0.3502, allocations: 426.9 kB / 0.6592 GB, free: 81.63 MB / 0.5573 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 6 * Number of states: 8 (reservoir.M,reservoir.U_med,flowResistance1.rear.m_flow,flowResistance2.rear.m_flow,reservoir2.M,reservoir2.U_med,flowResistance4.inlet.m_flow,flowResistance5.inlet.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 (98): * Single equations (assignments): 90 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 8 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 6 systems {(1,2,100.0%), (1,2,100.0%), (1,2,100.0%), (2,5,100.0%), (1,2,100.0%), (1,2,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 2 systems {(1,2), (1,2)} Notification: Performance of Backend phase and start with SimCode phase: time 0.0003955/0.3506, allocations: 381.6 kB / 0.6596 GB, free: 81.51 MB / 0.5573 GB Notification: Performance of simCode: created initialization part: time 0.001728/0.3523, allocations: 1.987 MB / 0.6615 GB, free: 80.25 MB / 0.5573 GB Notification: Performance of simCode: created event and clocks part: time 3.396e-06/0.3523, allocations: 0 / 0.6615 GB, free: 80.25 MB / 0.5573 GB Notification: Performance of simCode: created simulation system equations: time 0.001112/0.3535, allocations: 1.537 MB / 0.663 GB, free: 79.14 MB / 0.5573 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.00123/0.3547, allocations: 482.6 kB / 0.6635 GB, free: 79.01 MB / 0.5573 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002962/0.3576, allocations: 2.595 MB / 0.666 GB, free: 77.77 MB / 0.5573 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0005035/0.3581, allocations: 0.5114 MB / 0.6665 GB, free: 77.63 MB / 0.5573 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002672/0.3584, allocations: 125.5 kB / 0.6666 GB, free: 77.6 MB / 0.5573 GB Notification: Performance of SimCode: time 1.112e-06/0.3584, allocations: 4 kB / 0.6666 GB, free: 77.6 MB / 0.5573 GB Notification: Performance of Templates: time 0.03706/0.3955, allocations: 57.35 MB / 0.7226 GB, free: 32.55 MB / 0.5573 GB " [Timeout remaining time 660] make -j1 -f ThermofluidStream_dev_ThermofluidStream.Undirected.Boundaries.Tests.Reservoir.makefile [Timeout 660] (rm -f ThermofluidStream_dev_ThermofluidStream.Undirected.Boundaries.Tests.Reservoir.pipe ; mkfifo ThermofluidStream_dev_ThermofluidStream.Undirected.Boundaries.Tests.Reservoir.pipe ; head -c 1048576 < ThermofluidStream_dev_ThermofluidStream.Undirected.Boundaries.Tests.Reservoir.pipe >> ../files/ThermofluidStream_dev_ThermofluidStream.Undirected.Boundaries.Tests.Reservoir.sim & ./ThermofluidStream_dev_ThermofluidStream.Undirected.Boundaries.Tests.Reservoir -abortSlowSimulation -alarm=1200 -emit_protected -lv LOG_STATS > ThermofluidStream_dev_ThermofluidStream.Undirected.Boundaries.Tests.Reservoir.pipe 2>&1) [Timeout 1200] diffSimulationResults("ThermofluidStream_dev_ThermofluidStream.Undirected.Boundaries.Tests.Reservoir_res.mat","/mnt/ReferenceFiles/ThermofluidStream-main-regression/ReferenceData/ThermofluidStream.Undirected.Boundaries.Tests.Reservoir_ref.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/ThermofluidStream_dev_ThermofluidStream.Undirected.Boundaries.Tests.Reservoir.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.313000620342791]