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.006681/0.006681, allocations: 97.92 kB / 15.73 MB, free: 6.004 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.001397/0.001397, allocations: 197.2 kB / 16.67 MB, free: 5.922 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.402/1.402, allocations: 222.9 MB / 240.4 MB, free: 4.141 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ThermofluidStream 1.1.0-main/package.mo): time 0.7026/0.7026, allocations: 91.18 MB / 381.7 MB, free: 9.316 MB / 318.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001725/0.001725, allocations: 83.88 kB / 0.5164 GB, free: 9.477 MB / 398.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1439/0.1457, allocations: 67.69 MB / 0.5825 GB, free: 5.711 MB / 462.1 MB Notification: Performance of NFInst.instantiate(ThermofluidStream.FlowControl.Tests.MCV): time 0.5911/0.7368, allocations: 197.4 MB / 0.7753 GB, free: 2.805 MB / 0.6075 GB Notification: Performance of NFInst.instExpressions: time 0.0266/0.7635, allocations: 24.21 MB / 0.7989 GB, free: 10.52 MB / 0.6387 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.002172/0.7657, allocations: 83.44 kB / 0.799 GB, free: 10.43 MB / 0.6387 GB Notification: Performance of NFTyping.typeComponents: time 0.003024/0.7687, allocations: 1.156 MB / 0.8002 GB, free: 9.27 MB / 0.6387 GB Notification: Performance of NFTyping.typeBindings: time 0.009336/0.7781, allocations: 2.571 MB / 0.8027 GB, free: 6.684 MB / 0.6387 GB Notification: Performance of NFTyping.typeClassSections: time 0.006031/0.7842, allocations: 1.88 MB / 0.8045 GB, free: 4.797 MB / 0.6387 GB Notification: Performance of NFFlatten.flatten: time 0.007192/0.7914, allocations: 3.61 MB / 0.808 GB, free: 1.168 MB / 0.6387 GB Notification: Performance of NFFlatten.resolveConnections: time 0.001079/0.7925, allocations: 0.5719 MB / 0.8086 GB, free: 0.5703 MB / 0.6387 GB Notification: Performance of NFEvalConstants.evaluate: time 0.003534/0.796, allocations: 1.634 MB / 0.8102 GB, free: 14.93 MB / 0.6544 GB Notification: Performance of NFSimplifyModel.simplify: time 0.002943/0.799, allocations: 1.599 MB / 0.8117 GB, free: 13.32 MB / 0.6544 GB Notification: Performance of NFPackage.collectConstants: time 0.0004675/0.7995, allocations: 184 kB / 0.8119 GB, free: 13.14 MB / 0.6544 GB Notification: Performance of NFFlatten.collectFunctions: time 0.007453/0.8069, allocations: 3.326 MB / 0.8152 GB, free: 9.812 MB / 0.6544 GB Notification: Performance of NFScalarize.scalarize: time 0.0005424/0.8075, allocations: 473.8 kB / 0.8156 GB, free: 9.348 MB / 0.6544 GB Notification: Performance of NFVerifyModel.verify: time 0.001544/0.809, allocations: 1.231 MB / 0.8168 GB, free: 8.109 MB / 0.6544 GB Notification: Performance of NFConvertDAE.convert: time 0.007156/0.8162, allocations: 3.795 MB / 0.8205 GB, free: 4.301 MB / 0.6544 GB Notification: Performance of FrontEnd - DAE generated: time 5.31e-06/0.8162, allocations: 0 / 0.8205 GB, free: 4.301 MB / 0.6544 GB Notification: Performance of FrontEnd: time 1.543e-06/0.8162, allocations: 0 / 0.8205 GB, free: 4.301 MB / 0.6544 GB Notification: Performance of Transformations before backend: time 3.674e-05/0.8163, allocations: 0 / 0.8205 GB, free: 4.301 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.006542/0.8228, allocations: 3.438 MB / 0.8239 GB, free: 0.7422 MB / 0.6544 GB Notification: Performance of prepare preOptimizeDAE: time 4.973e-05/0.8229, allocations: 8.031 kB / 0.8239 GB, free: 0.7344 MB / 0.6544 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0002739/0.8232, allocations: 224 kB / 0.8241 GB, free: 0.5039 MB / 0.6544 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0006557/0.8238, allocations: 302.1 kB / 0.8244 GB, free: 212 kB / 0.6544 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.004331/0.8282, allocations: 1.658 MB / 0.826 GB, free: 14.48 MB / 0.67 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001171/0.8283, allocations: 123.1 kB / 0.8261 GB, free: 14.36 MB / 0.67 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0003486/0.8287, allocations: 175.9 kB / 0.8263 GB, free: 14.18 MB / 0.67 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.003864/0.8326, allocations: 1.871 MB / 0.8281 GB, free: 12.22 MB / 0.67 GB Notification: Performance of preOpt findStateOrder (simulation): time 3.755e-05/0.8326, allocations: 7.938 kB / 0.8281 GB, free: 12.21 MB / 0.67 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001368/0.8328, allocations: 67.98 kB / 0.8282 GB, free: 12.14 MB / 0.67 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.832e-05/0.8328, allocations: 36 kB / 0.8282 GB, free: 12.11 MB / 0.67 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.00373/0.8365, allocations: 1.75 MB / 0.8299 GB, free: 10.36 MB / 0.67 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.01037/0.8469, allocations: 7.726 MB / 0.8375 GB, free: 2.109 MB / 0.67 GB Notification: Performance of preOpt comSubExp (simulation): time 0.00574/0.8527, allocations: 2.016 MB / 0.8395 GB, free: 32 kB / 0.67 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.3256/1.178, allocations: 0.9181 MB / 0.8403 GB, free: 224.9 MB / 0.67 GB Notification: Performance of preOpt evalFunc (simulation): time 0.009081/1.188, allocations: 6.801 MB / 0.847 GB, free: 219.2 MB / 0.67 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.002466/1.19, allocations: 1.084 MB / 0.848 GB, free: 218.8 MB / 0.67 GB Notification: Performance of pre-optimization done (n=191): time 5.781e-06/1.19, allocations: 1 kB / 0.848 GB, free: 218.8 MB / 0.67 GB Notification: Performance of matching and sorting (n=191): time 0.00898/1.199, allocations: 3.381 MB / 0.8514 GB, free: 217.4 MB / 0.67 GB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001012/1.199, allocations: 233.7 kB / 0.8516 GB, free: 217.1 MB / 0.67 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.002554/1.202, allocations: 1.696 MB / 0.8532 GB, free: 216.5 MB / 0.67 GB Notification: Performance of collectPreVariables (initialization): time 0.000272/1.202, allocations: 66.25 kB / 0.8533 GB, free: 216.4 MB / 0.67 GB Notification: Performance of collectInitialEqns (initialization): time 0.0007259/1.203, allocations: 0.9335 MB / 0.8542 GB, free: 215.8 MB / 0.67 GB Notification: Performance of collectInitialBindings (initialization): time 0.0005279/1.203, allocations: 0.6677 MB / 0.8549 GB, free: 215.3 MB / 0.67 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0004412/1.204, allocations: 320.3 kB / 0.8552 GB, free: 215.2 MB / 0.67 GB Notification: Performance of setup shared object (initialization): time 5.424e-05/1.204, allocations: 308.4 kB / 0.8555 GB, free: 214.9 MB / 0.67 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001659/1.205, allocations: 0.6414 MB / 0.8561 GB, free: 214.7 MB / 0.67 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001914/1.207, allocations: 0.9088 MB / 0.857 GB, free: 214.2 MB / 0.67 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.003618/1.211, allocations: 1.75 MB / 0.8587 GB, free: 213.2 MB / 0.67 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.017e-05/1.211, allocations: 0 / 0.8587 GB, free: 213.2 MB / 0.67 GB Notification: Performance of matching and sorting (n=238) (initialization): time 0.005643/1.217, allocations: 2.448 MB / 0.8611 GB, free: 212.2 MB / 0.67 GB Notification: Performance of prepare postOptimizeDAE: time 9.007e-05/1.217, allocations: 175.6 kB / 0.8612 GB, free: 212 MB / 0.67 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.482e-05/1.217, allocations: 6.5 kB / 0.8612 GB, free: 212 MB / 0.67 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.0008142/1.218, allocations: 262.1 kB / 0.8615 GB, free: 211.9 MB / 0.67 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.00179/1.219, allocations: 416.8 kB / 0.8619 GB, free: 211.8 MB / 0.67 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.006804/1.226, allocations: 10.57 MB / 0.8722 GB, free: 201.5 MB / 0.67 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.002102/1.228, allocations: 235.8 kB / 0.8724 GB, free: 201.4 MB / 0.67 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0002047/1.229, allocations: 80.41 kB / 0.8725 GB, free: 201.4 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.0008085/1.229, allocations: 376.2 kB / 0.8729 GB, free: 201.1 MB / 0.67 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0004188/1.23, allocations: 256 kB / 0.8731 GB, free: 200.9 MB / 0.67 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.005922/1.236, allocations: 2.633 MB / 0.8757 GB, free: 199.9 MB / 0.67 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.353e-05/1.236, allocations: 24.09 kB / 0.8757 GB, free: 199.9 MB / 0.67 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.874e-05/1.236, allocations: 5.5 kB / 0.8757 GB, free: 199.9 MB / 0.67 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.965e-05/1.236, allocations: 12.94 kB / 0.8757 GB, free: 199.9 MB / 0.67 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.009318/1.245, allocations: 4.787 MB / 0.8804 GB, free: 197.6 MB / 0.67 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.737e-05/1.245, allocations: 6.234 kB / 0.8804 GB, free: 197.6 MB / 0.67 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001781/1.247, allocations: 394.2 kB / 0.8808 GB, free: 197.5 MB / 0.67 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.000718/1.248, allocations: 278.2 kB / 0.8811 GB, free: 197.4 MB / 0.67 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001489/1.248, allocations: 65.66 kB / 0.8811 GB, free: 197.4 MB / 0.67 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.00644/1.254, allocations: 10.58 MB / 0.8914 GB, free: 187 MB / 0.67 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 6.041e-06/1.254, allocations: 8.125 kB / 0.8915 GB, free: 187 MB / 0.67 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.007342/1.262, allocations: 3.679 MB / 0.895 GB, free: 185.2 MB / 0.67 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0009971/1.263, allocations: 0.4947 MB / 0.8955 GB, free: 184.8 MB / 0.67 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0002926/1.263, allocations: 57.48 kB / 0.8956 GB, free: 184.8 MB / 0.67 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001498/1.265, allocations: 111.2 kB / 0.8957 GB, free: 184.8 MB / 0.67 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0004391/1.265, allocations: 217.1 kB / 0.8959 GB, free: 184.7 MB / 0.67 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001358/1.265, allocations: 78.12 kB / 0.896 GB, free: 184.7 MB / 0.67 GB Notification: Performance of sorting global known variables: time 0.001516/1.267, allocations: 1.16 MB / 0.8971 GB, free: 184.3 MB / 0.67 GB Notification: Performance of sort global known variables: time 1.3e-07/1.267, allocations: 3.938 kB / 0.8971 GB, free: 184.3 MB / 0.67 GB Notification: Performance of remove unused functions: time 0.003022/1.27, allocations: 0.8911 MB / 0.898 GB, free: 184 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.008605/1.278, allocations: 5.083 MB / 0.9029 GB, free: 181.3 MB / 0.67 GB Notification: Performance of simCode: created initialization part: time 0.005875/1.284, allocations: 2.917 MB / 0.9058 GB, free: 179.4 MB / 0.67 GB Notification: Performance of simCode: created event and clocks part: time 7.855e-06/1.284, allocations: 1.375 kB / 0.9058 GB, free: 179.4 MB / 0.67 GB Notification: Performance of simCode: created simulation system equations: time 0.003872/1.288, allocations: 1.99 MB / 0.9077 GB, free: 178 MB / 0.67 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.004762/1.293, allocations: 0.7279 MB / 0.9084 GB, free: 177.6 MB / 0.67 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.02922/1.322, allocations: 17.8 MB / 0.9258 GB, free: 163.8 MB / 0.67 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0007792/1.323, allocations: 1.517 MB / 0.9273 GB, free: 162.3 MB / 0.67 GB Notification: Performance of simCode: alias equations: time 0.001461/1.325, allocations: 397.2 kB / 0.9277 GB, free: 161.9 MB / 0.67 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001125/1.326, allocations: 1.007 MB / 0.9287 GB, free: 160.9 MB / 0.67 GB Notification: Performance of SimCode: time 8.82e-07/1.326, allocations: 0 / 0.9287 GB, free: 160.9 MB / 0.67 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.1345/1.46, allocations: 66.55 MB / 0.9937 GB, free: 94.68 MB / 0.67 GB Notification: Performance of buildModelFMU: Generate platform static: time 15.16/16.62, allocations: 6.875 kB / 0.9937 GB, free: 94.67 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