Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr ThermofluidStream_ThermofluidStream.FlowControl.Tests.MCV.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.MCV,fileNamePrefix="ThermofluidStream_ThermofluidStream_FlowControl_Tests_MCV",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(ThermofluidStream.FlowControl.Tests.MCV,fileNamePrefix="ThermofluidStream_ThermofluidStream_FlowControl_Tests_MCV",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.007947/0.007947, allocations: 99.81 kB / 15.73 MB, free: 6.492 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.001976/0.001976, allocations: 201.4 kB / 16.68 MB, free: 6.375 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.381/1.381, allocations: 222.9 MB / 240.4 MB, free: 4.309 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ThermofluidStream 1.1.0-main/package.mo): time 0.6611/0.6611, allocations: 91.19 MB / 381.7 MB, free: 9.324 MB / 318.1 MB Notification: Performance of FrontEnd - loaded program: time 0.00171/0.00171, allocations: 79.88 kB / 0.5164 GB, free: 9.492 MB / 398.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.131/0.1327, allocations: 67.69 MB / 0.5825 GB, free: 5.723 MB / 462.1 MB Notification: Performance of NFInst.instantiate(ThermofluidStream.FlowControl.Tests.MCV): time 0.4975/0.6302, allocations: 197.4 MB / 0.7753 GB, free: 2.816 MB / 0.6075 GB Notification: Performance of NFInst.instExpressions: time 0.03012/0.6603, allocations: 24.21 MB / 0.7989 GB, free: 10.53 MB / 0.6387 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.002454/0.6628, allocations: 87.44 kB / 0.799 GB, free: 10.44 MB / 0.6387 GB Notification: Performance of NFTyping.typeComponents: time 0.00351/0.6664, allocations: 1.16 MB / 0.8002 GB, free: 9.273 MB / 0.6387 GB Notification: Performance of NFTyping.typeBindings: time 0.007494/0.6739, allocations: 2.567 MB / 0.8027 GB, free: 6.691 MB / 0.6387 GB Notification: Performance of NFTyping.typeClassSections: time 0.005419/0.6794, allocations: 1.884 MB / 0.8045 GB, free: 4.801 MB / 0.6387 GB Notification: Performance of NFFlatten.flatten: time 0.005373/0.6848, allocations: 3.598 MB / 0.808 GB, free: 1.184 MB / 0.6387 GB Notification: Performance of NFFlatten.resolveConnections: time 0.001254/0.6861, allocations: 0.5836 MB / 0.8086 GB, free: 0.5781 MB / 0.6387 GB Notification: Performance of NFEvalConstants.evaluate: time 0.003389/0.6895, allocations: 1.626 MB / 0.8102 GB, free: 14.95 MB / 0.6544 GB Notification: Performance of NFSimplifyModel.simplify: time 0.002611/0.6922, allocations: 1.602 MB / 0.8117 GB, free: 13.34 MB / 0.6544 GB Notification: Performance of NFPackage.collectConstants: time 0.0007396/0.6929, allocations: 184 kB / 0.8119 GB, free: 13.16 MB / 0.6544 GB Notification: Performance of NFFlatten.collectFunctions: time 0.008086/0.701, allocations: 3.326 MB / 0.8152 GB, free: 9.824 MB / 0.6544 GB Notification: Performance of NFScalarize.scalarize: time 0.0008207/0.702, allocations: 477.8 kB / 0.8156 GB, free: 9.355 MB / 0.6544 GB Notification: Performance of NFVerifyModel.verify: time 0.002147/0.7041, allocations: 1.224 MB / 0.8168 GB, free: 8.125 MB / 0.6544 GB Notification: Performance of NFConvertDAE.convert: time 0.009168/0.7133, allocations: 3.807 MB / 0.8205 GB, free: 4.305 MB / 0.6544 GB Notification: Performance of FrontEnd - DAE generated: time 7.925e-06/0.7134, allocations: 0 / 0.8205 GB, free: 4.305 MB / 0.6544 GB Notification: Performance of FrontEnd: time 2.244e-06/0.7134, allocations: 0 / 0.8205 GB, free: 4.305 MB / 0.6544 GB Notification: Performance of Transformations before backend: time 0.0001467/0.7135, allocations: 0 / 0.8205 GB, free: 4.305 MB / 0.6544 GB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 395 * Number of variables: 395 Notification: Performance of Generate backend data structure: time 0.008767/0.7223, allocations: 3.434 MB / 0.8239 GB, free: 0.75 MB / 0.6544 GB Notification: Performance of prepare preOptimizeDAE: time 4.363e-05/0.7224, allocations: 8.031 kB / 0.8239 GB, free: 0.7422 MB / 0.6544 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0003538/0.7227, allocations: 228 kB / 0.8241 GB, free: 0.5078 MB / 0.6544 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0006226/0.7234, allocations: 302.1 kB / 0.8244 GB, free: 216 kB / 0.6544 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.003511/0.7269, allocations: 1.65 MB / 0.826 GB, free: 14.49 MB / 0.67 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001002/0.727, allocations: 119.1 kB / 0.8261 GB, free: 14.37 MB / 0.67 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0003455/0.7274, allocations: 179.9 kB / 0.8263 GB, free: 14.2 MB / 0.67 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.00377/0.7312, allocations: 1.871 MB / 0.8281 GB, free: 12.23 MB / 0.67 GB Notification: Performance of preOpt findStateOrder (simulation): time 4.179e-05/0.7312, allocations: 3.938 kB / 0.8281 GB, free: 12.23 MB / 0.67 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001433/0.7314, allocations: 71.98 kB / 0.8282 GB, free: 12.16 MB / 0.67 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.089e-05/0.7314, allocations: 40 kB / 0.8282 GB, free: 12.12 MB / 0.67 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.003876/0.7353, allocations: 1.746 MB / 0.8299 GB, free: 10.37 MB / 0.67 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0109/0.7462, allocations: 7.722 MB / 0.8375 GB, free: 2.125 MB / 0.67 GB Notification: Performance of preOpt comSubExp (simulation): time 0.005774/0.752, allocations: 2.027 MB / 0.8395 GB, free: 36 kB / 0.67 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.2744/1.026, allocations: 0.9151 MB / 0.8404 GB, free: 224.3 MB / 0.67 GB Notification: Performance of preOpt evalFunc (simulation): time 0.007093/1.034, allocations: 6.792 MB / 0.847 GB, free: 218.7 MB / 0.67 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.002259/1.036, allocations: 1.087 MB / 0.8481 GB, free: 218.2 MB / 0.67 GB Notification: Performance of pre-optimization done (n=191): time 5.881e-06/1.036, allocations: 3.828 kB / 0.8481 GB, free: 218.2 MB / 0.67 GB Notification: Performance of matching and sorting (n=191): time 0.008103/1.044, allocations: 3.373 MB / 0.8513 GB, free: 216.8 MB / 0.67 GB Notification: Performance of inlineWhenForInitialization (initialization): time 9.417e-05/1.044, allocations: 242.6 kB / 0.8516 GB, free: 216.5 MB / 0.67 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.002235/1.046, allocations: 1.696 MB / 0.8532 GB, free: 215.9 MB / 0.67 GB Notification: Performance of collectPreVariables (initialization): time 0.000284/1.047, allocations: 66.72 kB / 0.8533 GB, free: 215.8 MB / 0.67 GB Notification: Performance of collectInitialEqns (initialization): time 0.0006072/1.047, allocations: 0.9318 MB / 0.8542 GB, free: 215.2 MB / 0.67 GB Notification: Performance of collectInitialBindings (initialization): time 0.0004688/1.048, allocations: 0.6626 MB / 0.8549 GB, free: 214.8 MB / 0.67 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0004555/1.048, allocations: 321.3 kB / 0.8552 GB, free: 214.6 MB / 0.67 GB Notification: Performance of setup shared object (initialization): time 0.0001/1.048, allocations: 301.7 kB / 0.8555 GB, free: 214.3 MB / 0.67 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0016/1.05, allocations: 0.6476 MB / 0.8561 GB, free: 214.1 MB / 0.67 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001763/1.052, allocations: 0.8985 MB / 0.857 GB, free: 213.7 MB / 0.67 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.00336/1.055, allocations: 1.755 MB / 0.8587 GB, free: 212.7 MB / 0.67 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.039e-05/1.055, allocations: 0 / 0.8587 GB, free: 212.7 MB / 0.67 GB Notification: Performance of matching and sorting (n=238) (initialization): time 0.005531/1.061, allocations: 2.444 MB / 0.8611 GB, free: 211.6 MB / 0.67 GB Notification: Performance of prepare postOptimizeDAE: time 7.523e-05/1.061, allocations: 177.7 kB / 0.8612 GB, free: 211.4 MB / 0.67 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.424e-05/1.061, allocations: 11.31 kB / 0.8612 GB, free: 211.4 MB / 0.67 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.0007613/1.062, allocations: 263.9 kB / 0.8615 GB, free: 211.3 MB / 0.67 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001757/1.063, allocations: 416.2 kB / 0.8619 GB, free: 211.3 MB / 0.67 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.006652/1.07, allocations: 10.57 MB / 0.8722 GB, free: 200.9 MB / 0.67 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.002013/1.072, allocations: 237.7 kB / 0.8724 GB, free: 200.9 MB / 0.67 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.00036/1.073, allocations: 78.16 kB / 0.8725 GB, free: 200.9 MB / 0.67 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 25 * Number of states: 0 () * Number of discrete variables: 30 (trapezoid2.count,$PRE.trapezoid2.count,trapezoid2.T_start,$PRE.trapezoid2.T_start,$whenCondition6,trapezoid1.count,$PRE.trapezoid1.count,trapezoid1.T_start,$PRE.trapezoid1.T_start,$whenCondition4,trapezoid.count,$PRE.trapezoid.count,trapezoid.T_start,$PRE.trapezoid.T_start,$whenCondition2,pulse1.count,$PRE.pulse1.count,pulse1.T_start,$PRE.pulse1.T_start,$whenCondition1,pulse3.count,$PRE.pulse3.count,pulse3.T_start,$PRE.pulse3.T_start,$whenCondition3,pulse5.count,$PRE.pulse5.count,pulse5.T_start,$PRE.pulse5.T_start,$whenCondition5) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (212): * Single equations (assignments): 199 * Array equations: 0 * Algorithm blocks: 6 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 7 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 7 systems {(1,2,100.0%), (1,3,100.0%), (1,3,100.0%), (1,3,100.0%), (1,3,100.0%), (1,3,100.0%), (1,3,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of prepare postOptimizeDAE: time 0.001052/1.074, allocations: 380.5 kB / 0.8729 GB, free: 200.6 MB / 0.67 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0006178/1.074, allocations: 256.6 kB / 0.8731 GB, free: 200.4 MB / 0.67 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.006196/1.08, allocations: 2.632 MB / 0.8757 GB, free: 199.4 MB / 0.67 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.876e-05/1.08, allocations: 21.91 kB / 0.8757 GB, free: 199.4 MB / 0.67 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.726e-05/1.081, allocations: 6.719 kB / 0.8757 GB, free: 199.4 MB / 0.67 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.448e-05/1.081, allocations: 11.02 kB / 0.8757 GB, free: 199.4 MB / 0.67 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.009889/1.09, allocations: 4.78 MB / 0.8804 GB, free: 197.1 MB / 0.67 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.147e-05/1.091, allocations: 12.92 kB / 0.8804 GB, free: 197.1 MB / 0.67 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001701/1.092, allocations: 392.3 kB / 0.8808 GB, free: 197.1 MB / 0.67 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.0007502/1.093, allocations: 271.2 kB / 0.881 GB, free: 197 MB / 0.67 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0002307/1.093, allocations: 66.34 kB / 0.8811 GB, free: 196.9 MB / 0.67 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.006285/1.1, allocations: 10.59 MB / 0.8914 GB, free: 186.6 MB / 0.67 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.32e-06/1.1, allocations: 3.344 kB / 0.8914 GB, free: 186.6 MB / 0.67 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.00802/1.108, allocations: 3.685 MB / 0.895 GB, free: 184.7 MB / 0.67 GB Notification: Performance of postOpt removeConstants (simulation): time 0.001219/1.109, allocations: 0.4951 MB / 0.8955 GB, free: 184.4 MB / 0.67 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0006407/1.11, allocations: 57.08 kB / 0.8956 GB, free: 184.4 MB / 0.67 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001791/1.111, allocations: 110.6 kB / 0.8957 GB, free: 184.4 MB / 0.67 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0006077/1.112, allocations: 212.1 kB / 0.8959 GB, free: 184.3 MB / 0.67 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001724/1.112, allocations: 76.56 kB / 0.896 GB, free: 184.3 MB / 0.67 GB Notification: Performance of sorting global known variables: time 0.002081/1.114, allocations: 1.166 MB / 0.8971 GB, free: 183.8 MB / 0.67 GB Notification: Performance of sort global known variables: time 2e-07/1.114, allocations: 0 / 0.8971 GB, free: 183.8 MB / 0.67 GB Notification: Performance of remove unused functions: time 0.003758/1.118, allocations: 0.8886 MB / 0.898 GB, free: 183.7 MB / 0.67 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 17 * Number of states: 14 (mCV1.dp_int,flowResistance1.inlet.m_flow,mCV2.dp_int,flowResistance2.inlet.m_flow,mCV3.dp_int,flowResistance3.inlet.m_flow,mCV4.dp_int,flowResistance4.inlet.m_flow,mCV.dp_int,flowResistance.inlet.m_flow,mCV5.dp_int,flowResistance5.inlet.m_flow,mCV6.inlet.m_flow,mCV6.dp_int) * Number of discrete variables: 18 ($whenCondition1,pulse1.T_start,pulse1.count,$whenCondition2,trapezoid.T_start,trapezoid.count,$whenCondition3,pulse3.T_start,pulse3.count,$whenCondition4,trapezoid1.T_start,trapezoid1.count,$whenCondition5,pulse5.T_start,pulse5.count,$whenCondition6,trapezoid2.T_start,trapezoid2.count) * Number of discrete states: 6 (trapezoid2.count,pulse5.count,trapezoid1.count,pulse3.count,trapezoid.count,pulse1.count) * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (195): * Single equations (assignments): 176 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 12 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 7 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 7 systems {(1,3,100.0%), (1,3,100.0%), (1,3,100.0%), (1,3,100.0%), (1,3,100.0%), (1,3,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.009525/1.128, allocations: 5.078 MB / 0.9029 GB, free: 181 MB / 0.67 GB Notification: Performance of simCode: created initialization part: time 0.005782/1.133, allocations: 2.917 MB / 0.9058 GB, free: 179.1 MB / 0.67 GB Notification: Performance of simCode: created event and clocks part: time 8.095e-06/1.134, allocations: 0 / 0.9058 GB, free: 179.1 MB / 0.67 GB Notification: Performance of simCode: created simulation system equations: time 0.003853/1.137, allocations: 1.997 MB / 0.9077 GB, free: 177.7 MB / 0.67 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.004492/1.142, allocations: 0.7281 MB / 0.9084 GB, free: 177.3 MB / 0.67 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.03209/1.174, allocations: 17.8 MB / 0.9258 GB, free: 163.4 MB / 0.67 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0009796/1.175, allocations: 1.513 MB / 0.9273 GB, free: 161.9 MB / 0.67 GB Notification: Performance of simCode: alias equations: time 0.001461/1.177, allocations: 393.2 kB / 0.9277 GB, free: 161.5 MB / 0.67 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001145/1.178, allocations: 1.015 MB / 0.9287 GB, free: 160.5 MB / 0.67 GB Notification: Performance of SimCode: time 9.22e-07/1.178, allocations: 0 / 0.9287 GB, free: 160.5 MB / 0.67 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.1105/1.288, allocations: 66.56 MB / 0.9937 GB, free: 94.25 MB / 0.67 GB Notification: Performance of buildModelFMU: Generate platform static: time 14.92/16.21, allocations: 4 kB / 0.9937 GB, free: 94.24 MB / 0.67 GB (rm -f ThermofluidStream_ThermofluidStream.FlowControl.Tests.MCV.pipe ; mkfifo ThermofluidStream_ThermofluidStream.FlowControl.Tests.MCV.pipe ; head -c 1048576 < ThermofluidStream_ThermofluidStream.FlowControl.Tests.MCV.pipe >> ../files/ThermofluidStream_ThermofluidStream.FlowControl.Tests.MCV.sim & python3 -m fmpy simulate --output-file ThermofluidStream_ThermofluidStream.FlowControl.Tests.MCV_res.csv --start-time 0 --stop-time 10 --timeout 1200 --relative-tolerance 1e-06 --interface-type ModelExchange --solver CVode --output-interval 0.004 ThermofluidStream_ThermofluidStream_FlowControl_Tests_MCV.fmu > ThermofluidStream_ThermofluidStream.FlowControl.Tests.MCV.pipe 2>&1) diffSimulationResults("ThermofluidStream_ThermofluidStream.FlowControl.Tests.MCV_res.csv","/mnt/ReferenceFiles/ThermofluidStream-main-regression/ReferenceData/ThermofluidStream.FlowControl.Tests.MCV_ref.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/ThermofluidStream_ThermofluidStream.FlowControl.Tests.MCV.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches