Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr ThermofluidStream_ThermofluidStream.Undirected.FlowControl.Tests.TanValve.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.001827/0.001827, allocations: 114.3 kB / 18.94 MB, free: 2.957 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.002342/0.002342, allocations: 216.3 kB / 22.25 MB, free: 5.117 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.448/1.448, allocations: 230.6 MB / 256 MB, free: 8.008 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 0.7806/0.7806, allocations: 94.56 MB / 407 MB, free: 9.207 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.TanValve,fileNamePrefix="ThermofluidStream_ThermofluidStream_Undirected_FlowControl_Tests_TanValve",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(ThermofluidStream.Undirected.FlowControl.Tests.TanValve,fileNamePrefix="ThermofluidStream_ThermofluidStream_Undirected_FlowControl_Tests_TanValve",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.002375/0.002375, allocations: 86.69 kB / 0.555 GB, free: 38.8 MB / 446.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1289/0.1313, allocations: 73.05 MB / 0.6263 GB, free: 0.4922 MB / 462.1 MB Notification: Performance of NFInst.instantiate(ThermofluidStream.Undirected.FlowControl.Tests.TanValve): time 0.5317/0.663, allocations: 174.4 MB / 0.7966 GB, free: 1.957 MB / 0.5762 GB Notification: Performance of NFInst.instExpressions: time 0.01178/0.6748, allocations: 11.05 MB / 0.8074 GB, free: 1.738 MB / 0.5762 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.001898/0.6767, allocations: 64.72 kB / 0.8075 GB, free: 1.738 MB / 0.5762 GB Notification: Performance of NFTyping.typeComponents: time 0.002015/0.6787, allocations: 0.8085 MB / 0.8082 GB, free: 1.715 MB / 0.5762 GB Notification: Performance of NFTyping.typeBindings: time 0.004427/0.6831, allocations: 1.701 MB / 0.8099 GB, free: 1.637 MB / 0.5762 GB Notification: Performance of NFTyping.typeClassSections: time 0.0032/0.6863, allocations: 1.144 MB / 0.811 GB, free: 1.602 MB / 0.5762 GB Notification: Performance of NFFlatten.flatten: time 0.003573/0.6899, allocations: 2.557 MB / 0.8135 GB, free: 1.383 MB / 0.5762 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0005972/0.6905, allocations: 291.4 kB / 0.8138 GB, free: 1.207 MB / 0.5762 GB Notification: Performance of NFEvalConstants.evaluate: time 0.001647/0.6921, allocations: 1.083 MB / 0.8149 GB, free: 0.9336 MB / 0.5762 GB Notification: Performance of NFSimplifyModel.simplify: time 0.001689/0.6938, allocations: 1.381 MB / 0.8162 GB, free: 0.5078 MB / 0.5762 GB Notification: Performance of NFPackage.collectConstants: time 0.0001625/0.694, allocations: 142.3 kB / 0.8163 GB, free: 0.5078 MB / 0.5762 GB Notification: Performance of NFFlatten.collectFunctions: time 0.004427/0.6984, allocations: 1.996 MB / 0.8183 GB, free: 168 kB / 0.5762 GB Notification: Performance of NFScalarize.scalarize: time 0.000469/0.6989, allocations: 380.8 kB / 0.8186 GB, free: 0 / 0.5762 GB Notification: Performance of NFVerifyModel.verify: time 0.001104/0.7, allocations: 0.8106 MB / 0.8194 GB, free: 15.53 MB / 0.5919 GB Notification: Performance of NFConvertDAE.convert: time 0.004279/0.7043, allocations: 2.614 MB / 0.822 GB, free: 14.24 MB / 0.5919 GB Notification: Performance of FrontEnd - DAE generated: time 3.827e-06/0.7043, allocations: 0 / 0.822 GB, free: 14.24 MB / 0.5919 GB Notification: Performance of FrontEnd: time 1.834e-06/0.7043, allocations: 12.66 kB / 0.822 GB, free: 14.23 MB / 0.5919 GB Notification: Performance of Transformations before backend: time 1.937e-05/0.7043, allocations: 0 / 0.822 GB, free: 14.23 MB / 0.5919 GB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 305 * Number of variables: 305 Notification: Performance of Generate backend data structure: time 0.00385/0.7081, allocations: 1.999 MB / 0.824 GB, free: 12.84 MB / 0.5919 GB Notification: Performance of prepare preOptimizeDAE: time 3.508e-05/0.7082, allocations: 10.12 kB / 0.824 GB, free: 12.84 MB / 0.5919 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001896/0.7084, allocations: 175.9 kB / 0.8241 GB, free: 12.69 MB / 0.5919 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.000423/0.7088, allocations: 179.7 kB / 0.8243 GB, free: 12.6 MB / 0.5919 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001499/0.7103, allocations: 0.9079 MB / 0.8252 GB, free: 11.94 MB / 0.5919 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001149/0.7104, allocations: 91.12 kB / 0.8253 GB, free: 11.9 MB / 0.5919 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0002143/0.7106, allocations: 131.4 kB / 0.8254 GB, free: 11.85 MB / 0.5919 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.002335/0.713, allocations: 1.547 MB / 0.8269 GB, free: 10.93 MB / 0.5919 GB Notification: Performance of preOpt findStateOrder (simulation): time 2.524e-05/0.713, allocations: 0 / 0.8269 GB, free: 10.93 MB / 0.5919 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 9.549e-05/0.7131, allocations: 50.16 kB / 0.827 GB, free: 10.89 MB / 0.5919 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.807e-05/0.7131, allocations: 28.31 kB / 0.827 GB, free: 10.89 MB / 0.5919 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.002623/0.7157, allocations: 1.712 MB / 0.8287 GB, free: 10.06 MB / 0.5919 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.007474/0.7232, allocations: 6.187 MB / 0.8347 GB, free: 4.5 MB / 0.5919 GB Notification: Performance of preOpt comSubExp (simulation): time 0.002197/0.7254, allocations: 1.193 MB / 0.8359 GB, free: 3.859 MB / 0.5919 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.001054/0.7264, allocations: 0.6415 MB / 0.8365 GB, free: 3.523 MB / 0.5919 GB Notification: Performance of preOpt evalFunc (simulation): time 0.004199/0.7306, allocations: 2.274 MB / 0.8387 GB, free: 1.922 MB / 0.5919 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0012/0.7318, allocations: 0.7401 MB / 0.8394 GB, free: 1.473 MB / 0.5919 GB Notification: Performance of pre-optimization done (n=128): time 2.715e-06/0.7318, allocations: 0 / 0.8394 GB, free: 1.473 MB / 0.5919 GB Notification: Performance of matching and sorting (n=129): time 0.007657/0.7395, allocations: 3.776 MB / 0.8431 GB, free: 15.25 MB / 0.6075 GB Notification: Performance of inlineWhenForInitialization (initialization): time 5.823e-05/0.7396, allocations: 72.7 kB / 0.8432 GB, free: 15.17 MB / 0.6075 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0008661/0.7404, allocations: 0.7127 MB / 0.8439 GB, free: 14.44 MB / 0.6075 GB Notification: Performance of collectPreVariables (initialization): time 8.146e-05/0.7405, allocations: 49.69 kB / 0.8439 GB, free: 14.39 MB / 0.6075 GB Notification: Performance of collectInitialEqns (initialization): time 0.0006245/0.7411, allocations: 0.5365 MB / 0.8445 GB, free: 13.84 MB / 0.6075 GB Notification: Performance of collectInitialBindings (initialization): time 0.0003831/0.7415, allocations: 454.4 kB / 0.8449 GB, free: 13.41 MB / 0.6075 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.000326/0.7418, allocations: 206.9 kB / 0.8451 GB, free: 13.2 MB / 0.6075 GB Notification: Performance of setup shared object (initialization): time 0.0001808/0.742, allocations: 345.9 kB / 0.8454 GB, free: 12.85 MB / 0.6075 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001031/0.7431, allocations: 0.5179 MB / 0.8459 GB, free: 12.34 MB / 0.6075 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001175/0.7442, allocations: 0.6369 MB / 0.8466 GB, free: 11.68 MB / 0.6075 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.002252/0.7465, allocations: 1.251 MB / 0.8478 GB, free: 10.4 MB / 0.6075 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.166e-06/0.7465, allocations: 0 / 0.8478 GB, free: 10.4 MB / 0.6075 GB Notification: Performance of matching and sorting (n=140) (initialization): time 0.003174/0.7497, allocations: 1.604 MB / 0.8493 GB, free: 8.777 MB / 0.6075 GB Notification: Performance of prepare postOptimizeDAE: time 4.179e-05/0.7497, allocations: 33.7 kB / 0.8494 GB, free: 8.738 MB / 0.6075 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.665e-06/0.7497, allocations: 0 / 0.8494 GB, free: 8.738 MB / 0.6075 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.0005885/0.7503, allocations: 160.8 kB / 0.8495 GB, free: 8.578 MB / 0.6075 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0009316/0.7512, allocations: 247.7 kB / 0.8498 GB, free: 8.336 MB / 0.6075 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.004296/0.7555, allocations: 2.615 MB / 0.8523 GB, free: 5.613 MB / 0.6075 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.000669/0.7562, allocations: 55.94 kB / 0.8524 GB, free: 5.559 MB / 0.6075 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.000124/0.7563, allocations: 51.98 kB / 0.8524 GB, free: 5.508 MB / 0.6075 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 7 * 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 (126): * Single equations (assignments): 124 * Array equations: 0 * Algorithm blocks: 1 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 1 system {(3,11,77.8%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of prepare postOptimizeDAE: time 0.0006724/0.757, allocations: 285.6 kB / 0.8527 GB, free: 5.219 MB / 0.6075 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002746/0.7573, allocations: 123.2 kB / 0.8528 GB, free: 5.098 MB / 0.6075 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.004676/0.7619, allocations: 2.331 MB / 0.8551 GB, free: 2.789 MB / 0.6075 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.705e-05/0.762, allocations: 16 kB / 0.8551 GB, free: 2.773 MB / 0.6075 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.61e-06/0.762, allocations: 0 / 0.8551 GB, free: 2.773 MB / 0.6075 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.654e-05/0.762, allocations: 7.969 kB / 0.8551 GB, free: 2.766 MB / 0.6075 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.006306/0.7683, allocations: 3.388 MB / 0.8584 GB, free: 15.34 MB / 0.6231 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.12e-06/0.7683, allocations: 0 / 0.8584 GB, free: 15.34 MB / 0.6231 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0009968/0.7693, allocations: 263.7 kB / 0.8587 GB, free: 15.09 MB / 0.6231 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.0004198/0.7697, allocations: 140.9 kB / 0.8588 GB, free: 14.95 MB / 0.6231 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001078/0.7698, allocations: 43.97 kB / 0.8588 GB, free: 14.9 MB / 0.6231 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.003008/0.7728, allocations: 2.349 MB / 0.8611 GB, free: 12.45 MB / 0.6231 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.481e-06/0.7728, allocations: 7.938 kB / 0.8611 GB, free: 12.44 MB / 0.6231 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.004787/0.7776, allocations: 2.605 MB / 0.8637 GB, free: 9.801 MB / 0.6231 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0002798/0.7779, allocations: 119 kB / 0.8638 GB, free: 9.684 MB / 0.6231 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001853/0.7781, allocations: 32 kB / 0.8638 GB, free: 9.652 MB / 0.6231 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0005845/0.7787, allocations: 47.95 kB / 0.8639 GB, free: 9.605 MB / 0.6231 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002185/0.7789, allocations: 125 kB / 0.864 GB, free: 9.48 MB / 0.6231 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0002284/0.7791, allocations: 59.91 kB / 0.8641 GB, free: 9.422 MB / 0.6231 GB Notification: Performance of sorting global known variables: time 0.0007242/0.7798, allocations: 0.5156 MB / 0.8646 GB, free: 8.895 MB / 0.6231 GB Notification: Performance of sort global known variables: time 7e-08/0.7798, allocations: 0 / 0.8646 GB, free: 8.895 MB / 0.6231 GB Notification: Performance of remove unused functions: time 0.001567/0.7814, allocations: 0.5188 MB / 0.8651 GB, free: 8.375 MB / 0.6231 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 5 * Number of states: 2 (flowResistance1.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 (141): * Single equations (assignments): 138 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 2 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 1 system {(3,11,77.8%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of Backend phase and start with SimCode phase: time 0.006038/0.7874, allocations: 3.628 MB / 0.8686 GB, free: 4.738 MB / 0.6231 GB Notification: Performance of simCode: created initialization part: time 0.003163/0.7906, allocations: 1.559 MB / 0.8701 GB, free: 3.152 MB / 0.6231 GB Notification: Performance of simCode: created event and clocks part: time 3.357e-06/0.7906, allocations: 0 / 0.8701 GB, free: 3.152 MB / 0.6231 GB Notification: Performance of simCode: created simulation system equations: time 0.001782/0.7924, allocations: 0.9242 MB / 0.871 GB, free: 2.219 MB / 0.6231 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001856/0.7943, allocations: 392.4 kB / 0.8714 GB, free: 1.852 MB / 0.6231 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01784/0.8121, allocations: 10.2 MB / 0.8814 GB, free: 7.469 MB / 0.6387 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001065/0.8132, allocations: 1.187 MB / 0.8825 GB, free: 6.25 MB / 0.6387 GB Notification: Performance of simCode: alias equations: time 0.001083/0.8142, allocations: 362.4 kB / 0.8829 GB, free: 5.941 MB / 0.6387 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0009708/0.8152, allocations: 0.5813 MB / 0.8834 GB, free: 5.359 MB / 0.6387 GB Notification: Performance of SimCode: time 7.52e-07/0.8152, allocations: 0 / 0.8834 GB, free: 5.359 MB / 0.6387 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.09395/0.9092, allocations: 39.6 MB / 0.9221 GB, free: 14.05 MB / 0.6856 GB Notification: Performance of buildModelFMU: Generate platform static: time 14.12/15.03, allocations: 7.875 kB / 0.9221 GB, free: 14.04 MB / 0.6856 GB " [Timeout remaining time 645] (rm -f ThermofluidStream_ThermofluidStream.Undirected.FlowControl.Tests.TanValve.pipe ; mkfifo ThermofluidStream_ThermofluidStream.Undirected.FlowControl.Tests.TanValve.pipe ; head -c 1048576 < ThermofluidStream_ThermofluidStream.Undirected.FlowControl.Tests.TanValve.pipe >> ../files/ThermofluidStream_ThermofluidStream.Undirected.FlowControl.Tests.TanValve.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=ThermofluidStream_ThermofluidStream.Undirected.FlowControl.Tests.TanValve_res.mat --tempDir=temp_ThermofluidStream_ThermofluidStream_Undirected_FlowControl_Tests_TanValve_fmu --startTime=0 --stopTime=100 --stepSize=0.1 --timeout=1200 --tolerance=1e-06 ThermofluidStream_ThermofluidStream_Undirected_FlowControl_Tests_TanValve.fmu > ThermofluidStream_ThermofluidStream.Undirected.FlowControl.Tests.TanValve.pipe 2>&1) [Timeout 1260.0] diffSimulationResults("ThermofluidStream_ThermofluidStream.Undirected.FlowControl.Tests.TanValve_res.mat","/mnt/ReferenceFiles/ThermofluidStream-main-regression/ReferenceData/ThermofluidStream.Undirected.FlowControl.Tests.TanValve_ref.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/ThermofluidStream_ThermofluidStream.Undirected.FlowControl.Tests.TanValve.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.TanValve_res.mat. Warning: Get data of variable pulse.T_start from file ThermofluidStream_ThermofluidStream.Undirected.FlowControl.Tests.TanValve_res.mat failed! Error: Could not read variable pulse.count in file ThermofluidStream_ThermofluidStream.Undirected.FlowControl.Tests.TanValve_res.mat. Warning: Get data of variable pulse.count from file ThermofluidStream_ThermofluidStream.Undirected.FlowControl.Tests.TanValve_res.mat failed! " [Timeout remaining time 660] Reference file matches [Calling sys.exit(0), Time elapsed: 18.703150309156626]