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.001311/0.001311, allocations: 80.44 kB / 19.17 MB, free: 0.7422 MB / 13.93 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.001731/0.001731, allocations: 169.9 kB / 22.46 MB, free: 2.105 MB / 18.57 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.333/1.333, allocations: 177.1 MB / 202.8 MB, free: 5.734 MB / 186.7 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.9523/0.9523, allocations: 80.18 MB / 339.4 MB, free: 7.547 MB / 314.7 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: "" <> 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: Performance of FrontEnd - loaded program: time 3.327e-06/3.327e-06, allocations: 0 / 0.4924 GB, free: 6.633 MB / 410.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 4.383e-05/4.716e-05, allocations: 2.281 kB / 0.4924 GB, free: 6.629 MB / 410.7 MB Notification: Performance of NFInst.instantiate(ThermofluidStream.Undirected.FlowControl.Tests.SpecificValveType): time 0.03879/0.03884, allocations: 42 MB / 0.5334 GB, free: 14.34 MB / 458.7 MB Notification: Performance of NFInst.instExpressions: time 0.0157/0.05453, allocations: 11.48 MB / 0.5446 GB, free: 2.828 MB / 458.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.002614/0.05715, allocations: 79.31 kB / 0.5447 GB, free: 2.75 MB / 458.7 MB Notification: Performance of NFTyping.typeComponents: time 0.003104/0.06025, allocations: 1.099 MB / 0.5458 GB, free: 1.645 MB / 458.7 MB Notification: Performance of NFTyping.typeBindings: time 0.008059/0.06831, allocations: 2.305 MB / 0.548 GB, free: 15.32 MB / 474.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.004351/0.07266, allocations: 1.226 MB / 0.5492 GB, free: 14.1 MB / 474.7 MB Notification: Performance of NFFlatten.flatten: time 0.00574/0.0784, allocations: 3.136 MB / 0.5523 GB, free: 10.95 MB / 474.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.000888/0.07929, allocations: 282.2 kB / 0.5525 GB, free: 10.64 MB / 474.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.004629/0.08392, allocations: 1.925 MB / 0.5544 GB, free: 8.707 MB / 474.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.001946/0.08587, allocations: 0.923 MB / 0.5553 GB, free: 7.781 MB / 474.7 MB Notification: Performance of NFPackage.collectConstants: time 0.0002526/0.08612, allocations: 136 kB / 0.5554 GB, free: 7.648 MB / 474.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.004045/0.09016, allocations: 1.052 MB / 0.5565 GB, free: 6.594 MB / 474.7 MB Notification: Performance of NFScalarize.scalarize: time 0.0004003/0.09056, allocations: 446.1 kB / 0.5569 GB, free: 6.156 MB / 474.7 MB Notification: Performance of NFVerifyModel.verify: time 0.0007788/0.09134, allocations: 0.6584 MB / 0.5575 GB, free: 5.496 MB / 474.7 MB Notification: Performance of NFConvertDAE.convert: time 0.003614/0.09495, allocations: 2.932 MB / 0.5604 GB, free: 2.555 MB / 474.7 MB Notification: Performance of FrontEnd - DAE generated: time 9.047e-06/0.09496, allocations: 0 / 0.5604 GB, free: 2.555 MB / 474.7 MB Notification: Performance of FrontEnd: time 4.128e-06/0.09497, allocations: 0 / 0.5604 GB, free: 2.555 MB / 474.7 MB Notification: Performance of Transformations before backend: time 3.076e-05/0.095, allocations: 4 kB / 0.5604 GB, free: 2.551 MB / 474.7 MB 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.003813/0.09881, allocations: 2.474 MB / 0.5628 GB, free: 28 kB / 474.7 MB Notification: Performance of prepare preOptimizeDAE: time 8.265e-05/0.09889, allocations: 9.469 kB / 0.5628 GB, free: 20 kB / 474.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001952/0.09909, allocations: 198.4 kB / 0.563 GB, free: 15.82 MB / 490.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.000531/0.09962, allocations: 283.3 kB / 0.5633 GB, free: 15.54 MB / 490.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001737/0.1014, allocations: 1.252 MB / 0.5645 GB, free: 14.24 MB / 490.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 6.361e-05/0.1014, allocations: 106.9 kB / 0.5646 GB, free: 14.14 MB / 490.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001531/0.1016, allocations: 128.4 kB / 0.5647 GB, free: 14.01 MB / 490.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001771/0.1033, allocations: 1.555 MB / 0.5663 GB, free: 12.4 MB / 490.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.866e-05/0.1034, allocations: 0 / 0.5663 GB, free: 12.4 MB / 490.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 7.007e-05/0.1034, allocations: 56 kB / 0.5663 GB, free: 12.35 MB / 490.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.602e-05/0.1035, allocations: 32 kB / 0.5663 GB, free: 12.32 MB / 490.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001777/0.1052, allocations: 1.572 MB / 0.5679 GB, free: 10.74 MB / 490.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.005069/0.1103, allocations: 3.801 MB / 0.5716 GB, free: 6.855 MB / 490.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001645/0.112, allocations: 1.216 MB / 0.5728 GB, free: 5.637 MB / 490.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.000701/0.1127, allocations: 0.605 MB / 0.5734 GB, free: 5.031 MB / 490.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.002795/0.1155, allocations: 1.981 MB / 0.5753 GB, free: 3.027 MB / 490.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.001009/0.1165, allocations: 0.7871 MB / 0.5761 GB, free: 2.207 MB / 490.7 MB Notification: Performance of pre-optimization done (n=139): time 2.845e-06/0.1165, allocations: 0 / 0.5761 GB, free: 2.207 MB / 490.7 MB Notification: Performance of matching and sorting (n=139): time 0.003093/0.1196, allocations: 1.951 MB / 0.578 GB, free: 252 kB / 490.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.000101/0.1197, allocations: 124.1 kB / 0.5781 GB, free: 100 kB / 490.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001216/0.1209, allocations: 1.326 MB / 0.5794 GB, free: 14.76 MB / 0.4948 GB Notification: Performance of collectPreVariables (initialization): time 6.292e-05/0.1209, allocations: 53.7 kB / 0.5794 GB, free: 14.7 MB / 0.4948 GB Notification: Performance of collectInitialEqns (initialization): time 0.0004492/0.1214, allocations: 0.7148 MB / 0.5801 GB, free: 13.98 MB / 0.4948 GB Notification: Performance of collectInitialBindings (initialization): time 0.0002914/0.1217, allocations: 487.7 kB / 0.5806 GB, free: 13.5 MB / 0.4948 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002535/0.1219, allocations: 250.8 kB / 0.5808 GB, free: 13.25 MB / 0.4948 GB Notification: Performance of setup shared object (initialization): time 0.000121/0.1221, allocations: 353.9 kB / 0.5812 GB, free: 12.9 MB / 0.4948 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.00058/0.1226, allocations: 488.1 kB / 0.5816 GB, free: 12.41 MB / 0.4948 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0007537/0.1234, allocations: 0.6893 MB / 0.5823 GB, free: 11.66 MB / 0.4948 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.001463/0.1249, allocations: 1.157 MB / 0.5834 GB, free: 10.45 MB / 0.4948 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 7.975e-06/0.1249, allocations: 8 kB / 0.5835 GB, free: 10.44 MB / 0.4948 GB Notification: Performance of matching and sorting (n=158) (initialization): time 0.00226/0.1271, allocations: 1.559 MB / 0.585 GB, free: 8.852 MB / 0.4948 GB Notification: Performance of prepare postOptimizeDAE: time 6.167e-05/0.1272, allocations: 29.7 kB / 0.585 GB, free: 8.816 MB / 0.4948 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.424e-05/0.1272, allocations: 4 kB / 0.585 GB, free: 8.812 MB / 0.4948 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.0003938/0.1276, allocations: 109.6 kB / 0.5851 GB, free: 8.699 MB / 0.4948 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.000547/0.1281, allocations: 279.6 kB / 0.5854 GB, free: 8.426 MB / 0.4948 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002181/0.1303, allocations: 3.002 MB / 0.5883 GB, free: 5.195 MB / 0.4948 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0004175/0.1307, allocations: 119.1 kB / 0.5884 GB, free: 5.078 MB / 0.4948 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 8.376e-05/0.1308, allocations: 63.97 kB / 0.5885 GB, free: 5.016 MB / 0.4948 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.000486/0.1313, allocations: 383.9 kB / 0.5889 GB, free: 4.633 MB / 0.4948 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001823/0.1315, allocations: 194.7 kB / 0.589 GB, free: 4.441 MB / 0.4948 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.003052/0.1345, allocations: 2.113 MB / 0.5911 GB, free: 2.375 MB / 0.4948 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.012e-05/0.1346, allocations: 16 kB / 0.5911 GB, free: 2.359 MB / 0.4948 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.64e-06/0.1346, allocations: 3.984 kB / 0.5911 GB, free: 2.355 MB / 0.4948 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.372e-05/0.1346, allocations: 11.92 kB / 0.5911 GB, free: 2.344 MB / 0.4948 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.00355/0.1381, allocations: 3.1 MB / 0.5942 GB, free: 15.17 MB / 0.5105 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.36e-06/0.1381, allocations: 0 / 0.5942 GB, free: 15.17 MB / 0.5105 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0004815/0.1386, allocations: 267.7 kB / 0.5944 GB, free: 14.91 MB / 0.5105 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.00022/0.1388, allocations: 113.6 kB / 0.5945 GB, free: 14.79 MB / 0.5105 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 6.226e-05/0.1389, allocations: 51.97 kB / 0.5946 GB, free: 14.74 MB / 0.5105 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001881/0.1408, allocations: 3.005 MB / 0.5975 GB, free: 11.5 MB / 0.5105 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.793e-06/0.1408, allocations: 3.938 kB / 0.5975 GB, free: 11.5 MB / 0.5105 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002969/0.1437, allocations: 2.319 MB / 0.5998 GB, free: 9.145 MB / 0.5105 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0004687/0.1442, allocations: 392.1 kB / 0.6002 GB, free: 8.762 MB / 0.5105 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 9.846e-05/0.1443, allocations: 35.98 kB / 0.6002 GB, free: 8.727 MB / 0.5105 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0003141/0.1446, allocations: 36.05 kB / 0.6002 GB, free: 8.691 MB / 0.5105 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.000175/0.1448, allocations: 133 kB / 0.6003 GB, free: 8.559 MB / 0.5105 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 6.27e-05/0.1449, allocations: 55.97 kB / 0.6004 GB, free: 8.504 MB / 0.5105 GB Notification: Performance of sorting global known variables: time 0.0008708/0.1457, allocations: 0.9276 MB / 0.6013 GB, free: 7.582 MB / 0.5105 GB Notification: Performance of sort global known variables: time 5e-08/0.1457, allocations: 3.938 kB / 0.6013 GB, free: 7.578 MB / 0.5105 GB Notification: Performance of remove unused functions: time 0.001377/0.1471, allocations: 0.5927 MB / 0.6019 GB, free: 6.984 MB / 0.5105 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.004674/0.1518, allocations: 3.59 MB / 0.6054 GB, free: 3.512 MB / 0.5105 GB Notification: Performance of simCode: created initialization part: time 0.001993/0.1538, allocations: 1.502 MB / 0.6069 GB, free: 1.965 MB / 0.5105 GB Notification: Performance of simCode: created event and clocks part: time 3.987e-06/0.1538, allocations: 4 kB / 0.6069 GB, free: 1.961 MB / 0.5105 GB Notification: Performance of simCode: created simulation system equations: time 0.0009467/0.1547, allocations: 0.9107 MB / 0.6078 GB, free: 1.027 MB / 0.5105 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001777/0.1565, allocations: 0.6807 MB / 0.6084 GB, free: 372 kB / 0.5105 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01468/0.1712, allocations: 12.12 MB / 0.6203 GB, free: 3.883 MB / 0.5261 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0006858/0.1719, allocations: 0.7713 MB / 0.621 GB, free: 3.074 MB / 0.5261 GB Notification: Performance of simCode: alias equations: time 0.001216/0.1731, allocations: 381 kB / 0.6214 GB, free: 2.766 MB / 0.5261 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0007491/0.1738, allocations: 0.7463 MB / 0.6221 GB, free: 2.02 MB / 0.5261 GB Notification: Performance of SimCode: time 2.755e-06/0.1738, allocations: 0 / 0.6221 GB, free: 2.02 MB / 0.5261 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.5596/0.7335, allocations: 50.24 MB / 0.6712 GB, free: 120.8 MB / 0.5417 GB Notification: Performance of buildModelFMU: Generate platform static: time 10.34/11.08, allocations: 7.312 kB / 0.6712 GB, free: 120.8 MB / 0.5417 GB " [Timeout remaining time 649] (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/jenkins/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: 15.155317581258714]