Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr ThermofluidStream_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.001566/0.001566, allocations: 88.42 kB / 19.43 MB, free: 1.992 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.001657/0.001657, allocations: 160.1 kB / 22.74 MB, free: 4.777 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.397/1.397, allocations: 177.1 MB / 203.1 MB, free: 9.066 MB / 190.1 MB " [Timeout remaining time 178] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ThermofluidStream 1.3.0/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ThermofluidStream 1.3.0/package.mo): time 0.7456/0.7456, allocations: 80.19 MB / 339.7 MB, free: 10.72 MB / 318.1 MB " [Timeout remaining time 179] Using package ThermofluidStream with version 1.3.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ThermofluidStream 1.3.0/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_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_ThermofluidStream.Undirected.FlowControl.Tests.BasicControlValve") [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 2.174e-06/2.174e-06, allocations: 0 / 430.5 MB, free: 48 kB / 398.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 2.922e-05/3.139e-05, allocations: 2.312 kB / 430.5 MB, free: 44 kB / 398.1 MB Notification: Performance of NFInst.instantiate(ThermofluidStream.Undirected.FlowControl.Tests.BasicControlValve): time 0.2396/0.2396, allocations: 60.68 MB / 491.2 MB, free: 44.44 MB / 446.1 MB Notification: Performance of NFInst.instExpressions: time 0.01524/0.2549, allocations: 16.22 MB / 0.4955 GB, free: 43.32 MB / 446.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.001915/0.2568, allocations: 112.2 kB / 0.4956 GB, free: 43.32 MB / 446.1 MB Notification: Performance of NFTyping.typeComponents: time 0.00235/0.2591, allocations: 1.109 MB / 0.4967 GB, free: 43.12 MB / 446.1 MB Notification: Performance of NFTyping.typeBindings: time 0.006205/0.2653, allocations: 3.092 MB / 0.4997 GB, free: 41.57 MB / 446.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.003523/0.2689, allocations: 1.629 MB / 0.5013 GB, free: 40.89 MB / 446.1 MB Notification: Performance of NFFlatten.flatten: time 0.004091/0.2729, allocations: 4.308 MB / 0.5055 GB, free: 38.67 MB / 446.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0006662/0.2736, allocations: 380.7 kB / 0.5059 GB, free: 38.48 MB / 446.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.003652/0.2773, allocations: 2.332 MB / 0.5082 GB, free: 37.55 MB / 446.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.001653/0.2789, allocations: 1.286 MB / 0.5094 GB, free: 37.14 MB / 446.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0002608/0.2792, allocations: 192.5 kB / 0.5096 GB, free: 37.14 MB / 446.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.003981/0.2832, allocations: 1.521 MB / 0.5111 GB, free: 36.69 MB / 446.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0003875/0.2835, allocations: 0.503 MB / 0.5116 GB, free: 36.33 MB / 446.1 MB Notification: Performance of NFVerifyModel.verify: time 0.001264/0.2848, allocations: 0.9103 MB / 0.5125 GB, free: 35.98 MB / 446.1 MB Notification: Performance of NFConvertDAE.convert: time 0.007275/0.2921, allocations: 3.892 MB / 0.5163 GB, free: 34.5 MB / 446.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.801e-06/0.2921, allocations: 0.6562 kB / 0.5163 GB, free: 34.5 MB / 446.1 MB Notification: Performance of FrontEnd: time 1.353e-06/0.2921, allocations: 0 / 0.5163 GB, free: 34.5 MB / 446.1 MB Notification: Performance of Transformations before backend: time 7.977e-05/0.2922, allocations: 0 / 0.5163 GB, free: 34.5 MB / 446.1 MB 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.006198/0.2984, allocations: 2.995 MB / 0.5192 GB, free: 32.68 MB / 446.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.646e-05/0.2984, allocations: 8.953 kB / 0.5192 GB, free: 32.68 MB / 446.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.00142/0.2998, allocations: 0.5446 MB / 0.5197 GB, free: 32.43 MB / 446.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.002638/0.3025, allocations: 1.456 MB / 0.5212 GB, free: 31.65 MB / 446.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 9.115e-05/0.3026, allocations: 141.3 kB / 0.5213 GB, free: 31.59 MB / 446.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0002513/0.3028, allocations: 190.7 kB / 0.5215 GB, free: 31.52 MB / 446.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.003393/0.3062, allocations: 2.241 MB / 0.5237 GB, free: 30.55 MB / 446.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 3.737e-05/0.3062, allocations: 1.406 kB / 0.5237 GB, free: 30.55 MB / 446.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001455/0.3064, allocations: 77.86 kB / 0.5237 GB, free: 30.49 MB / 446.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.789e-05/0.3064, allocations: 49.48 kB / 0.5238 GB, free: 30.48 MB / 446.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.003548/0.31, allocations: 2.299 MB / 0.526 GB, free: 29.68 MB / 446.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.008067/0.318, allocations: 5.115 MB / 0.531 GB, free: 26.91 MB / 446.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.002555/0.3206, allocations: 1.782 MB / 0.5328 GB, free: 26.18 MB / 446.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001204/0.3218, allocations: 0.8799 MB / 0.5336 GB, free: 25.82 MB / 446.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.005296/0.3271, allocations: 2.807 MB / 0.5364 GB, free: 24.41 MB / 446.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.001511/0.3286, allocations: 1.107 MB / 0.5374 GB, free: 23.88 MB / 446.1 MB Notification: Performance of pre-optimization done (n=200): time 4.168e-06/0.3286, allocations: 0 / 0.5374 GB, free: 23.88 MB / 446.1 MB Notification: Performance of matching and sorting (n=200): time 0.005166/0.3338, allocations: 2.801 MB / 0.5402 GB, free: 22.79 MB / 446.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.493e-05/0.3338, allocations: 152.5 kB / 0.5403 GB, free: 22.63 MB / 446.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001128/0.335, allocations: 1.134 MB / 0.5414 GB, free: 22.2 MB / 446.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0001102/0.3351, allocations: 64.52 kB / 0.5415 GB, free: 22.14 MB / 446.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0004597/0.3355, allocations: 0.8873 MB / 0.5424 GB, free: 21.44 MB / 446.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0003595/0.3359, allocations: 0.6922 MB / 0.543 GB, free: 20.87 MB / 446.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0004165/0.3363, allocations: 327.4 kB / 0.5433 GB, free: 20.72 MB / 446.1 MB Notification: Performance of setup shared object (initialization): time 3.883e-05/0.3363, allocations: 307.9 kB / 0.5436 GB, free: 20.42 MB / 446.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001008/0.3373, allocations: 0.6609 MB / 0.5443 GB, free: 20.14 MB / 446.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.00121/0.3386, allocations: 0.9998 MB / 0.5453 GB, free: 19.53 MB / 446.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.002307/0.3409, allocations: 1.656 MB / 0.5469 GB, free: 18.62 MB / 446.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 7.524e-06/0.3409, allocations: 2.469 kB / 0.5469 GB, free: 18.62 MB / 446.1 MB Notification: Performance of matching and sorting (n=227) (initialization): time 0.003519/0.3444, allocations: 2.232 MB / 0.5491 GB, free: 16.8 MB / 446.1 MB Notification: Performance of prepare postOptimizeDAE: time 3.945e-05/0.3444, allocations: 39.66 kB / 0.5491 GB, free: 16.76 MB / 446.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.376e-05/0.3444, allocations: 4 kB / 0.5491 GB, free: 16.76 MB / 446.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0005008/0.3449, allocations: 164.5 kB / 0.5493 GB, free: 16.62 MB / 446.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001295/0.3462, allocations: 390.7 kB / 0.5496 GB, free: 16.29 MB / 446.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002885/0.3491, allocations: 4.462 MB / 0.554 GB, free: 11.67 MB / 446.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001325/0.3505, allocations: 160.5 kB / 0.5541 GB, free: 11.52 MB / 446.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001638/0.3506, allocations: 81.33 kB / 0.5542 GB, free: 11.45 MB / 446.1 MB 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.0006682/0.3513, allocations: 353.2 kB / 0.5546 GB, free: 11.09 MB / 446.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0004269/0.3517, allocations: 266.7 kB / 0.5548 GB, free: 10.83 MB / 446.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.004533/0.3562, allocations: 3.098 MB / 0.5578 GB, free: 7.871 MB / 446.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.341e-05/0.3563, allocations: 24 kB / 0.5579 GB, free: 7.848 MB / 446.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.153e-06/0.3563, allocations: 0 / 0.5579 GB, free: 7.848 MB / 446.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.879e-05/0.3563, allocations: 11.06 kB / 0.5579 GB, free: 7.84 MB / 446.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.00604/0.3623, allocations: 4.055 MB / 0.5618 GB, free: 3.715 MB / 446.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 7.694e-06/0.3623, allocations: 0 / 0.5618 GB, free: 3.715 MB / 446.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001258/0.3636, allocations: 379.5 kB / 0.5622 GB, free: 3.344 MB / 446.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0004382/0.364, allocations: 170.5 kB / 0.5624 GB, free: 3.168 MB / 446.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001188/0.3641, allocations: 71.91 kB / 0.5624 GB, free: 3.098 MB / 446.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.003278/0.3674, allocations: 4.426 MB / 0.5667 GB, free: 14.37 MB / 462.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 8.876e-06/0.3674, allocations: 3.984 kB / 0.5667 GB, free: 14.36 MB / 462.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.006233/0.3737, allocations: 3.283 MB / 0.57 GB, free: 11.04 MB / 462.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.001031/0.3747, allocations: 445 kB / 0.5704 GB, free: 10.6 MB / 462.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0002671/0.375, allocations: 52.12 kB / 0.5704 GB, free: 10.55 MB / 462.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0008271/0.3758, allocations: 55.97 kB / 0.5705 GB, free: 10.5 MB / 462.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002962/0.3761, allocations: 169.7 kB / 0.5706 GB, free: 10.33 MB / 462.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001651/0.3763, allocations: 83.95 kB / 0.5707 GB, free: 10.25 MB / 462.1 MB Notification: Performance of sorting global known variables: time 0.00111/0.3774, allocations: 0.7854 MB / 0.5715 GB, free: 9.469 MB / 462.1 MB Notification: Performance of sort global known variables: time 7.1e-08/0.3774, allocations: 0 / 0.5715 GB, free: 9.469 MB / 462.1 MB Notification: Performance of remove unused functions: time 0.00237/0.3797, allocations: 0.8615 MB / 0.5723 GB, free: 8.605 MB / 462.1 MB 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.001236/0.381, allocations: 0.7835 MB / 0.5731 GB, free: 7.832 MB / 462.1 MB Notification: Performance of simCode: created initialization part: time 0.003856/0.3848, allocations: 2.128 MB / 0.5752 GB, free: 5.645 MB / 462.1 MB Notification: Performance of simCode: created event and clocks part: time 4.018e-06/0.3848, allocations: 0 / 0.5752 GB, free: 5.645 MB / 462.1 MB Notification: Performance of simCode: created simulation system equations: time 0.002091/0.3869, allocations: 1.311 MB / 0.5765 GB, free: 4.297 MB / 462.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.003662/0.3906, allocations: 0.8377 MB / 0.5773 GB, free: 3.52 MB / 462.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.009495/0.4001, allocations: 4.265 MB / 0.5814 GB, free: 15.2 MB / 478.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0009304/0.401, allocations: 0.8855 MB / 0.5823 GB, free: 14.27 MB / 478.1 MB Notification: Performance of simCode: alias equations: time 0.001693/0.4027, allocations: 486.7 kB / 0.5828 GB, free: 13.92 MB / 478.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0005638/0.4033, allocations: 224.4 kB / 0.583 GB, free: 13.7 MB / 478.1 MB Notification: Performance of SimCode: time 8.41e-07/0.4033, allocations: 0 / 0.583 GB, free: 13.7 MB / 478.1 MB Notification: Performance of Templates: time 0.07407/0.4773, allocations: 43.48 MB / 0.6254 GB, free: 2.848 MB / 0.4981 GB " [Timeout remaining time 660] make -j1 -f ThermofluidStream_ThermofluidStream.Undirected.FlowControl.Tests.BasicControlValve.makefile [Timeout 660] (rm -f ThermofluidStream_ThermofluidStream.Undirected.FlowControl.Tests.BasicControlValve.pipe ; mkfifo ThermofluidStream_ThermofluidStream.Undirected.FlowControl.Tests.BasicControlValve.pipe ; head -c 1048576 < ThermofluidStream_ThermofluidStream.Undirected.FlowControl.Tests.BasicControlValve.pipe >> ../files/ThermofluidStream_ThermofluidStream.Undirected.FlowControl.Tests.BasicControlValve.sim & ./ThermofluidStream_ThermofluidStream.Undirected.FlowControl.Tests.BasicControlValve -abortSlowSimulation -alarm=1200 -emit_protected -lv LOG_STATS > ThermofluidStream_ThermofluidStream.Undirected.FlowControl.Tests.BasicControlValve.pipe 2>&1) [Timeout 1200] diffSimulationResults("ThermofluidStream_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_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: 6.728463351726532]