Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr ThermofluidStream_dev_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.001717/0.001717, allocations: 106.2 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.00161/0.00161, 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.466/1.466, allocations: 225.6 MB / 247.8 MB, free: 3.738 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.6257/0.6257, allocations: 94.59 MB / 397.3 MB, free: 500 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.FlowControl.Tests.CheckValve,fileNamePrefix="ThermofluidStream_dev_ThermofluidStream_FlowControl_Tests_CheckValve",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(ThermofluidStream.FlowControl.Tests.CheckValve,fileNamePrefix="ThermofluidStream_dev_ThermofluidStream_FlowControl_Tests_CheckValve",fmuType="me",version="2.0",platforms={"static"}) [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 0.002325/0.002325, allocations: 87.86 kB / 0.5416 GB, free: 14.05 MB / 414.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.41/0.4123, allocations: 71.84 MB / 0.6118 GB, free: 3.961 MB / 462.1 MB Notification: Performance of NFInst.instantiate(ThermofluidStream.FlowControl.Tests.CheckValve): time 0.183/0.5953, allocations: 144.3 MB / 0.7527 GB, free: 4.867 MB / 0.5762 GB Notification: Performance of NFInst.instExpressions: time 0.004878/0.6001, allocations: 3.63 MB / 0.7562 GB, free: 1.219 MB / 0.5762 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.0004235/0.6006, allocations: 11.94 kB / 0.7562 GB, free: 1.207 MB / 0.5762 GB Notification: Performance of NFTyping.typeComponents: time 0.0006277/0.6012, allocations: 190.8 kB / 0.7564 GB, free: 1.02 MB / 0.5762 GB Notification: Performance of NFTyping.typeBindings: time 0.001217/0.6024, allocations: 389.7 kB / 0.7568 GB, free: 0.6367 MB / 0.5762 GB Notification: Performance of NFTyping.typeClassSections: time 0.0007524/0.6032, allocations: 291 kB / 0.757 GB, free: 360 kB / 0.5762 GB Notification: Performance of NFFlatten.flatten: time 0.0007317/0.6039, allocations: 0.5212 MB / 0.7575 GB, free: 15.83 MB / 0.5919 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0001635/0.6041, allocations: 49.75 kB / 0.7576 GB, free: 15.77 MB / 0.5919 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0006604/0.6047, allocations: 270.9 kB / 0.7579 GB, free: 15.5 MB / 0.5919 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0003637/0.6051, allocations: 234.9 kB / 0.7581 GB, free: 15.27 MB / 0.5919 GB Notification: Performance of NFPackage.collectConstants: time 5.701e-05/0.6051, allocations: 24 kB / 0.7581 GB, free: 15.25 MB / 0.5919 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0009737/0.6061, allocations: 0.4913 MB / 0.7586 GB, free: 14.76 MB / 0.5919 GB Notification: Performance of NFScalarize.scalarize: time 9.713e-05/0.6062, allocations: 67.64 kB / 0.7586 GB, free: 14.69 MB / 0.5919 GB Notification: Performance of NFVerifyModel.verify: time 0.0002007/0.6064, allocations: 179 kB / 0.7588 GB, free: 14.52 MB / 0.5919 GB Notification: Performance of NFConvertDAE.convert: time 0.001035/0.6074, allocations: 0.5447 MB / 0.7593 GB, free: 13.97 MB / 0.5919 GB Notification: Performance of FrontEnd - DAE generated: time 4.979e-06/0.6074, allocations: 8 kB / 0.7594 GB, free: 13.96 MB / 0.5919 GB Notification: Performance of FrontEnd: time 1.303e-06/0.6075, allocations: 0 / 0.7594 GB, free: 13.96 MB / 0.5919 GB Notification: Performance of Transformations before backend: time 1.197e-05/0.6075, allocations: 0 / 0.7594 GB, free: 13.96 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: 51 * Number of variables: 51 Notification: Performance of Generate backend data structure: time 0.001428/0.6089, allocations: 0.7532 MB / 0.7601 GB, free: 13.15 MB / 0.5919 GB Notification: Performance of prepare preOptimizeDAE: time 3.601e-05/0.6089, allocations: 12.03 kB / 0.7601 GB, free: 13.14 MB / 0.5919 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 6.707e-05/0.609, allocations: 58.73 kB / 0.7602 GB, free: 13.07 MB / 0.5919 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 8.639e-05/0.6091, allocations: 44.66 kB / 0.7602 GB, free: 13.03 MB / 0.5919 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0007358/0.6098, allocations: 386.5 kB / 0.7606 GB, free: 12.61 MB / 0.5919 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.534e-05/0.6098, allocations: 20.38 kB / 0.7606 GB, free: 12.59 MB / 0.5919 GB Notification: Performance of preOpt expandDerOperator (simulation): time 4.515e-05/0.6099, allocations: 24 kB / 0.7606 GB, free: 12.57 MB / 0.5919 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0005051/0.6104, allocations: 265.7 kB / 0.7609 GB, free: 12.3 MB / 0.5919 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.343e-05/0.6104, allocations: 0 / 0.7609 GB, free: 12.3 MB / 0.5919 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.525e-05/0.6104, allocations: 12 kB / 0.7609 GB, free: 12.29 MB / 0.5919 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.276e-05/0.6104, allocations: 8 kB / 0.7609 GB, free: 12.28 MB / 0.5919 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0004744/0.6109, allocations: 217.6 kB / 0.7611 GB, free: 12.07 MB / 0.5919 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001565/0.6125, allocations: 1.093 MB / 0.7622 GB, free: 10.86 MB / 0.5919 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0005086/0.613, allocations: 210.5 kB / 0.7624 GB, free: 10.64 MB / 0.5919 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002261/0.6132, allocations: 96.81 kB / 0.7625 GB, free: 10.54 MB / 0.5919 GB Notification: Performance of preOpt evalFunc (simulation): time 0.001137/0.6144, allocations: 0.9877 MB / 0.7634 GB, free: 9.418 MB / 0.5919 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0003407/0.6147, allocations: 151.9 kB / 0.7636 GB, free: 9.258 MB / 0.5919 GB Notification: Performance of pre-optimization done (n=23): time 1.743e-06/0.6147, allocations: 0 / 0.7636 GB, free: 9.258 MB / 0.5919 GB Notification: Performance of matching and sorting (n=23): time 0.001157/0.6159, allocations: 478.6 kB / 0.764 GB, free: 8.762 MB / 0.5919 GB Notification: Performance of inlineWhenForInitialization (initialization): time 0.000115/0.616, allocations: 55.34 kB / 0.7641 GB, free: 8.695 MB / 0.5919 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003772/0.6163, allocations: 345.7 kB / 0.7644 GB, free: 8.352 MB / 0.5919 GB Notification: Performance of collectPreVariables (initialization): time 3.005e-05/0.6164, allocations: 37.64 kB / 0.7644 GB, free: 8.309 MB / 0.5919 GB Notification: Performance of collectInitialEqns (initialization): time 0.0001392/0.6165, allocations: 192.4 kB / 0.7646 GB, free: 8.117 MB / 0.5919 GB Notification: Performance of collectInitialBindings (initialization): time 6.542e-05/0.6166, allocations: 79.38 kB / 0.7647 GB, free: 8.039 MB / 0.5919 GB Notification: Performance of simplifyInitialFunctions (initialization): time 8.125e-05/0.6167, allocations: 53.89 kB / 0.7647 GB, free: 7.98 MB / 0.5919 GB Notification: Performance of setup shared object (initialization): time 0.0001518/0.6168, allocations: 346.8 kB / 0.7651 GB, free: 7.633 MB / 0.5919 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.00021/0.617, allocations: 80.19 kB / 0.7652 GB, free: 7.555 MB / 0.5919 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002242/0.6172, allocations: 115 kB / 0.7653 GB, free: 7.434 MB / 0.5919 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0004932/0.6177, allocations: 217.1 kB / 0.7655 GB, free: 7.207 MB / 0.5919 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.274e-06/0.6177, allocations: 0 / 0.7655 GB, free: 7.207 MB / 0.5919 GB Notification: Performance of matching and sorting (n=29) (initialization): time 0.0006658/0.6184, allocations: 341.4 kB / 0.7658 GB, free: 6.859 MB / 0.5919 GB Notification: Performance of prepare postOptimizeDAE: time 3.939e-05/0.6184, allocations: 33.77 kB / 0.7658 GB, free: 6.82 MB / 0.5919 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.87e-06/0.6185, allocations: 7.938 kB / 0.7658 GB, free: 6.812 MB / 0.5919 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.0002399/0.6187, allocations: 44.81 kB / 0.7659 GB, free: 6.766 MB / 0.5919 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002157/0.6189, allocations: 43.98 kB / 0.7659 GB, free: 6.723 MB / 0.5919 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001408/0.6203, allocations: 1.524 MB / 0.7674 GB, free: 5.059 MB / 0.5919 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001978/0.6205, allocations: 27.84 kB / 0.7674 GB, free: 5.031 MB / 0.5919 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.039e-05/0.6205, allocations: 19.97 kB / 0.7675 GB, free: 5.012 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.0001619/0.6207, allocations: 153.8 kB / 0.7676 GB, free: 4.852 MB / 0.5919 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 5.37e-05/0.6208, allocations: 35.77 kB / 0.7676 GB, free: 4.816 MB / 0.5919 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0008652/0.6216, allocations: 341.4 kB / 0.768 GB, free: 4.473 MB / 0.5919 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.929e-06/0.6216, allocations: 4 kB / 0.768 GB, free: 4.469 MB / 0.5919 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.054e-06/0.6216, allocations: 0 / 0.768 GB, free: 4.469 MB / 0.5919 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.647e-06/0.6216, allocations: 4 kB / 0.768 GB, free: 4.465 MB / 0.5919 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001164/0.6228, allocations: 0.7537 MB / 0.7687 GB, free: 3.648 MB / 0.5919 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.121e-05/0.6228, allocations: 0 / 0.7687 GB, free: 3.648 MB / 0.5919 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002264/0.623, allocations: 35.98 kB / 0.7687 GB, free: 3.613 MB / 0.5919 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.0001416/0.6232, allocations: 52.8 kB / 0.7688 GB, free: 3.559 MB / 0.5919 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.193e-05/0.6232, allocations: 3.984 kB / 0.7688 GB, free: 3.555 MB / 0.5919 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001216/0.6244, allocations: 1.532 MB / 0.7703 GB, free: 1.883 MB / 0.5919 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.408e-06/0.6244, allocations: 7.969 kB / 0.7703 GB, free: 1.875 MB / 0.5919 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001007/0.6254, allocations: 0.4936 MB / 0.7708 GB, free: 1.359 MB / 0.5919 GB Notification: Performance of postOpt removeConstants (simulation): time 9.359e-05/0.6255, allocations: 112.8 kB / 0.7709 GB, free: 1.23 MB / 0.5919 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.305e-05/0.6256, allocations: 11.94 kB / 0.7709 GB, free: 1.219 MB / 0.5919 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.000198/0.6258, allocations: 11.98 kB / 0.7709 GB, free: 1.207 MB / 0.5919 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 7.229e-05/0.6258, allocations: 27.95 kB / 0.7709 GB, free: 1.18 MB / 0.5919 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.065e-05/0.6259, allocations: 12 kB / 0.7709 GB, free: 1.168 MB / 0.5919 GB Notification: Performance of sorting global known variables: time 0.0002491/0.6261, allocations: 243.1 kB / 0.7712 GB, free: 0.9297 MB / 0.5919 GB Notification: Performance of sort global known variables: time 9.1e-08/0.6261, allocations: 64 / 0.7712 GB, free: 0.9297 MB / 0.5919 GB Notification: Performance of remove unused functions: time 0.0005467/0.6267, allocations: 135.7 kB / 0.7713 GB, free: 0.7969 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.001519/0.6282, allocations: 1.14 MB / 0.7724 GB, free: 15.62 MB / 0.6075 GB Notification: Performance of simCode: created initialization part: time 0.0008605/0.629, allocations: 385.8 kB / 0.7728 GB, free: 15.22 MB / 0.6075 GB Notification: Performance of simCode: created event and clocks part: time 1.783e-06/0.629, allocations: 0 / 0.7728 GB, free: 15.22 MB / 0.6075 GB Notification: Performance of simCode: created simulation system equations: time 0.0003954/0.6294, allocations: 238.5 kB / 0.773 GB, free: 14.98 MB / 0.6075 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0005848/0.63, allocations: 118.2 kB / 0.7731 GB, free: 14.87 MB / 0.6075 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.005035/0.6351, allocations: 3.225 MB / 0.7763 GB, free: 11.53 MB / 0.6075 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004922/0.6355, allocations: 0.791 MB / 0.7771 GB, free: 10.71 MB / 0.6075 GB Notification: Performance of simCode: alias equations: time 0.0001781/0.6357, allocations: 54.81 kB / 0.7771 GB, free: 10.66 MB / 0.6075 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001719/0.6359, allocations: 127.4 kB / 0.7772 GB, free: 10.54 MB / 0.6075 GB Notification: Performance of SimCode: time 3e-07/0.6359, allocations: 0 / 0.7772 GB, free: 10.54 MB / 0.6075 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.04264/0.6785, allocations: 10.42 MB / 0.7874 GB, free: 296 kB / 0.6075 GB Notification: Performance of buildModelFMU: Generate platform static: time 10.77/11.45, allocations: 4 kB / 0.7874 GB, free: 292 kB / 0.6075 GB " [Timeout remaining time 648] (rm -f ThermofluidStream_dev_ThermofluidStream.FlowControl.Tests.CheckValve.pipe ; mkfifo ThermofluidStream_dev_ThermofluidStream.FlowControl.Tests.CheckValve.pipe ; head -c 1048576 < ThermofluidStream_dev_ThermofluidStream.FlowControl.Tests.CheckValve.pipe >> ../files/ThermofluidStream_dev_ThermofluidStream.FlowControl.Tests.CheckValve.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=ThermofluidStream_dev_ThermofluidStream.FlowControl.Tests.CheckValve_res.mat --tempDir=temp_ThermofluidStream_dev_ThermofluidStream_FlowControl_Tests_CheckValve_fmu --startTime=0 --stopTime=1 --stepSize=0.001 --timeout=1200 --tolerance=1e-06 ThermofluidStream_dev_ThermofluidStream_FlowControl_Tests_CheckValve.fmu > ThermofluidStream_dev_ThermofluidStream.FlowControl.Tests.CheckValve.pipe 2>&1) [Timeout 1260.0] diffSimulationResults("ThermofluidStream_dev_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_dev_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_dev_ThermofluidStream.FlowControl.Tests.CheckValve_res.mat. Warning: Get data of variable pulse.T_start from file ThermofluidStream_dev_ThermofluidStream.FlowControl.Tests.CheckValve_res.mat failed! Error: Could not read variable pulse.count in file ThermofluidStream_dev_ThermofluidStream.FlowControl.Tests.CheckValve_res.mat. Warning: Get data of variable pulse.count from file ThermofluidStream_dev_ThermofluidStream.FlowControl.Tests.CheckValve_res.mat failed! " [Timeout remaining time 660] Reference file matches [Calling sys.exit(0), Time elapsed: 14.826363019179553]