Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr ThermofluidStream_dev_ThermofluidStream.Undirected.FlowControl.Tests.BasicControlValve.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.001704/0.001704, allocations: 99.64 kB / 18.94 MB, free: 2.551 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.00211/0.00211, allocations: 212.3 kB / 22.25 MB, free: 4.859 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.452/1.452, allocations: 230.6 MB / 256 MB, free: 7.805 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.7592/0.7592, allocations: 100.9 MB / 413.3 MB, free: 2.875 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.FlowControl.Tests.BasicControlValve,tolerance=1e-06,outputFormat="mat",numberOfIntervals=1000,variableFilter="Time|boundary_rear.fore.m_flow|boundary_rear1.fore.m_flow|boundary_rear2.fore.m_flow|pulse.T_start|pulse.count",fileNamePrefix="ThermofluidStream_dev_ThermofluidStream.Undirected.FlowControl.Tests.BasicControlValve") translateModel(ThermofluidStream.Undirected.FlowControl.Tests.BasicControlValve,tolerance=1e-06,outputFormat="mat",numberOfIntervals=1000,variableFilter="Time|boundary_rear.fore.m_flow|boundary_rear1.fore.m_flow|boundary_rear2.fore.m_flow|pulse.T_start|pulse.count",fileNamePrefix="ThermofluidStream_dev_ThermofluidStream.Undirected.FlowControl.Tests.BasicControlValve") [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.002647/0.002647, allocations: 89.53 kB / 0.5646 GB, free: 35.34 MB / 446.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1185/0.1212, allocations: 74.6 MB / 0.6374 GB, free: 5.98 MB / 478.1 MB Notification: Performance of NFInst.instantiate(ThermofluidStream.Undirected.FlowControl.Tests.BasicControlValve): time 0.07123/0.1924, allocations: 59.76 MB / 0.6958 GB, free: 10 MB / 0.5294 GB Notification: Performance of NFInst.instExpressions: time 0.02279/0.2152, allocations: 16.04 MB / 0.7114 GB, free: 9.918 MB / 0.545 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.002149/0.2174, allocations: 111 kB / 0.7115 GB, free: 9.809 MB / 0.545 GB Notification: Performance of NFTyping.typeComponents: time 0.003292/0.2206, allocations: 1.067 MB / 0.7126 GB, free: 8.734 MB / 0.545 GB Notification: Performance of NFTyping.typeBindings: time 0.007846/0.2285, allocations: 2.839 MB / 0.7154 GB, free: 5.879 MB / 0.545 GB Notification: Performance of NFTyping.typeClassSections: time 0.004793/0.2333, allocations: 1.585 MB / 0.7169 GB, free: 4.289 MB / 0.545 GB Notification: Performance of NFFlatten.flatten: time 0.005784/0.2391, allocations: 3.899 MB / 0.7207 GB, free: 380 kB / 0.545 GB Notification: Performance of NFFlatten.resolveConnections: time 0.001064/0.2401, allocations: 391 kB / 0.7211 GB, free: 15.96 MB / 0.5606 GB Notification: Performance of NFEvalConstants.evaluate: time 0.003779/0.2439, allocations: 1.669 MB / 0.7227 GB, free: 14.29 MB / 0.5606 GB Notification: Performance of NFSimplifyModel.simplify: time 0.002527/0.2464, allocations: 1.438 MB / 0.7241 GB, free: 12.84 MB / 0.5606 GB Notification: Performance of NFPackage.collectConstants: time 0.0006048/0.247, allocations: 196 kB / 0.7243 GB, free: 12.65 MB / 0.5606 GB Notification: Performance of NFFlatten.collectFunctions: time 0.004527/0.2516, allocations: 1.494 MB / 0.7258 GB, free: 11.15 MB / 0.5606 GB Notification: Performance of NFScalarize.scalarize: time 0.0007414/0.2523, allocations: 0.49 MB / 0.7263 GB, free: 10.66 MB / 0.5606 GB Notification: Performance of NFVerifyModel.verify: time 0.001756/0.2541, allocations: 1.03 MB / 0.7273 GB, free: 9.625 MB / 0.5606 GB Notification: Performance of NFConvertDAE.convert: time 0.007756/0.2618, allocations: 3.794 MB / 0.731 GB, free: 5.816 MB / 0.5606 GB Notification: Performance of FrontEnd - DAE generated: time 6.753e-06/0.2618, allocations: 0 / 0.731 GB, free: 5.816 MB / 0.5606 GB Notification: Performance of FrontEnd: time 1.923e-06/0.2618, allocations: 4 kB / 0.731 GB, free: 5.812 MB / 0.5606 GB Notification: Performance of Transformations before backend: time 0.000111/0.2619, allocations: 0 / 0.731 GB, free: 5.812 MB / 0.5606 GB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 479 * Number of variables: 479 Notification: Performance of Generate backend data structure: time 0.006856/0.2688, allocations: 2.993 MB / 0.7339 GB, free: 2.766 MB / 0.5606 GB Notification: Performance of prepare preOptimizeDAE: time 4.28e-05/0.2688, allocations: 9.469 kB / 0.7339 GB, free: 2.758 MB / 0.5606 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.00123/0.2701, allocations: 347.1 kB / 0.7342 GB, free: 2.418 MB / 0.5606 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.003072/0.2731, allocations: 1.371 MB / 0.7356 GB, free: 1.004 MB / 0.5606 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001373/0.2733, allocations: 144.1 kB / 0.7357 GB, free: 0.8633 MB / 0.5606 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0003835/0.2737, allocations: 188.4 kB / 0.7359 GB, free: 0.6797 MB / 0.5606 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.004374/0.278, allocations: 2.242 MB / 0.7381 GB, free: 14.39 MB / 0.5762 GB Notification: Performance of preOpt findStateOrder (simulation): time 4.631e-05/0.2781, allocations: 3.938 kB / 0.7381 GB, free: 14.38 MB / 0.5762 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001897/0.2783, allocations: 79.94 kB / 0.7382 GB, free: 14.3 MB / 0.5762 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.223e-05/0.2783, allocations: 48 kB / 0.7382 GB, free: 14.26 MB / 0.5762 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.004336/0.2827, allocations: 2.298 MB / 0.7404 GB, free: 11.96 MB / 0.5762 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.009829/0.2925, allocations: 4.993 MB / 0.7453 GB, free: 6.883 MB / 0.5762 GB Notification: Performance of preOpt comSubExp (simulation): time 0.003281/0.2958, allocations: 1.781 MB / 0.7471 GB, free: 5.094 MB / 0.5762 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.001631/0.2974, allocations: 0.8853 MB / 0.7479 GB, free: 4.203 MB / 0.5762 GB Notification: Performance of preOpt evalFunc (simulation): time 0.006578/0.304, allocations: 2.789 MB / 0.7506 GB, free: 1.391 MB / 0.5762 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.001927/0.3059, allocations: 1.105 MB / 0.7517 GB, free: 248 kB / 0.5762 GB Notification: Performance of pre-optimization done (n=200): time 5e-06/0.3059, allocations: 0 / 0.7517 GB, free: 248 kB / 0.5762 GB Notification: Performance of matching and sorting (n=200): time 0.253/0.5589, allocations: 2.737 MB / 0.7544 GB, free: 110.8 MB / 0.5762 GB Notification: Performance of inlineWhenForInitialization (initialization): time 5.688e-05/0.5589, allocations: 152.5 kB / 0.7545 GB, free: 110.6 MB / 0.5762 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001433/0.5604, allocations: 1.133 MB / 0.7557 GB, free: 110.2 MB / 0.5762 GB Notification: Performance of collectPreVariables (initialization): time 0.0001467/0.5605, allocations: 62.81 kB / 0.7557 GB, free: 110.1 MB / 0.5762 GB Notification: Performance of collectInitialEqns (initialization): time 0.0005617/0.5611, allocations: 0.8845 MB / 0.7566 GB, free: 109.6 MB / 0.5762 GB Notification: Performance of collectInitialBindings (initialization): time 0.0004472/0.5615, allocations: 0.6883 MB / 0.7572 GB, free: 109.2 MB / 0.5762 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0004414/0.562, allocations: 324.8 kB / 0.7576 GB, free: 109 MB / 0.5762 GB Notification: Performance of setup shared object (initialization): time 3.778e-05/0.562, allocations: 303 kB / 0.7578 GB, free: 108.7 MB / 0.5762 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001203/0.5632, allocations: 0.6641 MB / 0.7585 GB, free: 108.4 MB / 0.5762 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.00148/0.5647, allocations: 0.9982 MB / 0.7595 GB, free: 107.8 MB / 0.5762 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.002654/0.5673, allocations: 1.661 MB / 0.7611 GB, free: 106.9 MB / 0.5762 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.05e-05/0.5673, allocations: 1.375 kB / 0.7611 GB, free: 106.9 MB / 0.5762 GB Notification: Performance of matching and sorting (n=227) (initialization): time 0.003794/0.5711, allocations: 2.16 MB / 0.7632 GB, free: 106 MB / 0.5762 GB Notification: Performance of prepare postOptimizeDAE: time 4.101e-05/0.5712, allocations: 37.41 kB / 0.7632 GB, free: 106 MB / 0.5762 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.47e-05/0.5712, allocations: 4.844 kB / 0.7632 GB, free: 106 MB / 0.5762 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.0005345/0.5717, allocations: 161.3 kB / 0.7634 GB, free: 105.9 MB / 0.5762 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001328/0.573, allocations: 398 kB / 0.7638 GB, free: 105.8 MB / 0.5762 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.00307/0.5761, allocations: 4.427 MB / 0.7681 GB, free: 101.8 MB / 0.5762 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001199/0.5773, allocations: 154.5 kB / 0.7682 GB, free: 101.7 MB / 0.5762 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0002318/0.5776, allocations: 89.34 kB / 0.7683 GB, free: 101.7 MB / 0.5762 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 22 * Number of states: 0 () * Number of discrete variables: 5 (pulse.count,$PRE.pulse.count,pulse.T_start,$PRE.pulse.T_start,$whenCondition1) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (214): * Single equations (assignments): 210 * Array equations: 0 * Algorithm blocks: 1 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 3 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 3 systems {(1,4,100.0%), (1,4,100.0%), (1,4,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of prepare postOptimizeDAE: time 0.0007432/0.5783, allocations: 360.1 kB / 0.7687 GB, free: 101.4 MB / 0.5762 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0004092/0.5787, allocations: 201.8 kB / 0.7689 GB, free: 101.3 MB / 0.5762 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.005569/0.5843, allocations: 3.094 MB / 0.7719 GB, free: 100.1 MB / 0.5762 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.918e-05/0.5843, allocations: 22.59 kB / 0.7719 GB, free: 100.1 MB / 0.5762 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 8.717e-06/0.5843, allocations: 6.859 kB / 0.7719 GB, free: 100.1 MB / 0.5762 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.312e-05/0.5843, allocations: 10.55 kB / 0.7719 GB, free: 100.1 MB / 0.5762 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.007012/0.5913, allocations: 4.048 MB / 0.7759 GB, free: 98.25 MB / 0.5762 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 8.215e-06/0.5913, allocations: 1.469 kB / 0.7759 GB, free: 98.25 MB / 0.5762 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001207/0.5926, allocations: 382.3 kB / 0.7762 GB, free: 98.21 MB / 0.5762 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.0004439/0.593, allocations: 162.9 kB / 0.7764 GB, free: 98.16 MB / 0.5762 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001277/0.5931, allocations: 66.53 kB / 0.7765 GB, free: 98.13 MB / 0.5762 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.00263/0.5958, allocations: 4.434 MB / 0.7808 GB, free: 94.04 MB / 0.5762 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.956e-06/0.5958, allocations: 1.469 kB / 0.7808 GB, free: 94.04 MB / 0.5762 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.004748/0.6005, allocations: 3.218 MB / 0.7839 GB, free: 92.55 MB / 0.5762 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0007633/0.6013, allocations: 434.4 kB / 0.7844 GB, free: 92.32 MB / 0.5762 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0002117/0.6015, allocations: 49.97 kB / 0.7844 GB, free: 92.29 MB / 0.5762 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.000751/0.6022, allocations: 53.44 kB / 0.7845 GB, free: 92.27 MB / 0.5762 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002542/0.6025, allocations: 174.4 kB / 0.7846 GB, free: 92.24 MB / 0.5762 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001281/0.6026, allocations: 82.61 kB / 0.7847 GB, free: 92.22 MB / 0.5762 GB Notification: Performance of sorting global known variables: time 0.0008457/0.6035, allocations: 0.7803 MB / 0.7855 GB, free: 91.92 MB / 0.5762 GB Notification: Performance of sort global known variables: time 1.1e-07/0.6035, allocations: 0 / 0.7855 GB, free: 91.92 MB / 0.5762 GB Notification: Performance of remove unused functions: time 0.001819/0.6053, allocations: 0.8162 MB / 0.7863 GB, free: 91.76 MB / 0.5762 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 7 * Number of states: 3 (flowResistance6.rear.m_flow,flowResistance2.rear.m_flow,flowResistance4.rear.m_flow) * Number of discrete variables: 3 ($whenCondition1,pulse.T_start,pulse.count) * Number of discrete states: 1 (pulse.count) * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (213): * Single equations (assignments): 208 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 2 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 3 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 3 systems {(1,4,100.0%), (1,4,100.0%), (1,4,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of Backend phase and start with SimCode phase: time 0.0008805/0.6062, allocations: 0.7839 MB / 0.787 GB, free: 91.34 MB / 0.5762 GB Notification: Performance of simCode: created initialization part: time 0.002947/0.6091, allocations: 2.145 MB / 0.7891 GB, free: 89.35 MB / 0.5762 GB Notification: Performance of simCode: created event and clocks part: time 4.508e-06/0.6091, allocations: 4 kB / 0.7891 GB, free: 89.35 MB / 0.5762 GB Notification: Performance of simCode: created simulation system equations: time 0.001594/0.6107, allocations: 1.304 MB / 0.7904 GB, free: 88.13 MB / 0.5762 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002209/0.6129, allocations: 0.5777 MB / 0.791 GB, free: 87.61 MB / 0.5762 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.005246/0.6182, allocations: 3.838 MB / 0.7947 GB, free: 83.75 MB / 0.5762 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0006153/0.6188, allocations: 0.8925 MB / 0.7956 GB, free: 82.82 MB / 0.5762 GB Notification: Performance of simCode: alias equations: time 0.001384/0.6202, allocations: 462.8 kB / 0.796 GB, free: 82.47 MB / 0.5762 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0004493/0.6206, allocations: 219.3 kB / 0.7962 GB, free: 82.26 MB / 0.5762 GB Notification: Performance of SimCode: time 5.81e-07/0.6206, allocations: 4 kB / 0.7962 GB, free: 82.25 MB / 0.5762 GB Notification: Performance of Templates: time 0.04904/0.6696, allocations: 41.22 MB / 0.8365 GB, free: 41.61 MB / 0.5762 GB " [Timeout remaining time 659] make -j1 -f ThermofluidStream_dev_ThermofluidStream.Undirected.FlowControl.Tests.BasicControlValve.makefile [Timeout 660] (rm -f ThermofluidStream_dev_ThermofluidStream.Undirected.FlowControl.Tests.BasicControlValve.pipe ; mkfifo ThermofluidStream_dev_ThermofluidStream.Undirected.FlowControl.Tests.BasicControlValve.pipe ; head -c 1048576 < ThermofluidStream_dev_ThermofluidStream.Undirected.FlowControl.Tests.BasicControlValve.pipe >> ../files/ThermofluidStream_dev_ThermofluidStream.Undirected.FlowControl.Tests.BasicControlValve.sim & ./ThermofluidStream_dev_ThermofluidStream.Undirected.FlowControl.Tests.BasicControlValve -abortSlowSimulation -alarm=1200 -emit_protected -lv LOG_STATS > ThermofluidStream_dev_ThermofluidStream.Undirected.FlowControl.Tests.BasicControlValve.pipe 2>&1) [Timeout 1200] diffSimulationResults("ThermofluidStream_dev_ThermofluidStream.Undirected.FlowControl.Tests.BasicControlValve_res.mat","/mnt/ReferenceFiles/ThermofluidStream-main-regression/ReferenceData/ThermofluidStream.Undirected.FlowControl.Tests.BasicControlValve_ref.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/ThermofluidStream_dev_ThermofluidStream.Undirected.FlowControl.Tests.BasicControlValve.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: 7.230575792491436]