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.008428/0.008428, allocations: 98.16 kB / 15.73 MB, free: 6.043 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.002102/0.002102, allocations: 196.2 kB / 16.68 MB, free: 5.969 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.84/1.84, allocations: 222.9 MB / 240.4 MB, free: 4.328 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ThermofluidStream 1.1.0/package.mo): time 0.9329/0.9329, allocations: 89.47 MB / 380 MB, free: 10.98 MB / 318.1 MB Notification: Performance of FrontEnd - loaded program: time 0.003086/0.003087, allocations: 83.81 kB / 0.5139 GB, free: 11.76 MB / 398.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2007/0.2039, allocations: 67.3 MB / 0.5797 GB, free: 8.387 MB / 462.1 MB Notification: Performance of NFInst.instantiate(ThermofluidStream.FlowControl.Tests.MCV): time 0.7995/1.004, allocations: 197.1 MB / 0.7721 GB, free: 7.238 MB / 0.6075 GB Notification: Performance of NFInst.instExpressions: time 0.04715/1.051, allocations: 24.1 MB / 0.7956 GB, free: 15.06 MB / 0.6387 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.003213/1.054, allocations: 31.81 kB / 0.7956 GB, free: 15.03 MB / 0.6387 GB Notification: Performance of NFTyping.typeComponents: time 0.005666/1.06, allocations: 1.13 MB / 0.7968 GB, free: 13.89 MB / 0.6387 GB Notification: Performance of NFTyping.typeBindings: time 0.01211/1.072, allocations: 2.404 MB / 0.7991 GB, free: 11.48 MB / 0.6387 GB Notification: Performance of NFTyping.typeClassSections: time 0.008978/1.081, allocations: 1.877 MB / 0.8009 GB, free: 9.594 MB / 0.6387 GB Notification: Performance of NFFlatten.flatten: time 0.007731/1.089, allocations: 3.306 MB / 0.8042 GB, free: 6.273 MB / 0.6387 GB Notification: Performance of NFFlatten.resolveConnections: time 0.00153/1.09, allocations: 0.5485 MB / 0.8047 GB, free: 5.695 MB / 0.6387 GB Notification: Performance of NFEvalConstants.evaluate: time 0.005221/1.096, allocations: 1.44 MB / 0.8061 GB, free: 4.25 MB / 0.6387 GB Notification: Performance of NFSimplifyModel.simplify: time 0.003167/1.099, allocations: 1.556 MB / 0.8076 GB, free: 2.688 MB / 0.6387 GB Notification: Performance of NFPackage.collectConstants: time 0.0007026/1.099, allocations: 180 kB / 0.8078 GB, free: 2.512 MB / 0.6387 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0114/1.111, allocations: 3.326 MB / 0.811 GB, free: 15.18 MB / 0.6544 GB Notification: Performance of NFScalarize.scalarize: time 0.001116/1.112, allocations: 458 kB / 0.8115 GB, free: 14.73 MB / 0.6544 GB Notification: Performance of NFVerifyModel.verify: time 0.002825/1.115, allocations: 1.131 MB / 0.8126 GB, free: 13.59 MB / 0.6544 GB Notification: Performance of NFConvertDAE.convert: time 0.01186/1.127, allocations: 3.486 MB / 0.816 GB, free: 10.1 MB / 0.6544 GB Notification: Performance of FrontEnd - DAE generated: time 5.41e-06/1.127, allocations: 0 / 0.816 GB, free: 10.1 MB / 0.6544 GB Notification: Performance of FrontEnd: time 2.204e-06/1.127, allocations: 0 / 0.816 GB, free: 10.1 MB / 0.6544 GB Notification: Performance of Transformations before backend: time 0.00017/1.127, allocations: 0 / 0.816 GB, free: 10.1 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.009064/1.136, allocations: 3.098 MB / 0.819 GB, free: 6.883 MB / 0.6544 GB Notification: Performance of prepare preOptimizeDAE: time 5.629e-05/1.136, allocations: 12.03 kB / 0.819 GB, free: 6.871 MB / 0.6544 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0005032/1.137, allocations: 224.1 kB / 0.8192 GB, free: 6.641 MB / 0.6544 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.000833/1.138, allocations: 255.3 kB / 0.8195 GB, free: 6.391 MB / 0.6544 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.002213/1.14, allocations: 1.141 MB / 0.8206 GB, free: 5.199 MB / 0.6544 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001047/1.14, allocations: 119.5 kB / 0.8207 GB, free: 5.082 MB / 0.6544 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0004158/1.14, allocations: 180.5 kB / 0.8209 GB, free: 4.906 MB / 0.6544 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.005097/1.146, allocations: 1.871 MB / 0.8227 GB, free: 2.941 MB / 0.6544 GB Notification: Performance of preOpt findStateOrder (simulation): time 3.676e-05/1.146, allocations: 3.938 kB / 0.8227 GB, free: 2.938 MB / 0.6544 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0003109/1.146, allocations: 64 kB / 0.8228 GB, free: 2.875 MB / 0.6544 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.987e-05/1.146, allocations: 44 kB / 0.8228 GB, free: 2.832 MB / 0.6544 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.004471/1.151, allocations: 1.742 MB / 0.8245 GB, free: 1.09 MB / 0.6544 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.01564/1.166, allocations: 7.609 MB / 0.8319 GB, free: 8.953 MB / 0.67 GB Notification: Performance of preOpt comSubExp (simulation): time 0.007374/1.174, allocations: 2.027 MB / 0.8339 GB, free: 6.867 MB / 0.67 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.002307/1.176, allocations: 0.9291 MB / 0.8348 GB, free: 5.922 MB / 0.67 GB Notification: Performance of preOpt evalFunc (simulation): time 0.4035/1.579, allocations: 6.806 MB / 0.8415 GB, free: 226.7 MB / 0.67 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.00401/1.584, allocations: 1.085 MB / 0.8425 GB, free: 226.6 MB / 0.67 GB Notification: Performance of pre-optimization done (n=191): time 7.083e-06/1.584, allocations: 0.9062 kB / 0.8425 GB, free: 226.6 MB / 0.67 GB Notification: Performance of matching and sorting (n=191): time 0.01023/1.594, allocations: 3.338 MB / 0.8458 GB, free: 225.3 MB / 0.67 GB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001357/1.594, allocations: 234.3 kB / 0.846 GB, free: 225.1 MB / 0.67 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.002174/1.596, allocations: 1.363 MB / 0.8474 GB, free: 224.5 MB / 0.67 GB Notification: Performance of collectPreVariables (initialization): time 0.0001671/1.596, allocations: 68.28 kB / 0.8474 GB, free: 224.5 MB / 0.67 GB Notification: Performance of collectInitialEqns (initialization): time 0.0006058/1.597, allocations: 0.7645 MB / 0.8482 GB, free: 224 MB / 0.67 GB Notification: Performance of collectInitialBindings (initialization): time 0.0008129/1.598, allocations: 0.6649 MB / 0.8488 GB, free: 223.6 MB / 0.67 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0008116/1.599, allocations: 323.9 kB / 0.8491 GB, free: 223.4 MB / 0.67 GB Notification: Performance of setup shared object (initialization): time 0.0001126/1.599, allocations: 307.1 kB / 0.8494 GB, free: 223.1 MB / 0.67 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.002025/1.601, allocations: 0.6473 MB / 0.8501 GB, free: 222.9 MB / 0.67 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.002335/1.603, allocations: 0.8951 MB / 0.8509 GB, free: 222.5 MB / 0.67 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.004464/1.608, allocations: 1.751 MB / 0.8526 GB, free: 221.5 MB / 0.67 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 7.614e-06/1.608, allocations: 0 / 0.8526 GB, free: 221.5 MB / 0.67 GB Notification: Performance of matching and sorting (n=238) (initialization): time 0.005702/1.613, allocations: 2.406 MB / 0.855 GB, free: 220.4 MB / 0.67 GB Notification: Performance of prepare postOptimizeDAE: time 0.0002005/1.614, allocations: 179.6 kB / 0.8552 GB, free: 220.2 MB / 0.67 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.198e-05/1.614, allocations: 3.625 kB / 0.8552 GB, free: 220.2 MB / 0.67 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.001422/1.615, allocations: 277.9 kB / 0.8554 GB, free: 220.1 MB / 0.67 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.002094/1.617, allocations: 420.5 kB / 0.8558 GB, free: 220.1 MB / 0.67 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.008753/1.626, allocations: 10.58 MB / 0.8662 GB, free: 209.8 MB / 0.67 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.003498/1.63, allocations: 241 kB / 0.8664 GB, free: 209.7 MB / 0.67 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0003954/1.63, allocations: 82.27 kB / 0.8665 GB, free: 209.6 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.001193/1.631, allocations: 355.9 kB / 0.8668 GB, free: 209.4 MB / 0.67 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0006777/1.632, allocations: 209.3 kB / 0.867 GB, free: 209.3 MB / 0.67 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.009761/1.642, allocations: 2.594 MB / 0.8695 GB, free: 208.2 MB / 0.67 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 7.455e-05/1.642, allocations: 21.56 kB / 0.8696 GB, free: 208.2 MB / 0.67 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.684e-05/1.642, allocations: 7.938 kB / 0.8696 GB, free: 208.2 MB / 0.67 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.419e-05/1.642, allocations: 11.78 kB / 0.8696 GB, free: 208.2 MB / 0.67 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01147/1.654, allocations: 4.678 MB / 0.8741 GB, free: 206 MB / 0.67 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.704e-05/1.654, allocations: 5.469 kB / 0.8741 GB, free: 206 MB / 0.67 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001749/1.655, allocations: 389.2 kB / 0.8745 GB, free: 205.9 MB / 0.67 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.001152/1.657, allocations: 286.3 kB / 0.8748 GB, free: 205.8 MB / 0.67 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0003/1.657, allocations: 67.55 kB / 0.8749 GB, free: 205.8 MB / 0.67 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.008786/1.666, allocations: 10.59 MB / 0.8852 GB, free: 195.4 MB / 0.67 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 7.684e-06/1.666, allocations: 8.062 kB / 0.8852 GB, free: 195.4 MB / 0.67 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.01003/1.676, allocations: 3.636 MB / 0.8888 GB, free: 193.6 MB / 0.67 GB Notification: Performance of postOpt removeConstants (simulation): time 0.001196/1.677, allocations: 473 kB / 0.8892 GB, free: 193.3 MB / 0.67 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0004051/1.677, allocations: 55.84 kB / 0.8893 GB, free: 193.2 MB / 0.67 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001936/1.679, allocations: 111.9 kB / 0.8894 GB, free: 193.2 MB / 0.67 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0007158/1.68, allocations: 222.5 kB / 0.8896 GB, free: 193.2 MB / 0.67 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0002825/1.68, allocations: 75.27 kB / 0.8897 GB, free: 193.1 MB / 0.67 GB Notification: Performance of sorting global known variables: time 0.00214/1.682, allocations: 0.9486 MB / 0.8906 GB, free: 192.8 MB / 0.67 GB Notification: Performance of sort global known variables: time 7.11e-07/1.683, allocations: 0 / 0.8906 GB, free: 192.8 MB / 0.67 GB Notification: Performance of remove unused functions: time 0.003909/1.686, allocations: 0.8905 MB / 0.8915 GB, free: 192.5 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.01093/1.697, allocations: 5.021 MB / 0.8964 GB, free: 189.9 MB / 0.67 GB Notification: Performance of simCode: created initialization part: time 0.007648/1.705, allocations: 2.914 MB / 0.8992 GB, free: 188.2 MB / 0.67 GB Notification: Performance of simCode: created event and clocks part: time 9.007e-06/1.705, allocations: 1.156 kB / 0.8992 GB, free: 188.2 MB / 0.67 GB Notification: Performance of simCode: created simulation system equations: time 0.004499/1.71, allocations: 1.998 MB / 0.9012 GB, free: 187 MB / 0.67 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.005105/1.715, allocations: 0.6918 MB / 0.9018 GB, free: 186.7 MB / 0.67 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.03242/1.747, allocations: 16.37 MB / 0.9178 GB, free: 175.4 MB / 0.67 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001346/1.749, allocations: 1.406 MB / 0.9192 GB, free: 174 MB / 0.67 GB Notification: Performance of simCode: alias equations: time 0.001833/1.751, allocations: 354.7 kB / 0.9195 GB, free: 173.6 MB / 0.67 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0009364/1.752, allocations: 0.8429 MB / 0.9204 GB, free: 172.8 MB / 0.67 GB Notification: Performance of SimCode: time 8.12e-07/1.752, allocations: 0 / 0.9204 GB, free: 172.8 MB / 0.67 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.1526/1.904, allocations: 62.21 MB / 0.9811 GB, free: 110.9 MB / 0.67 GB Notification: Performance of buildModelFMU: Generate platform static: time 19.28/21.19, allocations: 4.062 kB / 0.9811 GB, free: 110.9 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 & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=ThermofluidStream_ThermofluidStream.FlowControl.Tests.MCV_res.mat --tempDir=temp_ThermofluidStream_ThermofluidStream_FlowControl_Tests_MCV_fmu --startTime=0 --stopTime=10 --timeout=1200 --tolerance=1e-06 ThermofluidStream_ThermofluidStream_FlowControl_Tests_MCV.fmu > ThermofluidStream_ThermofluidStream.FlowControl.Tests.MCV.pipe 2>&1) diffSimulationResults("ThermofluidStream_ThermofluidStream.FlowControl.Tests.MCV_res.mat","/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