Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr ThermofluidStream_dev_ThermofluidStream.Undirected.Processes.Tests.TransportDelay.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.Processes.Tests.TransportDelay,fileNamePrefix="ThermofluidStream_dev_ThermofluidStream_Undirected_Processes_Tests_TransportDelay",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(ThermofluidStream.Undirected.Processes.Tests.TransportDelay,fileNamePrefix="ThermofluidStream_dev_ThermofluidStream_Undirected_Processes_Tests_TransportDelay",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.02475/0.02475, allocations: 96.94 kB / 15.73 MB, free: 6.484 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.00296/0.002961, allocations: 192 kB / 16.67 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 3.37/3.37, allocations: 222.9 MB / 240.4 MB, free: 4.312 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ThermofluidStream 1.1.0-main/package.mo): time 1.639/1.639, allocations: 93.71 MB / 384.3 MB, free: 6.902 MB / 318.1 MB Notification: Performance of FrontEnd - loaded program: time 0.003231/0.003231, allocations: 79.88 kB / 0.5199 GB, free: 6.312 MB / 398.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3449/0.3482, allocations: 68.27 MB / 0.5866 GB, free: 1.965 MB / 462.1 MB Notification: Performance of NFInst.instantiate(ThermofluidStream.Undirected.Processes.Tests.TransportDelay): time 1.393/1.742, allocations: 192.4 MB / 0.7745 GB, free: 2.254 MB / 0.6075 GB Notification: Performance of NFInst.instExpressions: time 0.01974/1.762, allocations: 5.543 MB / 0.7799 GB, free: 12.69 MB / 0.6231 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.003534/1.765, allocations: 35.75 kB / 0.7799 GB, free: 12.66 MB / 0.6231 GB Notification: Performance of NFTyping.typeComponents: time 0.002617/1.768, allocations: 417.2 kB / 0.7803 GB, free: 12.25 MB / 0.6231 GB Notification: Performance of NFTyping.typeBindings: time 0.01303/1.781, allocations: 1.415 MB / 0.7817 GB, free: 10.83 MB / 0.6231 GB Notification: Performance of NFTyping.typeClassSections: time 0.005879/1.787, allocations: 0.8304 MB / 0.7825 GB, free: 9.996 MB / 0.6231 GB Notification: Performance of NFFlatten.flatten: time 0.01118/1.799, allocations: 2.672 MB / 0.7851 GB, free: 7.316 MB / 0.6231 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0008103/1.799, allocations: 251.7 kB / 0.7854 GB, free: 7.07 MB / 0.6231 GB Notification: Performance of NFEvalConstants.evaluate: time 0.009544/1.809, allocations: 1.847 MB / 0.7872 GB, free: 5.219 MB / 0.6231 GB Notification: Performance of NFSimplifyModel.simplify: time 0.002573/1.812, allocations: 0.7043 MB / 0.7879 GB, free: 4.512 MB / 0.6231 GB Notification: Performance of NFPackage.collectConstants: time 0.0002588/1.812, allocations: 72 kB / 0.7879 GB, free: 4.441 MB / 0.6231 GB Notification: Performance of NFFlatten.collectFunctions: time 0.006091/1.818, allocations: 1.217 MB / 0.7891 GB, free: 3.223 MB / 0.6231 GB Notification: Performance of NFScalarize.scalarize: time 0.0005481/1.819, allocations: 191.2 kB / 0.7893 GB, free: 3.035 MB / 0.6231 GB Notification: Performance of NFVerifyModel.verify: time 0.001695/1.82, allocations: 0.4895 MB / 0.7898 GB, free: 2.543 MB / 0.6231 GB Notification: Performance of NFConvertDAE.convert: time 0.009453/1.83, allocations: 1.732 MB / 0.7915 GB, free: 0.8047 MB / 0.6231 GB Notification: Performance of FrontEnd - DAE generated: time 1.398e-05/1.83, allocations: 4 kB / 0.7915 GB, free: 0.8008 MB / 0.6231 GB Notification: Performance of FrontEnd: time 4.158e-06/1.83, allocations: 0 / 0.7915 GB, free: 0.8008 MB / 0.6231 GB Notification: Performance of Transformations before backend: time 3.085e-05/1.83, allocations: 0 / 0.7915 GB, free: 0.8008 MB / 0.6231 GB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 154 * Number of variables: 154 Notification: Performance of Generate backend data structure: time 0.009866/1.84, allocations: 1.605 MB / 0.793 GB, free: 15.12 MB / 0.6387 GB Notification: Performance of prepare preOptimizeDAE: time 6.775e-05/1.84, allocations: 8.031 kB / 0.7931 GB, free: 15.12 MB / 0.6387 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0004546/1.841, allocations: 102.5 kB / 0.7931 GB, free: 15.01 MB / 0.6387 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.002045/1.843, allocations: 196.6 kB / 0.7933 GB, free: 14.82 MB / 0.6387 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.002162/1.845, allocations: 0.7369 MB / 0.7941 GB, free: 14.04 MB / 0.6387 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001833/1.845, allocations: 71.02 kB / 0.7941 GB, free: 13.96 MB / 0.6387 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0002361/1.845, allocations: 67.98 kB / 0.7942 GB, free: 13.9 MB / 0.6387 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.002434/1.848, allocations: 0.8038 MB / 0.795 GB, free: 13.06 MB / 0.6387 GB Notification: Performance of preOpt findStateOrder (simulation): time 9.69e-05/1.848, allocations: 0 / 0.795 GB, free: 13.06 MB / 0.6387 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001098/1.848, allocations: 24 kB / 0.795 GB, free: 13.04 MB / 0.6387 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.23e-05/1.848, allocations: 16 kB / 0.795 GB, free: 13.02 MB / 0.6387 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.003402/1.851, allocations: 0.7047 MB / 0.7957 GB, free: 12.32 MB / 0.6387 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.01042/1.862, allocations: 3.612 MB / 0.7992 GB, free: 8.395 MB / 0.6387 GB Notification: Performance of preOpt comSubExp (simulation): time 0.003501/1.865, allocations: 0.7031 MB / 0.7999 GB, free: 7.676 MB / 0.6387 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.001779/1.867, allocations: 342.5 kB / 0.8002 GB, free: 7.336 MB / 0.6387 GB Notification: Performance of preOpt evalFunc (simulation): time 0.001838/1.869, allocations: 0.4939 MB / 0.8007 GB, free: 6.75 MB / 0.6387 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.00235/1.872, allocations: 0.5125 MB / 0.8012 GB, free: 6.219 MB / 0.6387 GB Notification: Performance of pre-optimization done (n=69): time 7.464e-06/1.872, allocations: 0 / 0.8012 GB, free: 6.219 MB / 0.6387 GB Notification: Performance of matching and sorting (n=69): time 0.007499/1.879, allocations: 1.363 MB / 0.8026 GB, free: 4.805 MB / 0.6387 GB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001315/1.879, allocations: 93.09 kB / 0.8026 GB, free: 4.695 MB / 0.6387 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001299/1.881, allocations: 0.6651 MB / 0.8033 GB, free: 4.02 MB / 0.6387 GB Notification: Performance of collectPreVariables (initialization): time 0.0001095/1.881, allocations: 41.7 kB / 0.8033 GB, free: 3.973 MB / 0.6387 GB Notification: Performance of collectInitialEqns (initialization): time 0.0005886/1.881, allocations: 401 kB / 0.8037 GB, free: 3.578 MB / 0.6387 GB Notification: Performance of collectInitialBindings (initialization): time 0.0003787/1.882, allocations: 242 kB / 0.8039 GB, free: 3.34 MB / 0.6387 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0004149/1.882, allocations: 166.6 kB / 0.8041 GB, free: 3.172 MB / 0.6387 GB Notification: Performance of setup shared object (initialization): time 0.0002433/1.882, allocations: 334 kB / 0.8044 GB, free: 2.84 MB / 0.6387 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0009666/1.883, allocations: 293.8 kB / 0.8047 GB, free: 2.551 MB / 0.6387 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.00146/1.885, allocations: 394.3 kB / 0.8051 GB, free: 2.133 MB / 0.6387 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.003402/1.888, allocations: 0.7351 MB / 0.8058 GB, free: 1.352 MB / 0.6387 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.629e-05/1.888, allocations: 0 / 0.8058 GB, free: 1.352 MB / 0.6387 GB Notification: Performance of matching and sorting (n=87) (initialization): time 0.00526/1.894, allocations: 1.031 MB / 0.8068 GB, free: 304 kB / 0.6387 GB Notification: Performance of prepare postOptimizeDAE: time 0.0001352/1.894, allocations: 67.39 kB / 0.8069 GB, free: 224 kB / 0.6387 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0001184/1.894, allocations: 15.92 kB / 0.8069 GB, free: 208 kB / 0.6387 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.0008204/1.895, allocations: 81.78 kB / 0.807 GB, free: 120 kB / 0.6387 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0008702/1.896, allocations: 183.8 kB / 0.8071 GB, free: 15.94 MB / 0.6544 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.005003/1.901, allocations: 3.062 MB / 0.8101 GB, free: 12.6 MB / 0.6544 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001859/1.903, allocations: 103.5 kB / 0.8102 GB, free: 12.5 MB / 0.6544 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0005655/1.903, allocations: 83.97 kB / 0.8103 GB, free: 12.41 MB / 0.6544 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 10 * Number of states: 0 () * Number of discrete variables: 10 (trapezoid.count,$PRE.trapezoid.count,trapezoid.T_start,$PRE.trapezoid.T_start,$whenCondition2,trapezoid1.count,$PRE.trapezoid1.count,trapezoid1.T_start,$PRE.trapezoid1.T_start,$whenCondition1) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (77): * Single equations (assignments): 69 * Array equations: 0 * Algorithm blocks: 2 * Record equations: 4 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 2 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 2 systems {(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.001/1.904, allocations: 205.7 kB / 0.8105 GB, free: 12.2 MB / 0.6544 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0006278/1.905, allocations: 95.33 kB / 0.8106 GB, free: 12.11 MB / 0.6544 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.007235/1.912, allocations: 1.797 MB / 0.8123 GB, free: 10.3 MB / 0.6544 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.673e-05/1.912, allocations: 8 kB / 0.8124 GB, free: 10.3 MB / 0.6544 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.513e-05/1.912, allocations: 4 kB / 0.8124 GB, free: 10.29 MB / 0.6544 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.467e-05/1.912, allocations: 3.984 kB / 0.8124 GB, free: 10.29 MB / 0.6544 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.00701/1.919, allocations: 1.972 MB / 0.8143 GB, free: 8.246 MB / 0.6544 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 0.0001065/1.92, allocations: 11.98 kB / 0.8143 GB, free: 8.234 MB / 0.6544 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001257/1.921, allocations: 163.9 kB / 0.8145 GB, free: 8.074 MB / 0.6544 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.000645/1.922, allocations: 93.58 kB / 0.8145 GB, free: 7.977 MB / 0.6544 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0002245/1.922, allocations: 39.97 kB / 0.8146 GB, free: 7.938 MB / 0.6544 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.005897/1.928, allocations: 3.062 MB / 0.8176 GB, free: 4.594 MB / 0.6544 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 7.605e-06/1.928, allocations: 4.031 kB / 0.8176 GB, free: 4.59 MB / 0.6544 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.005423/1.933, allocations: 1.479 MB / 0.819 GB, free: 3.082 MB / 0.6544 GB Notification: Performance of postOpt removeConstants (simulation): time 0.001265/1.935, allocations: 256.2 kB / 0.8193 GB, free: 2.812 MB / 0.6544 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0005176/1.935, allocations: 20 kB / 0.8193 GB, free: 2.793 MB / 0.6544 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001256/1.936, allocations: 47.94 kB / 0.8193 GB, free: 2.746 MB / 0.6544 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0007415/1.937, allocations: 119.9 kB / 0.8194 GB, free: 2.629 MB / 0.6544 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.000422/1.938, allocations: 75.92 kB / 0.8195 GB, free: 2.555 MB / 0.6544 GB Notification: Performance of sorting global known variables: time 0.001478/1.939, allocations: 471 kB / 0.82 GB, free: 2.102 MB / 0.6544 GB Notification: Performance of sort global known variables: time 1.3e-07/1.939, allocations: 3.938 kB / 0.82 GB, free: 2.098 MB / 0.6544 GB Notification: Performance of remove unused functions: time 0.003312/1.943, allocations: 347.3 kB / 0.8203 GB, free: 1.758 MB / 0.6544 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 5 * Number of states: 4 (transportDelay1.x,flowResistance1.rear.m_flow,transportDelay.x,flowResistance.inlet.m_flow) * Number of discrete variables: 6 ($whenCondition1,trapezoid1.T_start,trapezoid1.count,$whenCondition2,trapezoid.T_start,trapezoid.count) * Number of discrete states: 2 (trapezoid.count,trapezoid1.count) * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (66): * Single equations (assignments): 56 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 4 * When equations: 4 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 2 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 2 systems {(1,3,100.0%), (1,3,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of Backend phase and start with SimCode phase: time 0.007638/1.95, allocations: 2.342 MB / 0.8226 GB, free: 15.39 MB / 0.67 GB Notification: Performance of simCode: created initialization part: time 0.006189/1.957, allocations: 1.206 MB / 0.8238 GB, free: 14.1 MB / 0.67 GB Notification: Performance of simCode: created event and clocks part: time 6.893e-06/1.957, allocations: 3.938 kB / 0.8238 GB, free: 14.1 MB / 0.67 GB Notification: Performance of simCode: created simulation system equations: time 0.002498/1.959, allocations: 0.7929 MB / 0.8245 GB, free: 13.25 MB / 0.67 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002271/1.961, allocations: 254 kB / 0.8248 GB, free: 13.01 MB / 0.67 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.02985/1.991, allocations: 7.31 MB / 0.8319 GB, free: 5.469 MB / 0.67 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001072/1.992, allocations: 0.9785 MB / 0.8329 GB, free: 4.465 MB / 0.67 GB Notification: Performance of simCode: alias equations: time 0.003813/1.996, allocations: 0.9908 MB / 0.8338 GB, free: 3.48 MB / 0.67 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001686/1.998, allocations: 451.2 kB / 0.8343 GB, free: 3.039 MB / 0.67 GB Notification: Performance of SimCode: time 4.669e-06/1.998, allocations: 0 / 0.8343 GB, free: 3.039 MB / 0.67 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.9346/2.933, allocations: 26.68 MB / 0.8603 GB, free: 238.4 MB / 0.6856 GB Notification: Performance of buildModelFMU: Generate platform static: time 25.62/28.55, allocations: 4.219 kB / 0.8603 GB, free: 238.4 MB / 0.6856 GB (rm -f ThermofluidStream_dev_ThermofluidStream.Undirected.Processes.Tests.TransportDelay.pipe ; mkfifo ThermofluidStream_dev_ThermofluidStream.Undirected.Processes.Tests.TransportDelay.pipe ; head -c 1048576 < ThermofluidStream_dev_ThermofluidStream.Undirected.Processes.Tests.TransportDelay.pipe >> ../files/ThermofluidStream_dev_ThermofluidStream.Undirected.Processes.Tests.TransportDelay.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=ThermofluidStream_dev_ThermofluidStream.Undirected.Processes.Tests.TransportDelay_res.mat --tempDir=temp_ThermofluidStream_dev_ThermofluidStream_Undirected_Processes_Tests_TransportDelay_fmu --startTime=0 --stopTime=2.5 --timeout=1200 --tolerance=1e-06 ThermofluidStream_dev_ThermofluidStream_Undirected_Processes_Tests_TransportDelay.fmu > ThermofluidStream_dev_ThermofluidStream.Undirected.Processes.Tests.TransportDelay.pipe 2>&1) diffSimulationResults("ThermofluidStream_dev_ThermofluidStream.Undirected.Processes.Tests.TransportDelay_res.mat","/mnt/ReferenceFiles/ThermofluidStream-main-regression/ReferenceData/ThermofluidStream.Undirected.Processes.Tests.TransportDelay_ref.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/ThermofluidStream_dev_ThermofluidStream.Undirected.Processes.Tests.TransportDelay.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches