Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr ThermofluidStream_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/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.Undirected.FlowControl.Tests.TanValve,fileNamePrefix="ThermofluidStream_ThermofluidStream_Undirected_FlowControl_Tests_TanValve",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(ThermofluidStream.Undirected.FlowControl.Tests.TanValve,fileNamePrefix="ThermofluidStream_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.004935/0.004935, allocations: 97.62 kB / 15.73 MB, free: 6.047 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.001234/0.001234, allocations: 201.9 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.45/1.45, allocations: 222.9 MB / 240.4 MB, free: 4.344 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ThermofluidStream 1.1.0/package.mo): time 0.7715/0.7715, allocations: 89.47 MB / 380 MB, free: 10.95 MB / 318.1 MB Notification: Performance of FrontEnd - loaded program: time 0.002283/0.002283, allocations: 79.86 kB / 0.5139 GB, free: 11.76 MB / 398.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1356/0.1379, allocations: 67.3 MB / 0.5797 GB, free: 8.383 MB / 462.1 MB Notification: Performance of NFInst.instantiate(ThermofluidStream.Undirected.FlowControl.Tests.TanValve): time 0.5293/0.6672, allocations: 173 MB / 0.7486 GB, free: 15.4 MB / 0.5919 GB Notification: Performance of NFInst.instExpressions: time 0.01558/0.6828, allocations: 10.93 MB / 0.7592 GB, free: 4.438 MB / 0.5919 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.001353/0.6842, allocations: 23.88 kB / 0.7593 GB, free: 4.414 MB / 0.5919 GB Notification: Performance of NFTyping.typeComponents: time 0.002489/0.6867, allocations: 0.7922 MB / 0.76 GB, free: 3.617 MB / 0.5919 GB Notification: Performance of NFTyping.typeBindings: time 0.006394/0.6932, allocations: 1.612 MB / 0.7616 GB, free: 1.996 MB / 0.5919 GB Notification: Performance of NFTyping.typeClassSections: time 0.004679/0.6979, allocations: 1.114 MB / 0.7627 GB, free: 0.8789 MB / 0.5919 GB Notification: Performance of NFFlatten.flatten: time 0.004092/0.702, allocations: 2.409 MB / 0.7651 GB, free: 14.46 MB / 0.6075 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0009922/0.703, allocations: 457.7 kB / 0.7655 GB, free: 14.01 MB / 0.6075 GB Notification: Performance of NFEvalConstants.evaluate: time 0.002145/0.7052, allocations: 0.9809 MB / 0.7665 GB, free: 13.02 MB / 0.6075 GB Notification: Performance of NFSimplifyModel.simplify: time 0.002455/0.7077, allocations: 1.332 MB / 0.7678 GB, free: 11.69 MB / 0.6075 GB Notification: Performance of NFPackage.collectConstants: time 0.0005562/0.7083, allocations: 144 kB / 0.7679 GB, free: 11.55 MB / 0.6075 GB Notification: Performance of NFFlatten.collectFunctions: time 0.005448/0.7137, allocations: 1.942 MB / 0.7698 GB, free: 9.602 MB / 0.6075 GB Notification: Performance of NFScalarize.scalarize: time 0.0006316/0.7144, allocations: 346.8 kB / 0.7701 GB, free: 9.262 MB / 0.6075 GB Notification: Performance of NFVerifyModel.verify: time 0.00159/0.716, allocations: 0.77 MB / 0.7709 GB, free: 8.488 MB / 0.6075 GB Notification: Performance of NFConvertDAE.convert: time 0.006369/0.7223, allocations: 2.464 MB / 0.7733 GB, free: 6.023 MB / 0.6075 GB Notification: Performance of FrontEnd - DAE generated: time 5e-06/0.7224, allocations: 0 / 0.7733 GB, free: 6.023 MB / 0.6075 GB Notification: Performance of FrontEnd: time 2.034e-06/0.7224, allocations: 0 / 0.7733 GB, free: 6.023 MB / 0.6075 GB Notification: Performance of Transformations before backend: time 8.508e-05/0.7225, allocations: 0 / 0.7733 GB, free: 6.023 MB / 0.6075 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.005505/0.728, allocations: 1.936 MB / 0.7752 GB, free: 4.027 MB / 0.6075 GB Notification: Performance of prepare preOptimizeDAE: time 5.989e-05/0.7281, allocations: 12.03 kB / 0.7752 GB, free: 4.016 MB / 0.6075 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0003857/0.7285, allocations: 181.8 kB / 0.7753 GB, free: 3.828 MB / 0.6075 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0004055/0.7289, allocations: 156 kB / 0.7755 GB, free: 3.676 MB / 0.6075 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001435/0.7303, allocations: 0.7528 MB / 0.7762 GB, free: 2.883 MB / 0.6075 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 8.453e-05/0.7304, allocations: 90.78 kB / 0.7763 GB, free: 2.793 MB / 0.6075 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001836/0.7306, allocations: 120.4 kB / 0.7764 GB, free: 2.676 MB / 0.6075 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.002777/0.7334, allocations: 1.528 MB / 0.7779 GB, free: 1.105 MB / 0.6075 GB Notification: Performance of preOpt findStateOrder (simulation): time 2.72e-05/0.7334, allocations: 0 / 0.7779 GB, free: 1.105 MB / 0.6075 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001306/0.7336, allocations: 51.98 kB / 0.778 GB, free: 1.055 MB / 0.6075 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.996e-05/0.7336, allocations: 28 kB / 0.778 GB, free: 1.027 MB / 0.6075 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.003014/0.7366, allocations: 1.668 MB / 0.7796 GB, free: 15.35 MB / 0.6231 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.00828/0.7449, allocations: 6.196 MB / 0.7857 GB, free: 8.539 MB / 0.6231 GB Notification: Performance of preOpt comSubExp (simulation): time 0.002649/0.7476, allocations: 1.275 MB / 0.7869 GB, free: 7.25 MB / 0.6231 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.001239/0.7489, allocations: 0.7036 MB / 0.7876 GB, free: 6.543 MB / 0.6231 GB Notification: Performance of preOpt evalFunc (simulation): time 0.005373/0.7542, allocations: 4.026 MB / 0.7915 GB, free: 2.066 MB / 0.6231 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.001371/0.7556, allocations: 0.7394 MB / 0.7923 GB, free: 1.316 MB / 0.6231 GB Notification: Performance of pre-optimization done (n=128): time 3.026e-06/0.7556, allocations: 0 / 0.7923 GB, free: 1.316 MB / 0.6231 GB Notification: Performance of matching and sorting (n=129): time 0.008103/0.7637, allocations: 3.937 MB / 0.7961 GB, free: 13.29 MB / 0.6387 GB Notification: Performance of inlineWhenForInitialization (initialization): time 6.085e-05/0.7638, allocations: 68.72 kB / 0.7962 GB, free: 13.21 MB / 0.6387 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0008818/0.7647, allocations: 0.5902 MB / 0.7968 GB, free: 12.61 MB / 0.6387 GB Notification: Performance of collectPreVariables (initialization): time 7.975e-05/0.7648, allocations: 45.7 kB / 0.7968 GB, free: 12.56 MB / 0.6387 GB Notification: Performance of collectInitialEqns (initialization): time 0.0004274/0.7652, allocations: 481.5 kB / 0.7973 GB, free: 12.09 MB / 0.6387 GB Notification: Performance of collectInitialBindings (initialization): time 0.0003897/0.7656, allocations: 456 kB / 0.7977 GB, free: 11.64 MB / 0.6387 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0003503/0.766, allocations: 202.9 kB / 0.7979 GB, free: 11.43 MB / 0.6387 GB Notification: Performance of setup shared object (initialization): time 0.0001827/0.7662, allocations: 349.9 kB / 0.7982 GB, free: 11.08 MB / 0.6387 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0009937/0.7672, allocations: 0.514 MB / 0.7987 GB, free: 10.57 MB / 0.6387 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001228/0.7684, allocations: 0.628 MB / 0.7993 GB, free: 9.922 MB / 0.6387 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.002258/0.7707, allocations: 1.24 MB / 0.8005 GB, free: 8.66 MB / 0.6387 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.817e-06/0.7707, allocations: 0 / 0.8005 GB, free: 8.66 MB / 0.6387 GB Notification: Performance of matching and sorting (n=140) (initialization): time 0.003225/0.7739, allocations: 1.592 MB / 0.8021 GB, free: 7.051 MB / 0.6387 GB Notification: Performance of prepare postOptimizeDAE: time 5.687e-05/0.774, allocations: 33.69 kB / 0.8021 GB, free: 7.012 MB / 0.6387 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.101e-05/0.774, allocations: 4 kB / 0.8021 GB, free: 7.008 MB / 0.6387 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.0005458/0.7746, allocations: 156.8 kB / 0.8023 GB, free: 6.852 MB / 0.6387 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0009301/0.7755, allocations: 247.7 kB / 0.8025 GB, free: 6.609 MB / 0.6387 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.004444/0.78, allocations: 2.714 MB / 0.8052 GB, free: 3.762 MB / 0.6387 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0007625/0.7808, allocations: 59.94 kB / 0.8052 GB, free: 3.703 MB / 0.6387 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001275/0.7809, allocations: 47.98 kB / 0.8053 GB, free: 3.656 MB / 0.6387 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.0005583/0.7815, allocations: 289.6 kB / 0.8056 GB, free: 3.363 MB / 0.6387 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002115/0.7817, allocations: 103.3 kB / 0.8057 GB, free: 3.262 MB / 0.6387 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.004435/0.7861, allocations: 2.304 MB / 0.8079 GB, free: 0.9727 MB / 0.6387 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.698e-05/0.7862, allocations: 16 kB / 0.8079 GB, free: 0.957 MB / 0.6387 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.804e-06/0.7862, allocations: 4 kB / 0.8079 GB, free: 0.9531 MB / 0.6387 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.708e-05/0.7862, allocations: 7.969 kB / 0.8079 GB, free: 0.9453 MB / 0.6387 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.005948/0.7921, allocations: 3.363 MB / 0.8112 GB, free: 13.5 MB / 0.6544 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 6.021e-06/0.7922, allocations: 0 / 0.8112 GB, free: 13.5 MB / 0.6544 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0009577/0.7931, allocations: 263.7 kB / 0.8115 GB, free: 13.25 MB / 0.6544 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.0004547/0.7936, allocations: 144.8 kB / 0.8116 GB, free: 13.1 MB / 0.6544 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 9.741e-05/0.7937, allocations: 47.97 kB / 0.8116 GB, free: 13.05 MB / 0.6544 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.003127/0.7968, allocations: 2.45 MB / 0.814 GB, free: 10.47 MB / 0.6544 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.874e-06/0.7969, allocations: 0 / 0.814 GB, free: 10.47 MB / 0.6544 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.004738/0.8016, allocations: 2.585 MB / 0.8166 GB, free: 7.852 MB / 0.6544 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0003153/0.8019, allocations: 180.4 kB / 0.8167 GB, free: 7.656 MB / 0.6544 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.00015/0.8021, allocations: 28 kB / 0.8168 GB, free: 7.629 MB / 0.6544 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0005586/0.8027, allocations: 51.95 kB / 0.8168 GB, free: 7.578 MB / 0.6544 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002532/0.8029, allocations: 121.1 kB / 0.8169 GB, free: 7.457 MB / 0.6544 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001161/0.803, allocations: 51.98 kB / 0.817 GB, free: 7.406 MB / 0.6544 GB Notification: Performance of sorting global known variables: time 0.0005983/0.8036, allocations: 447 kB / 0.8174 GB, free: 6.973 MB / 0.6544 GB Notification: Performance of sort global known variables: time 1.8e-07/0.8037, allocations: 0 / 0.8174 GB, free: 6.973 MB / 0.6544 GB Notification: Performance of remove unused functions: time 0.001607/0.8053, allocations: 0.5149 MB / 0.8179 GB, free: 6.457 MB / 0.6544 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.006061/0.8113, allocations: 3.608 MB / 0.8214 GB, free: 2.812 MB / 0.6544 GB Notification: Performance of simCode: created initialization part: time 0.003357/0.8147, allocations: 1.633 MB / 0.823 GB, free: 1.152 MB / 0.6544 GB Notification: Performance of simCode: created event and clocks part: time 4.067e-06/0.8147, allocations: 0 / 0.823 GB, free: 1.152 MB / 0.6544 GB Notification: Performance of simCode: created simulation system equations: time 0.001911/0.8167, allocations: 0.9943 MB / 0.824 GB, free: 148 kB / 0.6544 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001895/0.8186, allocations: 377.5 kB / 0.8244 GB, free: 15.79 MB / 0.67 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01669/0.8353, allocations: 9.585 MB / 0.8337 GB, free: 6.02 MB / 0.67 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0009461/0.8363, allocations: 1.137 MB / 0.8348 GB, free: 4.852 MB / 0.67 GB Notification: Performance of simCode: alias equations: time 0.001102/0.8374, allocations: 325.2 kB / 0.8351 GB, free: 4.574 MB / 0.67 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0008139/0.8382, allocations: 0.511 MB / 0.8356 GB, free: 4.066 MB / 0.67 GB Notification: Performance of SimCode: time 7.82e-07/0.8382, allocations: 0 / 0.8356 GB, free: 4.066 MB / 0.67 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.3568/1.195, allocations: 36.54 MB / 0.8713 GB, free: 217.7 MB / 0.67 GB Notification: Performance of buildModelFMU: Generate platform static: time 12.11/13.31, allocations: 5.172 kB / 0.8713 GB, free: 217.7 MB / 0.67 GB (rm -f ThermofluidStream_ThermofluidStream.Undirected.FlowControl.Tests.TanValve.pipe ; mkfifo ThermofluidStream_ThermofluidStream.Undirected.FlowControl.Tests.TanValve.pipe ; head -c 1048576 < ThermofluidStream_ThermofluidStream.Undirected.FlowControl.Tests.TanValve.pipe >> ../files/ThermofluidStream_ThermofluidStream.Undirected.FlowControl.Tests.TanValve.sim & python3 -m fmpy simulate --output-file ThermofluidStream_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_ThermofluidStream_Undirected_FlowControl_Tests_TanValve.fmu > ThermofluidStream_ThermofluidStream.Undirected.FlowControl.Tests.TanValve.pipe 2>&1) diffSimulationResults("ThermofluidStream_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_ThermofluidStream.Undirected.FlowControl.Tests.TanValve.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches