Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr ThermofluidStream_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.001946/0.001946, 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.002892/0.002892, allocations: 216.9 kB / 22.25 MB, free: 4.855 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.922/1.922, allocations: 230.6 MB / 256 MB, free: 7.789 MB / 206.1 MB " [Timeout remaining time 178] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ThermofluidStream 1.2.0/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ThermofluidStream 1.2.0/package.mo): time 1.129/1.129, allocations: 94.62 MB / 407 MB, free: 8.816 MB / 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/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_ThermofluidStream_Undirected_FlowControl_Tests_SpecificValveType",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(ThermofluidStream.Undirected.FlowControl.Tests.SpecificValveType,fileNamePrefix="ThermofluidStream_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.003626/0.003626, allocations: 81.27 kB / 0.5549 GB, free: 38.41 MB / 446.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2579/0.2615, allocations: 73.05 MB / 0.6263 GB, free: 156 kB / 462.1 MB Notification: Performance of NFInst.instantiate(ThermofluidStream.Undirected.FlowControl.Tests.SpecificValveType): time 0.06998/0.3315, allocations: 41.37 MB / 0.6667 GB, free: 6.625 MB / 0.4981 GB Notification: Performance of NFInst.instExpressions: time 0.02342/0.3549, allocations: 11.36 MB / 0.6778 GB, free: 11.23 MB / 0.5137 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.004419/0.3593, allocations: 75.31 kB / 0.6779 GB, free: 11.16 MB / 0.5137 GB Notification: Performance of NFTyping.typeComponents: time 0.004958/0.3643, allocations: 1.072 MB / 0.6789 GB, free: 10.08 MB / 0.5137 GB Notification: Performance of NFTyping.typeBindings: time 0.01128/0.3756, allocations: 2.129 MB / 0.681 GB, free: 7.938 MB / 0.5137 GB Notification: Performance of NFTyping.typeClassSections: time 0.005976/0.3816, allocations: 1.201 MB / 0.6822 GB, free: 6.734 MB / 0.5137 GB Notification: Performance of NFFlatten.flatten: time 0.007607/0.3892, allocations: 2.86 MB / 0.6849 GB, free: 3.863 MB / 0.5137 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0009942/0.3902, allocations: 286.1 kB / 0.6852 GB, free: 3.555 MB / 0.5137 GB Notification: Performance of NFEvalConstants.evaluate: time 0.004789/0.395, allocations: 1.46 MB / 0.6866 GB, free: 2.09 MB / 0.5137 GB Notification: Performance of NFSimplifyModel.simplify: time 0.003484/0.3984, allocations: 1.03 MB / 0.6876 GB, free: 1.055 MB / 0.5137 GB Notification: Performance of NFPackage.collectConstants: time 0.0009941/0.3994, allocations: 136 kB / 0.6878 GB, free: 0.9219 MB / 0.5137 GB Notification: Performance of NFFlatten.collectFunctions: time 0.005848/0.4053, allocations: 1.038 MB / 0.6888 GB, free: 15.88 MB / 0.5294 GB Notification: Performance of NFScalarize.scalarize: time 0.001381/0.4067, allocations: 438.1 kB / 0.6892 GB, free: 15.45 MB / 0.5294 GB Notification: Performance of NFVerifyModel.verify: time 0.002998/0.4097, allocations: 0.7731 MB / 0.69 GB, free: 14.68 MB / 0.5294 GB Notification: Performance of NFConvertDAE.convert: time 0.01163/0.4213, allocations: 2.891 MB / 0.6928 GB, free: 11.77 MB / 0.5294 GB Notification: Performance of FrontEnd - DAE generated: time 1.187e-05/0.4213, allocations: 0 / 0.6928 GB, free: 11.77 MB / 0.5294 GB Notification: Performance of FrontEnd: time 4.909e-06/0.4213, allocations: 0 / 0.6928 GB, free: 11.77 MB / 0.5294 GB Notification: Performance of Transformations before backend: time 0.0002101/0.4215, allocations: 0 / 0.6928 GB, free: 11.77 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.00938/0.4309, allocations: 2.498 MB / 0.6952 GB, free: 9.227 MB / 0.5294 GB Notification: Performance of prepare preOptimizeDAE: time 6.812e-05/0.431, allocations: 8.031 kB / 0.6952 GB, free: 9.219 MB / 0.5294 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0002792/0.4312, allocations: 190.4 kB / 0.6954 GB, free: 9.023 MB / 0.5294 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.001053/0.4323, allocations: 275.3 kB / 0.6957 GB, free: 8.754 MB / 0.5294 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.003222/0.4355, allocations: 1.253 MB / 0.6969 GB, free: 7.461 MB / 0.5294 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001247/0.4356, allocations: 106.7 kB / 0.697 GB, free: 7.355 MB / 0.5294 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0002156/0.4359, allocations: 132 kB / 0.6971 GB, free: 7.227 MB / 0.5294 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.003023/0.4389, allocations: 1.547 MB / 0.6986 GB, free: 5.625 MB / 0.5294 GB Notification: Performance of preOpt findStateOrder (simulation): time 3.308e-05/0.4389, allocations: 0 / 0.6986 GB, free: 5.625 MB / 0.5294 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001215/0.439, allocations: 52 kB / 0.6987 GB, free: 5.574 MB / 0.5294 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.452e-05/0.4391, allocations: 28 kB / 0.6987 GB, free: 5.547 MB / 0.5294 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.002909/0.442, allocations: 1.583 MB / 0.7003 GB, free: 3.957 MB / 0.5294 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.008368/0.4504, allocations: 3.755 MB / 0.7039 GB, free: 120 kB / 0.5294 GB Notification: Performance of preOpt comSubExp (simulation): time 0.002891/0.4532, allocations: 1.208 MB / 0.7051 GB, free: 14.9 MB / 0.545 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.001236/0.4545, allocations: 0.6085 MB / 0.7057 GB, free: 14.29 MB / 0.545 GB Notification: Performance of preOpt evalFunc (simulation): time 0.005513/0.46, allocations: 1.989 MB / 0.7076 GB, free: 12.28 MB / 0.545 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.001565/0.4616, allocations: 0.7868 MB / 0.7084 GB, free: 11.46 MB / 0.545 GB Notification: Performance of pre-optimization done (n=139): time 4.609e-06/0.4616, allocations: 4 kB / 0.7084 GB, free: 11.46 MB / 0.545 GB Notification: Performance of matching and sorting (n=139): time 0.005147/0.4667, allocations: 1.947 MB / 0.7103 GB, free: 9.496 MB / 0.545 GB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001428/0.4669, allocations: 116.1 kB / 0.7104 GB, free: 9.359 MB / 0.545 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.002608/0.4695, allocations: 1.321 MB / 0.7117 GB, free: 8.027 MB / 0.545 GB Notification: Performance of collectPreVariables (initialization): time 0.0001309/0.4696, allocations: 53.7 kB / 0.7118 GB, free: 7.969 MB / 0.545 GB Notification: Performance of collectInitialEqns (initialization): time 0.0009751/0.4706, allocations: 0.7111 MB / 0.7125 GB, free: 7.25 MB / 0.545 GB Notification: Performance of collectInitialBindings (initialization): time 0.0006404/0.4712, allocations: 487.7 kB / 0.7129 GB, free: 6.77 MB / 0.545 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0004707/0.4717, allocations: 246.8 kB / 0.7132 GB, free: 6.523 MB / 0.545 GB Notification: Performance of setup shared object (initialization): time 0.0003021/0.472, allocations: 353.9 kB / 0.7135 GB, free: 6.172 MB / 0.545 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0009717/0.4729, allocations: 484.1 kB / 0.714 GB, free: 5.691 MB / 0.545 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001294/0.4742, allocations: 0.7088 MB / 0.7147 GB, free: 4.914 MB / 0.545 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.002339/0.4766, allocations: 1.161 MB / 0.7158 GB, free: 3.703 MB / 0.545 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 9.378e-06/0.4766, allocations: 0 / 0.7158 GB, free: 3.703 MB / 0.545 GB Notification: Performance of matching and sorting (n=158) (initialization): time 0.003597/0.4802, allocations: 1.551 MB / 0.7173 GB, free: 2.125 MB / 0.545 GB Notification: Performance of prepare postOptimizeDAE: time 6.06e-05/0.4802, allocations: 37.7 kB / 0.7173 GB, free: 2.082 MB / 0.545 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.45e-05/0.4803, allocations: 4 kB / 0.7173 GB, free: 2.078 MB / 0.545 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.0005181/0.4808, allocations: 105.6 kB / 0.7174 GB, free: 1.969 MB / 0.545 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001049/0.4818, allocations: 275.6 kB / 0.7177 GB, free: 1.699 MB / 0.545 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.003778/0.4856, allocations: 3.002 MB / 0.7206 GB, free: 14.47 MB / 0.5606 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001445/0.4871, allocations: 131.2 kB / 0.7208 GB, free: 14.34 MB / 0.5606 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001554/0.4872, allocations: 59.97 kB / 0.7208 GB, free: 14.28 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.001214/0.4884, allocations: 381.5 kB / 0.7212 GB, free: 13.9 MB / 0.5606 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0004877/0.4889, allocations: 186.8 kB / 0.7214 GB, free: 13.71 MB / 0.5606 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.004762/0.4937, allocations: 2.124 MB / 0.7234 GB, free: 11.63 MB / 0.5606 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.225e-05/0.4937, allocations: 16 kB / 0.7235 GB, free: 11.61 MB / 0.5606 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.092e-05/0.4937, allocations: 0 / 0.7235 GB, free: 11.61 MB / 0.5606 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.974e-05/0.4937, allocations: 7.969 kB / 0.7235 GB, free: 11.61 MB / 0.5606 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.007637/0.5014, allocations: 3.092 MB / 0.7265 GB, free: 8.445 MB / 0.5606 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.145e-05/0.5014, allocations: 0 / 0.7265 GB, free: 8.445 MB / 0.5606 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.00107/0.5024, allocations: 271.7 kB / 0.7267 GB, free: 8.18 MB / 0.5606 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.0004719/0.5029, allocations: 117.6 kB / 0.7269 GB, free: 8.059 MB / 0.5606 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001743/0.5031, allocations: 47.97 kB / 0.7269 GB, free: 8.012 MB / 0.5606 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.004033/0.5071, allocations: 3.005 MB / 0.7298 GB, free: 4.777 MB / 0.5606 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 6.903e-06/0.5071, allocations: 7.969 kB / 0.7298 GB, free: 4.77 MB / 0.5606 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.005994/0.5131, allocations: 2.315 MB / 0.7321 GB, free: 2.414 MB / 0.5606 GB Notification: Performance of postOpt removeConstants (simulation): time 0.001902/0.515, allocations: 392.1 kB / 0.7325 GB, free: 2.027 MB / 0.5606 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0006809/0.5157, allocations: 35.95 kB / 0.7325 GB, free: 1.992 MB / 0.5606 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001265/0.517, allocations: 47.91 kB / 0.7326 GB, free: 1.945 MB / 0.5606 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0003908/0.5174, allocations: 121.1 kB / 0.7327 GB, free: 1.828 MB / 0.5606 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001954/0.5176, allocations: 55.97 kB / 0.7327 GB, free: 1.773 MB / 0.5606 GB Notification: Performance of sorting global known variables: time 0.002935/0.5205, allocations: 0.9313 MB / 0.7336 GB, free: 0.8477 MB / 0.5606 GB Notification: Performance of sort global known variables: time 9e-08/0.5205, allocations: 0 / 0.7336 GB, free: 0.8477 MB / 0.5606 GB Notification: Performance of remove unused functions: time 0.002979/0.5235, allocations: 0.5576 MB / 0.7342 GB, free: 296 kB / 0.5606 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.0101/0.5336, allocations: 3.586 MB / 0.7377 GB, free: 12.83 MB / 0.5762 GB Notification: Performance of simCode: created initialization part: time 0.004366/0.5379, allocations: 1.505 MB / 0.7392 GB, free: 11.28 MB / 0.5762 GB Notification: Performance of simCode: created event and clocks part: time 1.045e-05/0.5379, allocations: 0 / 0.7392 GB, free: 11.28 MB / 0.5762 GB Notification: Performance of simCode: created simulation system equations: time 0.002204/0.5402, allocations: 0.9078 MB / 0.74 GB, free: 10.35 MB / 0.5762 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.003809/0.544, allocations: 0.4948 MB / 0.7405 GB, free: 9.871 MB / 0.5762 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.6264/1.17, allocations: 11.82 MB / 0.7521 GB, free: 115.9 MB / 0.5762 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.002558/1.173, allocations: 0.7666 MB / 0.7528 GB, free: 115.7 MB / 0.5762 GB Notification: Performance of simCode: alias equations: time 0.002317/1.175, allocations: 370.5 kB / 0.7532 GB, free: 115.7 MB / 0.5762 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001424/1.177, allocations: 0.742 MB / 0.7539 GB, free: 115.7 MB / 0.5762 GB Notification: Performance of SimCode: time 2.585e-06/1.177, allocations: 0.9062 kB / 0.7539 GB, free: 115.7 MB / 0.5762 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.1508/1.327, allocations: 45.92 MB / 0.7987 GB, free: 83.48 MB / 0.5762 GB Notification: Performance of buildModelFMU: Generate platform static: time 15.91/17.23, allocations: 14.98 kB / 0.7988 GB, free: 83.47 MB / 0.5762 GB " [Timeout remaining time 643] (rm -f ThermofluidStream_ThermofluidStream.Undirected.FlowControl.Tests.SpecificValveType.pipe ; mkfifo ThermofluidStream_ThermofluidStream.Undirected.FlowControl.Tests.SpecificValveType.pipe ; head -c 1048576 < ThermofluidStream_ThermofluidStream.Undirected.FlowControl.Tests.SpecificValveType.pipe >> ../files/ThermofluidStream_ThermofluidStream.Undirected.FlowControl.Tests.SpecificValveType.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=ThermofluidStream_ThermofluidStream.Undirected.FlowControl.Tests.SpecificValveType_res.mat --tempDir=temp_ThermofluidStream_ThermofluidStream_Undirected_FlowControl_Tests_SpecificValveType_fmu --startTime=0 --stopTime=20 --stepSize=0.02 --timeout=1200 --tolerance=1e-06 ThermofluidStream_ThermofluidStream_Undirected_FlowControl_Tests_SpecificValveType.fmu > ThermofluidStream_ThermofluidStream.Undirected.FlowControl.Tests.SpecificValveType.pipe 2>&1) [Timeout 1260.0] diffSimulationResults("ThermofluidStream_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_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_ThermofluidStream.Undirected.FlowControl.Tests.SpecificValveType_res.mat. Warning: Get data of variable pulse.T_start from file ThermofluidStream_ThermofluidStream.Undirected.FlowControl.Tests.SpecificValveType_res.mat failed! Error: Could not read variable pulse.count in file ThermofluidStream_ThermofluidStream.Undirected.FlowControl.Tests.SpecificValveType_res.mat. Warning: Get data of variable pulse.count from file ThermofluidStream_ThermofluidStream.Undirected.FlowControl.Tests.SpecificValveType_res.mat failed! " [Timeout remaining time 660] Reference file matches [Calling sys.exit(0), Time elapsed: 22.642101540695876]