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.0.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001831/0.001831, allocations: 105.6 kB / 16.45 MB, free: 6.445 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.002003/0.002003, allocations: 187.7 kB / 19.4 MB, free: 3.66 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.458/1.458, allocations: 225.6 MB / 247.8 MB, free: 3.734 MB / 190.1 MB " [Timeout remaining time 178] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ThermofluidStream 1.2.0-main/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ThermofluidStream 1.2.0-main/package.mo): time 0.6191/0.6191, allocations: 94.59 MB / 397.3 MB, free: 480 kB / 318.1 MB " [Timeout remaining time 179] Using package ThermofluidStream with version 1.2.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ThermofluidStream 1.2.0-main/package.mo) Using package Modelica with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo) Using package Complex with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo) Using package ModelicaServices with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo) Running command: "" <> buildModelFMU(ThermofluidStream.Undirected.FlowControl.Tests.BasicControlValve,fileNamePrefix="ThermofluidStream_ThermofluidStream_Undirected_FlowControl_Tests_BasicControlValve",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(ThermofluidStream.Undirected.FlowControl.Tests.BasicControlValve,fileNamePrefix="ThermofluidStream_ThermofluidStream_Undirected_FlowControl_Tests_BasicControlValve",fmuType="me",version="2.0",platforms={"static"}) [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 0.002502/0.002502, allocations: 83.88 kB / 0.5416 GB, free: 14.01 MB / 414.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.4083/0.4108, allocations: 71.85 MB / 0.6118 GB, free: 3.953 MB / 462.1 MB Notification: Performance of NFInst.instantiate(ThermofluidStream.Undirected.FlowControl.Tests.BasicControlValve): time 0.07136/0.4822, allocations: 65.61 MB / 0.6759 GB, free: 2.297 MB / 0.4981 GB Notification: Performance of NFInst.instExpressions: time 0.02412/0.5063, allocations: 17.64 MB / 0.6931 GB, free: 2.137 MB / 0.5137 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.00319/0.5095, allocations: 79.5 kB / 0.6932 GB, free: 2.059 MB / 0.5137 GB Notification: Performance of NFTyping.typeComponents: time 0.003884/0.5133, allocations: 1.207 MB / 0.6943 GB, free: 0.8438 MB / 0.5137 GB Notification: Performance of NFTyping.typeBindings: time 0.008902/0.5222, allocations: 2.85 MB / 0.6971 GB, free: 13.98 MB / 0.5294 GB Notification: Performance of NFTyping.typeClassSections: time 0.004929/0.5272, allocations: 1.557 MB / 0.6986 GB, free: 12.41 MB / 0.5294 GB Notification: Performance of NFFlatten.flatten: time 0.006489/0.5337, allocations: 3.879 MB / 0.7024 GB, free: 8.512 MB / 0.5294 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0009829/0.5346, allocations: 400.3 kB / 0.7028 GB, free: 8.086 MB / 0.5294 GB Notification: Performance of NFEvalConstants.evaluate: time 0.003271/0.5379, allocations: 1.626 MB / 0.7044 GB, free: 6.453 MB / 0.5294 GB Notification: Performance of NFSimplifyModel.simplify: time 0.002442/0.5404, allocations: 1.571 MB / 0.7059 GB, free: 4.875 MB / 0.5294 GB Notification: Performance of NFPackage.collectConstants: time 0.0004669/0.5408, allocations: 192 kB / 0.7061 GB, free: 4.688 MB / 0.5294 GB Notification: Performance of NFFlatten.collectFunctions: time 0.005182/0.546, allocations: 1.728 MB / 0.7078 GB, free: 2.957 MB / 0.5294 GB Notification: Performance of NFScalarize.scalarize: time 0.0006789/0.5467, allocations: 0.4939 MB / 0.7083 GB, free: 2.461 MB / 0.5294 GB Notification: Performance of NFVerifyModel.verify: time 0.001738/0.5484, allocations: 1.255 MB / 0.7095 GB, free: 1.199 MB / 0.5294 GB Notification: Performance of NFConvertDAE.convert: time 0.008013/0.5564, allocations: 3.849 MB / 0.7133 GB, free: 13.34 MB / 0.545 GB Notification: Performance of FrontEnd - DAE generated: time 5.371e-06/0.5564, allocations: 0 / 0.7133 GB, free: 13.34 MB / 0.545 GB Notification: Performance of FrontEnd: time 1.773e-06/0.5564, allocations: 3.938 kB / 0.7133 GB, free: 13.33 MB / 0.545 GB Notification: Performance of Transformations before backend: time 4.796e-05/0.5565, allocations: 0 / 0.7133 GB, free: 13.33 MB / 0.545 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.006066/0.5626, allocations: 3.065 MB / 0.7163 GB, free: 10.2 MB / 0.545 GB Notification: Performance of prepare preOptimizeDAE: time 4.384e-05/0.5626, allocations: 12.03 kB / 0.7163 GB, free: 10.18 MB / 0.545 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0003102/0.5629, allocations: 266.3 kB / 0.7165 GB, free: 9.914 MB / 0.545 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0006286/0.5635, allocations: 295.1 kB / 0.7168 GB, free: 9.625 MB / 0.545 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.002847/0.5664, allocations: 1.493 MB / 0.7183 GB, free: 8.082 MB / 0.545 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.000122/0.5665, allocations: 140.1 kB / 0.7184 GB, free: 7.945 MB / 0.545 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0002759/0.5668, allocations: 196.3 kB / 0.7186 GB, free: 7.754 MB / 0.545 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.00371/0.5705, allocations: 2.159 MB / 0.7207 GB, free: 5.562 MB / 0.545 GB Notification: Performance of preOpt findStateOrder (simulation): time 3.621e-05/0.5705, allocations: 0 / 0.7207 GB, free: 5.562 MB / 0.545 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001351/0.5707, allocations: 80 kB / 0.7208 GB, free: 5.484 MB / 0.545 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.222e-05/0.5707, allocations: 48 kB / 0.7208 GB, free: 5.438 MB / 0.545 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.003862/0.5746, allocations: 2.267 MB / 0.723 GB, free: 3.168 MB / 0.545 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.01187/0.5864, allocations: 8.982 MB / 0.7318 GB, free: 9.312 MB / 0.5606 GB Notification: Performance of preOpt comSubExp (simulation): time 0.00316/0.5896, allocations: 1.762 MB / 0.7335 GB, free: 7.555 MB / 0.5606 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.001542/0.5911, allocations: 0.889 MB / 0.7344 GB, free: 6.66 MB / 0.5606 GB Notification: Performance of preOpt evalFunc (simulation): time 0.009041/0.6002, allocations: 6.785 MB / 0.741 GB, free: 14.95 MB / 0.5762 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.001769/0.602, allocations: 0.9599 MB / 0.742 GB, free: 13.99 MB / 0.5762 GB Notification: Performance of pre-optimization done (n=200): time 1.456e-05/0.602, allocations: 0 / 0.742 GB, free: 13.99 MB / 0.5762 GB Notification: Performance of matching and sorting (n=200): time 0.006275/0.6082, allocations: 3.007 MB / 0.7449 GB, free: 10.91 MB / 0.5762 GB Notification: Performance of inlineWhenForInitialization (initialization): time 6.702e-05/0.6083, allocations: 77.39 kB / 0.745 GB, free: 10.83 MB / 0.5762 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001638/0.61, allocations: 1.229 MB / 0.7462 GB, free: 9.594 MB / 0.5762 GB Notification: Performance of collectPreVariables (initialization): time 0.0001733/0.6101, allocations: 61.7 kB / 0.7462 GB, free: 9.527 MB / 0.5762 GB Notification: Performance of collectInitialEqns (initialization): time 0.0008037/0.6109, allocations: 0.8763 MB / 0.7471 GB, free: 8.641 MB / 0.5762 GB Notification: Performance of collectInitialBindings (initialization): time 0.0006769/0.6116, allocations: 0.697 MB / 0.7478 GB, free: 7.938 MB / 0.5762 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0004896/0.6121, allocations: 327.5 kB / 0.7481 GB, free: 7.609 MB / 0.5762 GB Notification: Performance of setup shared object (initialization): time 0.0001283/0.6122, allocations: 305.1 kB / 0.7484 GB, free: 7.309 MB / 0.5762 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.00121/0.6134, allocations: 0.6521 MB / 0.749 GB, free: 6.656 MB / 0.5762 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.00154/0.615, allocations: 0.8911 MB / 0.7499 GB, free: 5.699 MB / 0.5762 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.003023/0.618, allocations: 1.669 MB / 0.7515 GB, free: 3.969 MB / 0.5762 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.066e-05/0.618, allocations: 7.938 kB / 0.7515 GB, free: 3.961 MB / 0.5762 GB Notification: Performance of matching and sorting (n=227) (initialization): time 0.00441/0.6224, allocations: 2.156 MB / 0.7536 GB, free: 1.781 MB / 0.5762 GB Notification: Performance of prepare postOptimizeDAE: time 5.96e-05/0.6225, allocations: 33.7 kB / 0.7537 GB, free: 1.742 MB / 0.5762 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.308e-05/0.6225, allocations: 4 kB / 0.7537 GB, free: 1.738 MB / 0.5762 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.0005523/0.623, allocations: 166.4 kB / 0.7538 GB, free: 1.566 MB / 0.5762 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001412/0.6245, allocations: 395.5 kB / 0.7542 GB, free: 1.18 MB / 0.5762 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.004786/0.6292, allocations: 4.841 MB / 0.7589 GB, free: 11.91 MB / 0.5919 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001375/0.6306, allocations: 162.8 kB / 0.7591 GB, free: 11.75 MB / 0.5919 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.000214/0.6308, allocations: 83.97 kB / 0.7592 GB, free: 11.67 MB / 0.5919 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 19 * 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.0007687/0.6316, allocations: 375.4 kB / 0.7595 GB, free: 11.3 MB / 0.5919 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.00047/0.6321, allocations: 210.6 kB / 0.7597 GB, free: 11.09 MB / 0.5919 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.006376/0.6384, allocations: 3.407 MB / 0.763 GB, free: 7.75 MB / 0.5919 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.081e-05/0.6385, allocations: 20 kB / 0.7631 GB, free: 7.73 MB / 0.5919 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 9.658e-06/0.6385, allocations: 4 kB / 0.7631 GB, free: 7.727 MB / 0.5919 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.466e-05/0.6385, allocations: 19.89 kB / 0.7631 GB, free: 7.707 MB / 0.5919 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.009119/0.6476, allocations: 4.772 MB / 0.7677 GB, free: 2.84 MB / 0.5919 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 7.073e-06/0.6476, allocations: 0 / 0.7677 GB, free: 2.84 MB / 0.5919 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001322/0.6489, allocations: 403.5 kB / 0.7681 GB, free: 2.445 MB / 0.5919 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.0005345/0.6495, allocations: 174.5 kB / 0.7683 GB, free: 2.266 MB / 0.5919 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001491/0.6496, allocations: 71.95 kB / 0.7684 GB, free: 2.195 MB / 0.5919 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.004543/0.6542, allocations: 4.833 MB / 0.7731 GB, free: 12.94 MB / 0.6075 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 7.183e-06/0.6542, allocations: 7.969 kB / 0.7731 GB, free: 12.93 MB / 0.6075 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.006058/0.6602, allocations: 3.324 MB / 0.7763 GB, free: 9.562 MB / 0.6075 GB Notification: Performance of postOpt removeConstants (simulation): time 0.001046/0.6613, allocations: 0.5416 MB / 0.7769 GB, free: 9 MB / 0.6075 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0003121/0.6616, allocations: 44 kB / 0.7769 GB, free: 8.957 MB / 0.6075 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0009223/0.6625, allocations: 59.97 kB / 0.777 GB, free: 8.898 MB / 0.6075 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0003194/0.6628, allocations: 181.7 kB / 0.7771 GB, free: 8.723 MB / 0.6075 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001603/0.663, allocations: 75.97 kB / 0.7772 GB, free: 8.648 MB / 0.6075 GB Notification: Performance of sorting global known variables: time 0.001218/0.6642, allocations: 0.8665 MB / 0.7781 GB, free: 7.789 MB / 0.6075 GB Notification: Performance of sort global known variables: time 9e-08/0.6642, allocations: 0 / 0.7781 GB, free: 7.789 MB / 0.6075 GB Notification: Performance of remove unused functions: time 0.002247/0.6665, allocations: 0.8691 MB / 0.7789 GB, free: 6.918 MB / 0.6075 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 (225): * Single equations (assignments): 220 * 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.00759/0.6741, allocations: 4.622 MB / 0.7834 GB, free: 2.254 MB / 0.6075 GB Notification: Performance of simCode: created initialization part: time 0.004249/0.6783, allocations: 2.142 MB / 0.7855 GB, free: 64 kB / 0.6075 GB Notification: Performance of simCode: created event and clocks part: time 4.779e-06/0.6783, allocations: 0 / 0.7855 GB, free: 64 kB / 0.6075 GB Notification: Performance of simCode: created simulation system equations: time 0.002445/0.6808, allocations: 1.367 MB / 0.7868 GB, free: 14.66 MB / 0.6231 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.003072/0.6838, allocations: 0.6548 MB / 0.7875 GB, free: 14.02 MB / 0.6231 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.02669/0.7105, allocations: 14.58 MB / 0.8017 GB, free: 15.06 MB / 0.6387 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001404/0.7119, allocations: 1.471 MB / 0.8032 GB, free: 13.55 MB / 0.6387 GB Notification: Performance of simCode: alias equations: time 0.001682/0.7136, allocations: 0.5058 MB / 0.8037 GB, free: 13.12 MB / 0.6387 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001441/0.715, allocations: 0.9952 MB / 0.8046 GB, free: 12.13 MB / 0.6387 GB Notification: Performance of SimCode: time 6.21e-07/0.715, allocations: 3.938 kB / 0.8046 GB, free: 12.12 MB / 0.6387 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.3779/1.093, allocations: 60.78 MB / 0.864 GB, free: 217.1 MB / 0.6856 GB Notification: Performance of buildModelFMU: Generate platform static: time 13.83/14.92, allocations: 13.27 kB / 0.864 GB, free: 217.1 MB / 0.6856 GB " [Timeout remaining time 645] (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 & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=ThermofluidStream_ThermofluidStream.Undirected.FlowControl.Tests.BasicControlValve_res.mat --tempDir=temp_ThermofluidStream_ThermofluidStream_Undirected_FlowControl_Tests_BasicControlValve_fmu --startTime=0 --stopTime=20 --stepSize=0.02 --timeout=1200 --tolerance=1e-06 ThermofluidStream_ThermofluidStream_Undirected_FlowControl_Tests_BasicControlValve.fmu > ThermofluidStream_ThermofluidStream.Undirected.FlowControl.Tests.BasicControlValve.pipe 2>&1) [Timeout 1260.0] diffSimulationResults("ThermofluidStream_ThermofluidStream.Undirected.FlowControl.Tests.BasicControlValve_res.mat","/mnt/ReferenceFiles/ThermofluidStream-main-regression/ReferenceData/ThermofluidStream.Undirected.FlowControl.Tests.BasicControlValve_ref.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork_2/OpenModelicaLibraryTesting/files/ThermofluidStream_ThermofluidStream.Undirected.FlowControl.Tests.BasicControlValve.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) [Timeout 660] "Error: Could not read variable pulse.T_start in file ThermofluidStream_ThermofluidStream.Undirected.FlowControl.Tests.BasicControlValve_res.mat. Warning: Get data of variable pulse.T_start from file ThermofluidStream_ThermofluidStream.Undirected.FlowControl.Tests.BasicControlValve_res.mat failed! Error: Could not read variable pulse.count in file ThermofluidStream_ThermofluidStream.Undirected.FlowControl.Tests.BasicControlValve_res.mat. Warning: Get data of variable pulse.count from file ThermofluidStream_ThermofluidStream.Undirected.FlowControl.Tests.BasicControlValve_res.mat failed! " [Timeout remaining time 660] Reference file matches [Calling sys.exit(0), Time elapsed: 18.404743767809123]