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.005651/0.005651, allocations: 100.8 kB / 15.73 MB, free: 6.016 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.001488/0.001488, allocations: 191 kB / 16.67 MB, free: 5.934 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.364/1.364, allocations: 222.9 MB / 240.4 MB, free: 15.08 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ThermofluidStream 1.1.0/package.mo): time 0.7161/0.7161, allocations: 89.46 MB / 380 MB, free: 8.594 MB / 302.1 MB Notification: Performance of FrontEnd - loaded program: time 0.002504/0.002504, allocations: 79.86 kB / 0.5139 GB, free: 7.141 MB / 446.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3325/0.335, allocations: 67.29 MB / 0.5796 GB, free: 15.22 MB / 446.1 MB Notification: Performance of NFInst.instantiate(ThermofluidStream.Undirected.FlowControl.Tests.TanValve): time 0.5219/0.857, allocations: 173 MB / 0.7485 GB, free: 1.406 MB / 0.5762 GB Notification: Performance of NFInst.instExpressions: time 0.01285/0.8699, allocations: 10.94 MB / 0.7592 GB, free: 1.324 MB / 0.5762 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.001613/0.8716, allocations: 27.56 kB / 0.7593 GB, free: 1.324 MB / 0.5762 GB Notification: Performance of NFTyping.typeComponents: time 0.001868/0.8734, allocations: 0.7883 MB / 0.76 GB, free: 1.301 MB / 0.5762 GB Notification: Performance of NFTyping.typeBindings: time 0.003394/0.8769, allocations: 1.621 MB / 0.7616 GB, free: 1.242 MB / 0.5762 GB Notification: Performance of NFTyping.typeClassSections: time 0.002731/0.8796, allocations: 1.108 MB / 0.7627 GB, free: 1.223 MB / 0.5762 GB Notification: Performance of NFFlatten.flatten: time 0.002169/0.8818, allocations: 2.412 MB / 0.765 GB, free: 1.215 MB / 0.5762 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0005231/0.8823, allocations: 462 kB / 0.7655 GB, free: 1.09 MB / 0.5762 GB Notification: Performance of NFEvalConstants.evaluate: time 0.001315/0.8837, allocations: 0.9825 MB / 0.7664 GB, free: 1.086 MB / 0.5762 GB Notification: Performance of NFSimplifyModel.simplify: time 0.001418/0.8851, allocations: 1.328 MB / 0.7677 GB, free: 1.082 MB / 0.5762 GB Notification: Performance of NFPackage.collectConstants: time 0.0001644/0.8853, allocations: 144 kB / 0.7679 GB, free: 1.082 MB / 0.5762 GB Notification: Performance of NFFlatten.collectFunctions: time 0.003603/0.8889, allocations: 1.939 MB / 0.7698 GB, free: 1.051 MB / 0.5762 GB Notification: Performance of NFScalarize.scalarize: time 0.0002458/0.8891, allocations: 350.7 kB / 0.7701 GB, free: 1.051 MB / 0.5762 GB Notification: Performance of NFVerifyModel.verify: time 0.0006575/0.8898, allocations: 0.769 MB / 0.7709 GB, free: 0.9609 MB / 0.5762 GB Notification: Performance of NFConvertDAE.convert: time 0.003104/0.8929, allocations: 2.466 MB / 0.7733 GB, free: 0.6289 MB / 0.5762 GB Notification: Performance of FrontEnd - DAE generated: time 8.015e-06/0.8929, allocations: 1 kB / 0.7733 GB, free: 0.6289 MB / 0.5762 GB Notification: Performance of FrontEnd: time 3.015e-06/0.893, allocations: 0 / 0.7733 GB, free: 0.6289 MB / 0.5762 GB Notification: Performance of Transformations before backend: time 1.992e-05/0.893, allocations: 4.188 kB / 0.7733 GB, free: 0.6289 MB / 0.5762 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.003159/0.8961, allocations: 1.929 MB / 0.7752 GB, free: 15.67 MB / 0.5919 GB Notification: Performance of prepare preOptimizeDAE: time 3.571e-05/0.8962, allocations: 10.19 kB / 0.7752 GB, free: 15.67 MB / 0.5919 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001693/0.8964, allocations: 177.2 kB / 0.7753 GB, free: 15.63 MB / 0.5919 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0002469/0.8966, allocations: 157.5 kB / 0.7755 GB, free: 15.55 MB / 0.5919 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0008703/0.8975, allocations: 0.7526 MB / 0.7762 GB, free: 15.23 MB / 0.5919 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.613e-05/0.8976, allocations: 89.25 kB / 0.7763 GB, free: 15.23 MB / 0.5919 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001353/0.8977, allocations: 119.6 kB / 0.7764 GB, free: 15.23 MB / 0.5919 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.002018/0.8997, allocations: 1.528 MB / 0.7779 GB, free: 15.1 MB / 0.5919 GB Notification: Performance of preOpt findStateOrder (simulation): time 2.793e-05/0.8998, allocations: 2.906 kB / 0.7779 GB, free: 15.1 MB / 0.5919 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 8.933e-05/0.8999, allocations: 47.56 kB / 0.778 GB, free: 15.1 MB / 0.5919 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.683e-05/0.8999, allocations: 29.03 kB / 0.778 GB, free: 15.1 MB / 0.5919 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.00225/0.9021, allocations: 1.667 MB / 0.7796 GB, free: 15.09 MB / 0.5919 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.00652/0.9087, allocations: 6.193 MB / 0.7857 GB, free: 11.56 MB / 0.5919 GB Notification: Performance of preOpt comSubExp (simulation): time 0.002309/0.911, allocations: 1.286 MB / 0.7869 GB, free: 11.5 MB / 0.5919 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0009598/0.912, allocations: 0.7001 MB / 0.7876 GB, free: 11.49 MB / 0.5919 GB Notification: Performance of preOpt evalFunc (simulation): time 0.004401/0.9164, allocations: 4.027 MB / 0.7915 GB, free: 8.98 MB / 0.5919 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.001124/0.9175, allocations: 0.7313 MB / 0.7922 GB, free: 8.918 MB / 0.5919 GB Notification: Performance of pre-optimization done (n=128): time 2.585e-06/0.9175, allocations: 0 / 0.7922 GB, free: 8.918 MB / 0.5919 GB Notification: Performance of matching and sorting (n=129): time 0.006507/0.924, allocations: 3.939 MB / 0.7961 GB, free: 8.141 MB / 0.5919 GB Notification: Performance of inlineWhenForInitialization (initialization): time 5.273e-05/0.9241, allocations: 69.25 kB / 0.7962 GB, free: 8.078 MB / 0.5919 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0005864/0.9247, allocations: 0.5886 MB / 0.7967 GB, free: 7.945 MB / 0.5919 GB Notification: Performance of collectPreVariables (initialization): time 8.332e-05/0.9248, allocations: 47.58 kB / 0.7968 GB, free: 7.914 MB / 0.5919 GB Notification: Performance of collectInitialEqns (initialization): time 0.0003312/0.9251, allocations: 476.8 kB / 0.7972 GB, free: 7.695 MB / 0.5919 GB Notification: Performance of collectInitialBindings (initialization): time 0.0003343/0.9255, allocations: 458.1 kB / 0.7977 GB, free: 7.398 MB / 0.5919 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0003022/0.9258, allocations: 203.7 kB / 0.7979 GB, free: 7.379 MB / 0.5919 GB Notification: Performance of setup shared object (initialization): time 0.0001578/0.9259, allocations: 349.9 kB / 0.7982 GB, free: 7.074 MB / 0.5919 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0009082/0.9268, allocations: 0.5178 MB / 0.7987 GB, free: 6.918 MB / 0.5919 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001089/0.9279, allocations: 0.6236 MB / 0.7993 GB, free: 6.637 MB / 0.5919 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.002096/0.9301, allocations: 1.246 MB / 0.8005 GB, free: 6.023 MB / 0.5919 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 6.993e-06/0.9301, allocations: 6.906 kB / 0.8005 GB, free: 6.02 MB / 0.5919 GB Notification: Performance of matching and sorting (n=140) (initialization): time 0.002889/0.933, allocations: 1.583 MB / 0.8021 GB, free: 5.352 MB / 0.5919 GB Notification: Performance of prepare postOptimizeDAE: time 4.84e-05/0.933, allocations: 37.42 kB / 0.8021 GB, free: 5.316 MB / 0.5919 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.187e-06/0.933, allocations: 2.875 kB / 0.8021 GB, free: 5.316 MB / 0.5919 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.0004885/0.9335, allocations: 156.6 kB / 0.8023 GB, free: 5.277 MB / 0.5919 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0008125/0.9344, allocations: 248.5 kB / 0.8025 GB, free: 5.266 MB / 0.5919 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.003946/0.9383, allocations: 2.719 MB / 0.8052 GB, free: 3.215 MB / 0.5919 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0005475/0.9389, allocations: 56.08 kB / 0.8052 GB, free: 3.191 MB / 0.5919 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001135/0.939, allocations: 56.12 kB / 0.8053 GB, free: 3.176 MB / 0.5919 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.000435/0.9394, allocations: 286.2 kB / 0.8055 GB, free: 2.965 MB / 0.5919 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001727/0.9396, allocations: 105.4 kB / 0.8056 GB, free: 2.91 MB / 0.5919 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.003957/0.9436, allocations: 2.297 MB / 0.8079 GB, free: 1.949 MB / 0.5919 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.091e-05/0.9436, allocations: 14.34 kB / 0.8079 GB, free: 1.949 MB / 0.5919 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.54e-06/0.9436, allocations: 6.656 kB / 0.8079 GB, free: 1.945 MB / 0.5919 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.613e-05/0.9436, allocations: 9.312 kB / 0.8079 GB, free: 1.945 MB / 0.5919 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.005258/0.9489, allocations: 3.355 MB / 0.8112 GB, free: 15.48 MB / 0.6075 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 7.654e-06/0.9489, allocations: 4 kB / 0.8112 GB, free: 15.47 MB / 0.6075 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.000928/0.9499, allocations: 269.3 kB / 0.8115 GB, free: 15.22 MB / 0.6075 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.0004052/0.9503, allocations: 139.4 kB / 0.8116 GB, free: 15.09 MB / 0.6075 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 9.412e-05/0.9504, allocations: 48.66 kB / 0.8116 GB, free: 15.04 MB / 0.6075 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.002907/0.9533, allocations: 2.447 MB / 0.814 GB, free: 12.48 MB / 0.6075 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.527e-06/0.9533, allocations: 5.062 kB / 0.814 GB, free: 12.47 MB / 0.6075 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.004402/0.9577, allocations: 2.588 MB / 0.8166 GB, free: 9.871 MB / 0.6075 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0002273/0.958, allocations: 177.2 kB / 0.8167 GB, free: 9.68 MB / 0.6075 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.000143/0.9581, allocations: 32 kB / 0.8168 GB, free: 9.648 MB / 0.6075 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0005498/0.9587, allocations: 52.73 kB / 0.8168 GB, free: 9.598 MB / 0.6075 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002299/0.9589, allocations: 117.2 kB / 0.8169 GB, free: 9.484 MB / 0.6075 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001121/0.959, allocations: 52.8 kB / 0.817 GB, free: 9.434 MB / 0.6075 GB Notification: Performance of sorting global known variables: time 0.0005593/0.9596, allocations: 447 kB / 0.8174 GB, free: 9 MB / 0.6075 GB Notification: Performance of sort global known variables: time 1.21e-07/0.9596, allocations: 0.9375 kB / 0.8174 GB, free: 9 MB / 0.6075 GB Notification: Performance of remove unused functions: time 0.001496/0.9611, allocations: 0.511 MB / 0.8179 GB, free: 8.488 MB / 0.6075 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.005856/0.967, allocations: 3.6 MB / 0.8214 GB, free: 4.965 MB / 0.6075 GB Notification: Performance of simCode: created initialization part: time 0.003032/0.97, allocations: 1.632 MB / 0.823 GB, free: 3.328 MB / 0.6075 GB Notification: Performance of simCode: created event and clocks part: time 5.089e-06/0.97, allocations: 1 kB / 0.823 GB, free: 3.328 MB / 0.6075 GB Notification: Performance of simCode: created simulation system equations: time 0.001749/0.9718, allocations: 1.001 MB / 0.824 GB, free: 2.344 MB / 0.6075 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001651/0.9735, allocations: 385.8 kB / 0.8243 GB, free: 1.988 MB / 0.6075 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01524/0.9887, allocations: 9.587 MB / 0.8337 GB, free: 8.258 MB / 0.6231 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0008802/0.9896, allocations: 1.141 MB / 0.8348 GB, free: 7.086 MB / 0.6231 GB Notification: Performance of simCode: alias equations: time 0.001046/0.9907, allocations: 331.8 kB / 0.8351 GB, free: 6.805 MB / 0.6231 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0007655/0.9914, allocations: 0.514 MB / 0.8356 GB, free: 6.293 MB / 0.6231 GB Notification: Performance of SimCode: time 6.51e-07/0.9915, allocations: 0 / 0.8356 GB, free: 6.293 MB / 0.6231 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.07647/1.068, allocations: 36.54 MB / 0.8713 GB, free: 2.039 MB / 0.6544 GB Notification: Performance of buildModelFMU: Generate platform static: time 12.37/13.44, allocations: 11.81 kB / 0.8713 GB, free: 2.027 MB / 0.6544 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 & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=ThermofluidStream_ThermofluidStream.Undirected.FlowControl.Tests.TanValve_res.mat --tempDir=temp_ThermofluidStream_ThermofluidStream_Undirected_FlowControl_Tests_TanValve_fmu --startTime=0 --stopTime=100 --timeout=1200 --tolerance=1e-06 ThermofluidStream_ThermofluidStream_Undirected_FlowControl_Tests_TanValve.fmu > ThermofluidStream_ThermofluidStream.Undirected.FlowControl.Tests.TanValve.pipe 2>&1) diffSimulationResults("ThermofluidStream_ThermofluidStream.Undirected.FlowControl.Tests.TanValve_res.mat","/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