Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr ThermofluidStream_ThermofluidStream.FlowControl.Tests.BasicControlValve.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.001082/0.001082, allocations: 80.44 kB / 19.17 MB, free: 0.7422 MB / 13.93 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.001013/0.001013, allocations: 170.3 kB / 22.46 MB, free: 2.105 MB / 18.57 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.091/1.091, allocations: 177.1 MB / 202.8 MB, free: 5.754 MB / 186.7 MB " [Timeout remaining time 179] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ThermofluidStream 1.3.0/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ThermofluidStream 1.3.0/package.mo): time 0.7502/0.7502, allocations: 80.18 MB / 339.4 MB, free: 7.52 MB / 314.7 MB " [Timeout remaining time 179] Using package ThermofluidStream with version 1.3.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ThermofluidStream 1.3.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.FlowControl.Tests.BasicControlValve,fileNamePrefix="ThermofluidStream_ThermofluidStream_FlowControl_Tests_BasicControlValve",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(ThermofluidStream.FlowControl.Tests.BasicControlValve,fileNamePrefix="ThermofluidStream_ThermofluidStream_FlowControl_Tests_BasicControlValve",fmuType="me",version="2.0",platforms={"static"}) [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 2.826e-06/2.826e-06, allocations: 0 / 0.4924 GB, free: 6.664 MB / 410.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 2.907e-05/3.189e-05, allocations: 6.344 kB / 0.4924 GB, free: 6.66 MB / 410.7 MB Notification: Performance of NFInst.instantiate(ThermofluidStream.FlowControl.Tests.BasicControlValve): time 0.04184/0.04187, allocations: 52.08 MB / 0.5432 GB, free: 4.242 MB / 458.7 MB Notification: Performance of NFInst.instExpressions: time 0.02102/0.06289, allocations: 17.39 MB / 0.5602 GB, free: 2.793 MB / 474.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.003017/0.06591, allocations: 107 kB / 0.5603 GB, free: 2.688 MB / 474.7 MB Notification: Performance of NFTyping.typeComponents: time 0.002247/0.06815, allocations: 0.814 MB / 0.5611 GB, free: 1.867 MB / 474.7 MB Notification: Performance of NFTyping.typeBindings: time 0.005739/0.07389, allocations: 1.885 MB / 0.563 GB, free: 15.97 MB / 490.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.004107/0.078, allocations: 1.389 MB / 0.5643 GB, free: 14.57 MB / 490.7 MB Notification: Performance of NFFlatten.flatten: time 0.003197/0.0812, allocations: 2.907 MB / 0.5671 GB, free: 11.65 MB / 490.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0003862/0.08158, allocations: 306.9 kB / 0.5674 GB, free: 11.32 MB / 490.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.001892/0.08347, allocations: 1.574 MB / 0.569 GB, free: 9.738 MB / 490.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0007314/0.08421, allocations: 0.7514 MB / 0.5697 GB, free: 8.984 MB / 490.7 MB Notification: Performance of NFPackage.collectConstants: time 0.0001356/0.08434, allocations: 128 kB / 0.5698 GB, free: 8.859 MB / 490.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.003504/0.08785, allocations: 1.158 MB / 0.571 GB, free: 7.699 MB / 490.7 MB Notification: Performance of NFScalarize.scalarize: time 0.0002366/0.08808, allocations: 358.1 kB / 0.5713 GB, free: 7.348 MB / 490.7 MB Notification: Performance of NFVerifyModel.verify: time 0.0005137/0.0886, allocations: 0.6272 MB / 0.5719 GB, free: 6.719 MB / 490.7 MB Notification: Performance of NFConvertDAE.convert: time 0.003345/0.09194, allocations: 2.737 MB / 0.5746 GB, free: 3.973 MB / 490.7 MB Notification: Performance of FrontEnd - DAE generated: time 6.863e-06/0.09195, allocations: 0 / 0.5746 GB, free: 3.973 MB / 490.7 MB Notification: Performance of FrontEnd: time 4.057e-06/0.09195, allocations: 0 / 0.5746 GB, free: 3.973 MB / 490.7 MB Notification: Performance of Transformations before backend: time 1.672e-05/0.09197, allocations: 0 / 0.5746 GB, free: 3.973 MB / 490.7 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 296 * Number of variables: 296 Notification: Performance of Generate backend data structure: time 0.003027/0.095, allocations: 2.423 MB / 0.577 GB, free: 1.504 MB / 490.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.247e-05/0.09504, allocations: 9.469 kB / 0.577 GB, free: 1.496 MB / 490.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001315/0.09517, allocations: 169.4 kB / 0.5771 GB, free: 1.32 MB / 490.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0003841/0.09555, allocations: 270.5 kB / 0.5774 GB, free: 1.055 MB / 490.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001623/0.09718, allocations: 1.228 MB / 0.5786 GB, free: 15.79 MB / 0.4948 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 5.643e-05/0.09723, allocations: 86.33 kB / 0.5787 GB, free: 15.7 MB / 0.4948 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001094/0.09734, allocations: 120 kB / 0.5788 GB, free: 15.58 MB / 0.4948 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001372/0.09871, allocations: 1.33 MB / 0.5801 GB, free: 14.17 MB / 0.4948 GB Notification: Performance of preOpt findStateOrder (simulation): time 2.405e-05/0.09874, allocations: 3.984 kB / 0.5801 GB, free: 14.17 MB / 0.4948 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 6.63e-05/0.09881, allocations: 52 kB / 0.5801 GB, free: 14.12 MB / 0.4948 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.808e-05/0.09882, allocations: 35.88 kB / 0.5802 GB, free: 14.08 MB / 0.4948 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001218/0.1, allocations: 1.153 MB / 0.5813 GB, free: 12.92 MB / 0.4948 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.004422/0.1045, allocations: 3.686 MB / 0.5849 GB, free: 9.129 MB / 0.4948 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0009888/0.1055, allocations: 0.8654 MB / 0.5857 GB, free: 8.258 MB / 0.4948 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0004665/0.1059, allocations: 420.9 kB / 0.5861 GB, free: 7.844 MB / 0.4948 GB Notification: Performance of preOpt evalFunc (simulation): time 0.002144/0.1081, allocations: 1.558 MB / 0.5877 GB, free: 6.266 MB / 0.4948 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.527e-05/0.1081, allocations: 43.56 kB / 0.5877 GB, free: 6.215 MB / 0.4948 GB Notification: Performance of pre-optimization done (n=103): time 3.667e-06/0.1081, allocations: 3.984 kB / 0.5877 GB, free: 6.211 MB / 0.4948 GB Notification: Performance of matching and sorting (n=103): time 0.002077/0.1102, allocations: 1.47 MB / 0.5891 GB, free: 4.723 MB / 0.4948 GB Notification: Performance of inlineWhenForInitialization (initialization): time 4.9e-05/0.1102, allocations: 64.41 kB / 0.5892 GB, free: 4.648 MB / 0.4948 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.00122/0.1114, allocations: 1.359 MB / 0.5905 GB, free: 3.289 MB / 0.4948 GB Notification: Performance of collectPreVariables (initialization): time 4.523e-05/0.1115, allocations: 45.7 kB / 0.5906 GB, free: 3.238 MB / 0.4948 GB Notification: Performance of collectInitialEqns (initialization): time 0.0007584/0.1123, allocations: 0.8171 MB / 0.5914 GB, free: 2.414 MB / 0.4948 GB Notification: Performance of collectInitialBindings (initialization): time 0.0001931/0.1124, allocations: 368.8 kB / 0.5917 GB, free: 2.051 MB / 0.4948 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.000162/0.1126, allocations: 178.6 kB / 0.5919 GB, free: 1.871 MB / 0.4948 GB Notification: Performance of setup shared object (initialization): time 0.0001072/0.1127, allocations: 345.9 kB / 0.5922 GB, free: 1.527 MB / 0.4948 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003731/0.1131, allocations: 293.9 kB / 0.5925 GB, free: 1.238 MB / 0.4948 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0005231/0.1136, allocations: 0.5535 MB / 0.593 GB, free: 0.6016 MB / 0.4948 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.000953/0.1146, allocations: 0.8203 MB / 0.5938 GB, free: 15.73 MB / 0.5105 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.46e-06/0.1146, allocations: 4 kB / 0.5938 GB, free: 15.72 MB / 0.5105 GB Notification: Performance of matching and sorting (n=124) (initialization): time 0.001339/0.1159, allocations: 1.182 MB / 0.595 GB, free: 14.52 MB / 0.5105 GB Notification: Performance of prepare postOptimizeDAE: time 1.703e-05/0.1159, allocations: 8 kB / 0.595 GB, free: 14.52 MB / 0.5105 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.087e-06/0.1159, allocations: 4 kB / 0.595 GB, free: 14.51 MB / 0.5105 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.0003679/0.1163, allocations: 166.8 kB / 0.5952 GB, free: 14.34 MB / 0.5105 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0004029/0.1167, allocations: 203.7 kB / 0.5954 GB, free: 14.14 MB / 0.5105 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.00318/0.1199, allocations: 4.477 MB / 0.5997 GB, free: 9.316 MB / 0.5105 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003805/0.1203, allocations: 95.28 kB / 0.5998 GB, free: 9.223 MB / 0.5105 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.711e-05/0.1203, allocations: 43.98 kB / 0.5999 GB, free: 9.18 MB / 0.5105 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 19 * 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 (112): * Single equations (assignments): 109 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 3 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 3 systems {(1,4,100.0%), (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.0003624/0.1207, allocations: 289.7 kB / 0.6001 GB, free: 8.887 MB / 0.5105 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001803/0.1209, allocations: 186.7 kB / 0.6003 GB, free: 8.703 MB / 0.5105 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001813/0.1227, allocations: 1.578 MB / 0.6019 GB, free: 7.105 MB / 0.5105 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.893e-06/0.1227, allocations: 12 kB / 0.6019 GB, free: 7.094 MB / 0.5105 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.476e-06/0.1227, allocations: 3.938 kB / 0.6019 GB, free: 7.09 MB / 0.5105 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.152e-05/0.1227, allocations: 7.969 kB / 0.6019 GB, free: 7.082 MB / 0.5105 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002522/0.1252, allocations: 2.35 MB / 0.6042 GB, free: 4.648 MB / 0.5105 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.589e-06/0.1252, allocations: 192 / 0.6042 GB, free: 4.648 MB / 0.5105 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002875/0.1255, allocations: 155.8 kB / 0.6043 GB, free: 4.496 MB / 0.5105 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.0003274/0.1259, allocations: 170.5 kB / 0.6045 GB, free: 4.32 MB / 0.5105 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 5.118e-05/0.1259, allocations: 35.97 kB / 0.6045 GB, free: 4.285 MB / 0.5105 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.003147/0.129, allocations: 4.476 MB / 0.6089 GB, free: 15.46 MB / 0.5261 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.667e-06/0.1291, allocations: 7.969 kB / 0.6089 GB, free: 15.45 MB / 0.5261 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.00178/0.1308, allocations: 1.581 MB / 0.6105 GB, free: 13.83 MB / 0.5261 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0003267/0.1312, allocations: 266.4 kB / 0.6107 GB, free: 13.57 MB / 0.5261 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 9.571e-05/0.1313, allocations: 31.89 kB / 0.6107 GB, free: 13.54 MB / 0.5261 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002913/0.1315, allocations: 27.98 kB / 0.6108 GB, free: 13.51 MB / 0.5261 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001226/0.1317, allocations: 80.8 kB / 0.6108 GB, free: 13.43 MB / 0.5261 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.393e-05/0.1317, allocations: 39.97 kB / 0.6109 GB, free: 13.39 MB / 0.5261 GB Notification: Performance of sorting global known variables: time 0.0009908/0.1327, allocations: 0.9513 MB / 0.6118 GB, free: 12.45 MB / 0.5261 GB Notification: Performance of sort global known variables: time 1.6e-07/0.1327, allocations: 0 / 0.6118 GB, free: 12.45 MB / 0.5261 GB Notification: Performance of remove unused functions: time 0.001358/0.1341, allocations: 0.5692 MB / 0.6124 GB, free: 11.88 MB / 0.5261 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 7 * Number of states: 3 (flowResistance6.inlet.m_flow,flowResistance2.inlet.m_flow,flowResistance4.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 (86): * Single equations (assignments): 83 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 3 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 3 systems {(1,4,100.0%), (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.002745/0.1368, allocations: 2.711 MB / 0.615 GB, free: 9.113 MB / 0.5261 GB Notification: Performance of simCode: created initialization part: time 0.001526/0.1383, allocations: 1.13 MB / 0.6161 GB, free: 7.941 MB / 0.5261 GB Notification: Performance of simCode: created event and clocks part: time 2.936e-06/0.1383, allocations: 0 / 0.6161 GB, free: 7.941 MB / 0.5261 GB Notification: Performance of simCode: created simulation system equations: time 0.0006965/0.139, allocations: 0.7716 MB / 0.6169 GB, free: 7.133 MB / 0.5261 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001872/0.1409, allocations: 0.7264 MB / 0.6176 GB, free: 6.434 MB / 0.5261 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01292/0.1538, allocations: 11.15 MB / 0.6285 GB, free: 10.93 MB / 0.5417 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0005683/0.1544, allocations: 0.6975 MB / 0.6291 GB, free: 10.2 MB / 0.5417 GB Notification: Performance of simCode: alias equations: time 0.001124/0.1555, allocations: 294.8 kB / 0.6294 GB, free: 9.934 MB / 0.5417 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0007124/0.1562, allocations: 0.7229 MB / 0.6301 GB, free: 9.211 MB / 0.5417 GB Notification: Performance of SimCode: time 1.423e-06/0.1562, allocations: 0 / 0.6301 GB, free: 9.211 MB / 0.5417 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.4628/0.6191, allocations: 52.66 MB / 0.6816 GB, free: 109.4 MB / 0.5417 GB Notification: Performance of buildModelFMU: Generate platform static: time 10.92/11.54, allocations: 3.938 kB / 0.6816 GB, free: 109.4 MB / 0.5417 GB " [Timeout remaining time 648] (rm -f ThermofluidStream_ThermofluidStream.FlowControl.Tests.BasicControlValve.pipe ; mkfifo ThermofluidStream_ThermofluidStream.FlowControl.Tests.BasicControlValve.pipe ; head -c 1048576 < ThermofluidStream_ThermofluidStream.FlowControl.Tests.BasicControlValve.pipe >> ../files/ThermofluidStream_ThermofluidStream.FlowControl.Tests.BasicControlValve.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=ThermofluidStream_ThermofluidStream.FlowControl.Tests.BasicControlValve_res.mat --tempDir=temp_ThermofluidStream_ThermofluidStream_FlowControl_Tests_BasicControlValve_fmu --startTime=0 --stopTime=20 --stepSize=0.02 --timeout=1200 --tolerance=1e-06 ThermofluidStream_ThermofluidStream_FlowControl_Tests_BasicControlValve.fmu > ThermofluidStream_ThermofluidStream.FlowControl.Tests.BasicControlValve.pipe 2>&1) [Timeout 1260.0] diffSimulationResults("ThermofluidStream_ThermofluidStream.FlowControl.Tests.BasicControlValve_res.mat","/mnt/ReferenceFiles/ThermofluidStream-main-regression/ReferenceData/ThermofluidStream.FlowControl.Tests.BasicControlValve_ref.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/ThermofluidStream_ThermofluidStream.FlowControl.Tests.BasicControlValve.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) [Timeout 660] "" [Timeout remaining time 660] Reference file matches [Calling sys.exit(0), Time elapsed: 14.91468080226332]