Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr ThermofluidStream_dev_ThermofluidStream.FlowControl.Tests.SpecificValveType.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.FlowControl.Tests.SpecificValveType,fileNamePrefix="ThermofluidStream_dev_ThermofluidStream_FlowControl_Tests_SpecificValveType",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(ThermofluidStream.FlowControl.Tests.SpecificValveType,fileNamePrefix="ThermofluidStream_dev_ThermofluidStream_FlowControl_Tests_SpecificValveType",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.008238/0.008237, allocations: 99.69 kB / 15.73 MB, free: 6.445 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001597/0.001597, allocations: 191.5 kB / 16.67 MB, free: 6.348 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.846/1.846, allocations: 222.9 MB / 240.4 MB, free: 4.336 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ThermofluidStream 1.1.0-main/package.mo): time 1.024/1.024, allocations: 93.72 MB / 384.3 MB, free: 6.906 MB / 318.1 MB Notification: Performance of FrontEnd - loaded program: time 0.002524/0.002524, allocations: 83.86 kB / 0.52 GB, free: 6.297 MB / 398.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.197/0.1995, allocations: 68.27 MB / 0.5866 GB, free: 1.945 MB / 462.1 MB Notification: Performance of NFInst.instantiate(ThermofluidStream.FlowControl.Tests.SpecificValveType): time 0.496/0.6956, allocations: 37 MB / 0.6228 GB, free: 15.41 MB / 494.1 MB Notification: Performance of NFInst.instExpressions: time 0.02318/0.7188, allocations: 14.88 MB / 0.6373 GB, free: 4.816 MB / 494.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.002656/0.7216, allocations: 51.62 kB / 0.6373 GB, free: 4.793 MB / 494.1 MB Notification: Performance of NFTyping.typeComponents: time 0.00284/0.7244, allocations: 0.9473 MB / 0.6383 GB, free: 4.387 MB / 494.1 MB Notification: Performance of NFTyping.typeBindings: time 0.005586/0.7301, allocations: 1.315 MB / 0.6395 GB, free: 3.336 MB / 494.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.004164/0.7343, allocations: 1.026 MB / 0.6406 GB, free: 2.543 MB / 494.1 MB Notification: Performance of NFFlatten.flatten: time 0.004224/0.7385, allocations: 1.924 MB / 0.6424 GB, free: 1.402 MB / 494.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0007339/0.7393, allocations: 341 kB / 0.6428 GB, free: 1.211 MB / 494.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.002241/0.7415, allocations: 0.9468 MB / 0.6437 GB, free: 0.7109 MB / 494.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.00114/0.7427, allocations: 0.6939 MB / 0.6444 GB, free: 264 kB / 494.1 MB Notification: Performance of NFPackage.collectConstants: time 0.000179/0.7429, allocations: 89.41 kB / 0.6444 GB, free: 264 kB / 494.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.003796/0.7467, allocations: 0.8605 MB / 0.6453 GB, free: 15.92 MB / 0.4981 GB Notification: Performance of NFScalarize.scalarize: time 0.000547/0.7472, allocations: 327.9 kB / 0.6456 GB, free: 15.68 MB / 0.4981 GB Notification: Performance of NFVerifyModel.verify: time 0.0009659/0.7482, allocations: 0.7206 MB / 0.6463 GB, free: 15.17 MB / 0.4981 GB Notification: Performance of NFConvertDAE.convert: time 0.006715/0.755, allocations: 2.108 MB / 0.6484 GB, free: 13.83 MB / 0.4981 GB Notification: Performance of FrontEnd - DAE generated: time 8.887e-06/0.755, allocations: 4 kB / 0.6484 GB, free: 13.83 MB / 0.4981 GB Notification: Performance of FrontEnd: time 1.482e-06/0.755, allocations: 3.938 kB / 0.6484 GB, free: 13.82 MB / 0.4981 GB Notification: Performance of Transformations before backend: time 3.927e-05/0.7551, allocations: 5.375 kB / 0.6484 GB, free: 13.82 MB / 0.4981 GB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 202 * Number of variables: 202 Notification: Performance of Generate backend data structure: time 0.005049/0.7601, allocations: 2.085 MB / 0.6504 GB, free: 12.2 MB / 0.4981 GB Notification: Performance of prepare preOptimizeDAE: time 4.747e-05/0.7602, allocations: 9.781 kB / 0.6504 GB, free: 12.2 MB / 0.4981 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001832/0.7604, allocations: 128.7 kB / 0.6505 GB, free: 12.09 MB / 0.4981 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0004929/0.7609, allocations: 195.4 kB / 0.6507 GB, free: 11.99 MB / 0.4981 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.002703/0.7636, allocations: 1.214 MB / 0.6519 GB, free: 11.07 MB / 0.4981 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 7.894e-05/0.7637, allocations: 63.72 kB / 0.652 GB, free: 11.04 MB / 0.4981 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001586/0.7639, allocations: 89.44 kB / 0.6521 GB, free: 11.01 MB / 0.4981 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.00191/0.7658, allocations: 0.8552 MB / 0.6529 GB, free: 10.5 MB / 0.4981 GB Notification: Performance of preOpt findStateOrder (simulation): time 2.341e-05/0.7658, allocations: 1.094 kB / 0.6529 GB, free: 10.5 MB / 0.4981 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 6.997e-05/0.7659, allocations: 30.53 kB / 0.6529 GB, free: 10.47 MB / 0.4981 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.51e-05/0.7659, allocations: 27.12 kB / 0.6529 GB, free: 10.46 MB / 0.4981 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001528/0.7675, allocations: 0.7915 MB / 0.6537 GB, free: 10.08 MB / 0.4981 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.006824/0.7743, allocations: 3.604 MB / 0.6572 GB, free: 6.891 MB / 0.4981 GB Notification: Performance of preOpt comSubExp (simulation): time 0.001405/0.7758, allocations: 0.6336 MB / 0.6579 GB, free: 6.555 MB / 0.4981 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.000747/0.7765, allocations: 339.4 kB / 0.6582 GB, free: 6.383 MB / 0.4981 GB Notification: Performance of preOpt evalFunc (simulation): time 0.004924/0.7815, allocations: 3.403 MB / 0.6615 GB, free: 2.754 MB / 0.4981 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.051e-05/0.7815, allocations: 39.31 kB / 0.6615 GB, free: 2.711 MB / 0.4981 GB Notification: Performance of pre-optimization done (n=73): time 2.614e-06/0.7815, allocations: 0 / 0.6615 GB, free: 2.711 MB / 0.4981 GB Notification: Performance of matching and sorting (n=73): time 0.00363/0.7852, allocations: 1.247 MB / 0.6628 GB, free: 1.957 MB / 0.4981 GB Notification: Performance of inlineWhenForInitialization (initialization): time 9.189e-05/0.7853, allocations: 63.03 kB / 0.6628 GB, free: 1.891 MB / 0.4981 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.002327/0.7876, allocations: 1.33 MB / 0.6641 GB, free: 1.191 MB / 0.4981 GB Notification: Performance of collectPreVariables (initialization): time 7.697e-05/0.7877, allocations: 38.3 kB / 0.6642 GB, free: 1.152 MB / 0.4981 GB Notification: Performance of collectInitialEqns (initialization): time 0.0007921/0.7885, allocations: 0.6194 MB / 0.6648 GB, free: 0.6016 MB / 0.4981 GB Notification: Performance of collectInitialBindings (initialization): time 0.0002839/0.7888, allocations: 269.4 kB / 0.665 GB, free: 372 kB / 0.4981 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002748/0.7891, allocations: 140.9 kB / 0.6652 GB, free: 280 kB / 0.4981 GB Notification: Performance of setup shared object (initialization): time 0.000303/0.7894, allocations: 340.2 kB / 0.6655 GB, free: 15.94 MB / 0.5137 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.000453/0.7899, allocations: 213.5 kB / 0.6657 GB, free: 15.84 MB / 0.5137 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0005467/0.7904, allocations: 307.5 kB / 0.666 GB, free: 15.64 MB / 0.5137 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.001177/0.7916, allocations: 0.5404 MB / 0.6665 GB, free: 15.33 MB / 0.5137 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.759e-06/0.7916, allocations: 1.375 kB / 0.6665 GB, free: 15.33 MB / 0.5137 GB Notification: Performance of matching and sorting (n=83) (initialization): time 0.002225/0.7938, allocations: 0.8327 MB / 0.6673 GB, free: 14.88 MB / 0.5137 GB Notification: Performance of prepare postOptimizeDAE: time 2.726e-05/0.7939, allocations: 14.25 kB / 0.6673 GB, free: 14.88 MB / 0.5137 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.098e-05/0.7939, allocations: 5.734 kB / 0.6673 GB, free: 14.87 MB / 0.5137 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.0005515/0.7945, allocations: 105.2 kB / 0.6674 GB, free: 14.81 MB / 0.5137 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0005489/0.795, allocations: 139.3 kB / 0.6676 GB, free: 14.78 MB / 0.5137 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.003673/0.7987, allocations: 3.21 MB / 0.6707 GB, free: 11.44 MB / 0.5137 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001047/0.7998, allocations: 67.5 kB / 0.6708 GB, free: 11.37 MB / 0.5137 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 7.844e-05/0.7999, allocations: 32.05 kB / 0.6708 GB, free: 11.34 MB / 0.5137 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 7 * 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 (75): * Single equations (assignments): 73 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 2 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 2 systems {(1,4,100.0%), (1,4,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of prepare postOptimizeDAE: time 0.0006859/0.8006, allocations: 330.2 kB / 0.6711 GB, free: 11.01 MB / 0.5137 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0003034/0.8009, allocations: 162.9 kB / 0.6713 GB, free: 10.85 MB / 0.5137 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.002362/0.8032, allocations: 1.14 MB / 0.6724 GB, free: 9.691 MB / 0.5137 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 9.979e-06/0.8033, allocations: 8 kB / 0.6724 GB, free: 9.684 MB / 0.5137 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.687e-06/0.8033, allocations: 0 / 0.6724 GB, free: 9.684 MB / 0.5137 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.4e-05/0.8033, allocations: 3.984 kB / 0.6724 GB, free: 9.68 MB / 0.5137 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.003802/0.8071, allocations: 2.015 MB / 0.6744 GB, free: 7.586 MB / 0.5137 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 8.676e-06/0.8071, allocations: 4 kB / 0.6744 GB, free: 7.582 MB / 0.5137 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0004589/0.8076, allocations: 119.8 kB / 0.6745 GB, free: 7.465 MB / 0.5137 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.00054/0.8081, allocations: 113.7 kB / 0.6746 GB, free: 7.348 MB / 0.5137 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 5.359e-05/0.8082, allocations: 23.98 kB / 0.6746 GB, free: 7.324 MB / 0.5137 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.00336/0.8116, allocations: 3.215 MB / 0.6777 GB, free: 3.828 MB / 0.5137 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.585e-06/0.8116, allocations: 0 / 0.6777 GB, free: 3.828 MB / 0.5137 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002668/0.8143, allocations: 1.241 MB / 0.679 GB, free: 2.547 MB / 0.5137 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0007112/0.815, allocations: 347.8 kB / 0.6793 GB, free: 2.188 MB / 0.5137 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001585/0.8152, allocations: 23.94 kB / 0.6793 GB, free: 2.164 MB / 0.5137 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0006016/0.8158, allocations: 23.92 kB / 0.6793 GB, free: 2.141 MB / 0.5137 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001544/0.8159, allocations: 60.45 kB / 0.6794 GB, free: 2.082 MB / 0.5137 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 6.146e-05/0.816, allocations: 31.98 kB / 0.6794 GB, free: 2.051 MB / 0.5137 GB Notification: Performance of sorting global known variables: time 0.0017/0.8177, allocations: 0.9384 MB / 0.6803 GB, free: 1.117 MB / 0.5137 GB Notification: Performance of sort global known variables: time 1.2e-07/0.8177, allocations: 0 / 0.6803 GB, free: 1.117 MB / 0.5137 GB Notification: Performance of remove unused functions: time 0.001395/0.8191, allocations: 435 kB / 0.6808 GB, free: 0.6914 MB / 0.5137 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 5 * Number of states: 2 (flowResistance6.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 (67): * 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: 2 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 2 systems {(1,4,100.0%), (1,4,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of Backend phase and start with SimCode phase: time 0.005362/0.8245, allocations: 2.435 MB / 0.6831 GB, free: 14.35 MB / 0.5294 GB Notification: Performance of simCode: created initialization part: time 0.001899/0.8264, allocations: 0.8269 MB / 0.6839 GB, free: 13.5 MB / 0.5294 GB Notification: Performance of simCode: created event and clocks part: time 5.16e-06/0.8264, allocations: 4 kB / 0.6839 GB, free: 13.49 MB / 0.5294 GB Notification: Performance of simCode: created simulation system equations: time 0.0009919/0.8274, allocations: 0.5677 MB / 0.6845 GB, free: 12.9 MB / 0.5294 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002593/0.83, allocations: 411.6 kB / 0.6849 GB, free: 12.51 MB / 0.5294 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01789/0.8479, allocations: 9.126 MB / 0.6938 GB, free: 3.176 MB / 0.5294 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001302/0.8493, allocations: 1.204 MB / 0.695 GB, free: 1.938 MB / 0.5294 GB Notification: Performance of simCode: alias equations: time 0.001186/0.8505, allocations: 241.7 kB / 0.6952 GB, free: 1.719 MB / 0.5294 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0009345/0.8515, allocations: 0.5578 MB / 0.6958 GB, free: 1.16 MB / 0.5294 GB Notification: Performance of SimCode: time 1.853e-06/0.8515, allocations: 0 / 0.6958 GB, free: 1.16 MB / 0.5294 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.09576/0.9472, allocations: 34.33 MB / 0.7293 GB, free: 15.07 MB / 0.5762 GB Notification: Performance of buildModelFMU: Generate platform static: time 14.09/15.04, allocations: 11.86 kB / 0.7293 GB, free: 15.06 MB / 0.5762 GB (rm -f ThermofluidStream_dev_ThermofluidStream.FlowControl.Tests.SpecificValveType.pipe ; mkfifo ThermofluidStream_dev_ThermofluidStream.FlowControl.Tests.SpecificValveType.pipe ; head -c 1048576 < ThermofluidStream_dev_ThermofluidStream.FlowControl.Tests.SpecificValveType.pipe >> ../files/ThermofluidStream_dev_ThermofluidStream.FlowControl.Tests.SpecificValveType.sim & python3 -m fmpy simulate --output-file ThermofluidStream_dev_ThermofluidStream.FlowControl.Tests.SpecificValveType_res.csv --start-time 0 --stop-time 20 --timeout 1200 --relative-tolerance 1e-06 --interface-type ModelExchange --solver CVode --output-interval 0.02 ThermofluidStream_dev_ThermofluidStream_FlowControl_Tests_SpecificValveType.fmu > ThermofluidStream_dev_ThermofluidStream.FlowControl.Tests.SpecificValveType.pipe 2>&1) diffSimulationResults("ThermofluidStream_dev_ThermofluidStream.FlowControl.Tests.SpecificValveType_res.csv","/mnt/ReferenceFiles/ThermofluidStream-main-regression/ReferenceData/ThermofluidStream.FlowControl.Tests.SpecificValveType_ref.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/ThermofluidStream_dev_ThermofluidStream.FlowControl.Tests.SpecificValveType.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches