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.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ThermofluidStream 1.1.0-main/package.mo", uses=false) Using package ThermofluidStream with version 1.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ThermofluidStream 1.1.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.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"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.002095/0.002095, allocations: 108 kB / 15.6 MB, free: 132 kB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.002053/0.002053, allocations: 193.8 kB / 16.53 MB, free: 6.391 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.731/1.731, allocations: 222.9 MB / 240.2 MB, free: 4.258 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ThermofluidStream 1.1.0-main/package.mo): time 0.8021/0.8021, allocations: 93.71 MB / 384.1 MB, free: 6.957 MB / 318.1 MB Warning: Ignoring unknown experiment annotation option: __Dymola_Algorithm = "Dassl" Notification: Performance of FrontEnd - loaded program: time 0.002527/0.002527, allocations: 89.38 kB / 463.5 MB, free: 21.93 MB / 350.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1317/0.1343, allocations: 68.26 MB / 0.5193 GB, free: 6.875 MB / 398.1 MB Notification: Performance of NFInst.instantiate(ThermofluidStream.Undirected.FlowControl.Tests.CheckValve): time 0.4609/0.5952, allocations: 145.3 MB / 0.6612 GB, free: 1.398 MB / 478.1 MB Notification: Performance of NFInst.instExpressions: time 0.00452/0.5997, allocations: 3.331 MB / 0.6645 GB, free: 14.69 MB / 494.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0003978/0.6001, allocations: 17.78 kB / 0.6645 GB, free: 14.68 MB / 494.1 MB Notification: Performance of NFTyping.typeComponents: time 0.000645/0.6008, allocations: 211.5 kB / 0.6647 GB, free: 14.5 MB / 494.1 MB Notification: Performance of NFTyping.typeBindings: time 0.001072/0.6019, allocations: 494.2 kB / 0.6652 GB, free: 14.11 MB / 494.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0009447/0.6029, allocations: 391.3 kB / 0.6655 GB, free: 13.82 MB / 494.1 MB Notification: Performance of NFFlatten.flatten: time 0.0007087/0.6036, allocations: 0.7256 MB / 0.6663 GB, free: 13.4 MB / 494.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002149/0.6038, allocations: 123.9 kB / 0.6664 GB, free: 13.34 MB / 494.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0005832/0.6044, allocations: 349.7 kB / 0.6667 GB, free: 13.14 MB / 494.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0004253/0.6048, allocations: 351 kB / 0.667 GB, free: 12.94 MB / 494.1 MB Notification: Performance of NFPackage.collectConstants: time 4.948e-05/0.6049, allocations: 36.41 kB / 0.6671 GB, free: 12.94 MB / 494.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.001169/0.6061, allocations: 0.581 MB / 0.6676 GB, free: 12.66 MB / 494.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001094/0.6062, allocations: 87.22 kB / 0.6677 GB, free: 12.59 MB / 494.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0002184/0.6064, allocations: 243.3 kB / 0.668 GB, free: 12.43 MB / 494.1 MB Notification: Performance of NFConvertDAE.convert: time 0.001009/0.6075, allocations: 0.7084 MB / 0.6686 GB, free: 11.98 MB / 494.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.378e-06/0.6075, allocations: 0 / 0.6686 GB, free: 11.98 MB / 494.1 MB Notification: Performance of FrontEnd: time 1.282e-06/0.6075, allocations: 4 kB / 0.6686 GB, free: 11.98 MB / 494.1 MB Notification: Performance of Transformations before backend: time 7.494e-06/0.6075, allocations: 2.094 kB / 0.6687 GB, free: 11.98 MB / 494.1 MB 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.001506/0.609, allocations: 0.8376 MB / 0.6695 GB, free: 11.26 MB / 494.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.67e-05/0.609, allocations: 7.625 kB / 0.6695 GB, free: 11.26 MB / 494.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 8.42e-05/0.6091, allocations: 71.25 kB / 0.6695 GB, free: 11.19 MB / 494.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 9.889e-05/0.6092, allocations: 48.59 kB / 0.6696 GB, free: 11.17 MB / 494.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0005327/0.6098, allocations: 401.6 kB / 0.67 GB, free: 10.8 MB / 494.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.22e-05/0.6098, allocations: 29.34 kB / 0.67 GB, free: 10.79 MB / 494.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 5.577e-05/0.6099, allocations: 35 kB / 0.67 GB, free: 10.78 MB / 494.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0007033/0.6106, allocations: 420.5 kB / 0.6704 GB, free: 10.5 MB / 494.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.355e-05/0.6106, allocations: 0 / 0.6704 GB, free: 10.5 MB / 494.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.558e-05/0.6107, allocations: 18.98 kB / 0.6705 GB, free: 10.48 MB / 494.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 8.906e-06/0.6107, allocations: 7.125 kB / 0.6705 GB, free: 10.48 MB / 494.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0006836/0.6114, allocations: 373.9 kB / 0.6708 GB, free: 10.31 MB / 494.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002308/0.6137, allocations: 1.862 MB / 0.6726 GB, free: 8.547 MB / 494.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.000778/0.6145, allocations: 337 kB / 0.673 GB, free: 8.363 MB / 494.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0003325/0.6148, allocations: 175 kB / 0.6731 GB, free: 8.273 MB / 494.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.002145/0.617, allocations: 1.539 MB / 0.6746 GB, free: 6.699 MB / 494.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0005061/0.6175, allocations: 203.3 kB / 0.6748 GB, free: 6.562 MB / 494.1 MB Notification: Performance of pre-optimization done (n=37): time 2.505e-06/0.6175, allocations: 3.938 kB / 0.6748 GB, free: 6.559 MB / 494.1 MB Notification: Performance of matching and sorting (n=37): time 0.001464/0.619, allocations: 0.6047 MB / 0.6754 GB, free: 6.188 MB / 494.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.622e-05/0.6191, allocations: 64.05 kB / 0.6755 GB, free: 6.117 MB / 494.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003993/0.6195, allocations: 353.5 kB / 0.6758 GB, free: 5.891 MB / 494.1 MB Notification: Performance of collectPreVariables (initialization): time 4.103e-05/0.6195, allocations: 31.8 kB / 0.6758 GB, free: 5.855 MB / 494.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001833/0.6197, allocations: 227.1 kB / 0.6761 GB, free: 5.652 MB / 494.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001084/0.6198, allocations: 121.3 kB / 0.6762 GB, free: 5.547 MB / 494.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001232/0.62, allocations: 78.94 kB / 0.6763 GB, free: 5.488 MB / 494.1 MB Notification: Performance of setup shared object (initialization): time 0.0001822/0.6202, allocations: 358.5 kB / 0.6766 GB, free: 5.137 MB / 494.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002993/0.6205, allocations: 119.5 kB / 0.6767 GB, free: 5.082 MB / 494.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003225/0.6208, allocations: 176 kB / 0.6769 GB, free: 4.965 MB / 494.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0006634/0.6215, allocations: 333.1 kB / 0.6772 GB, free: 4.75 MB / 494.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.045e-06/0.6215, allocations: 0 / 0.6772 GB, free: 4.75 MB / 494.1 MB Notification: Performance of matching and sorting (n=46) (initialization): time 0.001071/0.6226, allocations: 475 kB / 0.6776 GB, free: 4.484 MB / 494.1 MB Notification: Performance of prepare postOptimizeDAE: time 4.38e-05/0.6226, allocations: 33.02 kB / 0.6777 GB, free: 4.453 MB / 494.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.816e-06/0.6226, allocations: 2.406 kB / 0.6777 GB, free: 4.453 MB / 494.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.000239/0.6229, allocations: 46.73 kB / 0.6777 GB, free: 4.422 MB / 494.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.000288/0.6232, allocations: 77.58 kB / 0.6778 GB, free: 4.402 MB / 494.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001419/0.6246, allocations: 1.53 MB / 0.6793 GB, free: 2.867 MB / 494.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002714/0.6249, allocations: 46.95 kB / 0.6793 GB, free: 2.836 MB / 494.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.686e-05/0.6249, allocations: 17.77 kB / 0.6794 GB, free: 2.828 MB / 494.1 MB 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.0002331/0.6252, allocations: 167 kB / 0.6795 GB, free: 2.676 MB / 494.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 6.781e-05/0.6252, allocations: 44 kB / 0.6796 GB, free: 2.652 MB / 494.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001273/0.6265, allocations: 0.5188 MB / 0.6801 GB, free: 2.332 MB / 494.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.739e-06/0.6265, allocations: 4.656 kB / 0.6801 GB, free: 2.332 MB / 494.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.116e-06/0.6265, allocations: 0 / 0.6801 GB, free: 2.332 MB / 494.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 8.617e-06/0.6266, allocations: 0 / 0.6801 GB, free: 2.332 MB / 494.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001784/0.6284, allocations: 0.9712 MB / 0.681 GB, free: 1.582 MB / 494.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 6.342e-06/0.6284, allocations: 0 / 0.681 GB, free: 1.582 MB / 494.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002415/0.6286, allocations: 67.91 kB / 0.6811 GB, free: 1.562 MB / 494.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0001587/0.6288, allocations: 46.41 kB / 0.6811 GB, free: 1.531 MB / 494.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.247e-05/0.6288, allocations: 8.531 kB / 0.6811 GB, free: 1.527 MB / 494.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0015/0.6303, allocations: 1.541 MB / 0.6826 GB, free: 15.98 MB / 0.4981 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.488e-06/0.6304, allocations: 6.844 kB / 0.6826 GB, free: 15.97 MB / 0.4981 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001299/0.6317, allocations: 0.6479 MB / 0.6833 GB, free: 15.55 MB / 0.4981 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0001216/0.6318, allocations: 117.8 kB / 0.6834 GB, free: 15.43 MB / 0.4981 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 6.043e-05/0.6319, allocations: 14.88 kB / 0.6834 GB, free: 15.42 MB / 0.4981 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002375/0.6321, allocations: 22.8 kB / 0.6834 GB, free: 15.41 MB / 0.4981 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 9.435e-05/0.6322, allocations: 31.7 kB / 0.6835 GB, free: 15.39 MB / 0.4981 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.775e-05/0.6323, allocations: 13.47 kB / 0.6835 GB, free: 15.39 MB / 0.4981 GB Notification: Performance of sorting global known variables: time 0.0002884/0.6326, allocations: 275.4 kB / 0.6837 GB, free: 15.21 MB / 0.4981 GB Notification: Performance of sort global known variables: time 1.5e-07/0.6326, allocations: 4.062 kB / 0.6837 GB, free: 15.21 MB / 0.4981 GB Notification: Performance of remove unused functions: time 0.0005818/0.6332, allocations: 158.2 kB / 0.6839 GB, free: 15.18 MB / 0.4981 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.00189/0.6351, allocations: 1.312 MB / 0.6852 GB, free: 14.18 MB / 0.4981 GB Notification: Performance of simCode: created initialization part: time 0.001105/0.6362, allocations: 0.5044 MB / 0.6857 GB, free: 13.84 MB / 0.4981 GB Notification: Performance of simCode: created event and clocks part: time 2.475e-06/0.6362, allocations: 0 / 0.6857 GB, free: 13.84 MB / 0.4981 GB Notification: Performance of simCode: created simulation system equations: time 0.0004951/0.6367, allocations: 301.1 kB / 0.6859 GB, free: 13.64 MB / 0.4981 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0009442/0.6377, allocations: 134.1 kB / 0.6861 GB, free: 13.57 MB / 0.4981 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.006035/0.6437, allocations: 3.892 MB / 0.6899 GB, free: 10.86 MB / 0.4981 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004397/0.6442, allocations: 0.8148 MB / 0.6907 GB, free: 10.11 MB / 0.4981 GB Notification: Performance of simCode: alias equations: time 0.0003493/0.6445, allocations: 90.27 kB / 0.6908 GB, free: 10.06 MB / 0.4981 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002427/0.6448, allocations: 161.6 kB / 0.6909 GB, free: 9.914 MB / 0.4981 GB Notification: Performance of SimCode: time 9.72e-07/0.6448, allocations: 0 / 0.6909 GB, free: 9.914 MB / 0.4981 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.04402/0.6888, allocations: 12.55 MB / 0.7032 GB, free: 13.58 MB / 0.5137 GB Notification: Performance of buildModelFMU: Generate platform static: time 10.53/11.22, allocations: 7.234 kB / 0.7032 GB, free: 13.58 MB / 0.5137 GB (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 & python3 -m fmpy simulate --output-file ThermofluidStream_dev_ThermofluidStream.Undirected.FlowControl.Tests.CheckValve_res.csv --start-time 0 --stop-time 1 --timeout 1200 --relative-tolerance 1e-06 --interface-type ModelExchange --solver CVode --output-interval 0.001 ThermofluidStream_dev_ThermofluidStream_Undirected_FlowControl_Tests_CheckValve.fmu > ThermofluidStream_dev_ThermofluidStream.Undirected.FlowControl.Tests.CheckValve.pipe 2>&1) diffSimulationResults("ThermofluidStream_dev_ThermofluidStream.Undirected.FlowControl.Tests.CheckValve_res.csv","/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) Reference file matches