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.001588/0.001588, allocations: 108 kB / 15.6 MB, free: 132 kB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.002208/0.002208, allocations: 192.5 kB / 16.53 MB, free: 6.391 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.79/1.79, allocations: 222.9 MB / 240.2 MB, free: 4.434 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ThermofluidStream 1.1.0-main/package.mo): time 0.9444/0.9444, allocations: 91.19 MB / 381.6 MB, free: 9.438 MB / 318.1 MB Warning: Ignoring unknown experiment annotation option: __Dymola_NumberOfIntervals = 1500 Warning: Ignoring unknown experiment annotation option: __Dymola_Algorithm = "Dassl" Warning: Ignoring unknown experiment annotation option: __Dymola_NumberOfIntervals = 1500 Warning: Ignoring unknown experiment annotation option: __Dymola_Algorithm = "Dassl" Notification: Performance of FrontEnd - loaded program: time 0.001861/0.001861, allocations: 81.44 kB / 460.4 MB, free: 23.14 MB / 350.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2153/0.2172, allocations: 67.69 MB / 0.5157 GB, free: 10.14 MB / 398.1 MB Notification: Performance of NFInst.instantiate(ThermofluidStream.FlowControl.Tests.MCV): time 0.8171/1.034, allocations: 197.5 MB / 0.7085 GB, free: 10.14 MB / 0.5137 GB Notification: Performance of NFInst.instExpressions: time 0.03988/1.074, allocations: 24.21 MB / 0.7322 GB, free: 1.844 MB / 0.5294 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.004253/1.079, allocations: 83.44 kB / 0.7323 GB, free: 1.762 MB / 0.5294 GB Notification: Performance of NFTyping.typeComponents: time 0.004969/1.084, allocations: 1.16 MB / 0.7334 GB, free: 0.5898 MB / 0.5294 GB Notification: Performance of NFTyping.typeBindings: time 0.01317/1.097, allocations: 2.524 MB / 0.7359 GB, free: 14.05 MB / 0.545 GB Notification: Performance of NFTyping.typeClassSections: time 0.007669/1.105, allocations: 1.872 MB / 0.7377 GB, free: 12.17 MB / 0.545 GB Notification: Performance of NFFlatten.flatten: time 0.008336/1.113, allocations: 3.583 MB / 0.7412 GB, free: 8.57 MB / 0.545 GB Notification: Performance of NFFlatten.resolveConnections: time 0.002047/1.115, allocations: 0.5642 MB / 0.7417 GB, free: 7.98 MB / 0.545 GB Notification: Performance of NFEvalConstants.evaluate: time 0.005262/1.12, allocations: 1.579 MB / 0.7433 GB, free: 6.395 MB / 0.545 GB Notification: Performance of NFSimplifyModel.simplify: time 0.004154/1.125, allocations: 1.606 MB / 0.7449 GB, free: 4.781 MB / 0.545 GB Notification: Performance of NFPackage.collectConstants: time 0.001699/1.126, allocations: 180 kB / 0.745 GB, free: 4.605 MB / 0.545 GB Notification: Performance of NFFlatten.collectFunctions: time 0.01315/1.139, allocations: 3.322 MB / 0.7483 GB, free: 1.277 MB / 0.545 GB Notification: Performance of NFScalarize.scalarize: time 0.001738/1.141, allocations: 481.8 kB / 0.7487 GB, free: 0.8047 MB / 0.545 GB Notification: Performance of NFVerifyModel.verify: time 0.004048/1.145, allocations: 1.224 MB / 0.7499 GB, free: 15.57 MB / 0.5606 GB Notification: Performance of NFConvertDAE.convert: time 0.01401/1.159, allocations: 3.696 MB / 0.7535 GB, free: 11.87 MB / 0.5606 GB Notification: Performance of FrontEnd - DAE generated: time 6.331e-06/1.16, allocations: 0 / 0.7535 GB, free: 11.87 MB / 0.5606 GB Notification: Performance of FrontEnd: time 1.934e-06/1.16, allocations: 4 kB / 0.7535 GB, free: 11.86 MB / 0.5606 GB Notification: Performance of Transformations before backend: time 0.0001566/1.16, allocations: 0 / 0.7535 GB, free: 11.86 MB / 0.5606 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.01148/1.171, allocations: 3.345 MB / 0.7568 GB, free: 8.402 MB / 0.5606 GB Notification: Performance of prepare preOptimizeDAE: time 5.374e-05/1.171, allocations: 8.031 kB / 0.7568 GB, free: 8.395 MB / 0.5606 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0006895/1.172, allocations: 220 kB / 0.757 GB, free: 8.168 MB / 0.5606 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.001198/1.173, allocations: 284.5 kB / 0.7573 GB, free: 7.887 MB / 0.5606 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.004976/1.178, allocations: 1.507 MB / 0.7588 GB, free: 6.305 MB / 0.5606 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0002193/1.178, allocations: 123.1 kB / 0.7589 GB, free: 6.184 MB / 0.5606 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0005434/1.179, allocations: 175.9 kB / 0.7591 GB, free: 6.012 MB / 0.5606 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.005957/1.185, allocations: 1.867 MB / 0.7609 GB, free: 4.051 MB / 0.5606 GB Notification: Performance of preOpt findStateOrder (simulation): time 7.073e-05/1.185, allocations: 7.922 kB / 0.7609 GB, free: 4.043 MB / 0.5606 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0003025/1.185, allocations: 67.98 kB / 0.761 GB, free: 3.977 MB / 0.5606 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.382e-05/1.185, allocations: 44 kB / 0.761 GB, free: 3.934 MB / 0.5606 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.005036/1.191, allocations: 1.746 MB / 0.7627 GB, free: 2.184 MB / 0.5606 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.01829/1.209, allocations: 7.744 MB / 0.7703 GB, free: 9.918 MB / 0.5762 GB Notification: Performance of preOpt comSubExp (simulation): time 0.006851/1.216, allocations: 2.023 MB / 0.7722 GB, free: 7.836 MB / 0.5762 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.002265/1.218, allocations: 0.9164 MB / 0.7731 GB, free: 6.902 MB / 0.5762 GB Notification: Performance of preOpt evalFunc (simulation): time 0.01067/1.229, allocations: 6.806 MB / 0.7798 GB, free: 15.21 MB / 0.5919 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.002855/1.232, allocations: 1.084 MB / 0.7808 GB, free: 14.09 MB / 0.5919 GB Notification: Performance of pre-optimization done (n=191): time 1.356e-05/1.232, allocations: 0 / 0.7808 GB, free: 14.09 MB / 0.5919 GB Notification: Performance of matching and sorting (n=191): time 0.009437/1.241, allocations: 3.366 MB / 0.7841 GB, free: 10.57 MB / 0.5919 GB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001396/1.241, allocations: 237.5 kB / 0.7843 GB, free: 10.29 MB / 0.5919 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.003267/1.245, allocations: 1.694 MB / 0.786 GB, free: 8.566 MB / 0.5919 GB Notification: Performance of collectPreVariables (initialization): time 0.0002492/1.245, allocations: 65.7 kB / 0.7861 GB, free: 8.496 MB / 0.5919 GB Notification: Performance of collectInitialEqns (initialization): time 0.001016/1.246, allocations: 0.9173 MB / 0.787 GB, free: 7.566 MB / 0.5919 GB Notification: Performance of collectInitialBindings (initialization): time 0.0007514/1.247, allocations: 0.6315 MB / 0.7876 GB, free: 6.926 MB / 0.5919 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0006494/1.247, allocations: 327.5 kB / 0.7879 GB, free: 6.602 MB / 0.5919 GB Notification: Performance of setup shared object (initialization): time 0.0001348/1.248, allocations: 301.1 kB / 0.7882 GB, free: 6.305 MB / 0.5919 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001932/1.249, allocations: 0.648 MB / 0.7888 GB, free: 5.656 MB / 0.5919 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.002071/1.252, allocations: 0.9041 MB / 0.7897 GB, free: 4.676 MB / 0.5919 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.004082/1.256, allocations: 1.745 MB / 0.7914 GB, free: 2.82 MB / 0.5919 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.556e-05/1.256, allocations: 0 / 0.7914 GB, free: 2.82 MB / 0.5919 GB Notification: Performance of matching and sorting (n=238) (initialization): time 0.006754/1.262, allocations: 2.436 MB / 0.7938 GB, free: 324 kB / 0.5919 GB Notification: Performance of prepare postOptimizeDAE: time 0.0001576/1.263, allocations: 178.2 kB / 0.7939 GB, free: 108 kB / 0.5919 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.483e-05/1.263, allocations: 8.375 kB / 0.794 GB, free: 100 kB / 0.5919 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.0009817/1.264, allocations: 265.8 kB / 0.7942 GB, free: 15.81 MB / 0.6075 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001846/1.266, allocations: 415.4 kB / 0.7946 GB, free: 15.41 MB / 0.6075 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.01211/1.278, allocations: 10.57 MB / 0.8049 GB, free: 3.867 MB / 0.6075 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.003325/1.281, allocations: 234 kB / 0.8052 GB, free: 3.637 MB / 0.6075 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0006066/1.282, allocations: 88.03 kB / 0.8052 GB, free: 3.551 MB / 0.6075 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.001545/1.283, allocations: 369.7 kB / 0.8056 GB, free: 3.184 MB / 0.6075 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.001648/1.285, allocations: 244.8 kB / 0.8058 GB, free: 2.941 MB / 0.6075 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.007763/1.293, allocations: 2.633 MB / 0.8084 GB, free: 256 kB / 0.6075 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.832e-05/1.293, allocations: 20 kB / 0.8084 GB, free: 236 kB / 0.6075 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.677e-05/1.293, allocations: 12 kB / 0.8084 GB, free: 224 kB / 0.6075 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.828e-05/1.293, allocations: 7.969 kB / 0.8084 GB, free: 216 kB / 0.6075 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01246/1.305, allocations: 4.774 MB / 0.8131 GB, free: 11.32 MB / 0.6231 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.279e-05/1.305, allocations: 4 kB / 0.8131 GB, free: 11.31 MB / 0.6231 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001889/1.307, allocations: 403.7 kB / 0.8135 GB, free: 10.92 MB / 0.6231 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.001005/1.308, allocations: 261.7 kB / 0.8137 GB, free: 10.64 MB / 0.6231 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0003028/1.309, allocations: 67.95 kB / 0.8138 GB, free: 10.57 MB / 0.6231 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.384/1.693, allocations: 10.57 MB / 0.8241 GB, free: 234.7 MB / 0.6231 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 9.218e-06/1.693, allocations: 5.812 kB / 0.8241 GB, free: 234.7 MB / 0.6231 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.008803/1.702, allocations: 3.667 MB / 0.8277 GB, free: 233.9 MB / 0.6231 GB Notification: Performance of postOpt removeConstants (simulation): time 0.001479/1.703, allocations: 491.1 kB / 0.8282 GB, free: 233.8 MB / 0.6231 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.000378/1.704, allocations: 55.5 kB / 0.8282 GB, free: 233.8 MB / 0.6231 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001693/1.705, allocations: 115.8 kB / 0.8283 GB, free: 233.8 MB / 0.6231 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0005948/1.706, allocations: 213.2 kB / 0.8285 GB, free: 233.8 MB / 0.6231 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0002341/1.706, allocations: 81.31 kB / 0.8286 GB, free: 233.8 MB / 0.6231 GB Notification: Performance of sorting global known variables: time 0.002492/1.709, allocations: 1.164 MB / 0.8298 GB, free: 233.7 MB / 0.6231 GB Notification: Performance of sort global known variables: time 1.3e-07/1.709, allocations: 0 / 0.8298 GB, free: 233.7 MB / 0.6231 GB Notification: Performance of remove unused functions: time 0.005481/1.714, allocations: 0.8855 MB / 0.8306 GB, free: 233.7 MB / 0.6231 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.009623/1.724, allocations: 5.053 MB / 0.8356 GB, free: 231.4 MB / 0.6231 GB Notification: Performance of simCode: created initialization part: time 0.007404/1.731, allocations: 2.994 MB / 0.8385 GB, free: 229.7 MB / 0.6231 GB Notification: Performance of simCode: created event and clocks part: time 1.505e-05/1.731, allocations: 0 / 0.8385 GB, free: 229.7 MB / 0.6231 GB Notification: Performance of simCode: created simulation system equations: time 0.004709/1.736, allocations: 1.991 MB / 0.8404 GB, free: 228.5 MB / 0.6231 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.005857/1.742, allocations: 0.7317 MB / 0.8411 GB, free: 228.3 MB / 0.6231 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0413/1.783, allocations: 20.44 MB / 0.8611 GB, free: 215.7 MB / 0.6231 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001112/1.784, allocations: 1.516 MB / 0.8626 GB, free: 215 MB / 0.6231 GB Notification: Performance of simCode: alias equations: time 0.002137/1.787, allocations: 401 kB / 0.863 GB, free: 214.8 MB / 0.6231 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001351/1.788, allocations: 1.015 MB / 0.864 GB, free: 214 MB / 0.6231 GB Notification: Performance of SimCode: time 1.663e-06/1.788, allocations: 4 kB / 0.864 GB, free: 214 MB / 0.6231 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.1319/1.92, allocations: 65.81 MB / 0.9282 GB, free: 154 MB / 0.6231 GB Notification: Performance of buildModelFMU: Generate platform static: time 14.29/16.21, allocations: 7.281 kB / 0.9282 GB, free: 154 MB / 0.6231 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