Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr ThermofluidStream_dev_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_dev_ThermofluidStream_FlowControl_Tests_MCV",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(ThermofluidStream.FlowControl.Tests.MCV,fileNamePrefix="ThermofluidStream_dev_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.01941/0.01941, allocations: 97.84 kB / 15.73 MB, free: 5.961 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.003896/0.003896, allocations: 195.6 kB / 16.67 MB, free: 5.883 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 2.242/2.242, allocations: 222.9 MB / 240.4 MB, free: 15.01 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ThermofluidStream 1.1.0-main/package.mo): time 1.348/1.348, allocations: 93.7 MB / 384.2 MB, free: 5.246 MB / 302.1 MB Notification: Performance of FrontEnd - loaded program: time 0.003633/0.003634, allocations: 79.88 kB / 0.52 GB, free: 1.062 MB / 446.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.832/0.8356, allocations: 68.25 MB / 0.5866 GB, free: 10.22 MB / 446.1 MB Notification: Performance of NFInst.instantiate(ThermofluidStream.FlowControl.Tests.MCV): time 1.311/2.146, allocations: 197.6 MB / 0.7796 GB, free: 0.8672 MB / 0.5762 GB Notification: Performance of NFInst.instExpressions: time 0.05172/2.198, allocations: 24.35 MB / 0.8034 GB, free: 480 kB / 0.5762 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.008678/2.207, allocations: 108 kB / 0.8035 GB, free: 480 kB / 0.5762 GB Notification: Performance of NFTyping.typeComponents: time 0.007239/2.214, allocations: 1.163 MB / 0.8046 GB, free: 448 kB / 0.5762 GB Notification: Performance of NFTyping.typeBindings: time 0.01862/2.233, allocations: 2.617 MB / 0.8071 GB, free: 372 kB / 0.5762 GB Notification: Performance of NFTyping.typeClassSections: time 0.01326/2.246, allocations: 1.867 MB / 0.809 GB, free: 328 kB / 0.5762 GB Notification: Performance of NFFlatten.flatten: time 0.01428/2.261, allocations: 3.84 MB / 0.8127 GB, free: 15.91 MB / 0.5919 GB Notification: Performance of NFFlatten.resolveConnections: time 0.002807/2.264, allocations: 0.6051 MB / 0.8133 GB, free: 15.62 MB / 0.5919 GB Notification: Performance of NFEvalConstants.evaluate: time 0.008649/2.272, allocations: 1.694 MB / 0.815 GB, free: 15.04 MB / 0.5919 GB Notification: Performance of NFSimplifyModel.simplify: time 0.006473/2.279, allocations: 1.628 MB / 0.8166 GB, free: 14.41 MB / 0.5919 GB Notification: Performance of NFPackage.collectConstants: time 0.001137/2.28, allocations: 182.5 kB / 0.8167 GB, free: 14.41 MB / 0.5919 GB Notification: Performance of NFFlatten.collectFunctions: time 0.01754/2.298, allocations: 3.329 MB / 0.82 GB, free: 13.66 MB / 0.5919 GB Notification: Performance of NFScalarize.scalarize: time 0.001748/2.299, allocations: 480 kB / 0.8204 GB, free: 13.29 MB / 0.5919 GB Notification: Performance of NFVerifyModel.verify: time 0.00507/2.305, allocations: 1.267 MB / 0.8217 GB, free: 12.44 MB / 0.5919 GB Notification: Performance of NFConvertDAE.convert: time 0.0218/2.326, allocations: 3.897 MB / 0.8255 GB, free: 10.23 MB / 0.5919 GB Notification: Performance of FrontEnd - DAE generated: time 2.143e-05/2.326, allocations: 0 / 0.8255 GB, free: 10.23 MB / 0.5919 GB Notification: Performance of FrontEnd: time 4.197e-06/2.327, allocations: 3.938 kB / 0.8255 GB, free: 10.23 MB / 0.5919 GB Notification: Performance of Transformations before backend: time 0.000149/2.327, allocations: 0 / 0.8255 GB, free: 10.23 MB / 0.5919 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.01529/2.342, allocations: 3.56 MB / 0.829 GB, free: 7.309 MB / 0.5919 GB Notification: Performance of prepare preOptimizeDAE: time 0.0001638/2.342, allocations: 8.031 kB / 0.829 GB, free: 7.301 MB / 0.5919 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0003393/2.343, allocations: 224 kB / 0.8292 GB, free: 7.07 MB / 0.5919 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.001314/2.344, allocations: 318 kB / 0.8295 GB, free: 6.758 MB / 0.5919 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.006494/2.35, allocations: 1.811 MB / 0.8313 GB, free: 4.977 MB / 0.5919 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001357/2.351, allocations: 127 kB / 0.8314 GB, free: 4.852 MB / 0.5919 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0003654/2.351, allocations: 172 kB / 0.8315 GB, free: 4.684 MB / 0.5919 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.005345/2.356, allocations: 1.866 MB / 0.8334 GB, free: 2.734 MB / 0.5919 GB Notification: Performance of preOpt findStateOrder (simulation): time 3.61e-05/2.356, allocations: 0 / 0.8334 GB, free: 2.734 MB / 0.5919 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001765/2.357, allocations: 71.98 kB / 0.8334 GB, free: 2.664 MB / 0.5919 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.034e-05/2.357, allocations: 40 kB / 0.8335 GB, free: 2.625 MB / 0.5919 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.005489/2.362, allocations: 1.747 MB / 0.8352 GB, free: 0.8984 MB / 0.5919 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.01938/2.382, allocations: 7.772 MB / 0.8428 GB, free: 8.73 MB / 0.6075 GB Notification: Performance of preOpt comSubExp (simulation): time 0.008259/2.39, allocations: 2.023 MB / 0.8447 GB, free: 6.664 MB / 0.6075 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.002895/2.393, allocations: 0.92 MB / 0.8456 GB, free: 5.73 MB / 0.6075 GB Notification: Performance of preOpt evalFunc (simulation): time 0.01501/2.408, allocations: 6.797 MB / 0.8523 GB, free: 14.11 MB / 0.6231 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.003784/2.412, allocations: 1.093 MB / 0.8533 GB, free: 12.99 MB / 0.6231 GB Notification: Performance of pre-optimization done (n=191): time 1.741e-05/2.412, allocations: 0 / 0.8533 GB, free: 12.99 MB / 0.6231 GB Notification: Performance of matching and sorting (n=191): time 0.01266/2.424, allocations: 3.375 MB / 0.8566 GB, free: 9.484 MB / 0.6231 GB Notification: Performance of inlineWhenForInitialization (initialization): time 0.000276/2.425, allocations: 249.5 kB / 0.8569 GB, free: 9.191 MB / 0.6231 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.005721/2.431, allocations: 1.829 MB / 0.8587 GB, free: 7.344 MB / 0.6231 GB Notification: Performance of collectPreVariables (initialization): time 0.000297/2.431, allocations: 65.7 kB / 0.8587 GB, free: 7.273 MB / 0.6231 GB Notification: Performance of collectInitialEqns (initialization): time 0.001717/2.433, allocations: 0.9958 MB / 0.8597 GB, free: 6.27 MB / 0.6231 GB Notification: Performance of collectInitialBindings (initialization): time 0.001269/2.434, allocations: 0.6691 MB / 0.8604 GB, free: 5.613 MB / 0.6231 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0008634/2.435, allocations: 323.5 kB / 0.8607 GB, free: 5.293 MB / 0.6231 GB Notification: Performance of setup shared object (initialization): time 0.0002967/2.435, allocations: 301.1 kB / 0.8609 GB, free: 4.996 MB / 0.6231 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.002619/2.438, allocations: 0.6441 MB / 0.8616 GB, free: 4.352 MB / 0.6231 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.002856/2.441, allocations: 0.9058 MB / 0.8625 GB, free: 3.371 MB / 0.6231 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.005172/2.446, allocations: 1.749 MB / 0.8642 GB, free: 1.531 MB / 0.6231 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.98e-05/2.446, allocations: 4 kB / 0.8642 GB, free: 1.527 MB / 0.6231 GB Notification: Performance of matching and sorting (n=238) (initialization): time 0.00845/2.454, allocations: 2.462 MB / 0.8666 GB, free: 15.04 MB / 0.6387 GB Notification: Performance of prepare postOptimizeDAE: time 0.0002425/2.455, allocations: 178.2 kB / 0.8667 GB, free: 14.83 MB / 0.6387 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.088e-05/2.455, allocations: 8 kB / 0.8668 GB, free: 14.82 MB / 0.6387 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.001388/2.456, allocations: 271.1 kB / 0.867 GB, free: 14.54 MB / 0.6387 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.002035/2.458, allocations: 420.2 kB / 0.8674 GB, free: 14.15 MB / 0.6387 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.01494/2.473, allocations: 10.57 MB / 0.8777 GB, free: 2.656 MB / 0.6387 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.003834/2.477, allocations: 238.7 kB / 0.878 GB, free: 2.422 MB / 0.6387 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0009056/2.478, allocations: 79.97 kB / 0.878 GB, free: 2.344 MB / 0.6387 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.00237/2.48, allocations: 376.4 kB / 0.8784 GB, free: 1.988 MB / 0.6387 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.001807/2.482, allocations: 272.7 kB / 0.8787 GB, free: 1.723 MB / 0.6387 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.009203/2.491, allocations: 2.627 MB / 0.8812 GB, free: 15.06 MB / 0.6544 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.136e-05/2.491, allocations: 24 kB / 0.8813 GB, free: 15.04 MB / 0.6544 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.428e-05/2.491, allocations: 8 kB / 0.8813 GB, free: 15.03 MB / 0.6544 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.442e-05/2.492, allocations: 15.95 kB / 0.8813 GB, free: 15.01 MB / 0.6544 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01588/2.507, allocations: 4.83 MB / 0.886 GB, free: 10.16 MB / 0.6544 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.794e-05/2.507, allocations: 4 kB / 0.886 GB, free: 10.15 MB / 0.6544 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.002144/2.51, allocations: 397.9 kB / 0.8864 GB, free: 9.781 MB / 0.6544 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.001286/2.511, allocations: 270.9 kB / 0.8866 GB, free: 9.5 MB / 0.6544 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0003109/2.511, allocations: 67.95 kB / 0.8867 GB, free: 9.434 MB / 0.6544 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0155/2.527, allocations: 10.58 MB / 0.897 GB, free: 13.92 MB / 0.67 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.126e-05/2.527, allocations: 6.531 kB / 0.897 GB, free: 13.92 MB / 0.67 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.01357/2.54, allocations: 3.705 MB / 0.9006 GB, free: 10.17 MB / 0.67 GB Notification: Performance of postOpt removeConstants (simulation): time 0.002899/2.543, allocations: 0.5064 MB / 0.9011 GB, free: 9.641 MB / 0.67 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.001508/2.545, allocations: 55.89 kB / 0.9012 GB, free: 9.586 MB / 0.67 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.002854/2.548, allocations: 115.9 kB / 0.9013 GB, free: 9.473 MB / 0.67 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.001215/2.549, allocations: 224.7 kB / 0.9015 GB, free: 9.258 MB / 0.67 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0003471/2.55, allocations: 71.97 kB / 0.9016 GB, free: 9.188 MB / 0.67 GB Notification: Performance of sorting global known variables: time 0.004754/2.554, allocations: 1.241 MB / 0.9028 GB, free: 7.938 MB / 0.67 GB Notification: Performance of sort global known variables: time 5.61e-07/2.554, allocations: 7.938 kB / 0.9028 GB, free: 7.93 MB / 0.67 GB Notification: Performance of remove unused functions: time 0.007029/2.562, allocations: 0.8928 MB / 0.9037 GB, free: 7.035 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.01504/2.577, allocations: 5.097 MB / 0.9087 GB, free: 1.938 MB / 0.67 GB Notification: Performance of simCode: created initialization part: time 0.0092/2.586, allocations: 2.909 MB / 0.9115 GB, free: 14.91 MB / 0.6856 GB Notification: Performance of simCode: created event and clocks part: time 1.279e-05/2.586, allocations: 4 kB / 0.9115 GB, free: 14.9 MB / 0.6856 GB Notification: Performance of simCode: created simulation system equations: time 0.005919/2.592, allocations: 1.983 MB / 0.9134 GB, free: 12.88 MB / 0.6856 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.006338/2.598, allocations: 0.7398 MB / 0.9142 GB, free: 12.16 MB / 0.6856 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.05051/2.649, allocations: 18.34 MB / 0.9321 GB, free: 9.457 MB / 0.7012 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.002329/2.651, allocations: 1.564 MB / 0.9336 GB, free: 7.859 MB / 0.7012 GB Notification: Performance of simCode: alias equations: time 0.002767/2.654, allocations: 418.1 kB / 0.934 GB, free: 7.445 MB / 0.7012 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.002232/2.656, allocations: 1.077 MB / 0.9351 GB, free: 6.367 MB / 0.7012 GB Notification: Performance of SimCode: time 1.062e-06/2.656, allocations: 2.531 kB / 0.9351 GB, free: 6.367 MB / 0.7012 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.2534/2.91, allocations: 68.13 MB / 1.002 GB, free: 2.664 MB / 0.7637 GB Notification: Performance of buildModelFMU: Generate platform static: time 23.77/26.68, allocations: 11.92 kB / 1.002 GB, free: 2.652 MB / 0.7637 GB (rm -f ThermofluidStream_dev_ThermofluidStream.FlowControl.Tests.MCV.pipe ; mkfifo ThermofluidStream_dev_ThermofluidStream.FlowControl.Tests.MCV.pipe ; head -c 1048576 < ThermofluidStream_dev_ThermofluidStream.FlowControl.Tests.MCV.pipe >> ../files/ThermofluidStream_dev_ThermofluidStream.FlowControl.Tests.MCV.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=ThermofluidStream_dev_ThermofluidStream.FlowControl.Tests.MCV_res.mat --tempDir=temp_ThermofluidStream_dev_ThermofluidStream_FlowControl_Tests_MCV_fmu --startTime=0 --stopTime=10 --timeout=1200 --tolerance=1e-06 ThermofluidStream_dev_ThermofluidStream_FlowControl_Tests_MCV.fmu > ThermofluidStream_dev_ThermofluidStream.FlowControl.Tests.MCV.pipe 2>&1) diffSimulationResults("ThermofluidStream_dev_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_dev_ThermofluidStream.FlowControl.Tests.MCV.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches