Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr ThermofluidStream_ThermofluidStream.FlowControl.Tests.CheckValve.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.001557/0.001557, allocations: 106.5 kB / 16.45 MB, free: 6.035 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.001573/0.001573, allocations: 192.5 kB / 19.41 MB, free: 3.539 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.648/1.648, allocations: 225.6 MB / 247.8 MB, free: 13.94 MB / 206.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.9824/0.9824, allocations: 94.59 MB / 397.3 MB, free: 308 kB / 302.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.FlowControl.Tests.CheckValve,fileNamePrefix="ThermofluidStream_ThermofluidStream_FlowControl_Tests_CheckValve",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(ThermofluidStream.FlowControl.Tests.CheckValve,fileNamePrefix="ThermofluidStream_ThermofluidStream_FlowControl_Tests_CheckValve",fmuType="me",version="2.0",platforms={"static"}) [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 0.003712/0.003712, allocations: 85.2 kB / 0.5416 GB, free: 42.47 MB / 446.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1716/0.1753, allocations: 71.85 MB / 0.6118 GB, free: 10.11 MB / 462.1 MB Notification: Performance of NFInst.instantiate(ThermofluidStream.FlowControl.Tests.CheckValve): time 0.6478/0.8231, allocations: 144.3 MB / 0.7526 GB, free: 2.465 MB / 0.5762 GB Notification: Performance of NFInst.instExpressions: time 0.006094/0.8292, allocations: 3.634 MB / 0.7562 GB, free: 2.43 MB / 0.5762 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.000814/0.83, allocations: 14.06 kB / 0.7562 GB, free: 2.43 MB / 0.5762 GB Notification: Performance of NFTyping.typeComponents: time 0.001022/0.831, allocations: 178.8 kB / 0.7564 GB, free: 2.422 MB / 0.5762 GB Notification: Performance of NFTyping.typeBindings: time 0.001636/0.8327, allocations: 390.3 kB / 0.7567 GB, free: 2.414 MB / 0.5762 GB Notification: Performance of NFTyping.typeClassSections: time 0.001165/0.8338, allocations: 289.9 kB / 0.757 GB, free: 2.406 MB / 0.5762 GB Notification: Performance of NFFlatten.flatten: time 0.001085/0.8349, allocations: 0.5273 MB / 0.7575 GB, free: 2.402 MB / 0.5762 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0002371/0.8352, allocations: 56.53 kB / 0.7576 GB, free: 2.383 MB / 0.5762 GB Notification: Performance of NFEvalConstants.evaluate: time 0.000645/0.8358, allocations: 257.4 kB / 0.7578 GB, free: 2.383 MB / 0.5762 GB Notification: Performance of NFSimplifyModel.simplify: time 0.000457/0.8363, allocations: 241 kB / 0.7581 GB, free: 2.383 MB / 0.5762 GB Notification: Performance of NFPackage.collectConstants: time 5.255e-05/0.8363, allocations: 26.41 kB / 0.7581 GB, free: 2.383 MB / 0.5762 GB Notification: Performance of NFFlatten.collectFunctions: time 0.00157/0.8379, allocations: 0.4913 MB / 0.7586 GB, free: 2.375 MB / 0.5762 GB Notification: Performance of NFScalarize.scalarize: time 0.0001369/0.838, allocations: 62.48 kB / 0.7586 GB, free: 2.375 MB / 0.5762 GB Notification: Performance of NFVerifyModel.verify: time 0.0003024/0.8383, allocations: 182.2 kB / 0.7588 GB, free: 2.375 MB / 0.5762 GB Notification: Performance of NFConvertDAE.convert: time 0.001389/0.8397, allocations: 0.5513 MB / 0.7593 GB, free: 2.332 MB / 0.5762 GB Notification: Performance of FrontEnd - DAE generated: time 8.746e-06/0.8397, allocations: 0 / 0.7593 GB, free: 2.332 MB / 0.5762 GB Notification: Performance of FrontEnd: time 2.394e-06/0.8397, allocations: 0.7812 kB / 0.7593 GB, free: 2.332 MB / 0.5762 GB Notification: Performance of Transformations before backend: time 1.211e-05/0.8397, allocations: 0 / 0.7593 GB, free: 2.332 MB / 0.5762 GB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 51 * Number of variables: 51 Notification: Performance of Generate backend data structure: time 0.001772/0.8415, allocations: 0.7549 MB / 0.7601 GB, free: 1.777 MB / 0.5762 GB Notification: Performance of prepare preOptimizeDAE: time 8.177e-05/0.8416, allocations: 10 kB / 0.7601 GB, free: 1.777 MB / 0.5762 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 8.347e-05/0.8417, allocations: 54.69 kB / 0.7601 GB, free: 1.738 MB / 0.5762 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001491/0.8418, allocations: 49.69 kB / 0.7602 GB, free: 1.715 MB / 0.5762 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001168/0.843, allocations: 390.4 kB / 0.7606 GB, free: 17.46 MB / 0.5919 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.474e-05/0.843, allocations: 25.62 kB / 0.7606 GB, free: 17.46 MB / 0.5919 GB Notification: Performance of preOpt expandDerOperator (simulation): time 6.898e-05/0.8431, allocations: 22.5 kB / 0.7606 GB, free: 17.46 MB / 0.5919 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0007104/0.8438, allocations: 260.1 kB / 0.7609 GB, free: 17.41 MB / 0.5919 GB Notification: Performance of preOpt findStateOrder (simulation): time 2.048e-05/0.8438, allocations: 0.8125 kB / 0.7609 GB, free: 17.41 MB / 0.5919 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.116e-05/0.8439, allocations: 6.5 kB / 0.7609 GB, free: 17.41 MB / 0.5919 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.729e-05/0.8439, allocations: 6.016 kB / 0.7609 GB, free: 17.41 MB / 0.5919 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0006246/0.8445, allocations: 223.5 kB / 0.7611 GB, free: 17.41 MB / 0.5919 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002043/0.8466, allocations: 1.092 MB / 0.7622 GB, free: 16.71 MB / 0.5919 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0007033/0.8473, allocations: 212.4 kB / 0.7624 GB, free: 16.68 MB / 0.5919 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002785/0.8475, allocations: 100.5 kB / 0.7625 GB, free: 16.68 MB / 0.5919 GB Notification: Performance of preOpt evalFunc (simulation): time 0.001507/0.849, allocations: 0.9816 MB / 0.7634 GB, free: 15.82 MB / 0.5919 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.000479/0.8495, allocations: 158.7 kB / 0.7636 GB, free: 15.77 MB / 0.5919 GB Notification: Performance of pre-optimization done (n=23): time 3.536e-06/0.8495, allocations: 0.9375 kB / 0.7636 GB, free: 15.77 MB / 0.5919 GB Notification: Performance of matching and sorting (n=23): time 0.001571/0.8511, allocations: 471.5 kB / 0.764 GB, free: 15.61 MB / 0.5919 GB Notification: Performance of inlineWhenForInitialization (initialization): time 7.293e-05/0.8512, allocations: 54.84 kB / 0.7641 GB, free: 15.55 MB / 0.5919 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0006523/0.8518, allocations: 346.3 kB / 0.7644 GB, free: 15.43 MB / 0.5919 GB Notification: Performance of collectPreVariables (initialization): time 4.442e-05/0.8519, allocations: 30.98 kB / 0.7644 GB, free: 15.4 MB / 0.5919 GB Notification: Performance of collectInitialEqns (initialization): time 0.0001983/0.8521, allocations: 199.3 kB / 0.7646 GB, free: 15.3 MB / 0.5919 GB Notification: Performance of collectInitialBindings (initialization): time 8.954e-05/0.8522, allocations: 79.02 kB / 0.7647 GB, free: 15.25 MB / 0.5919 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001559/0.8523, allocations: 48.97 kB / 0.7647 GB, free: 15.23 MB / 0.5919 GB Notification: Performance of setup shared object (initialization): time 0.0002897/0.8526, allocations: 350.8 kB / 0.7651 GB, free: 14.92 MB / 0.5919 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.000323/0.8529, allocations: 77.73 kB / 0.7651 GB, free: 14.92 MB / 0.5919 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003526/0.8533, allocations: 108.7 kB / 0.7652 GB, free: 14.89 MB / 0.5919 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0006471/0.8539, allocations: 220 kB / 0.7655 GB, free: 14.84 MB / 0.5919 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.986e-06/0.8539, allocations: 1.688 kB / 0.7655 GB, free: 14.84 MB / 0.5919 GB Notification: Performance of matching and sorting (n=29) (initialization): time 0.001018/0.8549, allocations: 348.5 kB / 0.7658 GB, free: 14.74 MB / 0.5919 GB Notification: Performance of prepare postOptimizeDAE: time 6.868e-05/0.855, allocations: 34.67 kB / 0.7658 GB, free: 14.71 MB / 0.5919 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.199e-05/0.855, allocations: 1.062 kB / 0.7658 GB, free: 14.71 MB / 0.5919 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.0003211/0.8553, allocations: 43.55 kB / 0.7659 GB, free: 14.7 MB / 0.5919 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002549/0.8556, allocations: 44.31 kB / 0.7659 GB, free: 14.7 MB / 0.5919 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001921/0.8575, allocations: 1.526 MB / 0.7674 GB, free: 13.35 MB / 0.5919 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002992/0.8578, allocations: 32.56 kB / 0.7674 GB, free: 13.34 MB / 0.5919 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.035e-05/0.8579, allocations: 12.09 kB / 0.7674 GB, free: 13.34 MB / 0.5919 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 3 * 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 (25): * Single equations (assignments): 23 * 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 {(1,3,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of prepare postOptimizeDAE: time 0.0002813/0.8581, allocations: 154.6 kB / 0.7676 GB, free: 13.21 MB / 0.5919 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 7.108e-05/0.8582, allocations: 36.77 kB / 0.7676 GB, free: 13.2 MB / 0.5919 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0009723/0.8592, allocations: 342.7 kB / 0.768 GB, free: 13.11 MB / 0.5919 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.005e-05/0.8592, allocations: 6 kB / 0.768 GB, free: 13.11 MB / 0.5919 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.472e-06/0.8592, allocations: 1.875 kB / 0.768 GB, free: 13.11 MB / 0.5919 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.222e-06/0.8592, allocations: 0 / 0.768 GB, free: 13.11 MB / 0.5919 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0015/0.8607, allocations: 0.7459 MB / 0.7687 GB, free: 12.79 MB / 0.5919 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.681e-06/0.8607, allocations: 6.188 kB / 0.7687 GB, free: 12.79 MB / 0.5919 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001866/0.8609, allocations: 43.11 kB / 0.7687 GB, free: 12.79 MB / 0.5919 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.0001861/0.8611, allocations: 49.41 kB / 0.7688 GB, free: 12.78 MB / 0.5919 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.284e-05/0.8611, allocations: 6.5 kB / 0.7688 GB, free: 12.78 MB / 0.5919 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001666/0.8628, allocations: 1.517 MB / 0.7703 GB, free: 11.43 MB / 0.5919 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.428e-06/0.8628, allocations: 2.484 kB / 0.7703 GB, free: 11.43 MB / 0.5919 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001301/0.8641, allocations: 0.5011 MB / 0.7708 GB, free: 11.25 MB / 0.5919 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0001462/0.8642, allocations: 119.5 kB / 0.7709 GB, free: 11.13 MB / 0.5919 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 5.01e-05/0.8643, allocations: 9.188 kB / 0.7709 GB, free: 11.13 MB / 0.5919 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002126/0.8645, allocations: 16.75 kB / 0.7709 GB, free: 11.13 MB / 0.5919 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001065/0.8646, allocations: 26.3 kB / 0.7709 GB, free: 11.13 MB / 0.5919 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.187e-05/0.8646, allocations: 8.547 kB / 0.7709 GB, free: 11.13 MB / 0.5919 GB Notification: Performance of sorting global known variables: time 0.0004921/0.8651, allocations: 250.8 kB / 0.7712 GB, free: 11.05 MB / 0.5919 GB Notification: Performance of sort global known variables: time 1.1e-07/0.8651, allocations: 0 / 0.7712 GB, free: 11.05 MB / 0.5919 GB Notification: Performance of remove unused functions: time 0.0007154/0.8658, allocations: 127.1 kB / 0.7713 GB, free: 11.03 MB / 0.5919 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 2 * Number of states: 1 (flowResistance.inlet.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 (22): * Single equations (assignments): 19 * 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 {(1,3,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of Backend phase and start with SimCode phase: time 0.001846/0.8677, allocations: 1.142 MB / 0.7724 GB, free: 10.32 MB / 0.5919 GB Notification: Performance of simCode: created initialization part: time 0.0009894/0.8687, allocations: 382.7 kB / 0.7728 GB, free: 10.14 MB / 0.5919 GB Notification: Performance of simCode: created event and clocks part: time 4.509e-06/0.8687, allocations: 0.875 kB / 0.7728 GB, free: 10.14 MB / 0.5919 GB Notification: Performance of simCode: created simulation system equations: time 0.0004565/0.8691, allocations: 245.4 kB / 0.773 GB, free: 10.02 MB / 0.5919 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0006837/0.8698, allocations: 115.7 kB / 0.7731 GB, free: 10 MB / 0.5919 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.00579/0.8756, allocations: 3.236 MB / 0.7763 GB, free: 8.477 MB / 0.5919 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0006733/0.8763, allocations: 0.7901 MB / 0.7771 GB, free: 7.777 MB / 0.5919 GB Notification: Performance of simCode: alias equations: time 0.0002968/0.8766, allocations: 48.91 kB / 0.7771 GB, free: 7.773 MB / 0.5919 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001871/0.8768, allocations: 133.4 kB / 0.7772 GB, free: 7.762 MB / 0.5919 GB Notification: Performance of SimCode: time 1.923e-06/0.8768, allocations: 3.094 kB / 0.7772 GB, free: 7.762 MB / 0.5919 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.05108/0.9278, allocations: 10.41 MB / 0.7874 GB, free: 6.82 MB / 0.5919 GB Notification: Performance of buildModelFMU: Generate platform static: time 11.59/12.52, allocations: 1.406 kB / 0.7874 GB, free: 6.82 MB / 0.5919 GB " [Timeout remaining time 647] (rm -f ThermofluidStream_ThermofluidStream.FlowControl.Tests.CheckValve.pipe ; mkfifo ThermofluidStream_ThermofluidStream.FlowControl.Tests.CheckValve.pipe ; head -c 1048576 < ThermofluidStream_ThermofluidStream.FlowControl.Tests.CheckValve.pipe >> ../files/ThermofluidStream_ThermofluidStream.FlowControl.Tests.CheckValve.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=ThermofluidStream_ThermofluidStream.FlowControl.Tests.CheckValve_res.mat --tempDir=temp_ThermofluidStream_ThermofluidStream_FlowControl_Tests_CheckValve_fmu --startTime=0 --stopTime=1 --stepSize=0.001 --timeout=1200 --tolerance=1e-06 ThermofluidStream_ThermofluidStream_FlowControl_Tests_CheckValve.fmu > ThermofluidStream_ThermofluidStream.FlowControl.Tests.CheckValve.pipe 2>&1) [Timeout 1260.0] diffSimulationResults("ThermofluidStream_ThermofluidStream.FlowControl.Tests.CheckValve_res.mat","/mnt/ReferenceFiles/ThermofluidStream-main-regression/ReferenceData/ThermofluidStream.FlowControl.Tests.CheckValve_ref.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork_2/OpenModelicaLibraryTesting/files/ThermofluidStream_ThermofluidStream.FlowControl.Tests.CheckValve.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) [Timeout 660] "Error: Could not read variable pulse.T_start in file ThermofluidStream_ThermofluidStream.FlowControl.Tests.CheckValve_res.mat. Warning: Get data of variable pulse.T_start from file ThermofluidStream_ThermofluidStream.FlowControl.Tests.CheckValve_res.mat failed! Error: Could not read variable pulse.count in file ThermofluidStream_ThermofluidStream.FlowControl.Tests.CheckValve_res.mat. Warning: Get data of variable pulse.count from file ThermofluidStream_ThermofluidStream.FlowControl.Tests.CheckValve_res.mat failed! " [Timeout remaining time 660] Reference file matches [Calling sys.exit(0), Time elapsed: 16.858586359769106]