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/package.mo", uses=false) Using package ThermofluidStream with version 1.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ThermofluidStream 1.1.0/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.007371/0.007371, allocations: 98.92 kB / 15.73 MB, free: 6.055 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.001884/0.001884, allocations: 202.2 kB / 16.68 MB, free: 5.977 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.401/1.401, allocations: 222.9 MB / 240.4 MB, free: 4.32 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ThermofluidStream 1.1.0/package.mo): time 0.6547/0.6547, allocations: 89.47 MB / 380 MB, free: 10.96 MB / 318.1 MB Notification: Performance of FrontEnd - loaded program: time 0.002192/0.002192, allocations: 79.86 kB / 0.5139 GB, free: 11.76 MB / 398.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1192/0.1214, allocations: 67.3 MB / 0.5796 GB, free: 8.383 MB / 462.1 MB Notification: Performance of NFInst.instantiate(ThermofluidStream.FlowControl.Tests.MCV): time 0.4732/0.5946, allocations: 197.1 MB / 0.7721 GB, free: 7.234 MB / 0.6075 GB Notification: Performance of NFInst.instExpressions: time 0.02791/0.6225, allocations: 24.09 MB / 0.7956 GB, free: 15.06 MB / 0.6387 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.00184/0.6244, allocations: 31.75 kB / 0.7956 GB, free: 15.03 MB / 0.6387 GB Notification: Performance of NFTyping.typeComponents: time 0.003261/0.6277, allocations: 1.126 MB / 0.7967 GB, free: 13.9 MB / 0.6387 GB Notification: Performance of NFTyping.typeBindings: time 0.006903/0.6346, allocations: 2.411 MB / 0.7991 GB, free: 11.47 MB / 0.6387 GB Notification: Performance of NFTyping.typeClassSections: time 0.004986/0.6397, allocations: 1.869 MB / 0.8009 GB, free: 9.598 MB / 0.6387 GB Notification: Performance of NFFlatten.flatten: time 0.004595/0.6443, allocations: 3.31 MB / 0.8042 GB, free: 6.273 MB / 0.6387 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0008674/0.6452, allocations: 0.55 MB / 0.8047 GB, free: 5.695 MB / 0.6387 GB Notification: Performance of NFEvalConstants.evaluate: time 0.002651/0.6478, allocations: 1.436 MB / 0.8061 GB, free: 4.254 MB / 0.6387 GB Notification: Performance of NFSimplifyModel.simplify: time 0.002049/0.6499, allocations: 1.552 MB / 0.8076 GB, free: 2.695 MB / 0.6387 GB Notification: Performance of NFPackage.collectConstants: time 0.0003159/0.6502, allocations: 184 kB / 0.8078 GB, free: 2.516 MB / 0.6387 GB Notification: Performance of NFFlatten.collectFunctions: time 0.007149/0.6574, allocations: 3.322 MB / 0.811 GB, free: 15.19 MB / 0.6544 GB Notification: Performance of NFScalarize.scalarize: time 0.0005392/0.6579, allocations: 466 kB / 0.8115 GB, free: 14.73 MB / 0.6544 GB Notification: Performance of NFVerifyModel.verify: time 0.001411/0.6594, allocations: 1.123 MB / 0.8126 GB, free: 13.6 MB / 0.6544 GB Notification: Performance of NFConvertDAE.convert: time 0.007145/0.6665, allocations: 3.492 MB / 0.816 GB, free: 10.1 MB / 0.6544 GB Notification: Performance of FrontEnd - DAE generated: time 4.779e-06/0.6665, allocations: 0 / 0.816 GB, free: 10.1 MB / 0.6544 GB Notification: Performance of FrontEnd: time 1.864e-06/0.6666, allocations: 4 kB / 0.816 GB, free: 10.09 MB / 0.6544 GB Notification: Performance of Transformations before backend: time 3.92e-05/0.6666, allocations: 0 / 0.816 GB, free: 10.09 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.006324/0.6729, allocations: 3.097 MB / 0.819 GB, free: 6.883 MB / 0.6544 GB Notification: Performance of prepare preOptimizeDAE: time 4.601e-05/0.673, allocations: 8.031 kB / 0.819 GB, free: 6.875 MB / 0.6544 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0002516/0.6732, allocations: 220.1 kB / 0.8192 GB, free: 6.648 MB / 0.6544 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0004465/0.6737, allocations: 263.3 kB / 0.8195 GB, free: 6.391 MB / 0.6544 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.00185/0.6756, allocations: 1.137 MB / 0.8206 GB, free: 5.203 MB / 0.6544 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 9.897e-05/0.6757, allocations: 123.5 kB / 0.8207 GB, free: 5.082 MB / 0.6544 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0002406/0.6759, allocations: 180.4 kB / 0.8209 GB, free: 4.906 MB / 0.6544 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.003316/0.6792, allocations: 1.871 MB / 0.8227 GB, free: 2.941 MB / 0.6544 GB Notification: Performance of preOpt findStateOrder (simulation): time 3.58e-05/0.6793, allocations: 8 kB / 0.8227 GB, free: 2.934 MB / 0.6544 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001307/0.6794, allocations: 64 kB / 0.8228 GB, free: 2.871 MB / 0.6544 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.854e-05/0.6795, allocations: 36 kB / 0.8228 GB, free: 2.836 MB / 0.6544 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.003807/0.6833, allocations: 1.75 MB / 0.8245 GB, free: 1.086 MB / 0.6544 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.009686/0.693, allocations: 7.609 MB / 0.832 GB, free: 8.949 MB / 0.67 GB Notification: Performance of preOpt comSubExp (simulation): time 0.005681/0.6987, allocations: 2.02 MB / 0.8339 GB, free: 6.867 MB / 0.67 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.001898/0.7006, allocations: 0.9301 MB / 0.8348 GB, free: 5.922 MB / 0.67 GB Notification: Performance of preOpt evalFunc (simulation): time 0.2944/0.9951, allocations: 6.806 MB / 0.8415 GB, free: 120.4 MB / 0.67 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.002206/0.9973, allocations: 1.08 MB / 0.8425 GB, free: 120.2 MB / 0.67 GB Notification: Performance of pre-optimization done (n=191): time 5.7e-06/0.9973, allocations: 0 / 0.8425 GB, free: 120.2 MB / 0.67 GB Notification: Performance of matching and sorting (n=191): time 0.007511/1.005, allocations: 3.335 MB / 0.8458 GB, free: 119.4 MB / 0.67 GB Notification: Performance of inlineWhenForInitialization (initialization): time 7.106e-05/1.005, allocations: 239.2 kB / 0.846 GB, free: 119.2 MB / 0.67 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001637/1.007, allocations: 1.361 MB / 0.8473 GB, free: 119 MB / 0.67 GB Notification: Performance of collectPreVariables (initialization): time 0.0001132/1.007, allocations: 69.48 kB / 0.8474 GB, free: 119 MB / 0.67 GB Notification: Performance of collectInitialEqns (initialization): time 0.0004706/1.007, allocations: 0.7644 MB / 0.8482 GB, free: 118.9 MB / 0.67 GB Notification: Performance of collectInitialBindings (initialization): time 0.0004026/1.008, allocations: 0.6628 MB / 0.8488 GB, free: 118.5 MB / 0.67 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0004365/1.008, allocations: 325.5 kB / 0.8491 GB, free: 118.5 MB / 0.67 GB Notification: Performance of setup shared object (initialization): time 3.905e-05/1.008, allocations: 302.6 kB / 0.8494 GB, free: 118.2 MB / 0.67 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001553/1.01, allocations: 0.6452 MB / 0.85 GB, free: 118.2 MB / 0.67 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001821/1.011, allocations: 0.9036 MB / 0.8509 GB, free: 118 MB / 0.67 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.003532/1.015, allocations: 1.748 MB / 0.8526 GB, free: 117.6 MB / 0.67 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 9.237e-06/1.015, allocations: 1.594 kB / 0.8526 GB, free: 117.6 MB / 0.67 GB Notification: Performance of matching and sorting (n=238) (initialization): time 0.005533/1.021, allocations: 2.407 MB / 0.855 GB, free: 117.1 MB / 0.67 GB Notification: Performance of prepare postOptimizeDAE: time 8.35e-05/1.021, allocations: 176.4 kB / 0.8551 GB, free: 116.9 MB / 0.67 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.762e-05/1.021, allocations: 7.188 kB / 0.8552 GB, free: 116.9 MB / 0.67 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.0009569/1.022, allocations: 277.9 kB / 0.8554 GB, free: 116.9 MB / 0.67 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001733/1.023, allocations: 424.2 kB / 0.8558 GB, free: 116.9 MB / 0.67 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.005834/1.029, allocations: 10.58 MB / 0.8662 GB, free: 107.5 MB / 0.67 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001882/1.031, allocations: 238 kB / 0.8664 GB, free: 107.4 MB / 0.67 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0002503/1.031, allocations: 82.97 kB / 0.8665 GB, free: 107.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.0007542/1.032, allocations: 354.8 kB / 0.8668 GB, free: 107.3 MB / 0.67 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0004658/1.033, allocations: 209.6 kB / 0.867 GB, free: 107.2 MB / 0.67 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.005595/1.038, allocations: 2.593 MB / 0.8695 GB, free: 106.9 MB / 0.67 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.683e-05/1.038, allocations: 22.69 kB / 0.8696 GB, free: 106.9 MB / 0.67 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.871e-05/1.038, allocations: 7.156 kB / 0.8696 GB, free: 106.9 MB / 0.67 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.963e-05/1.038, allocations: 14.3 kB / 0.8696 GB, free: 106.9 MB / 0.67 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.00827/1.047, allocations: 4.669 MB / 0.8741 GB, free: 105.9 MB / 0.67 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.431e-05/1.047, allocations: 3.938 kB / 0.8741 GB, free: 105.9 MB / 0.67 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001685/1.048, allocations: 396.2 kB / 0.8745 GB, free: 105.9 MB / 0.67 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.0008793/1.049, allocations: 283.4 kB / 0.8748 GB, free: 105.8 MB / 0.67 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001471/1.049, allocations: 74.48 kB / 0.8749 GB, free: 105.8 MB / 0.67 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.005414/1.055, allocations: 10.59 MB / 0.8852 GB, free: 96.32 MB / 0.67 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.2e-06/1.055, allocations: 5.188 kB / 0.8852 GB, free: 96.32 MB / 0.67 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.00664/1.062, allocations: 3.639 MB / 0.8888 GB, free: 95.38 MB / 0.67 GB Notification: Performance of postOpt removeConstants (simulation): time 0.000759/1.062, allocations: 470.2 kB / 0.8892 GB, free: 95.17 MB / 0.67 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0002553/1.063, allocations: 58.89 kB / 0.8893 GB, free: 95.17 MB / 0.67 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001352/1.064, allocations: 114.8 kB / 0.8894 GB, free: 95.16 MB / 0.67 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0004052/1.064, allocations: 215.4 kB / 0.8896 GB, free: 95.16 MB / 0.67 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.000116/1.065, allocations: 78.05 kB / 0.8897 GB, free: 95.16 MB / 0.67 GB Notification: Performance of sorting global known variables: time 0.00104/1.066, allocations: 0.9516 MB / 0.8906 GB, free: 95.05 MB / 0.67 GB Notification: Performance of sort global known variables: time 1.1e-07/1.066, allocations: 3.969 kB / 0.8906 GB, free: 95.05 MB / 0.67 GB Notification: Performance of remove unused functions: time 0.002225/1.068, allocations: 0.8826 MB / 0.8914 GB, free: 95.03 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.007002/1.075, allocations: 5.026 MB / 0.8964 GB, free: 92.54 MB / 0.67 GB Notification: Performance of simCode: created initialization part: time 0.00447/1.079, allocations: 2.916 MB / 0.8992 GB, free: 90.84 MB / 0.67 GB Notification: Performance of simCode: created event and clocks part: time 6.863e-06/1.079, allocations: 8.125 kB / 0.8992 GB, free: 90.84 MB / 0.67 GB Notification: Performance of simCode: created simulation system equations: time 0.002931/1.082, allocations: 1.99 MB / 0.9012 GB, free: 89.68 MB / 0.67 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.003117/1.085, allocations: 0.685 MB / 0.9018 GB, free: 89.46 MB / 0.67 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.02174/1.107, allocations: 16.38 MB / 0.9178 GB, free: 74.74 MB / 0.67 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0006027/1.108, allocations: 1.404 MB / 0.9192 GB, free: 73.31 MB / 0.67 GB Notification: Performance of simCode: alias equations: time 0.001145/1.109, allocations: 358.7 kB / 0.9195 GB, free: 72.95 MB / 0.67 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.00081/1.11, allocations: 0.839 MB / 0.9204 GB, free: 72.11 MB / 0.67 GB Notification: Performance of SimCode: time 5.91e-07/1.11, allocations: 3.938 kB / 0.9204 GB, free: 72.11 MB / 0.67 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.09748/1.207, allocations: 62.2 MB / 0.9811 GB, free: 10.33 MB / 0.67 GB Notification: Performance of buildModelFMU: Generate platform static: time 13.92/15.13, allocations: 7.984 kB / 0.9811 GB, free: 10.32 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