Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr ThermofluidStream_dev_ThermofluidStream.Undirected.FlowControl.Tests.SpecificValveType.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.00215/0.00215, 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.002782/0.002782, allocations: 211.5 kB / 22.24 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.98/1.98, allocations: 230.6 MB / 256 MB, free: 7.977 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 1.314/1.314, allocations: 100.9 MB / 413.3 MB, free: 2.879 MB / 318.1 MB " [Timeout remaining time 178] 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: "" <> buildModelFMU(ThermofluidStream.Undirected.FlowControl.Tests.SpecificValveType,fileNamePrefix="ThermofluidStream_dev_ThermofluidStream_Undirected_FlowControl_Tests_SpecificValveType",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(ThermofluidStream.Undirected.FlowControl.Tests.SpecificValveType,fileNamePrefix="ThermofluidStream_dev_ThermofluidStream_Undirected_FlowControl_Tests_SpecificValveType",fmuType="me",version="2.0",platforms={"static"}) [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.002918/0.002918, allocations: 88.98 kB / 0.5641 GB, free: 35.82 MB / 446.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2758/0.2787, allocations: 74.62 MB / 0.6369 GB, free: 6.469 MB / 478.1 MB Notification: Performance of NFInst.instantiate(ThermofluidStream.Undirected.FlowControl.Tests.SpecificValveType): time 0.06136/0.3401, allocations: 41.35 MB / 0.6773 GB, free: 12.96 MB / 0.5137 GB Notification: Performance of NFInst.instExpressions: time 0.02447/0.3646, allocations: 11.37 MB / 0.6884 GB, free: 1.562 MB / 0.5137 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.004728/0.3693, allocations: 79.31 kB / 0.6885 GB, free: 1.484 MB / 0.5137 GB Notification: Performance of NFTyping.typeComponents: time 0.005255/0.3746, allocations: 1.072 MB / 0.6896 GB, free: 416 kB / 0.5137 GB Notification: Performance of NFTyping.typeBindings: time 0.01139/0.3859, allocations: 2.125 MB / 0.6916 GB, free: 14.27 MB / 0.5294 GB Notification: Performance of NFTyping.typeClassSections: time 0.006162/0.3921, allocations: 1.205 MB / 0.6928 GB, free: 13.07 MB / 0.5294 GB Notification: Performance of NFFlatten.flatten: time 0.007432/0.3995, allocations: 2.852 MB / 0.6956 GB, free: 10.2 MB / 0.5294 GB Notification: Performance of NFFlatten.resolveConnections: time 0.001033/0.4006, allocations: 286 kB / 0.6959 GB, free: 9.895 MB / 0.5294 GB Notification: Performance of NFEvalConstants.evaluate: time 0.004378/0.405, allocations: 1.464 MB / 0.6973 GB, free: 8.426 MB / 0.5294 GB Notification: Performance of NFSimplifyModel.simplify: time 0.002281/0.4072, allocations: 1.03 MB / 0.6983 GB, free: 7.391 MB / 0.5294 GB Notification: Performance of NFPackage.collectConstants: time 0.000331/0.4076, allocations: 132 kB / 0.6984 GB, free: 7.262 MB / 0.5294 GB Notification: Performance of NFFlatten.collectFunctions: time 0.004548/0.4121, allocations: 1.046 MB / 0.6994 GB, free: 6.215 MB / 0.5294 GB Notification: Performance of NFScalarize.scalarize: time 0.000728/0.4128, allocations: 430.1 kB / 0.6999 GB, free: 5.793 MB / 0.5294 GB Notification: Performance of NFVerifyModel.verify: time 0.001428/0.4143, allocations: 0.7848 MB / 0.7006 GB, free: 5.004 MB / 0.5294 GB Notification: Performance of NFConvertDAE.convert: time 0.009447/0.4237, allocations: 2.883 MB / 0.7034 GB, free: 2.109 MB / 0.5294 GB Notification: Performance of FrontEnd - DAE generated: time 1.304e-05/0.4237, allocations: 0 / 0.7034 GB, free: 2.109 MB / 0.5294 GB Notification: Performance of FrontEnd: time 4.348e-06/0.4237, allocations: 0 / 0.7034 GB, free: 2.109 MB / 0.5294 GB Notification: Performance of Transformations before backend: time 7.665e-05/0.4238, allocations: 0 / 0.7034 GB, free: 2.109 MB / 0.5294 GB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 329 * Number of variables: 329 Notification: Performance of Generate backend data structure: time 0.007192/0.431, allocations: 2.494 MB / 0.7059 GB, free: 15.56 MB / 0.545 GB Notification: Performance of prepare preOptimizeDAE: time 8.971e-05/0.4311, allocations: 9.469 kB / 0.7059 GB, free: 15.55 MB / 0.545 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0003023/0.4314, allocations: 186.4 kB / 0.7061 GB, free: 15.36 MB / 0.545 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0009919/0.4324, allocations: 279.4 kB / 0.7063 GB, free: 15.09 MB / 0.545 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.003227/0.4356, allocations: 1.257 MB / 0.7076 GB, free: 13.79 MB / 0.545 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001167/0.4357, allocations: 106.7 kB / 0.7077 GB, free: 13.68 MB / 0.545 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0002396/0.436, allocations: 132 kB / 0.7078 GB, free: 13.55 MB / 0.545 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.003262/0.4392, allocations: 1.543 MB / 0.7093 GB, free: 11.95 MB / 0.545 GB Notification: Performance of preOpt findStateOrder (simulation): time 3.827e-05/0.4393, allocations: 3.938 kB / 0.7093 GB, free: 11.95 MB / 0.545 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001253/0.4394, allocations: 56 kB / 0.7093 GB, free: 11.89 MB / 0.545 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.258e-05/0.4394, allocations: 32 kB / 0.7094 GB, free: 11.86 MB / 0.545 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.003048/0.4425, allocations: 1.576 MB / 0.7109 GB, free: 10.28 MB / 0.545 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.009274/0.4518, allocations: 3.751 MB / 0.7146 GB, free: 6.453 MB / 0.545 GB Notification: Performance of preOpt comSubExp (simulation): time 0.002809/0.4546, allocations: 1.208 MB / 0.7158 GB, free: 5.242 MB / 0.545 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.00131/0.4559, allocations: 0.6125 MB / 0.7164 GB, free: 4.621 MB / 0.545 GB Notification: Performance of preOpt evalFunc (simulation): time 0.006037/0.4619, allocations: 1.989 MB / 0.7183 GB, free: 2.613 MB / 0.545 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.001812/0.4637, allocations: 0.7869 MB / 0.7191 GB, free: 1.793 MB / 0.545 GB Notification: Performance of pre-optimization done (n=139): time 7.144e-06/0.4637, allocations: 0 / 0.7191 GB, free: 1.793 MB / 0.545 GB Notification: Performance of matching and sorting (n=139): time 0.005367/0.4691, allocations: 1.947 MB / 0.721 GB, free: 15.83 MB / 0.5606 GB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001261/0.4692, allocations: 128 kB / 0.7211 GB, free: 15.68 MB / 0.5606 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.002445/0.4717, allocations: 1.325 MB / 0.7224 GB, free: 14.35 MB / 0.5606 GB Notification: Performance of collectPreVariables (initialization): time 0.000128/0.4718, allocations: 53.7 kB / 0.7224 GB, free: 14.29 MB / 0.5606 GB Notification: Performance of collectInitialEqns (initialization): time 0.000939/0.4727, allocations: 0.6994 MB / 0.7231 GB, free: 13.58 MB / 0.5606 GB Notification: Performance of collectInitialBindings (initialization): time 0.0006208/0.4734, allocations: 495.8 kB / 0.7236 GB, free: 13.09 MB / 0.5606 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0004579/0.4738, allocations: 250.8 kB / 0.7238 GB, free: 12.84 MB / 0.5606 GB Notification: Performance of setup shared object (initialization): time 0.0002671/0.4741, allocations: 357.9 kB / 0.7242 GB, free: 12.49 MB / 0.5606 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0009877/0.4751, allocations: 480.1 kB / 0.7246 GB, free: 12.01 MB / 0.5606 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001292/0.4764, allocations: 0.7049 MB / 0.7253 GB, free: 11.24 MB / 0.5606 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.002322/0.4787, allocations: 1.161 MB / 0.7265 GB, free: 10.03 MB / 0.5606 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.158e-05/0.4787, allocations: 4 kB / 0.7265 GB, free: 10.02 MB / 0.5606 GB Notification: Performance of matching and sorting (n=158) (initialization): time 0.003591/0.4823, allocations: 1.544 MB / 0.728 GB, free: 8.453 MB / 0.5606 GB Notification: Performance of prepare postOptimizeDAE: time 7.732e-05/0.4824, allocations: 33.7 kB / 0.728 GB, free: 8.414 MB / 0.5606 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.436e-05/0.4824, allocations: 3.938 kB / 0.728 GB, free: 8.41 MB / 0.5606 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.0005125/0.4829, allocations: 113.8 kB / 0.7281 GB, free: 8.293 MB / 0.5606 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001031/0.4839, allocations: 275.6 kB / 0.7284 GB, free: 8.023 MB / 0.5606 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.003789/0.4877, allocations: 2.998 MB / 0.7313 GB, free: 4.797 MB / 0.5606 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001433/0.4891, allocations: 123.1 kB / 0.7314 GB, free: 4.676 MB / 0.5606 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001767/0.4893, allocations: 59.97 kB / 0.7315 GB, free: 4.617 MB / 0.5606 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 15 * 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 (149): * Single equations (assignments): 146 * Array equations: 0 * Algorithm blocks: 1 * 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,4,100.0%), (1,4,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of prepare postOptimizeDAE: time 0.001103/0.4904, allocations: 385.5 kB / 0.7318 GB, free: 4.23 MB / 0.5606 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0004787/0.4909, allocations: 186.9 kB / 0.732 GB, free: 4.047 MB / 0.5606 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.004787/0.4957, allocations: 2.113 MB / 0.7341 GB, free: 1.973 MB / 0.5606 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.271e-05/0.4957, allocations: 16 kB / 0.7341 GB, free: 1.957 MB / 0.5606 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.183e-05/0.4957, allocations: 4 kB / 0.7341 GB, free: 1.953 MB / 0.5606 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.173e-05/0.4957, allocations: 7.969 kB / 0.7341 GB, free: 1.945 MB / 0.5606 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.007569/0.5033, allocations: 3.104 MB / 0.7371 GB, free: 14.77 MB / 0.5762 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.197e-05/0.5033, allocations: 3.984 kB / 0.7371 GB, free: 14.77 MB / 0.5762 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001071/0.5044, allocations: 267.6 kB / 0.7374 GB, free: 14.5 MB / 0.5762 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.0004818/0.5049, allocations: 109.6 kB / 0.7375 GB, free: 14.39 MB / 0.5762 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001638/0.505, allocations: 47.97 kB / 0.7375 GB, free: 14.34 MB / 0.5762 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.00394/0.509, allocations: 3.001 MB / 0.7405 GB, free: 11.11 MB / 0.5762 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 9.167e-06/0.509, allocations: 3.984 kB / 0.7405 GB, free: 11.11 MB / 0.5762 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.005755/0.5148, allocations: 2.319 MB / 0.7427 GB, free: 8.746 MB / 0.5762 GB Notification: Performance of postOpt removeConstants (simulation): time 0.001484/0.5162, allocations: 396.1 kB / 0.7431 GB, free: 8.359 MB / 0.5762 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0004624/0.5167, allocations: 36.02 kB / 0.7432 GB, free: 8.324 MB / 0.5762 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001158/0.5179, allocations: 51.91 kB / 0.7432 GB, free: 8.273 MB / 0.5762 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0003528/0.5182, allocations: 125.1 kB / 0.7433 GB, free: 8.152 MB / 0.5762 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001787/0.5184, allocations: 55.97 kB / 0.7434 GB, free: 8.098 MB / 0.5762 GB Notification: Performance of sorting global known variables: time 0.002625/0.521, allocations: 0.9235 MB / 0.7443 GB, free: 7.18 MB / 0.5762 GB Notification: Performance of sort global known variables: time 6e-08/0.521, allocations: 0 / 0.7443 GB, free: 7.18 MB / 0.5762 GB Notification: Performance of remove unused functions: time 0.002776/0.5238, allocations: 0.5614 MB / 0.7448 GB, free: 6.617 MB / 0.5762 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 5 * Number of states: 2 (flowResistance6.rear.m_flow,flowResistance2.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 (149): * Single equations (assignments): 145 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 2 * 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,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.009566/0.5334, allocations: 3.594 MB / 0.7483 GB, free: 3.145 MB / 0.5762 GB Notification: Performance of simCode: created initialization part: time 0.004523/0.5379, allocations: 1.509 MB / 0.7498 GB, free: 1.59 MB / 0.5762 GB Notification: Performance of simCode: created event and clocks part: time 8.365e-06/0.5379, allocations: 4 kB / 0.7498 GB, free: 1.586 MB / 0.5762 GB Notification: Performance of simCode: created simulation system equations: time 0.002186/0.5401, allocations: 0.9066 MB / 0.7507 GB, free: 0.6562 MB / 0.5762 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.004156/0.5442, allocations: 0.4884 MB / 0.7512 GB, free: 188 kB / 0.5762 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.6415/1.186, allocations: 11.82 MB / 0.7627 GB, free: 105 MB / 0.5762 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.002898/1.189, allocations: 0.7635 MB / 0.7635 GB, free: 104.8 MB / 0.5762 GB Notification: Performance of simCode: alias equations: time 0.002322/1.191, allocations: 366.7 kB / 0.7638 GB, free: 104.8 MB / 0.5762 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001465/1.192, allocations: 0.7445 MB / 0.7645 GB, free: 104.2 MB / 0.5762 GB Notification: Performance of SimCode: time 2.164e-06/1.192, allocations: 0 / 0.7645 GB, free: 104.2 MB / 0.5762 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.1423/1.335, allocations: 45.93 MB / 0.8094 GB, free: 67.76 MB / 0.5762 GB Notification: Performance of buildModelFMU: Generate platform static: time 15.89/17.23, allocations: 10.97 kB / 0.8094 GB, free: 67.75 MB / 0.5762 GB " [Timeout remaining time 643] (rm -f ThermofluidStream_dev_ThermofluidStream.Undirected.FlowControl.Tests.SpecificValveType.pipe ; mkfifo ThermofluidStream_dev_ThermofluidStream.Undirected.FlowControl.Tests.SpecificValveType.pipe ; head -c 1048576 < ThermofluidStream_dev_ThermofluidStream.Undirected.FlowControl.Tests.SpecificValveType.pipe >> ../files/ThermofluidStream_dev_ThermofluidStream.Undirected.FlowControl.Tests.SpecificValveType.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=ThermofluidStream_dev_ThermofluidStream.Undirected.FlowControl.Tests.SpecificValveType_res.mat --tempDir=temp_ThermofluidStream_dev_ThermofluidStream_Undirected_FlowControl_Tests_SpecificValveType_fmu --startTime=0 --stopTime=20 --stepSize=0.02 --timeout=1200 --tolerance=1e-06 ThermofluidStream_dev_ThermofluidStream_Undirected_FlowControl_Tests_SpecificValveType.fmu > ThermofluidStream_dev_ThermofluidStream.Undirected.FlowControl.Tests.SpecificValveType.pipe 2>&1) [Timeout 1260.0] diffSimulationResults("ThermofluidStream_dev_ThermofluidStream.Undirected.FlowControl.Tests.SpecificValveType_res.mat","/mnt/ReferenceFiles/ThermofluidStream-main-regression/ReferenceData/ThermofluidStream.Undirected.FlowControl.Tests.SpecificValveType_ref.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/ThermofluidStream_dev_ThermofluidStream.Undirected.FlowControl.Tests.SpecificValveType.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) [Timeout 660] "Error: Could not read variable pulse.T_start in file ThermofluidStream_dev_ThermofluidStream.Undirected.FlowControl.Tests.SpecificValveType_res.mat. Warning: Get data of variable pulse.T_start from file ThermofluidStream_dev_ThermofluidStream.Undirected.FlowControl.Tests.SpecificValveType_res.mat failed! Error: Could not read variable pulse.count in file ThermofluidStream_dev_ThermofluidStream.Undirected.FlowControl.Tests.SpecificValveType_res.mat. Warning: Get data of variable pulse.count from file ThermofluidStream_dev_ThermofluidStream.Undirected.FlowControl.Tests.SpecificValveType_res.mat failed! " [Timeout remaining time 660] Reference file matches [Calling sys.exit(0), Time elapsed: 22.92217703908682]