Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr ThermofluidStream_ThermofluidStream.Undirected.Processes.Tests.TestFlowResistance.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: translateModel(ThermofluidStream.Undirected.Processes.Tests.TestFlowResistance,tolerance=1e-06,outputFormat="mat",numberOfIntervals=2000,variableFilter="Time|flowResistance.rear.m_flow|flowResistance1.rear.m_flow",fileNamePrefix="ThermofluidStream_ThermofluidStream.Undirected.Processes.Tests.TestFlowResistance") translateModel(ThermofluidStream.Undirected.Processes.Tests.TestFlowResistance,tolerance=1e-06,outputFormat="mat",numberOfIntervals=2000,variableFilter="Time|flowResistance.rear.m_flow|flowResistance1.rear.m_flow",fileNamePrefix="ThermofluidStream_ThermofluidStream.Undirected.Processes.Tests.TestFlowResistance") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.0009669/0.000967, allocations: 92.31 kB / 16.02 MB, free: 80 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.001231/0.001231, allocations: 182.4 kB / 16.92 MB, free: 6.652 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.349/1.349, allocations: 223.3 MB / 241 MB, free: 5.285 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ThermofluidStream 1.1.0-main/package.mo): time 0.6352/0.6352, allocations: 89.64 MB / 381.7 MB, free: 11.29 MB / 318.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0003577/0.0003577, allocations: 12.19 kB / 461.3 MB, free: 24.11 MB / 350.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1035/0.1038, allocations: 68.83 MB / 0.5177 GB, free: 11.33 MB / 398.1 MB Notification: Performance of NFInst.instantiate(ThermofluidStream.Undirected.Processes.Tests.TestFlowResistance): time 0.3768/0.4807, allocations: 145.6 MB / 0.6599 GB, free: 5.129 MB / 478.1 MB Notification: Performance of NFInst.instExpressions: time 0.005365/0.4861, allocations: 4.602 MB / 0.6644 GB, free: 1.379 MB / 478.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0006157/0.4867, allocations: 8.625 kB / 0.6644 GB, free: 1.375 MB / 478.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0008311/0.4875, allocations: 254.2 kB / 0.6647 GB, free: 1.172 MB / 478.1 MB Notification: Performance of NFTyping.typeBindings: time 0.001559/0.4891, allocations: 0.5766 MB / 0.6652 GB, free: 0.707 MB / 478.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.001152/0.4903, allocations: 459.7 kB / 0.6657 GB, free: 376 kB / 478.1 MB Notification: Performance of NFFlatten.flatten: time 0.001181/0.4915, allocations: 1.132 MB / 0.6668 GB, free: 15.74 MB / 494.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002692/0.4918, allocations: 148.4 kB / 0.6669 GB, free: 15.65 MB / 494.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0008777/0.4927, allocations: 417 kB / 0.6673 GB, free: 15.41 MB / 494.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0005938/0.4933, allocations: 425 kB / 0.6677 GB, free: 15.18 MB / 494.1 MB Notification: Performance of NFPackage.collectConstants: time 7.102e-05/0.4934, allocations: 19.5 kB / 0.6677 GB, free: 15.18 MB / 494.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.001457/0.4948, allocations: 0.7443 MB / 0.6684 GB, free: 14.82 MB / 494.1 MB Notification: Performance of NFScalarize.scalarize: time 9.939e-05/0.4949, allocations: 88.27 kB / 0.6685 GB, free: 14.75 MB / 494.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0003003/0.4952, allocations: 276.7 kB / 0.6688 GB, free: 14.57 MB / 494.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0007753/0.496, allocations: 0.6014 MB / 0.6694 GB, free: 14.18 MB / 494.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.919e-06/0.496, allocations: 0 / 0.6694 GB, free: 14.18 MB / 494.1 MB Notification: Performance of FrontEnd: time 1.513e-06/0.4961, allocations: 3.938 kB / 0.6694 GB, free: 14.18 MB / 494.1 MB Notification: Performance of Transformations before backend: time 2.086e-05/0.4961, allocations: 0 / 0.6694 GB, free: 14.18 MB / 494.1 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 107 * Number of variables: 107 Notification: Performance of Generate backend data structure: time 0.00143/0.4975, allocations: 0.7696 MB / 0.6701 GB, free: 13.52 MB / 494.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.601e-05/0.4976, allocations: 8.438 kB / 0.6701 GB, free: 13.52 MB / 494.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001618/0.4977, allocations: 58.31 kB / 0.6702 GB, free: 13.5 MB / 494.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0005799/0.4983, allocations: 382.6 kB / 0.6706 GB, free: 13.14 MB / 494.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.546e-05/0.4984, allocations: 33.38 kB / 0.6706 GB, free: 13.12 MB / 494.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 6.48e-05/0.4984, allocations: 40.38 kB / 0.6706 GB, free: 13.11 MB / 494.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0007802/0.4992, allocations: 0.5108 MB / 0.6711 GB, free: 12.78 MB / 494.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.713e-05/0.4993, allocations: 7.922 kB / 0.6711 GB, free: 12.77 MB / 494.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.995e-05/0.4993, allocations: 17.34 kB / 0.6712 GB, free: 12.76 MB / 494.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.028e-05/0.4993, allocations: 10.88 kB / 0.6712 GB, free: 12.76 MB / 494.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0007162/0.5, allocations: 489.9 kB / 0.6716 GB, free: 12.53 MB / 494.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002518/0.5026, allocations: 2.149 MB / 0.6737 GB, free: 10.54 MB / 494.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0007022/0.5033, allocations: 366.9 kB / 0.6741 GB, free: 10.36 MB / 494.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0003106/0.5036, allocations: 202 kB / 0.6743 GB, free: 10.26 MB / 494.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.002413/0.506, allocations: 2.034 MB / 0.6763 GB, free: 8.027 MB / 494.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.418e-05/0.5061, allocations: 35 kB / 0.6763 GB, free: 7.984 MB / 494.1 MB Notification: Performance of pre-optimization done (n=47): time 2.014e-06/0.5061, allocations: 4 kB / 0.6763 GB, free: 7.98 MB / 494.1 MB Notification: Performance of matching and sorting (n=47): time 0.001564/0.5077, allocations: 0.7951 MB / 0.6771 GB, free: 7.133 MB / 494.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.669e-05/0.5077, allocations: 55.84 kB / 0.6771 GB, free: 7.066 MB / 494.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.000397/0.5081, allocations: 369.7 kB / 0.6775 GB, free: 6.695 MB / 494.1 MB Notification: Performance of collectPreVariables (initialization): time 3.929e-05/0.5082, allocations: 37.69 kB / 0.6775 GB, free: 6.652 MB / 494.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001478/0.5083, allocations: 216.6 kB / 0.6777 GB, free: 6.438 MB / 494.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001137/0.5084, allocations: 165.6 kB / 0.6779 GB, free: 6.273 MB / 494.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 5.82e-05/0.5085, allocations: 41.69 kB / 0.6779 GB, free: 6.227 MB / 494.1 MB Notification: Performance of setup shared object (initialization): time 0.0001225/0.5086, allocations: 354.8 kB / 0.6783 GB, free: 5.871 MB / 494.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002489/0.5089, allocations: 140.8 kB / 0.6784 GB, free: 5.734 MB / 494.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002777/0.5092, allocations: 181 kB / 0.6786 GB, free: 5.543 MB / 494.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0005648/0.5097, allocations: 348.9 kB / 0.6789 GB, free: 5.188 MB / 494.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.525e-06/0.5098, allocations: 0 / 0.6789 GB, free: 5.188 MB / 494.1 MB Notification: Performance of matching and sorting (n=53) (initialization): time 0.0008871/0.5107, allocations: 0.4893 MB / 0.6794 GB, free: 4.684 MB / 494.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.543e-05/0.5107, allocations: 8 kB / 0.6794 GB, free: 4.676 MB / 494.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.871e-06/0.5107, allocations: 0 / 0.6794 GB, free: 4.676 MB / 494.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0002704/0.511, allocations: 73.67 kB / 0.6795 GB, free: 4.598 MB / 494.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002988/0.5113, allocations: 95.83 kB / 0.6796 GB, free: 4.504 MB / 494.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002005/0.5133, allocations: 2.702 MB / 0.6822 GB, free: 1.531 MB / 494.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.000284/0.5136, allocations: 51.61 kB / 0.6822 GB, free: 1.48 MB / 494.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.298e-05/0.5136, allocations: 19.94 kB / 0.6823 GB, free: 1.461 MB / 494.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 5 * Number of states: 0 () * Number of discrete variables: 0 () * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (49): * Single equations (assignments): 47 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * 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,2,100.0%), (1,2,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of prepare postOptimizeDAE: time 0.0001992/0.5139, allocations: 165.7 kB / 0.6824 GB, free: 1.289 MB / 494.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 8.714e-05/0.5139, allocations: 55.41 kB / 0.6825 GB, free: 1.234 MB / 494.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001299/0.5153, allocations: 0.6997 MB / 0.6832 GB, free: 0.5234 MB / 494.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.933e-06/0.5153, allocations: 7.984 kB / 0.6832 GB, free: 0.5156 MB / 494.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.28e-06/0.5153, allocations: 4 kB / 0.6832 GB, free: 0.5117 MB / 494.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.402e-06/0.5153, allocations: 0 / 0.6832 GB, free: 0.5117 MB / 494.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001819/0.5171, allocations: 1.163 MB / 0.6843 GB, free: 15.27 MB / 0.4981 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.258e-06/0.5171, allocations: 0 / 0.6843 GB, free: 15.27 MB / 0.4981 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002607/0.5174, allocations: 75.91 kB / 0.6844 GB, free: 15.2 MB / 0.4981 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.0002243/0.5176, allocations: 73.72 kB / 0.6844 GB, free: 15.12 MB / 0.4981 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.865e-05/0.5177, allocations: 15.98 kB / 0.6845 GB, free: 15.1 MB / 0.4981 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001956/0.5197, allocations: 2.733 MB / 0.6871 GB, free: 12.1 MB / 0.4981 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.709e-06/0.5197, allocations: 7.969 kB / 0.6871 GB, free: 12.09 MB / 0.4981 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.00116/0.5208, allocations: 0.7443 MB / 0.6879 GB, free: 11.31 MB / 0.4981 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0001571/0.521, allocations: 140.3 kB / 0.688 GB, free: 11.16 MB / 0.4981 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 7.213e-05/0.5211, allocations: 12 kB / 0.688 GB, free: 11.14 MB / 0.4981 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002529/0.5213, allocations: 16.05 kB / 0.688 GB, free: 11.13 MB / 0.4981 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 7.686e-05/0.5214, allocations: 39.89 kB / 0.6881 GB, free: 11.09 MB / 0.4981 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.915e-05/0.5215, allocations: 19.98 kB / 0.6881 GB, free: 11.07 MB / 0.4981 GB Notification: Performance of sorting global known variables: time 0.0003217/0.5218, allocations: 295.1 kB / 0.6884 GB, free: 10.79 MB / 0.4981 GB Notification: Performance of sort global known variables: time 1.51e-07/0.5218, allocations: 0 / 0.6884 GB, free: 10.79 MB / 0.4981 GB Notification: Performance of remove unused functions: time 0.0006647/0.5225, allocations: 191.8 kB / 0.6885 GB, free: 10.6 MB / 0.4981 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 5 * Number of states: 2 (flowResistance.rear.m_flow,flowResistance1.rear.m_flow) * Number of discrete variables: 0 () * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (43): * Single equations (assignments): 41 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * 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,2,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.0004144/0.5229, allocations: 286 kB / 0.6888 GB, free: 10.32 MB / 0.4981 GB Notification: Performance of simCode: created initialization part: time 0.0009924/0.5239, allocations: 0.5887 MB / 0.6894 GB, free: 9.707 MB / 0.4981 GB Notification: Performance of simCode: created event and clocks part: time 2.665e-06/0.5239, allocations: 0 / 0.6894 GB, free: 9.707 MB / 0.4981 GB Notification: Performance of simCode: created simulation system equations: time 0.0005761/0.5245, allocations: 441.6 kB / 0.6898 GB, free: 9.25 MB / 0.4981 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001064/0.5256, allocations: 163.7 kB / 0.69 GB, free: 9.086 MB / 0.4981 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001983/0.5276, allocations: 1.298 MB / 0.6912 GB, free: 7.746 MB / 0.4981 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003778/0.528, allocations: 0.8434 MB / 0.6921 GB, free: 6.879 MB / 0.4981 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001603/0.5281, allocations: 59.42 kB / 0.6921 GB, free: 6.82 MB / 0.4981 GB Notification: Performance of SimCode: time 6.21e-07/0.5281, allocations: 0 / 0.6921 GB, free: 6.82 MB / 0.4981 GB Notification: Performance of Templates: time 0.01579/0.5439, allocations: 12.54 MB / 0.7044 GB, free: 10.33 MB / 0.5137 GB make -j1 -f ThermofluidStream_ThermofluidStream.Undirected.Processes.Tests.TestFlowResistance.makefile (rm -f ThermofluidStream_ThermofluidStream.Undirected.Processes.Tests.TestFlowResistance.pipe ; mkfifo ThermofluidStream_ThermofluidStream.Undirected.Processes.Tests.TestFlowResistance.pipe ; head -c 1048576 < ThermofluidStream_ThermofluidStream.Undirected.Processes.Tests.TestFlowResistance.pipe >> ../files/ThermofluidStream_ThermofluidStream.Undirected.Processes.Tests.TestFlowResistance.sim & ./ThermofluidStream_ThermofluidStream.Undirected.Processes.Tests.TestFlowResistance -abortSlowSimulation -alarm=1200 -emit_protected -lv LOG_STATS > ThermofluidStream_ThermofluidStream.Undirected.Processes.Tests.TestFlowResistance.pipe 2>&1) diffSimulationResults("ThermofluidStream_ThermofluidStream.Undirected.Processes.Tests.TestFlowResistance_res.mat","/mnt/ReferenceFiles/ThermofluidStream-main-regression/ReferenceData/ThermofluidStream.Undirected.Processes.Tests.TestFlowResistance_ref.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/ThermofluidStream_ThermofluidStream.Undirected.Processes.Tests.TestFlowResistance.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches