Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr ThermofluidStream_dev_ThermofluidStream.Undirected.FlowControl.Tests.TanValve.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.Undirected.FlowControl.Tests.TanValve,fileNamePrefix="ThermofluidStream_dev_ThermofluidStream_Undirected_FlowControl_Tests_TanValve",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(ThermofluidStream.Undirected.FlowControl.Tests.TanValve,fileNamePrefix="ThermofluidStream_dev_ThermofluidStream_Undirected_FlowControl_Tests_TanValve",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.001768/0.001768, 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.001748/0.001749, allocations: 194 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.589/1.589, allocations: 222.9 MB / 240.2 MB, free: 4.387 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ThermofluidStream 1.1.0-main/package.mo): time 0.7542/0.7542, allocations: 93.72 MB / 384.1 MB, free: 6.984 MB / 318.1 MB Warning: Ignoring unknown experiment annotation option: __Dymola_Algorithm = "Dassl" Notification: Performance of FrontEnd - loaded program: time 0.002494/0.002494, allocations: 82.59 kB / 463.5 MB, free: 21.93 MB / 350.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1497/0.1522, allocations: 68.27 MB / 0.5193 GB, free: 6.91 MB / 398.1 MB Notification: Performance of NFInst.instantiate(ThermofluidStream.Undirected.FlowControl.Tests.TanValve): time 0.4932/0.6454, allocations: 173.1 MB / 0.6884 GB, free: 11.1 MB / 0.4981 GB Notification: Performance of NFInst.instExpressions: time 0.01525/0.6607, allocations: 10.99 MB / 0.6991 GB, free: 2.137 MB / 0.4981 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.001424/0.6622, allocations: 49.91 kB / 0.6992 GB, free: 2.117 MB / 0.4981 GB Notification: Performance of NFTyping.typeComponents: time 0.002088/0.6643, allocations: 0.8033 MB / 0.7 GB, free: 1.453 MB / 0.4981 GB Notification: Performance of NFTyping.typeBindings: time 0.004728/0.6691, allocations: 1.667 MB / 0.7016 GB, free: 108 kB / 0.4981 GB Notification: Performance of NFTyping.typeClassSections: time 0.003452/0.6725, allocations: 1.108 MB / 0.7027 GB, free: 15.12 MB / 0.5137 GB Notification: Performance of NFFlatten.flatten: time 0.003742/0.6763, allocations: 2.534 MB / 0.7051 GB, free: 12.57 MB / 0.5137 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0008327/0.6772, allocations: 478.4 kB / 0.7056 GB, free: 12.08 MB / 0.5137 GB Notification: Performance of NFEvalConstants.evaluate: time 0.001997/0.6792, allocations: 1.031 MB / 0.7066 GB, free: 11.05 MB / 0.5137 GB Notification: Performance of NFSimplifyModel.simplify: time 0.002038/0.6812, allocations: 1.355 MB / 0.7079 GB, free: 9.688 MB / 0.5137 GB Notification: Performance of NFPackage.collectConstants: time 0.0002896/0.6815, allocations: 144 kB / 0.7081 GB, free: 9.547 MB / 0.5137 GB Notification: Performance of NFFlatten.collectFunctions: time 0.00506/0.6866, allocations: 1.934 MB / 0.71 GB, free: 7.609 MB / 0.5137 GB Notification: Performance of NFScalarize.scalarize: time 0.0004883/0.6871, allocations: 354.7 kB / 0.7103 GB, free: 7.262 MB / 0.5137 GB Notification: Performance of NFVerifyModel.verify: time 0.001568/0.6887, allocations: 0.8124 MB / 0.7111 GB, free: 6.445 MB / 0.5137 GB Notification: Performance of NFConvertDAE.convert: time 0.005957/0.6947, allocations: 2.547 MB / 0.7136 GB, free: 3.891 MB / 0.5137 GB Notification: Performance of FrontEnd - DAE generated: time 5.31e-06/0.6947, allocations: 0 / 0.7136 GB, free: 3.891 MB / 0.5137 GB Notification: Performance of FrontEnd: time 1.884e-06/0.6947, allocations: 0 / 0.7136 GB, free: 3.891 MB / 0.5137 GB Notification: Performance of Transformations before backend: time 3.03e-05/0.6947, allocations: 3.984 kB / 0.7136 GB, free: 3.887 MB / 0.5137 GB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 305 * Number of variables: 305 Notification: Performance of Generate backend data structure: time 0.004393/0.6991, allocations: 2.026 MB / 0.7156 GB, free: 1.801 MB / 0.5137 GB Notification: Performance of prepare preOptimizeDAE: time 4.675e-05/0.6992, allocations: 12.03 kB / 0.7156 GB, free: 1.789 MB / 0.5137 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0004064/0.6996, allocations: 181.8 kB / 0.7157 GB, free: 1.602 MB / 0.5137 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0003291/0.6999, allocations: 167 kB / 0.7159 GB, free: 1.438 MB / 0.5137 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001534/0.7015, allocations: 0.9123 MB / 0.7168 GB, free: 492 kB / 0.5137 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 7.534e-05/0.7016, allocations: 90.97 kB / 0.7169 GB, free: 400 kB / 0.5137 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001752/0.7017, allocations: 119.9 kB / 0.717 GB, free: 280 kB / 0.5137 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.002931/0.7047, allocations: 1.528 MB / 0.7185 GB, free: 14.7 MB / 0.5294 GB Notification: Performance of preOpt findStateOrder (simulation): time 2.524e-05/0.7047, allocations: 0 / 0.7185 GB, free: 14.7 MB / 0.5294 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001156/0.7048, allocations: 48 kB / 0.7185 GB, free: 14.66 MB / 0.5294 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.987e-05/0.7049, allocations: 35.94 kB / 0.7186 GB, free: 14.62 MB / 0.5294 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.003246/0.7081, allocations: 1.661 MB / 0.7202 GB, free: 12.95 MB / 0.5294 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.008789/0.7169, allocations: 6.274 MB / 0.7263 GB, free: 6.07 MB / 0.5294 GB Notification: Performance of preOpt comSubExp (simulation): time 0.002741/0.7197, allocations: 1.28 MB / 0.7276 GB, free: 4.781 MB / 0.5294 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.00131/0.721, allocations: 0.6997 MB / 0.7282 GB, free: 4.078 MB / 0.5294 GB Notification: Performance of preOpt evalFunc (simulation): time 0.006129/0.7272, allocations: 4.014 MB / 0.7322 GB, free: 15.6 MB / 0.545 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.001467/0.7287, allocations: 0.7317 MB / 0.7329 GB, free: 14.86 MB / 0.545 GB Notification: Performance of pre-optimization done (n=128): time 4.018e-06/0.7287, allocations: 0 / 0.7329 GB, free: 14.86 MB / 0.545 GB Notification: Performance of matching and sorting (n=129): time 0.008423/0.7371, allocations: 3.969 MB / 0.7368 GB, free: 10.8 MB / 0.545 GB Notification: Performance of inlineWhenForInitialization (initialization): time 7.121e-05/0.7372, allocations: 68.72 kB / 0.7368 GB, free: 10.72 MB / 0.545 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.000906/0.7381, allocations: 0.7126 MB / 0.7375 GB, free: 9.996 MB / 0.545 GB Notification: Performance of collectPreVariables (initialization): time 9.435e-05/0.7383, allocations: 45.7 kB / 0.7376 GB, free: 9.945 MB / 0.545 GB Notification: Performance of collectInitialEqns (initialization): time 0.0004849/0.7387, allocations: 0.5239 MB / 0.7381 GB, free: 9.414 MB / 0.545 GB Notification: Performance of collectInitialBindings (initialization): time 0.0003771/0.7391, allocations: 437.6 kB / 0.7385 GB, free: 8.984 MB / 0.545 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0003599/0.7395, allocations: 202.8 kB / 0.7387 GB, free: 8.781 MB / 0.545 GB Notification: Performance of setup shared object (initialization): time 0.0001741/0.7397, allocations: 357.9 kB / 0.739 GB, free: 8.426 MB / 0.545 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001091/0.7408, allocations: 0.514 MB / 0.7395 GB, free: 7.91 MB / 0.545 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001129/0.7419, allocations: 0.6212 MB / 0.7401 GB, free: 7.266 MB / 0.545 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.002297/0.7443, allocations: 1.248 MB / 0.7414 GB, free: 5.996 MB / 0.545 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.877e-06/0.7443, allocations: 0 / 0.7414 GB, free: 5.996 MB / 0.545 GB Notification: Performance of matching and sorting (n=140) (initialization): time 0.003254/0.7475, allocations: 1.587 MB / 0.7429 GB, free: 4.391 MB / 0.545 GB Notification: Performance of prepare postOptimizeDAE: time 5.488e-05/0.7476, allocations: 33.7 kB / 0.7429 GB, free: 4.352 MB / 0.545 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.239e-05/0.7476, allocations: 4 kB / 0.7429 GB, free: 4.348 MB / 0.545 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.000563/0.7482, allocations: 160.8 kB / 0.7431 GB, free: 4.188 MB / 0.545 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0009598/0.7492, allocations: 247.6 kB / 0.7433 GB, free: 3.945 MB / 0.545 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.004515/0.7537, allocations: 2.722 MB / 0.746 GB, free: 1.082 MB / 0.545 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0008252/0.7545, allocations: 51.94 kB / 0.746 GB, free: 1.031 MB / 0.545 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001811/0.7547, allocations: 55.92 kB / 0.7461 GB, free: 0.9766 MB / 0.545 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 7 * Number of states: 0 () * Number of discrete variables: 5 (pulse.count,$PRE.pulse.count,pulse.T_start,$PRE.pulse.T_start,$whenCondition1) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (126): * Single equations (assignments): 124 * Array equations: 0 * Algorithm blocks: 1 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 1 system {(3,11,77.8%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of prepare postOptimizeDAE: time 0.0007287/0.7555, allocations: 293.5 kB / 0.7464 GB, free: 0.6797 MB / 0.545 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0003565/0.7558, allocations: 114.6 kB / 0.7465 GB, free: 0.5664 MB / 0.545 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.005008/0.7609, allocations: 2.324 MB / 0.7488 GB, free: 14.26 MB / 0.5606 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.565e-05/0.7609, allocations: 19.94 kB / 0.7488 GB, free: 14.24 MB / 0.5606 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.306e-05/0.7609, allocations: 4 kB / 0.7488 GB, free: 14.23 MB / 0.5606 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.844e-05/0.761, allocations: 7.969 kB / 0.7488 GB, free: 14.23 MB / 0.5606 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.007284/0.7682, allocations: 3.422 MB / 0.7521 GB, free: 10.73 MB / 0.5606 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.157e-05/0.7683, allocations: 4 kB / 0.7521 GB, free: 10.73 MB / 0.5606 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001176/0.7695, allocations: 259.7 kB / 0.7524 GB, free: 10.48 MB / 0.5606 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.0004909/0.77, allocations: 148.7 kB / 0.7525 GB, free: 10.33 MB / 0.5606 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001325/0.7701, allocations: 48.08 kB / 0.7526 GB, free: 10.28 MB / 0.5606 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.003663/0.7738, allocations: 2.452 MB / 0.755 GB, free: 7.691 MB / 0.5606 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.21e-06/0.7738, allocations: 3.938 kB / 0.755 GB, free: 7.688 MB / 0.5606 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.005286/0.7791, allocations: 2.595 MB / 0.7575 GB, free: 5.062 MB / 0.5606 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0003477/0.7795, allocations: 183.6 kB / 0.7577 GB, free: 4.863 MB / 0.5606 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.000225/0.7797, allocations: 39.92 kB / 0.7577 GB, free: 4.824 MB / 0.5606 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0006853/0.7804, allocations: 43.97 kB / 0.7577 GB, free: 4.781 MB / 0.5606 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0003852/0.7808, allocations: 113.2 kB / 0.7579 GB, free: 4.672 MB / 0.5606 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001352/0.781, allocations: 63.97 kB / 0.7579 GB, free: 4.609 MB / 0.5606 GB Notification: Performance of sorting global known variables: time 0.0008671/0.7818, allocations: 0.5155 MB / 0.7584 GB, free: 4.082 MB / 0.5606 GB Notification: Performance of sort global known variables: time 1e-07/0.7818, allocations: 0 / 0.7584 GB, free: 4.082 MB / 0.5606 GB Notification: Performance of remove unused functions: time 0.001835/0.7837, allocations: 0.5077 MB / 0.7589 GB, free: 3.574 MB / 0.5606 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 5 * Number of states: 2 (flowResistance1.rear.m_flow,flowResistance2.rear.m_flow) * Number of discrete variables: 3 ($whenCondition1,pulse.T_start,pulse.count) * Number of discrete states: 1 (pulse.count) * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (141): * Single equations (assignments): 138 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 2 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 1 system {(3,11,77.8%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of Backend phase and start with SimCode phase: time 0.006826/0.7905, allocations: 3.627 MB / 0.7625 GB, free: 15.91 MB / 0.5762 GB Notification: Performance of simCode: created initialization part: time 0.00532/0.7959, allocations: 1.852 MB / 0.7643 GB, free: 14.03 MB / 0.5762 GB Notification: Performance of simCode: created event and clocks part: time 5.871e-06/0.7959, allocations: 0 / 0.7643 GB, free: 14.03 MB / 0.5762 GB Notification: Performance of simCode: created simulation system equations: time 0.002237/0.7982, allocations: 0.9943 MB / 0.7652 GB, free: 13.02 MB / 0.5762 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002378/0.8006, allocations: 395.4 kB / 0.7656 GB, free: 12.66 MB / 0.5762 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.02044/0.821, allocations: 10.74 MB / 0.7761 GB, free: 1.535 MB / 0.5762 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001093/0.8222, allocations: 1.191 MB / 0.7773 GB, free: 324 kB / 0.5762 GB Notification: Performance of simCode: alias equations: time 0.001449/0.8236, allocations: 351.8 kB / 0.7776 GB, free: 16 kB / 0.5762 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0009077/0.8246, allocations: 0.5775 MB / 0.7782 GB, free: 15.44 MB / 0.5919 GB Notification: Performance of SimCode: time 8.62e-07/0.8246, allocations: 0 / 0.7782 GB, free: 15.44 MB / 0.5919 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.09472/0.9193, allocations: 37.88 MB / 0.8152 GB, free: 9.836 MB / 0.6231 GB Notification: Performance of buildModelFMU: Generate platform static: time 11.21/12.13, allocations: 8.062 kB / 0.8152 GB, free: 9.828 MB / 0.6231 GB (rm -f ThermofluidStream_dev_ThermofluidStream.Undirected.FlowControl.Tests.TanValve.pipe ; mkfifo ThermofluidStream_dev_ThermofluidStream.Undirected.FlowControl.Tests.TanValve.pipe ; head -c 1048576 < ThermofluidStream_dev_ThermofluidStream.Undirected.FlowControl.Tests.TanValve.pipe >> ../files/ThermofluidStream_dev_ThermofluidStream.Undirected.FlowControl.Tests.TanValve.sim & python3 -m fmpy simulate --output-file ThermofluidStream_dev_ThermofluidStream.Undirected.FlowControl.Tests.TanValve_res.csv --start-time 0 --stop-time 100 --timeout 1200 --relative-tolerance 1e-06 --interface-type ModelExchange --solver CVode --output-interval 0.1 ThermofluidStream_dev_ThermofluidStream_Undirected_FlowControl_Tests_TanValve.fmu > ThermofluidStream_dev_ThermofluidStream.Undirected.FlowControl.Tests.TanValve.pipe 2>&1) diffSimulationResults("ThermofluidStream_dev_ThermofluidStream.Undirected.FlowControl.Tests.TanValve_res.csv","/mnt/ReferenceFiles/ThermofluidStream-main-regression/ReferenceData/ThermofluidStream.Undirected.FlowControl.Tests.TanValve_ref.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/ThermofluidStream_dev_ThermofluidStream.Undirected.FlowControl.Tests.TanValve.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches