Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr ThermofluidStream_dev_ThermofluidStream.Undirected.FlowControl.Tests.CheckValve.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.002073/0.002073, allocations: 99.66 kB / 18.94 MB, free: 2.84 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.00507/0.00507, allocations: 220 kB / 22.24 MB, free: 5.109 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 2.145/2.145, allocations: 230.6 MB / 256 MB, free: 7.809 MB / 206.1 MB " [Timeout remaining time 177] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ThermofluidStream main/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ThermofluidStream main/package.mo): time 1.376/1.376, allocations: 100.9 MB / 413.3 MB, free: 2.891 MB / 318.1 MB " [Timeout remaining time 178] Using package ThermofluidStream with version 1.2.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ThermofluidStream main/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.CheckValve,fileNamePrefix="ThermofluidStream_dev_ThermofluidStream_Undirected_FlowControl_Tests_CheckValve",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(ThermofluidStream.Undirected.FlowControl.Tests.CheckValve,fileNamePrefix="ThermofluidStream_dev_ThermofluidStream_Undirected_FlowControl_Tests_CheckValve",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.002923/0.002923, allocations: 89.72 kB / 0.5641 GB, free: 35.61 MB / 446.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3143/0.3172, allocations: 74.62 MB / 0.6369 GB, free: 6.5 MB / 478.1 MB Notification: Performance of NFInst.instantiate(ThermofluidStream.Undirected.FlowControl.Tests.CheckValve): time 1.159/1.476, allocations: 125.3 MB / 0.7593 GB, free: 3.172 MB / 0.5763 GB Notification: Performance of NFInst.instExpressions: time 0.007764/1.484, allocations: 3.054 MB / 0.7623 GB, free: 3.152 MB / 0.5763 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.001082/1.485, allocations: 26.47 kB / 0.7624 GB, free: 3.152 MB / 0.5763 GB Notification: Performance of NFTyping.typeComponents: time 0.001327/1.486, allocations: 191.5 kB / 0.7625 GB, free: 3.148 MB / 0.5763 GB Notification: Performance of NFTyping.typeBindings: time 0.002559/1.489, allocations: 498.8 kB / 0.763 GB, free: 3.133 MB / 0.5763 GB Notification: Performance of NFTyping.typeClassSections: time 0.002066/1.491, allocations: 409.5 kB / 0.7634 GB, free: 3.121 MB / 0.5763 GB Notification: Performance of NFFlatten.flatten: time 0.001698/1.492, allocations: 0.7237 MB / 0.7641 GB, free: 3.121 MB / 0.5763 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0003164/1.493, allocations: 66.38 kB / 0.7642 GB, free: 3.102 MB / 0.5763 GB Notification: Performance of NFEvalConstants.evaluate: time 0.001415/1.494, allocations: 383.1 kB / 0.7645 GB, free: 3.094 MB / 0.5763 GB Notification: Performance of NFSimplifyModel.simplify: time 0.001026/1.495, allocations: 342.7 kB / 0.7649 GB, free: 3.094 MB / 0.5763 GB Notification: Performance of NFPackage.collectConstants: time 0.000172/1.495, allocations: 37.31 kB / 0.7649 GB, free: 3.094 MB / 0.5763 GB Notification: Performance of NFFlatten.collectFunctions: time 0.002445/1.498, allocations: 0.4924 MB / 0.7654 GB, free: 3.086 MB / 0.5763 GB Notification: Performance of NFScalarize.scalarize: time 0.0002262/1.498, allocations: 93.62 kB / 0.7655 GB, free: 3.086 MB / 0.5763 GB Notification: Performance of NFVerifyModel.verify: time 0.0003898/1.498, allocations: 192.6 kB / 0.7657 GB, free: 3.086 MB / 0.5763 GB Notification: Performance of NFConvertDAE.convert: time 0.00227/1.501, allocations: 0.7305 MB / 0.7664 GB, free: 3.027 MB / 0.5763 GB Notification: Performance of FrontEnd - DAE generated: time 8.536e-06/1.501, allocations: 0 / 0.7664 GB, free: 3.027 MB / 0.5763 GB Notification: Performance of FrontEnd: time 4.478e-06/1.501, allocations: 0.8438 kB / 0.7664 GB, free: 3.027 MB / 0.5763 GB Notification: Performance of Transformations before backend: time 2.007e-05/1.501, allocations: 5.312 kB / 0.7664 GB, free: 3.023 MB / 0.5763 GB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 83 * Number of variables: 83 Notification: Performance of Generate backend data structure: time 0.00306/1.504, allocations: 0.7751 MB / 0.7671 GB, free: 18.53 MB / 0.5919 GB Notification: Performance of prepare preOptimizeDAE: time 7.763e-05/1.504, allocations: 10.88 kB / 0.7671 GB, free: 18.53 MB / 0.5919 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001557/1.504, allocations: 75.05 kB / 0.7672 GB, free: 18.49 MB / 0.5919 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0002289/1.504, allocations: 56.61 kB / 0.7673 GB, free: 18.46 MB / 0.5919 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001393/1.506, allocations: 359 kB / 0.7676 GB, free: 18.27 MB / 0.5919 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 6.622e-05/1.506, allocations: 28.56 kB / 0.7676 GB, free: 18.27 MB / 0.5919 GB Notification: Performance of preOpt expandDerOperator (simulation): time 8.51e-05/1.506, allocations: 35.09 kB / 0.7677 GB, free: 18.27 MB / 0.5919 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001221/1.507, allocations: 429.7 kB / 0.7681 GB, free: 18.19 MB / 0.5919 GB Notification: Performance of preOpt findStateOrder (simulation): time 2.859e-05/1.507, allocations: 2.516 kB / 0.7681 GB, free: 18.19 MB / 0.5919 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 4.827e-05/1.507, allocations: 14.16 kB / 0.7681 GB, free: 18.19 MB / 0.5919 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.213e-05/1.507, allocations: 8.938 kB / 0.7681 GB, free: 18.19 MB / 0.5919 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.00113/1.508, allocations: 380.8 kB / 0.7685 GB, free: 18.18 MB / 0.5919 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.003236/1.511, allocations: 1.292 MB / 0.7697 GB, free: 17.55 MB / 0.5919 GB Notification: Performance of preOpt comSubExp (simulation): time 0.001173/1.513, allocations: 313.8 kB / 0.77 GB, free: 17.53 MB / 0.5919 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0004728/1.513, allocations: 153.9 kB / 0.7702 GB, free: 17.52 MB / 0.5919 GB Notification: Performance of preOpt evalFunc (simulation): time 0.002522/1.516, allocations: 0.6998 MB / 0.7709 GB, free: 17.26 MB / 0.5919 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.000743/1.516, allocations: 218.7 kB / 0.7711 GB, free: 17.2 MB / 0.5919 GB Notification: Performance of pre-optimization done (n=37): time 2.534e-06/1.516, allocations: 0 / 0.7711 GB, free: 17.2 MB / 0.5919 GB Notification: Performance of matching and sorting (n=37): time 0.002257/1.519, allocations: 0.5303 MB / 0.7716 GB, free: 17.13 MB / 0.5919 GB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001036/1.519, allocations: 58.97 kB / 0.7716 GB, free: 17.07 MB / 0.5919 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.000776/1.519, allocations: 361.8 kB / 0.772 GB, free: 16.96 MB / 0.5919 GB Notification: Performance of collectPreVariables (initialization): time 0.0001209/1.52, allocations: 33 kB / 0.772 GB, free: 16.93 MB / 0.5919 GB Notification: Performance of collectInitialEqns (initialization): time 0.0003503/1.52, allocations: 227.7 kB / 0.7722 GB, free: 16.8 MB / 0.5919 GB Notification: Performance of collectInitialBindings (initialization): time 0.0001684/1.52, allocations: 130.2 kB / 0.7724 GB, free: 16.72 MB / 0.5919 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001904/1.52, allocations: 73.27 kB / 0.7724 GB, free: 16.7 MB / 0.5919 GB Notification: Performance of setup shared object (initialization): time 0.0003301/1.521, allocations: 356.6 kB / 0.7728 GB, free: 16.38 MB / 0.5919 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0004853/1.521, allocations: 147.2 kB / 0.7729 GB, free: 16.35 MB / 0.5919 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0005121/1.522, allocations: 210 kB / 0.7731 GB, free: 16.27 MB / 0.5919 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0008419/1.522, allocations: 333.5 kB / 0.7734 GB, free: 16.19 MB / 0.5919 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.296e-06/1.522, allocations: 1.062 kB / 0.7734 GB, free: 16.19 MB / 0.5919 GB Notification: Performance of matching and sorting (n=46) (initialization): time 0.001376/1.524, allocations: 0.4889 MB / 0.7739 GB, free: 16.05 MB / 0.5919 GB Notification: Performance of prepare postOptimizeDAE: time 7.324e-05/1.524, allocations: 33.45 kB / 0.7739 GB, free: 16.02 MB / 0.5919 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.35e-05/1.524, allocations: 3.609 kB / 0.7739 GB, free: 16.02 MB / 0.5919 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.0003636/1.524, allocations: 46.62 kB / 0.774 GB, free: 16.01 MB / 0.5919 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003872/1.525, allocations: 82.45 kB / 0.7741 GB, free: 16.01 MB / 0.5919 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002233/1.527, allocations: 1.419 MB / 0.7755 GB, free: 14.79 MB / 0.5919 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003477/1.527, allocations: 38.27 kB / 0.7755 GB, free: 14.78 MB / 0.5919 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 8.045e-05/1.527, allocations: 19.03 kB / 0.7755 GB, free: 14.78 MB / 0.5919 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 6 * 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 (42): * Single equations (assignments): 40 * 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.0003661/1.528, allocations: 169.5 kB / 0.7757 GB, free: 14.66 MB / 0.5919 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001887/1.528, allocations: 50.7 kB / 0.7757 GB, free: 14.63 MB / 0.5919 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001652/1.529, allocations: 0.5231 MB / 0.7762 GB, free: 14.53 MB / 0.5919 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.426e-05/1.529, allocations: 6.062 kB / 0.7762 GB, free: 14.53 MB / 0.5919 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 8.146e-06/1.529, allocations: 1.094 kB / 0.7762 GB, free: 14.53 MB / 0.5919 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.161e-05/1.53, allocations: 4.609 kB / 0.7762 GB, free: 14.53 MB / 0.5919 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002528/1.532, allocations: 0.896 MB / 0.7771 GB, free: 14.21 MB / 0.5919 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.527e-06/1.532, allocations: 0 / 0.7771 GB, free: 14.21 MB / 0.5919 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002917/1.532, allocations: 61.77 kB / 0.7772 GB, free: 14.21 MB / 0.5919 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.0001805/1.533, allocations: 47.78 kB / 0.7772 GB, free: 14.2 MB / 0.5919 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 5.768e-05/1.533, allocations: 13.77 kB / 0.7772 GB, free: 14.2 MB / 0.5919 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001768/1.534, allocations: 1.42 MB / 0.7786 GB, free: 12.98 MB / 0.5919 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.157e-06/1.534, allocations: 2.375 kB / 0.7786 GB, free: 12.98 MB / 0.5919 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001726/1.536, allocations: 0.646 MB / 0.7793 GB, free: 12.79 MB / 0.5919 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0001292/1.536, allocations: 49.84 kB / 0.7793 GB, free: 12.76 MB / 0.5919 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 8.096e-05/1.536, allocations: 14.22 kB / 0.7793 GB, free: 12.76 MB / 0.5919 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.000315/1.537, allocations: 18.02 kB / 0.7793 GB, free: 12.76 MB / 0.5919 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001729/1.537, allocations: 36.75 kB / 0.7794 GB, free: 12.76 MB / 0.5919 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.77e-05/1.537, allocations: 15.33 kB / 0.7794 GB, free: 12.76 MB / 0.5919 GB Notification: Performance of sorting global known variables: time 0.0005669/1.537, allocations: 268.2 kB / 0.7796 GB, free: 12.67 MB / 0.5919 GB Notification: Performance of sort global known variables: time 1.7e-07/1.537, allocations: 1 kB / 0.7796 GB, free: 12.67 MB / 0.5919 GB Notification: Performance of remove unused functions: time 0.001379/1.539, allocations: 165 kB / 0.7798 GB, free: 12.65 MB / 0.5919 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 3 * Number of states: 1 (flowResistance.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 (34): * Single equations (assignments): 31 * 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.002794/1.542, allocations: 1.328 MB / 0.7811 GB, free: 11.91 MB / 0.5919 GB Notification: Performance of simCode: created initialization part: time 0.001602/1.543, allocations: 0.502 MB / 0.7816 GB, free: 11.7 MB / 0.5919 GB Notification: Performance of simCode: created event and clocks part: time 2.805e-06/1.543, allocations: 0 / 0.7816 GB, free: 11.7 MB / 0.5919 GB Notification: Performance of simCode: created simulation system equations: time 0.0006452/1.544, allocations: 287.6 kB / 0.7819 GB, free: 11.59 MB / 0.5919 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0009996/1.545, allocations: 141.5 kB / 0.782 GB, free: 11.57 MB / 0.5919 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.009063/1.554, allocations: 3.974 MB / 0.7859 GB, free: 9.758 MB / 0.5919 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004013/1.554, allocations: 213.2 kB / 0.7861 GB, free: 9.676 MB / 0.5919 GB Notification: Performance of simCode: alias equations: time 0.0005148/1.555, allocations: 89.61 kB / 0.7862 GB, free: 9.66 MB / 0.5919 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0003504/1.555, allocations: 162.5 kB / 0.7863 GB, free: 9.652 MB / 0.5919 GB Notification: Performance of SimCode: time 2.234e-06/1.555, allocations: 0 / 0.7863 GB, free: 9.652 MB / 0.5919 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.07183/1.627, allocations: 13.89 MB / 0.7999 GB, free: 7.75 MB / 0.5919 GB Notification: Performance of buildModelFMU: Generate platform static: time 14.76/16.38, allocations: 14.09 kB / 0.7999 GB, free: 7.742 MB / 0.5919 GB " [Timeout remaining time 643] (rm -f ThermofluidStream_dev_ThermofluidStream.Undirected.FlowControl.Tests.CheckValve.pipe ; mkfifo ThermofluidStream_dev_ThermofluidStream.Undirected.FlowControl.Tests.CheckValve.pipe ; head -c 1048576 < ThermofluidStream_dev_ThermofluidStream.Undirected.FlowControl.Tests.CheckValve.pipe >> ../files/ThermofluidStream_dev_ThermofluidStream.Undirected.FlowControl.Tests.CheckValve.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=ThermofluidStream_dev_ThermofluidStream.Undirected.FlowControl.Tests.CheckValve_res.mat --tempDir=temp_ThermofluidStream_dev_ThermofluidStream_Undirected_FlowControl_Tests_CheckValve_fmu --startTime=0 --stopTime=1 --stepSize=0.001 --timeout=1200 --tolerance=1e-06 ThermofluidStream_dev_ThermofluidStream_Undirected_FlowControl_Tests_CheckValve.fmu > ThermofluidStream_dev_ThermofluidStream.Undirected.FlowControl.Tests.CheckValve.pipe 2>&1) [Timeout 1260.0] diffSimulationResults("ThermofluidStream_dev_ThermofluidStream.Undirected.FlowControl.Tests.CheckValve_res.mat","/mnt/ReferenceFiles/ThermofluidStream-main-regression/ReferenceData/ThermofluidStream.Undirected.FlowControl.Tests.CheckValve_ref.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/ThermofluidStream_dev_ThermofluidStream.Undirected.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.Undirected.FlowControl.Tests.CheckValve_res.mat. Warning: Get data of variable pulse.T_start from file ThermofluidStream_dev_ThermofluidStream.Undirected.FlowControl.Tests.CheckValve_res.mat failed! Error: Could not read variable pulse.count in file ThermofluidStream_dev_ThermofluidStream.Undirected.FlowControl.Tests.CheckValve_res.mat. Warning: Get data of variable pulse.count from file ThermofluidStream_dev_ThermofluidStream.Undirected.FlowControl.Tests.CheckValve_res.mat failed! " [Timeout remaining time 660] Reference file matches [Calling sys.exit(0), Time elapsed: 22.144194201100618]