Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr ThermofluidStream_dev_ThermofluidStream.FlowControl.Tests.TanValve.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.001457/0.001457, allocations: 110.6 kB / 18.94 MB, free: 2.789 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.001526/0.001526, allocations: 219.5 kB / 22.26 MB, free: 5.219 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.486/1.486, allocations: 230.6 MB / 256 MB, free: 8.023 MB / 206.1 MB " [Timeout remaining time 178] 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 0.8504/0.8504, allocations: 100.3 MB / 412.7 MB, free: 3.699 MB / 318.1 MB " [Timeout remaining time 179] 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.FlowControl.Tests.TanValve,fileNamePrefix="ThermofluidStream_dev_ThermofluidStream_FlowControl_Tests_TanValve",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(ThermofluidStream.FlowControl.Tests.TanValve,fileNamePrefix="ThermofluidStream_dev_ThermofluidStream_FlowControl_Tests_TanValve",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.002494/0.002494, allocations: 87.45 kB / 0.5633 GB, free: 35.75 MB / 446.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1707/0.1732, allocations: 74.46 MB / 0.636 GB, free: 7.695 MB / 478.1 MB Notification: Performance of NFInst.instantiate(ThermofluidStream.FlowControl.Tests.TanValve): time 0.6355/0.8087, allocations: 165.5 MB / 0.7976 GB, free: 14.78 MB / 0.5919 GB Notification: Performance of NFInst.instExpressions: time 0.0153/0.824, allocations: 13.08 MB / 0.8103 GB, free: 13.81 MB / 0.5919 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.001793/0.8258, allocations: 59.12 kB / 0.8104 GB, free: 13.77 MB / 0.5919 GB Notification: Performance of NFTyping.typeComponents: time 0.002031/0.8278, allocations: 0.5862 MB / 0.811 GB, free: 13.59 MB / 0.5919 GB Notification: Performance of NFTyping.typeBindings: time 0.003326/0.8311, allocations: 0.8974 MB / 0.8118 GB, free: 13.29 MB / 0.5919 GB Notification: Performance of NFTyping.typeClassSections: time 0.002909/0.8341, allocations: 0.8344 MB / 0.8127 GB, free: 13.15 MB / 0.5919 GB Notification: Performance of NFFlatten.flatten: time 0.002454/0.8365, allocations: 1.369 MB / 0.814 GB, free: 12.76 MB / 0.5919 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0005321/0.837, allocations: 205.5 kB / 0.8142 GB, free: 12.7 MB / 0.5919 GB Notification: Performance of NFEvalConstants.evaluate: time 0.001156/0.8382, allocations: 0.5887 MB / 0.8148 GB, free: 12.6 MB / 0.5919 GB Notification: Performance of NFSimplifyModel.simplify: time 0.001027/0.8392, allocations: 0.6781 MB / 0.8154 GB, free: 12.39 MB / 0.5919 GB Notification: Performance of NFPackage.collectConstants: time 0.0001278/0.8394, allocations: 75.66 kB / 0.8155 GB, free: 12.39 MB / 0.5919 GB Notification: Performance of NFFlatten.collectFunctions: time 0.003747/0.8431, allocations: 1.415 MB / 0.8169 GB, free: 11.91 MB / 0.5919 GB Notification: Performance of NFScalarize.scalarize: time 0.0002524/0.8434, allocations: 196.6 kB / 0.8171 GB, free: 11.75 MB / 0.5919 GB Notification: Performance of NFVerifyModel.verify: time 0.0006592/0.844, allocations: 0.5125 MB / 0.8176 GB, free: 11.4 MB / 0.5919 GB Notification: Performance of NFConvertDAE.convert: time 0.004096/0.8481, allocations: 1.581 MB / 0.8191 GB, free: 10.5 MB / 0.5919 GB Notification: Performance of FrontEnd - DAE generated: time 6.763e-06/0.8481, allocations: 2.406 kB / 0.8191 GB, free: 10.5 MB / 0.5919 GB Notification: Performance of FrontEnd: time 1.994e-06/0.8481, allocations: 0 / 0.8191 GB, free: 10.5 MB / 0.5919 GB Notification: Performance of Transformations before backend: time 2.828e-05/0.8481, allocations: 7.922 kB / 0.8191 GB, free: 10.49 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: 174 * Number of variables: 174 Notification: Performance of Generate backend data structure: time 0.002682/0.8508, allocations: 1.388 MB / 0.8205 GB, free: 9.449 MB / 0.5919 GB Notification: Performance of prepare preOptimizeDAE: time 4.817e-05/0.8509, allocations: 8.281 kB / 0.8205 GB, free: 9.449 MB / 0.5919 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001721/0.851, allocations: 117.7 kB / 0.8206 GB, free: 9.348 MB / 0.5919 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0002359/0.8513, allocations: 126.6 kB / 0.8207 GB, free: 9.281 MB / 0.5919 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001364/0.8526, allocations: 0.7071 MB / 0.8214 GB, free: 8.77 MB / 0.5919 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 5.063e-05/0.8527, allocations: 53.91 kB / 0.8215 GB, free: 8.742 MB / 0.5919 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001038/0.8528, allocations: 73.31 kB / 0.8215 GB, free: 8.715 MB / 0.5919 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001325/0.8541, allocations: 0.7419 MB / 0.8223 GB, free: 8.277 MB / 0.5919 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.92e-05/0.8541, allocations: 0 / 0.8223 GB, free: 8.277 MB / 0.5919 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 5.062e-05/0.8542, allocations: 25.12 kB / 0.8223 GB, free: 8.258 MB / 0.5919 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.371e-05/0.8542, allocations: 17.91 kB / 0.8223 GB, free: 8.258 MB / 0.5919 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001075/0.8553, allocations: 0.6518 MB / 0.8229 GB, free: 7.945 MB / 0.5919 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.004145/0.8594, allocations: 3.068 MB / 0.8259 GB, free: 5.148 MB / 0.5919 GB Notification: Performance of preOpt comSubExp (simulation): time 0.001206/0.8606, allocations: 0.529 MB / 0.8265 GB, free: 4.855 MB / 0.5919 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0004067/0.861, allocations: 228.1 kB / 0.8267 GB, free: 4.742 MB / 0.5919 GB Notification: Performance of preOpt evalFunc (simulation): time 0.001925/0.863, allocations: 0.9989 MB / 0.8276 GB, free: 3.98 MB / 0.5919 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.857e-05/0.863, allocations: 38.12 kB / 0.8277 GB, free: 3.938 MB / 0.5919 GB Notification: Performance of pre-optimization done (n=55): time 1.974e-06/0.863, allocations: 0 / 0.8277 GB, free: 3.938 MB / 0.5919 GB Notification: Performance of matching and sorting (n=56): time 0.003694/0.8667, allocations: 1.56 MB / 0.8292 GB, free: 3.004 MB / 0.5919 GB Notification: Performance of inlineWhenForInitialization (initialization): time 8.145e-05/0.8668, allocations: 61.62 kB / 0.8293 GB, free: 2.938 MB / 0.5919 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0009867/0.8678, allocations: 0.6964 MB / 0.8299 GB, free: 2.543 MB / 0.5919 GB Notification: Performance of collectPreVariables (initialization): time 4.779e-05/0.8678, allocations: 32.27 kB / 0.83 GB, free: 2.508 MB / 0.5919 GB Notification: Performance of collectInitialEqns (initialization): time 0.0003765/0.8682, allocations: 451.6 kB / 0.8304 GB, free: 2.109 MB / 0.5919 GB Notification: Performance of collectInitialBindings (initialization): time 0.0001774/0.8684, allocations: 202.2 kB / 0.8306 GB, free: 1.938 MB / 0.5919 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001674/0.8685, allocations: 100.3 kB / 0.8307 GB, free: 1.871 MB / 0.5919 GB Notification: Performance of setup shared object (initialization): time 0.0001562/0.8687, allocations: 327 kB / 0.831 GB, free: 1.551 MB / 0.5919 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003282/0.869, allocations: 161.7 kB / 0.8312 GB, free: 1.473 MB / 0.5919 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0004404/0.8695, allocations: 230.1 kB / 0.8314 GB, free: 1.324 MB / 0.5919 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0008062/0.8703, allocations: 434.2 kB / 0.8318 GB, free: 1.07 MB / 0.5919 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.663e-06/0.8703, allocations: 0 / 0.8318 GB, free: 1.07 MB / 0.5919 GB Notification: Performance of matching and sorting (n=61) (initialization): time 0.001261/0.8715, allocations: 0.6435 MB / 0.8324 GB, free: 0.7227 MB / 0.5919 GB Notification: Performance of prepare postOptimizeDAE: time 2.275e-05/0.8716, allocations: 4.344 kB / 0.8324 GB, free: 0.7227 MB / 0.5919 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.07e-05/0.8716, allocations: 3.031 kB / 0.8324 GB, free: 0.7227 MB / 0.5919 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.0004949/0.8721, allocations: 108.8 kB / 0.8325 GB, free: 0.668 MB / 0.5919 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003704/0.8724, allocations: 104.9 kB / 0.8326 GB, free: 0.6367 MB / 0.5919 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002538/0.875, allocations: 1.939 MB / 0.8345 GB, free: 14.96 MB / 0.6075 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0004389/0.8754, allocations: 22.2 kB / 0.8345 GB, free: 14.95 MB / 0.6075 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.663e-05/0.8755, allocations: 22.75 kB / 0.8346 GB, free: 14.94 MB / 0.6075 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 6 * 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 (51): * Single equations (assignments): 50 * Array equations: 0 * Algorithm blocks: 0 * 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 {(2,9,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of prepare postOptimizeDAE: time 0.0003916/0.8759, allocations: 208.1 kB / 0.8348 GB, free: 14.77 MB / 0.6075 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001878/0.876, allocations: 95.52 kB / 0.8349 GB, free: 14.71 MB / 0.6075 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001758/0.8778, allocations: 0.8612 MB / 0.8357 GB, free: 14.16 MB / 0.6075 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 8.937e-06/0.8778, allocations: 4.906 kB / 0.8357 GB, free: 14.16 MB / 0.6075 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.248e-06/0.8778, allocations: 2.031 kB / 0.8357 GB, free: 14.16 MB / 0.6075 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.353e-05/0.8778, allocations: 10.55 kB / 0.8357 GB, free: 14.15 MB / 0.6075 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002644/0.8805, allocations: 1.506 MB / 0.8372 GB, free: 13.1 MB / 0.6075 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.727e-06/0.8805, allocations: 0 / 0.8372 GB, free: 13.1 MB / 0.6075 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0003137/0.8808, allocations: 89.39 kB / 0.8373 GB, free: 13.08 MB / 0.6075 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.0003696/0.8812, allocations: 113.8 kB / 0.8374 GB, free: 13.02 MB / 0.6075 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.468e-05/0.8812, allocations: 27.98 kB / 0.8374 GB, free: 13 MB / 0.6075 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.002376/0.8836, allocations: 1.936 MB / 0.8393 GB, free: 11.3 MB / 0.6075 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.385e-06/0.8836, allocations: 2.75 kB / 0.8393 GB, free: 11.3 MB / 0.6075 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.00176/0.8853, allocations: 0.9864 MB / 0.8403 GB, free: 10.68 MB / 0.6075 GB Notification: Performance of postOpt removeConstants (simulation): time 0.000189/0.8855, allocations: 86.05 kB / 0.8403 GB, free: 10.62 MB / 0.6075 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 8.962e-05/0.8856, allocations: 19.55 kB / 0.8404 GB, free: 10.61 MB / 0.6075 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002893/0.8859, allocations: 11.41 kB / 0.8404 GB, free: 10.6 MB / 0.6075 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001105/0.886, allocations: 51.75 kB / 0.8404 GB, free: 10.57 MB / 0.6075 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.085e-05/0.8861, allocations: 22.7 kB / 0.8404 GB, free: 10.56 MB / 0.6075 GB Notification: Performance of sorting global known variables: time 0.0006684/0.8867, allocations: 0.5053 MB / 0.8409 GB, free: 10.27 MB / 0.6075 GB Notification: Performance of sort global known variables: time 1e-07/0.8867, allocations: 64 / 0.8409 GB, free: 10.27 MB / 0.6075 GB Notification: Performance of remove unused functions: time 0.001052/0.8878, allocations: 342.1 kB / 0.8413 GB, free: 10.18 MB / 0.6075 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 4 * Number of states: 2 (flowResistance1.inlet.m_flow,flowResistance2.inlet.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 (48): * Single equations (assignments): 47 * Array equations: 0 * Algorithm blocks: 0 * 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 {(2,9,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of Backend phase and start with SimCode phase: time 0.002721/0.8905, allocations: 1.891 MB / 0.8431 GB, free: 8.891 MB / 0.6075 GB Notification: Performance of simCode: created initialization part: time 0.001284/0.8918, allocations: 0.5977 MB / 0.8437 GB, free: 8.539 MB / 0.6075 GB Notification: Performance of simCode: created event and clocks part: time 2.605e-06/0.8918, allocations: 2.094 kB / 0.8437 GB, free: 8.539 MB / 0.6075 GB Notification: Performance of simCode: created simulation system equations: time 0.0007321/0.8925, allocations: 420.4 kB / 0.8441 GB, free: 8.273 MB / 0.6075 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001245/0.8938, allocations: 274.6 kB / 0.8444 GB, free: 8.137 MB / 0.6075 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.009787/0.9036, allocations: 6.309 MB / 0.8505 GB, free: 3.32 MB / 0.6075 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0006895/0.9042, allocations: 1.005 MB / 0.8515 GB, free: 2.289 MB / 0.6075 GB Notification: Performance of simCode: alias equations: time 0.0005423/0.9048, allocations: 153.8 kB / 0.8516 GB, free: 2.133 MB / 0.6075 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0004876/0.9053, allocations: 379.3 kB / 0.852 GB, free: 1.762 MB / 0.6075 GB Notification: Performance of SimCode: time 1.423e-06/0.9053, allocations: 0 / 0.852 GB, free: 1.762 MB / 0.6075 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.0723/0.9776, allocations: 26.28 MB / 0.8777 GB, free: 7.727 MB / 0.6387 GB Notification: Performance of buildModelFMU: Generate platform static: time 14/14.98, allocations: 3.266 kB / 0.8777 GB, free: 7.727 MB / 0.6387 GB " [Timeout remaining time 645] (rm -f ThermofluidStream_dev_ThermofluidStream.FlowControl.Tests.TanValve.pipe ; mkfifo ThermofluidStream_dev_ThermofluidStream.FlowControl.Tests.TanValve.pipe ; head -c 1048576 < ThermofluidStream_dev_ThermofluidStream.FlowControl.Tests.TanValve.pipe >> ../files/ThermofluidStream_dev_ThermofluidStream.FlowControl.Tests.TanValve.sim & python3 -m fmpy simulate --output-file ThermofluidStream_dev_ThermofluidStream.FlowControl.Tests.TanValve_res.csv --start-time 0 --stop-time 100 --timeout 1200 --relative-tolerance 1e-06 --interface-type ModelExchange --solver CVode --output-interval 0.1 ThermofluidStream_dev_ThermofluidStream_FlowControl_Tests_TanValve.fmu > ThermofluidStream_dev_ThermofluidStream.FlowControl.Tests.TanValve.pipe 2>&1) [Timeout 1260.0] diffSimulationResults("ThermofluidStream_dev_ThermofluidStream.FlowControl.Tests.TanValve_res.csv","/mnt/ReferenceFiles/ThermofluidStream-main-regression/ReferenceData/ThermofluidStream.FlowControl.Tests.TanValve_ref.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/ThermofluidStream_dev_ThermofluidStream.FlowControl.Tests.TanValve.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) [Timeout 660] "Error: Could not read variable Time in file ThermofluidStream_dev_ThermofluidStream.FlowControl.Tests.TanValve_res.csv. Warning: Get data of variable Time from file ThermofluidStream_dev_ThermofluidStream.FlowControl.Tests.TanValve_res.csv failed! Error: Could not read variable source.outlet.m_flow in file ThermofluidStream_dev_ThermofluidStream.FlowControl.Tests.TanValve_res.csv. Warning: Get data of variable source.outlet.m_flow from file ThermofluidStream_dev_ThermofluidStream.FlowControl.Tests.TanValve_res.csv failed! Error: Could not read variable tanValve.inlet.m_flow in file ThermofluidStream_dev_ThermofluidStream.FlowControl.Tests.TanValve_res.csv. Warning: Get data of variable tanValve.inlet.m_flow from file ThermofluidStream_dev_ThermofluidStream.FlowControl.Tests.TanValve_res.csv failed! " [Timeout remaining time 660] Reference file matches [Calling sys.exit(0), Time elapsed: 18.921873258997948]