Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr ThermofluidStream_ThermofluidStream.Undirected.Interfaces.Tests.Test_p_out_clipping.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.00154/0.00154, allocations: 99.64 kB / 18.95 MB, free: 2.668 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.001929/0.001929, allocations: 210.4 kB / 22.24 MB, free: 5.258 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.806/1.806, allocations: 230.6 MB / 256 MB, free: 7.801 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 1.129/1.129, allocations: 94.62 MB / 407 MB, free: 8.906 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.Interfaces.Tests.Test_p_out_clipping,fileNamePrefix="ThermofluidStream_ThermofluidStream_Undirected_Interfaces_Tests_Test_p_out_clipping",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(ThermofluidStream.Undirected.Interfaces.Tests.Test_p_out_clipping,fileNamePrefix="ThermofluidStream_ThermofluidStream_Undirected_Interfaces_Tests_Test_p_out_clipping",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.00275/0.00275, allocations: 86.53 kB / 0.5549 GB, free: 38.4 MB / 446.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2614/0.2641, allocations: 73.06 MB / 0.6263 GB, free: 196 kB / 462.1 MB Notification: Performance of NFInst.instantiate(ThermofluidStream.Undirected.Interfaces.Tests.Test_p_out_clipping): time 0.9875/1.252, allocations: 150.2 MB / 0.773 GB, free: 3.016 MB / 0.5763 GB Notification: Performance of NFInst.instExpressions: time 0.02208/1.274, allocations: 10.52 MB / 0.7832 GB, free: 2.918 MB / 0.5763 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.003632/1.277, allocations: 97.19 kB / 0.7833 GB, free: 2.918 MB / 0.5763 GB Notification: Performance of NFTyping.typeComponents: time 0.00401/1.281, allocations: 0.832 MB / 0.7841 GB, free: 2.891 MB / 0.5763 GB Notification: Performance of NFTyping.typeBindings: time 0.01039/1.292, allocations: 1.729 MB / 0.7858 GB, free: 2.84 MB / 0.5763 GB Notification: Performance of NFTyping.typeClassSections: time 0.007334/1.299, allocations: 1.361 MB / 0.7872 GB, free: 2.801 MB / 0.5763 GB Notification: Performance of NFFlatten.flatten: time 0.008095/1.307, allocations: 2.6 MB / 0.7897 GB, free: 2.789 MB / 0.5763 GB Notification: Performance of NFFlatten.resolveConnections: time 0.00133/1.308, allocations: 231.3 kB / 0.7899 GB, free: 2.723 MB / 0.5763 GB Notification: Performance of NFEvalConstants.evaluate: time 0.006421/1.315, allocations: 1.489 MB / 0.7914 GB, free: 2.711 MB / 0.5763 GB Notification: Performance of NFSimplifyModel.simplify: time 0.004114/1.319, allocations: 1.087 MB / 0.7924 GB, free: 2.613 MB / 0.5763 GB Notification: Performance of NFPackage.collectConstants: time 0.001101/1.32, allocations: 107.6 kB / 0.7925 GB, free: 2.613 MB / 0.5763 GB Notification: Performance of NFFlatten.collectFunctions: time 0.007243/1.327, allocations: 1.565 MB / 0.7941 GB, free: 2.57 MB / 0.5763 GB Notification: Performance of NFScalarize.scalarize: time 0.0008037/1.328, allocations: 341.2 kB / 0.7944 GB, free: 2.496 MB / 0.5763 GB Notification: Performance of NFVerifyModel.verify: time 0.001731/1.33, allocations: 0.6467 MB / 0.795 GB, free: 2.289 MB / 0.5763 GB Notification: Performance of NFConvertDAE.convert: time 0.007562/1.337, allocations: 2.479 MB / 0.7974 GB, free: 1.855 MB / 0.5763 GB Notification: Performance of FrontEnd - DAE generated: time 1.15e-05/1.337, allocations: 0.7188 kB / 0.7974 GB, free: 1.855 MB / 0.5763 GB Notification: Performance of FrontEnd: time 4.899e-06/1.337, allocations: 0 / 0.7974 GB, free: 1.855 MB / 0.5763 GB Notification: Performance of Transformations before backend: time 4.262e-05/1.338, allocations: 0.8125 kB / 0.7974 GB, free: 1.855 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: 266 * Number of variables: 266 Notification: Performance of Generate backend data structure: time 0.005123/1.343, allocations: 2.094 MB / 0.7995 GB, free: 16.8 MB / 0.5919 GB Notification: Performance of prepare preOptimizeDAE: time 8.183e-05/1.343, allocations: 8.719 kB / 0.7995 GB, free: 16.8 MB / 0.5919 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.000226/1.343, allocations: 159 kB / 0.7997 GB, free: 16.76 MB / 0.5919 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0006514/1.344, allocations: 230.5 kB / 0.7999 GB, free: 16.65 MB / 0.5919 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.002716/1.346, allocations: 1.136 MB / 0.801 GB, free: 16.26 MB / 0.5919 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 8.977e-05/1.346, allocations: 82.88 kB / 0.8011 GB, free: 16.25 MB / 0.5919 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0002081/1.347, allocations: 120 kB / 0.8012 GB, free: 16.24 MB / 0.5919 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.002597/1.349, allocations: 1.231 MB / 0.8024 GB, free: 15.99 MB / 0.5919 GB Notification: Performance of preOpt findStateOrder (simulation): time 3.357e-05/1.349, allocations: 3.094 kB / 0.8024 GB, free: 15.99 MB / 0.5919 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001438/1.349, allocations: 45.94 kB / 0.8024 GB, free: 15.99 MB / 0.5919 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.386e-05/1.349, allocations: 24.66 kB / 0.8024 GB, free: 15.99 MB / 0.5919 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001961/1.351, allocations: 1.091 MB / 0.8035 GB, free: 15.98 MB / 0.5919 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.00727/1.359, allocations: 3.876 MB / 0.8073 GB, free: 14.46 MB / 0.5919 GB Notification: Performance of preOpt comSubExp (simulation): time 0.001623/1.36, allocations: 0.7031 MB / 0.808 GB, free: 14.38 MB / 0.5919 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0007118/1.361, allocations: 391.8 kB / 0.8084 GB, free: 14.36 MB / 0.5919 GB Notification: Performance of preOpt evalFunc (simulation): time 0.00412/1.365, allocations: 1.529 MB / 0.8099 GB, free: 13.46 MB / 0.5919 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 5.527e-05/1.365, allocations: 51.64 kB / 0.8099 GB, free: 13.41 MB / 0.5919 GB Notification: Performance of pre-optimization done (n=108): time 3.447e-06/1.365, allocations: 0.9375 kB / 0.8099 GB, free: 13.41 MB / 0.5919 GB Notification: Performance of matching and sorting (n=108): time 0.0039/1.369, allocations: 1.451 MB / 0.8113 GB, free: 12.84 MB / 0.5919 GB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001188/1.369, allocations: 119 kB / 0.8114 GB, free: 12.71 MB / 0.5919 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.00226/1.371, allocations: 1.297 MB / 0.8127 GB, free: 12.23 MB / 0.5919 GB Notification: Performance of collectPreVariables (initialization): time 9.791e-05/1.372, allocations: 44.3 kB / 0.8127 GB, free: 12.18 MB / 0.5919 GB Notification: Performance of collectInitialEqns (initialization): time 0.0007727/1.372, allocations: 0.6284 MB / 0.8134 GB, free: 11.68 MB / 0.5919 GB Notification: Performance of collectInitialBindings (initialization): time 0.0003957/1.373, allocations: 394.9 kB / 0.8137 GB, free: 11.38 MB / 0.5919 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0003477/1.373, allocations: 199.8 kB / 0.8139 GB, free: 11.28 MB / 0.5919 GB Notification: Performance of setup shared object (initialization): time 0.0002773/1.373, allocations: 346.2 kB / 0.8143 GB, free: 10.95 MB / 0.5919 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0006097/1.374, allocations: 293.8 kB / 0.8145 GB, free: 10.85 MB / 0.5919 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0008451/1.375, allocations: 0.5062 MB / 0.815 GB, free: 10.5 MB / 0.5919 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.001583/1.376, allocations: 0.7945 MB / 0.8158 GB, free: 10.05 MB / 0.5919 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 8.796e-06/1.376, allocations: 2.625 kB / 0.8158 GB, free: 10.05 MB / 0.5919 GB Notification: Performance of matching and sorting (n=127) (initialization): time 0.003011/1.379, allocations: 1.176 MB / 0.817 GB, free: 9.551 MB / 0.5919 GB Notification: Performance of prepare postOptimizeDAE: time 3.156e-05/1.379, allocations: 6.734 kB / 0.817 GB, free: 9.551 MB / 0.5919 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.65e-05/1.379, allocations: 3.281 kB / 0.817 GB, free: 9.551 MB / 0.5919 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.0007513/1.38, allocations: 156.5 kB / 0.8171 GB, free: 9.488 MB / 0.5919 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0008048/1.381, allocations: 214.7 kB / 0.8173 GB, free: 9.473 MB / 0.5919 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.007891/1.389, allocations: 6.722 MB / 0.8239 GB, free: 2.938 MB / 0.5919 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001606/1.391, allocations: 105.5 kB / 0.824 GB, free: 2.859 MB / 0.5919 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001512/1.391, allocations: 45.19 kB / 0.824 GB, free: 2.852 MB / 0.5919 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 16 * Number of states: 0 () * Number of discrete variables: 0 () * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (117): * Single equations (assignments): 112 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 5 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 5 systems {(1,2,100.0%), (1,2,100.0%), (1,2,100.0%), (1,2,100.0%), (1,2,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of prepare postOptimizeDAE: time 0.0008866/1.392, allocations: 315.6 kB / 0.8243 GB, free: 2.637 MB / 0.5919 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0004228/1.392, allocations: 174.6 kB / 0.8245 GB, free: 2.543 MB / 0.5919 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.003666/1.396, allocations: 1.693 MB / 0.8261 GB, free: 1.66 MB / 0.5919 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 8.957e-06/1.396, allocations: 6.5 kB / 0.8262 GB, free: 1.66 MB / 0.5919 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.008e-05/1.396, allocations: 5 kB / 0.8262 GB, free: 1.66 MB / 0.5919 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.456e-05/1.396, allocations: 6.688 kB / 0.8262 GB, free: 1.66 MB / 0.5919 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.004502/1.4, allocations: 2.076 MB / 0.8282 GB, free: 0.5156 MB / 0.5919 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.352e-05/1.4, allocations: 6.016 kB / 0.8282 GB, free: 0.5156 MB / 0.5919 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0005392/1.401, allocations: 119.4 kB / 0.8283 GB, free: 0.5117 MB / 0.5919 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.0005967/1.401, allocations: 164.6 kB / 0.8285 GB, free: 460 kB / 0.5919 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 8.675e-05/1.401, allocations: 30.59 kB / 0.8285 GB, free: 448 kB / 0.5919 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.008848/1.41, allocations: 6.719 MB / 0.8351 GB, free: 9.902 MB / 0.6075 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 6.913e-06/1.41, allocations: 2.844 kB / 0.8351 GB, free: 9.902 MB / 0.6075 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.003841/1.414, allocations: 1.563 MB / 0.8366 GB, free: 8.961 MB / 0.6075 GB Notification: Performance of postOpt removeConstants (simulation): time 0.001049/1.415, allocations: 256.5 kB / 0.8368 GB, free: 8.809 MB / 0.6075 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0002813/1.415, allocations: 35.44 kB / 0.8369 GB, free: 8.785 MB / 0.6075 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0006495/1.416, allocations: 22.5 kB / 0.8369 GB, free: 8.773 MB / 0.6075 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002677/1.416, allocations: 77.81 kB / 0.837 GB, free: 8.758 MB / 0.6075 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 8.468e-05/1.416, allocations: 33.36 kB / 0.837 GB, free: 8.754 MB / 0.6075 GB Notification: Performance of sorting global known variables: time 0.00205/1.418, allocations: 1.002 MB / 0.838 GB, free: 8.254 MB / 0.6075 GB Notification: Performance of sort global known variables: time 8e-08/1.418, allocations: 0 / 0.838 GB, free: 8.254 MB / 0.6075 GB Notification: Performance of remove unused functions: time 0.002723/1.421, allocations: 442.1 kB / 0.8384 GB, free: 8.148 MB / 0.6075 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 14 * Number of states: 5 (flowResistance1.m_flow,flowResistance.m_flow,basicControlValve.m_flow,specificValveType.m_flow,tanValve.m_flow) * Number of discrete variables: 0 () * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (70): * Single equations (assignments): 65 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 5 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 5 systems {(1,2,100.0%), (1,2,100.0%), (1,2,100.0%), (1,2,100.0%), (1,2,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of Backend phase and start with SimCode phase: time 0.006429/1.428, allocations: 2.736 MB / 0.8411 GB, free: 6.434 MB / 0.6075 GB Notification: Performance of simCode: created initialization part: time 0.003288/1.431, allocations: 1.288 MB / 0.8423 GB, free: 5.547 MB / 0.6075 GB Notification: Performance of simCode: created event and clocks part: time 1.505e-05/1.431, allocations: 0.8125 kB / 0.8423 GB, free: 5.547 MB / 0.6075 GB Notification: Performance of simCode: created simulation system equations: time 0.001708/1.433, allocations: 0.9018 MB / 0.8432 GB, free: 4.816 MB / 0.6075 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.003285/1.436, allocations: 493.4 kB / 0.8437 GB, free: 4.566 MB / 0.6075 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.02211/1.458, allocations: 10.97 MB / 0.8544 GB, free: 11.24 MB / 0.6231 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.00107/1.459, allocations: 0.6284 MB / 0.855 GB, free: 10.57 MB / 0.6231 GB Notification: Performance of simCode: alias equations: time 0.001387/1.461, allocations: 295.4 kB / 0.8553 GB, free: 10.33 MB / 0.6231 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001015/1.462, allocations: 0.6164 MB / 0.8559 GB, free: 9.715 MB / 0.6231 GB Notification: Performance of SimCode: time 2.675e-06/1.462, allocations: 0 / 0.8559 GB, free: 9.715 MB / 0.6231 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.129/1.591, allocations: 41.66 MB / 0.8966 GB, free: 496 kB / 0.6544 GB Notification: Performance of buildModelFMU: Generate platform static: time 15.74/17.33, allocations: 11.78 kB / 0.8966 GB, free: 484 kB / 0.6544 GB " [Timeout remaining time 642] (rm -f ThermofluidStream_ThermofluidStream.Undirected.Interfaces.Tests.Test_p_out_clipping.pipe ; mkfifo ThermofluidStream_ThermofluidStream.Undirected.Interfaces.Tests.Test_p_out_clipping.pipe ; head -c 1048576 < ThermofluidStream_ThermofluidStream.Undirected.Interfaces.Tests.Test_p_out_clipping.pipe >> ../files/ThermofluidStream_ThermofluidStream.Undirected.Interfaces.Tests.Test_p_out_clipping.sim & python3 -m fmpy simulate --output-file ThermofluidStream_ThermofluidStream.Undirected.Interfaces.Tests.Test_p_out_clipping_res.csv --start-time 0 --stop-time 1 --timeout 1200 --relative-tolerance 1e-06 --interface-type ModelExchange --solver CVode --output-interval 0.001 ThermofluidStream_ThermofluidStream_Undirected_Interfaces_Tests_Test_p_out_clipping.fmu > ThermofluidStream_ThermofluidStream.Undirected.Interfaces.Tests.Test_p_out_clipping.pipe 2>&1) [Timeout 1260.0] diffSimulationResults("ThermofluidStream_ThermofluidStream.Undirected.Interfaces.Tests.Test_p_out_clipping_res.csv","/mnt/ReferenceFiles/ThermofluidStream-main-regression/ReferenceData/ThermofluidStream.Undirected.Interfaces.Tests.Test_p_out_clipping_ref.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/ThermofluidStream_ThermofluidStream.Undirected.Interfaces.Tests.Test_p_out_clipping.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) [Timeout 660] "Error: Could not read variable Time in file ThermofluidStream_ThermofluidStream.Undirected.Interfaces.Tests.Test_p_out_clipping_res.csv. Warning: Get data of variable Time from file ThermofluidStream_ThermofluidStream.Undirected.Interfaces.Tests.Test_p_out_clipping_res.csv failed! " [Timeout remaining time 660] Reference file matches [Calling sys.exit(0), Time elapsed: 22.46480343909934]